單機轉RAC,添加新節點


添加新節點GRID(用已有節點的GRID用戶執行)
1、前期准備工作和已經安裝的節點一樣
2、在執行添加節點的腳本時候,如果檢測報錯:ntp可以mv resolv可以mv
3、如果還報如下問題
Checking CRS home location...
PRVG-1013 : The path "/u01/11.2.0/grid" does not exist or cannot be created on the nodes to be added
Shared resources check for node addition failed
解決方法:
grid@test:/oracle/11.2/grid/oui/bin> export IGNORE_PREADDNODE_CHECKS=Y
grid@test:/oracle/11.2/grid/oui/bin> ./addNode.sh -ignoreSysPrereqs -force "CLUSTER_NEW_NODES={test-bak}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={test-bak-vip}" "CLUSTER_NEW_PRIVATE_NODE_NAMES={test-bak-priv}"

4、出現如下結果表示成功
/oracle/11.2/grid/root.sh #On nodes test-bak
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts in each cluster node

The Cluster Node Addition of /oracle/11.2/grid was successful.
Please check '/tmp/silentInstall.log' for more details.

5、在新加節點執行上面提示的腳本
/oracle/11.2/grid/root.sh

6、驗證集群軟件是否添加成功
[grid@test bin]$ cluvfy stage -post nodeadd -n test-bak -verbose

7、添加新節點數據庫(用已有節點的ORACLE用戶執行)
oracle@test:/oracle/app/oracle/product/11.2.0/db_1/oui/bin> ./addNode.sh -silent "CLUSTER_NEW_NODES={test-bak}"

8、出現如下結果表示成功
/oracle/app/oracle/product/11.2.0/db_1/root.sh #On nodes test-bak
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts in each cluster node

The Cluster Node Addition of /oracle/app/oracle/product/11.2.0/db_1 was successful.
Please check '/tmp/silentInstall.log' for more details.

9、在新節點上執行上面提示的腳本
test-bak:~ # /oracle/app/oracle/product/11.2.0/db_1/root.sh

10、添加實例
dbca -silent -addInstance -nodeList rac3 -gdbName orcl -instanceName orcl3 -sysDBAUserName sys -sysDBAPassword "***"

也可以通過dbca圖形添加數據庫

如果報如下錯誤:

在搭建oracle 11g r2環境的時候,用dbca創建數據庫的是時候,檢測提示rac1沒有vip設置,提示信息如下:
Virtual IP address is not configured for cluster node “rac1”. Run “/u01/app/11.2.0/grid/bin/srvctl” as root user to configure
it before performing the “Create a Database” operation.
然后登陸到rac1 ,檢測vip,並刪除vip設置,當然這里是沒有的,然后嘗試添加vip
grid@rac1:/opt> srvctl stop vip -n rac1 -f
PRKO-2439 : VIP does not exist.
grid@rac1:/opt> srvctl remove vip -i rac1
Please confirm that you intend to remove the VIPs rac1 (y/[n]) y
PRCR-1001 : Resource ora.rac1.vip does not exist
grid@rac1:/opt> srvctl add vip -n rac1 -A 192.168.207.100/255.255.255.0/eth0 -k 2
PRCN-2049 : The network attributes specified (network number: 2, subnet: 192.168.207.0, adapters: eth0) conflict with an already registered network (network number: 1, subnet: 192.168.207.0, adapters: eth0)

grid@rac1:/opt> srvctl add vip -n rac1 -A 192.168.207.100/255.255.255.0/eth0 -k 1
PRCN-2018 : Current user grid is not a privileged user

  在添加的時候提示權限不夠,切換至root用戶執行:

rac1:~/Desktop # /opt/app/grid/11.2/bin/srvctl add vip -n rac1 -A 192.168.207.100/255.255.255.0/eth0 -k 1

  執行成功,然后檢測,如果沒有啟動,則啟動即可

grid@rac1:~> srvctl status vip -n rac1 
VIP 192.168.207.100 is enabled
VIP 192.168.207.100 is not running
grid@rac1:~> srvctl start vip -n rac1 
grid@rac1:~> srvctl status vip -n rac1 
VIP 192.168.207.100 is enabled
VIP 192.168.207.100 is running on node: rac1

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM