首页 > 数据库技术 > 详细

CentOS 6.8_x64 Oracle 12C 安装

时间:2016-10-29 12:09:45      阅读:313      评论:0      收藏:0      [点我收藏+]

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

 

 

CentOS 6.8_x64 Oracle 12C 安装

原文:http://www.cnblogs.com/kamil/p/6010208.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!