[Server]
name=Server
baseurl=file:///media/iso/Server
enabled=1
gpgcheck=0
[HighAvailability]
name=HighAvailability
baseurl=file:///media/iso/HighAvailability
enabled=1
gpgcheck=0
[LoadBalancer]
name=LoadBalancer
baseurl=file:///media/iso/LoadBalancer
enabled=1
gpgcheck=0
[LoadBalancer]
name=LoadBalancer
baseurl=file:///media/iso/LoadBalancer
enabled=1
gpgcheck=0
[root@oracle Packages]# yum install binutils-2.* compat-libstdc++-33* elfutils-libelf-0.* elfutils-libelf-devel-* gcc-4.* gcc-c++-4.* glibc-2.* glibc-common-2.* glibc-devel-2.* glibc-headers-2.* ksh-2* libaio-0.* libaio-devel-0.* libgcc-4.* libstdc++-4.* libstdc++-devel-4.* make-3.* sysstat-7.* unixODBC-2.* unixODBC-devel-2.* pdksh*
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 4194304
net.core.wmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
[root@oracle ~]# groupadd dba
[root@oracle ~]# useradd -g oinstall -G dba -d /opt/oracle -m oracle
[root@oracle ~]# passwd oracle
[root@oracle ~]# vim /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
[root@oracle ~]# vim /etc/pam.d/login
session required pam_limits.so
[root@oracle ~]# vim /etc/profile
if [ \$USER = "oracle" ]; then
if [ \$SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
[root@oracle ~]# mkdir -p /u01/app/oracle
2. 设置目录所有权
[root@oracle ~]#chown oracle:oinstall /u01/app
3. 设置目录权限
[root@oracle ~]# chmod -R 775 /u01/app
4.准备oracle安装文件(修改/etc/hosts文件)
[root@oracle ~]#vim/etc/hosts
127.0.0.1localhost.localdomainlocalhost
::1localhost6.localdomain6localhost6
192.168.137.112oracle.domain.comoracle
注意将主机名对应到真实ip地址,否则oracle有可能将监听程序仅仅建立在127.0.0.1上解压oracle安装文件包
[root@oracle u01]# unzip /media/linux.x64_11gR2_/linux.x64_11gR2_database_1of2.zip && unzip /media/linux.x64_11gR2_/linux.x64_11gR2_database_2of2.zip
切换到oracle用户,图形界面登录,执行oracle安装文件
# They are expected to edit it to meet their own needs.
MAIL=/usr/mail/${LOGNAME:?}
MAIL=/usr/mail/${LOGNAME:?}
export PS1=["$LOGNAME"@`hostname`]:'$PWD'$
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/11.2.0.1
export ORACLE_SID=aiobs
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export NLS_LANG=AMERICAN_AMERICA.zhs16gbk
export PATH=/usr/bin:$ORACLE_HOME/bin:/bin:/sbin:/usr/bin:/usr/ccs/bin:/usr/local/bin:/usr/sbin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:$ORACLE_HOME/lib32:/usr/local/lib:/usr/liba
export LD_LIBRARY_PATH
ulimit -s 32768
ulimit -n 65536
export DISPLAY=192.168.100.100:0.0
[oracle@oracle database]$ ./runInstaller