Oracle11.2.0.3.0安装过程记录(第一稿)
Step1(On Each Node)
----make sure each node get the same users&groups settings------
su - root
/usr/sbin/groupadd -g 501 oinstall
/usr/sbin/groupadd -g 502 dba
/usr/sbin/groupadd -g 503 oper
/usr/sbin/groupadd -g 504 asmadmin
/usr/sbin/groupadd -g 506 asmdba
/usr/sbin/groupadd -g 507 asmoper
/usr/sbin/useradd -u 501 -g oinstall -G asmadmin,asmdba,asmoper grid
/
usr/sbin/useradd -u 502 -g oinstall -G dba,asmdba oracle
passwd oracle
passwd grid
----make sure each node get the same users&groups settings------
Step2(On Each Node)
----make sure each node get right network settings------
su - root
------here is my hosts as an example----
------Each Node should has the same hosts content----
vi /etc/hosts
#eth0 - PUBLIC
172.16.21.1 node1
172.16.21.4 node2
#VIP
172.16.21.2 node1-vip
172.16.21.3 node2-vip
#eth1 - PRIV ATE
172.16.11.206 node1-pvt
172.16.11.207 node2-pvt
#SCAN
172.16.21.5  SCAN
172.16.21.6  SCAN
172.16.21.19  SCAN
----make sure each node get the same hosts file------
Step3(On Each Node)
----make sure each node get the right ip & hostname------
-----verufy ip settings----
ifconfig -a
-----change the network setting if needed----
----here is my eth0 setting@Node1---
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
HWADDR=00:50:56:af:01:79
NETMASK=255.255.255.0
IPADDR=172.16.21.1
GATEWAY=172.16.21.254
TYPE=Ethernet
----here is my eth1 setting @Node1---
vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=static
ONBOOT=yes
HWADDR=00:50:56:af:01:7a
NETMASK=255.255.255.0
IPADDR=172.16.11.206
GATEWAY=172.16.11.254
TYPE=Ethernet
-----view current hostname----
hostname
-------change it if needed------
-------here is my hostname content @Node1---
vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=node1
-----after chang hostname,server must init 6------
Step4(On Each Node)
----make sure each node get the same env settings------
---if parameters exist in file ,higher value should be used----
---when ./runcluvfy.sh,it will suggest which parameter should be addjusted further----- su - root
vi /f
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 6553600
net.ipv4.ip_local_port_range = 9000 65500
----after change upper parameter---
/sbin/sysctl -p
----make sure each node get the same env settings------
Step5(On Each Node)
----Setup oracle and grid Shell limits----
---Add to /etc/f---
vi /etc/f
grid soft nproc 2047
grid hard nproc 16384
grid soft nofile 1024
grid hard nofile 65536
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
Step6(On Each Node)
----Add or edit the following line in the /etc/pam.d/login file if it does not existed----- vi /etc/pam.d/login
session required pam_limits.so
Step7(On Each Node)
su - root
vi /etc/profile
------------add the following lines to the /etc/profile------
if [ $USER = "oracle" ] || [ $USER = "grid" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
------------add the following lines to the /etc/profile------
su - oracle
vi .bash_profile
------------add the following lines to the .bash_profile------
------------Each Node has diffirent ORACLE_SID,Do not forget change value in following content----
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1;export ORACLE_HOME
oracle11g 创建数据库
ORACLE_SID=orcl1; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
BASE_PATH=/usr/sbin:$PATH; export BASE_PATH
PATH=$ORACLE_HOME/bin:$BASE_PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
su - grid
vi .bash_profile
------------add the following lines to the .bash_profile------
------------Each Node has diffirent ORACLE_SID,Do not forget change value in following content----
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=/u01/11.2.0/grid; export ORACLE_HOME
ORACLE_SID=+ASM1; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。