本文是利用图形环境远程安装(因oracle安装需要使用到图形环境,所以本文为图形环境安装步骤,静默安装可参考其它)
VNC的安装参考文章:http://www.jb51.cc/article/p-ydtxwikv-st.html
环境:
[root@s0167-gz tmp]# cat /etc/redhat-release
CentOS release 6.7 (Final)
[root@s0167-gz tmp]# uname -a
Linux s0167-gz 2.6.32-573.el6.x86_64 #1 SMP Thu Jul 23 15:44:03 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
尊重原文,转载请注明。本文地址:http://www.jb51.cc/article/p-cjysffbj-st.html
一、新建oracle用户组
1.1 新建用户和组
[root@s0167-gz tmp]# groupadd -g 500 oinstall [root@s0167-gz tmp]# groupadd -g 501dba [root@s0167-gz tmp]# groupadd -g 501oper [root@s0167-gz tmp]# useradd -u 500 -g oinstall -G dba,oper oracle [root@s0167-gz tmp]# passwd oracle |
[root@s0167-gz data]# mkdir /data/oracle [root@s0167-gz data]# cd oracle [root@s0167-gz oracle]# mkdir /data/oraInventory [root@s0167-gz oracle]# cd app [root@s0167-gz app]# mkdir -p oracle/product/11.2.0/dbhome_1 #授权 [root@s0167-gz app]#cd /data [root@s0167-gz data ]# chown -R oracle:oinstall oraclecle [root@ s0167-gz data]# chmod -R 775 /oracle/app/oracle |
#oracle add by wulinzhi 16.8.3 kernel.shmmax = 277495689510912 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048586 fs.file-max = 6815744 # Controls the maximum number of shared memory segments,in pages kernel.shmall = 4294967296 net.ipv4.tcp_max_tw_buckets = 6000 net.ipv4.ip_local_port_range = 9000 65500 net.ipv4.tcp_tw_recycle = 0 net.ipv4.tcp_tw_reuse = 1 net.core.somaxconn = 262144 net.core.netdev_max_backlog = 262144 net.ipv4.tcp_max_orphans = 262144 net.ipv4.tcp_max_syn_backlog = 262144 net.ipv4.tcp_synack_retries = 2 net.ipv4.tcp_syn_retries = 1 net.ipv4.tcp_fin_timeout = 1 net.ipv4.tcp_keepalive_time = 30 net.ipv4.tcp_keepalive_probes = 6 net.ipv4.tcp_keepalive_intvl = 5 net.ipv4.tcp_timestamps = 0 fs.aio-max-nr = 1048576 # end oracle add |
[root@s0167-gz tmp]# sysctl -p |
[root@s0167-gz tmp]# vim /etc/security/limits.conf ... #oracle add oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 |
# oracle add session required pam_limits.so session optional pam_keyinit.so force revoke session include system-auth -session optional pam_ck_connector.so session required /lib/security/pam_limits.so session required pam_limits.so |
[root@s0167-gz tmp]# vim /etc/profile #add by wulinzhi for oracle install if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi |
[oracle@s0167-gz ~]$ vim .bash_profile umask 022 export ORACLE_BASE=/data/oracle/app export ORACLE_HOME=$ORACLE_BASE/oracle/product/11.2.0/dbhome_1 export ORACLE_SID=myTest export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib export NLS_LANG='AMERICAN_AMERICA.AL32UTF8' export LC_ALL="en_US" export LANG="en_US" export NLS_DATE_FORMAT="YYYY-MM-DD HH24:MI:SS" |
#采用yum安装,如下: yum install -y compat-libstdc* yum install -y elfutils-libelf* yum install -y gcc* yum install -y glibc* yum install -y ksh* yum install -y libaio* yum install -y libgcc* yum install -y libstdc* yum install -y make* yum install -y sysstat*
yum install libXp* -y yum install -y glibc-kernheaders |
[oracle@s0167-gz ~]$ dbca |
/data/oracle/product/11.2.0/db_1/root.sh /data/oraInventory/orainstRoot.sh |