Environment Description:
OS: Linux Centos 7.5
DB:Oracle 11.2.0.4.0
Existing node: RAC1, RAC2
Added node: RAC3
One: Preparing the Environment
Two: Adding GI
Three: Adding Oracle software
Four: Adding Oracle instance
Five: check
One: Preparing the Environment
RAC3 server:
Create an operating system, configure host, create a directory and authorization to create users and groups, set user environment variables, configuration yum install the required packages,
Kernel configuration parameters, set SHELL limits set ssh trust, shared memory is provided, turn off the firewall, closed seliunx;
Two: Adding GI
--- execution node in rac1
[grid@rac1 bin]$ cluvfy stage -pre nodeadd -n rac3 -fixup >0808.log
[grid@rac1 ~]$ export IGNORE_PREADDNODE_CHECKS=Y
[grid@rac1 ~]$ cd $ORACLE_HOME/oui/bin
[grid@rac1 ~]$ ./addNode.sh "CLUSTER_NEW_NODES={rac3}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={rac3-vip}"
--- In rac3 node executing the script
[root@rac3 ~]# /u01/app/oraInventory/orainstRoot.sh
[root@rac3 ~]# /u01/app/11.2.0/grid/root.sh
--- Check status
[root@rac1 ~]# cd /u01/app/11.2.0/grid/bin
[grid@rac1 bin]$ crs_stat -t
[grid@rac1 bin]$ crsctl stat res -t
Three: Adding Oracle software
---在rac1节点执行
[oracle@rac1 .ssh]$ $ORACLE_HOME/oui/bin/addNode.sh "CLUSTER_NEW_NODES={rac3}"
---根据提示,需要在rac3上执行root.sh
[root@rac3 ~]# /u01/app/oracle/product/11.2.0/db_1/root.sh
---执行有如下两个报错(本次实验忽略该错误,不做处理)
/bin/chown:cannot access '/u01/app/oracle/product/11.2.0/db_1/bin/nmhs':No such file or directory
/bin/chmod:cannot access '/u01/app/oracle/product/11.2.0/db_1/bin/nmhs':No such file or directory
---尝试手动从rac1节点将nmhs文件拷贝到rac3,也会失败,提示权限不足
[oracle@rac1 ~]$ scp /u01/app/oracle/product/11.2.0.db_1/bin/nmhs
rac3:/u01/app/oracle/product/11.2.0.db_1/bin/
/u01/app/oracle/product/11.2.0.db_1/bin/nmhs: Permission denied
---查看nmhs权限
[root@rac1 ~]$ ls -rth /u01/app/oracle/product/11.2.0.db_1/bin/nmh*
-r2xr-xr-x oracle oinstall /u01/app/oracle/product/11.2.0.db_1/bin/nmh0
-rws--x--- root oinstall /u01/app/oracle/product/11.2.0.db_1/bin/nmhs
---rac3节点可以使用sqlplus工具了
[oracle@rac3 ~]# sqlplus / as sysdba
四:添加Oracle实例
---DBCA
[oracle@rac1 ~]$ dbca
Instance Management
Add an instance
五:检查
[grid@rac1 ~]# srvctl status database -d racdb
Instance racdb1 is running on node rac1
Instance racdb1 is running on node rac2
Instance racdb1 is running on node rac3
[oracle@rac1 ~]# sqlplus / as sys dba
SQL> select instance_name,instance_number from v$instance ;
INSTANCE_NAME INSTANCE_NUMBER
------------- ---------------
racdb3 3
racdb2 2
racdb1 1
郑州不孕不育医院:http://jbk.39.net/yiyuanzaixian/zztjyy/