一服务器准备
系统为centos6.5版本64位。数据库为oracle11G企业版11.2.0.1.0
二服务器环境配置
1.
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
passwd oracle
2.
mkdir -p /u01/app/oracle/product/11.2.0/db_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01
3.
vim /etc/sysctl.conf
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
fs.aio-max-nr = 1048576
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 = 1048576
kernel.shmall = 2097152
kernel.shmmax = 6442450944
kernel.shmmni = 4096
vm.min_free_kbytes = 512000
vm.swappiness = 100
保存退出 文件里面本身重复的注释掉
sysctl -p
4
cat >> /etc/security/limits.conf <<H
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 4096
oracle hard nofile 65536
oracle soft stack 10240
yum install binutils compat-libstdc++-33 compat-libstdc++-33.i686 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc.i686 glibc-common glibc-devel glibc-devel.i686 glibc-headers ksh libaio libaio.i686 libaio-devel libaio-devel.i686 libgcc libgcc.i686 libstdc++ libstdc++.i686 libstdc++-devel make sysstat unixODBC unixODBC-devel -y
5
cat >>/home/oracle/.bash_profile<<endf
TMP=/tmp;export TMP
TMPDIR=\$TMP;export TMPDIR
ORACLE_BASE=/u01/app/oracle;export ORACLE_BASE
ORACLE_HOME=\$ORACLE_BASE/product/10.2.0/db_1;export ORACLE_HOME
ORACLE_SID=orcl;export ORACLE_SID
LD_LIBRARY_PATH=\$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
PATH=\$ORACLE_HOME/bin:\$PATH; export PATH
endf
xhost +
su - oracle
source /home/oracle/.bash_profile
#gunzip /tmp/10201_database_linux_x86_64.cpio.gz
#cpio -idmv < /tmp/10201_database_linux_x86_64.cpio
#tar -zxvf $path -C $install_path
cd $install_path
./runInstaller