1.下载地址
(需要注册oracle账号)
2.登录CentOS 做准备工作
groupadd oinstall groupadd dba useradd -g oinstall -g dba -m oracle passwd oracle
3.传输 压缩包至Oracle home下的down
解压并且修改所属用户所属组
mkdir /home/oracle/app mkdir /home/oracle/down mkdir /home/oracle/app/oracle mkdir /home/oracle/app/oradata mkdir /home/oracle/app/oracle/product unzip linux.x64_12cR2_database_1of2.zip unzip linux.x64_12cR2_database_2of2.zip chown -R oracle:oinstall /home/oracle
4. 修改用户的SHELL限制
vi /etc/security/limits.conf oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536
5.
vi /etc/pam.d/login session required /lib/security/pam_limits.so session required pam_limits.so vi /etc/sysctl.conf fs.file-max = 6815744 fs.aio-max-nr = 1048576 kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 4194304 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576 vi /etc/profile if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi su - oracle vi .bash_profile umask 022 export ORACLE_BASE=/home/oracle/app export ORACLE_HOME=$ORACLE_BASE/oracle/product/12.1.0/dbhome_1 export ORACLE_SID=orcl export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
6.安装依赖包
yum -y update yum -y install ksh libaio-devel gcc-c++ libstdc++-devel compat-libstdc++-33 compat-libcap1
时间: 2024-10-06 06:24:37