首页 > 代码库 > CentOS 6.8_x64 Oracle 12C 安装

CentOS 6.8_x64 Oracle 12C 安装

1.下载地址

(需要注册oracle账号)

点击

2.登录CentOS 做准备工作

groupadd  oinstall groupadd  dbauseradd -g oinstall -g dba -m oraclepasswd  oracle

3.传输 压缩包至Oracle home下的down

解压并且修改所属用户所属组

mkdir /home/oracle/appmkdir /home/oracle/downmkdir /home/oracle/app/oraclemkdir /home/oracle/app/oradatamkdir /home/oracle/app/oracle/product unzip  linux.x64_12cR2_database_1of2.zip unzip  linux.x64_12cR2_database_2of2.zipchown -R oracle:oinstall /home/oracle

4. 修改用户的SHELL限制

vi  /etc/security/limits.conforacle   soft    nproc    2047oracle   hard    nproc    16384oracle   soft    nofile     1024oracle   hard    nofile    65536

5. 

vi  /etc/pam.d/loginsession   required    /lib/security/pam_limits.so session   required    pam_limits.sovi  /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 = 1048576vi  /etc/profileif [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fifisu - oraclevi .bash_profileumask 022export ORACLE_BASE=/home/oracle/appexport ORACLE_HOME=$ORACLE_BASE/oracle/product/12.1.0/dbhome_1export ORACLE_SID=orclexport PATH=$PATH:$HOME/bin:$ORACLE_HOME/binexport LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib

 

6.安装依赖包

yum -y updateyum -y install ksh libaio-devel gcc-c++ libstdc++-devel compat-libstdc++-33 compat-libcap1

 

 

CentOS 6.8_x64 Oracle 12C 安装