1、首先檢查一下linux下是有存在一下軟件,如果不存在,必須將這些軟件安裝
rpm -q compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc glibc-common glibc-devel gcc- gcc-c++ libaio-devel libaio libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel
2、以root方式登陸,修改/etc/sysctl.conf,在文件中增加一下參數(shù)
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range =1024 65000
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default =262144
net.core.wmem_max =262144
然后創(chuàng)建數(shù)據(jù)庫(kù)的所有者:
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba Oracle 創(chuàng)建用戶Oracle
passwd Oracle(修改Oracle的密碼)
修改Oracle用戶的限制
cd /etc/security
vi limits.conf
在該文件增加一下內(nèi)容
Oracle soft nproc 2047
Oracle hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
在文件/etc/pam.d/login文件增加一下內(nèi)容
session required /lib/security/pam_limits.so
session required pam_limits.so
在文件/etc/profile增加一下內(nèi)容
if [$USER = "Oracle"] ; then
if [ $SHELL = " /bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65535
else
ulimit -u 16384 -n 65536
fi
fi
創(chuàng)建安裝目錄:
mkdir -p /opt/app/oracle
chown -P Oracle:oinstall /opt/app
chmod -R 755 /opt/app
執(zhí)行命令,解壓安裝文件 :unzip linux_11gR1_database.zip
然后進(jìn)入解壓后的目錄,執(zhí)行
$ ./runInstaller