加入收藏
网站地图
网站搜索
繁體
首页Linux新闻Linux教程数据库技术Linux编程服务器应用Linux安全Linux下载Linux认证Linux主题Linux壁纸Linux软件数码手机电脑 首页 → 数据库技术
-
阅读内容
Linux RHEL5.4 64系统安装Oracle 11gR2 64位
[日期:2011-01-27] 来源:Linux社区 作者:jssnode1
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-2.5-24 (32 bit)-
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5 (32 bit)
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-0.3.106 (32 bit)
libaio-devel-0.3.106
libaio-devel-0.3.106 (32 bit)
libgcc-4.1.2
libgcc-4.1.2 (32 bit)
libstdc++-4.1.2
libstdc++-4.1.2 (32 bit)
libstdc++-devel 4.1.2
make-3.81
sysstat-7.0.2
unixODBC-2.2.11
unixODBC-2.2.11 (32 bit)
unixODBC-devel-2.2.11
unixODBC-devel-2.2.11 (32 bit)
[root@linuxidc ~]# rpm -q gcc
gcc-4.1.2-44.el5
[root@linuxidc ~]# rpm -q sysstat
package sysstat is not installed
[root@linuxidc Server]# rpm-ivh sysstat-7.0.2-3.el5.x86_64.rpm
warning: sysstat-7.0.2-3.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID
1e5e0159
Preparing... ########################################### [100%]
1:sysstat ########################################### [100%]
[root@linuxidc Server]# vi /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
[root@linuxidc ~]# sysctl -p
[root@linuxidc ~]# groupadd -g 502 dba
[root@linuxidc ~]# groupadd oinstall
3.2
[root@linuxidc ~]# useradd -u 502 -g oinstall -G dba Oracle
[root@linuxidc ~]# passwd Oracle
Changing password for user Oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
3.3 Shell Limits
vi /etc/security/limits.conf
Oracle soft nproc 2047
Oracle hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
vi /etc/pam.d/login
session required pam_limits.so
[root@linuxidc ~]# mkdir /data/ora11g
[root@linuxidc ~]# mkdir /data/ora11g/product
[root@linuxidc ~]# mkdir /data/ora11g/oradata
[root@linuxidc ~]# mkdir /data/software
unzip
linux.x64_11gR2_database_1of2.zip
linux.x64_11gR2_database_2of2.zip
/data/software
[root@linuxidc ~]# chown -R Oracle:oinstall /data/ora11g
[root@linuxidc ~]# chown -R Oracle:oinstall /data/software
vi /home/Oracle/.bash_profile
export TMP=/tmp
export TMPDIR=$TMP
export Oracle_BASE=/data/ora11g
export Oracle_HOME=$ORACLE_BASE/product/11.2.0/db_1
export Oracle_SID=jssdb
export Oracle_TERM=xterm
export PATH=/usr/sbin:$PATH
export PATH=$Oracle_HOME/bin:$PATH
export
LD_LIBRARY_PATH=$Oracle_HOME/lib:/lib64:/usr/lib64:/usr/local/lib64:/usr/X11R6/lib64/
export
CLASSPATH=$Oracle_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export LD_ASSUME_KERNEL=2.6.18
export NLS_LANG="AMERICAN_AMERICA.ZHS16GBK"
umask 022
if [ $USER = "Oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
[root@linuxidc ~]# xhost +
Access control disabled, clients can connect from any host
[root@linuxidc ~]# su - Oracle
[Oracle@linuxidc ~]$
[Oracle@linuxidc ~]$ cd /data/software/database/
[Oracle@linuxidc database]$ ./runInstaller
Starting Oracle Universal Installer...
本文出自:亿恩科技【www.enkj.com】
服务器租用/服务器托管中国五强!虚拟主机域名注册顶级提供商!15年品质保障!--亿恩科技[ENKJ.COM]
|