Oracle安装基本步骤
安装数据库 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 --代表4个值,不能删除中间的空格 fs.file-max = 65536 net.ipv4.ip_local_port_range =9000 65000 net.core.rmem_default=262144 net.core.rmem_max=262144 net.core.wmem_default=262144 net.core.wmem_max=262144
关于内核参数的说明:
http://www.cnblogs.com/rootq/archive/2009/06/01/1494122.html
http://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm#BHCCADGD 补充:
检查并安装所需的软件包:
http://blog.csdn.net/loomz/article/details/45081355
7.runInstall 8.执行脚本(使用root帐号执行) #/oracle/oraInventory/orainstRoot.sh #/oracle/product/10.2.0/db_1/root.sh
*******VICTORY LOVES PREPARATION*******