码迷,mamicode.com
首页 > 数据库 > 详细

Oracle安装基本步骤

时间:2015-05-10 20:15:37      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:

安装数据库
1.建立用户组及用户
groupadd oinstall
groupadd dba
groupadd oper
useradd -g oinstall -G dba oracle
passwd oracle


2.创建安装目录及权限
mkdir -p /opt/ora10g
chown -R oracle.oinstall /opt/ora10g

3.设置oracle用户的shell limit
vi /etc/security/limits.conf
grid  soft    nproc   2047
grid  hard    nproc   16384
grid  soft    nofile  1024
grid  hard    nofile  65536
grid  soft    stack   10240

oracle  soft    nproc   2047
oracle  hard    nproc   16384
oracle  soft    nofile  1024
oracle  hard    nofile  65536
oracle  soft    stack   10240


4.shell limit生效
vi/etc/pam.d/login
session required pam_limits.so



5.环境变量  .bash_profile
export PATH
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_BASE=/opt/ora10g
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db
export ORACLE_SID=ocp
export ORACLE_TERM=xterm
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$CRS_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
umask 022

6.系统参数
vi /etc/sysctl.conf
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=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144


7.runInstall


8.执行脚本
#/oracle/oraInventory/orainstRoot.sh
#/oracle/product/10.2.0/db_1/root.sh

 

Oracle安装基本步骤

标签:

原文地址:http://www.cnblogs.com/rusking/p/4492884.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!