How to find Master Node in Oracle RAC
2014-08-03 14:02
357 查看
How to find Master Node in Oracle RAC[@more@]How to find Master Node in Oracle RAC
I have seen many users asking how to find “Master node” in Oracle RAC, let me clear some of their doubts.
There are two types of Masters in Oracle RAC, one is Mater node at Oracle Clusterware level and other is Master node for specific resource or block or object.
The node which gets the active state during startup is authorized to be a master node by Cluster Synchronization Service.
Run the below command to find which node is master at Clusterware level
$cat $ORA_CRS_HOME/log/`hostname`/cssd/ocssd* |grep master
or
$ for x in `ls -tr $ORA_CRS_HOME/log/`hostname`/cssd/ocssd* `; do grep -i "master node" $x ; done | tail -1
rac2-> for x in `ls -tr ocssd* `; do grep -i "master node" $x ; done | tail -1
2014-08-03 13:56:06.891: [ CSSD][2877254544]clssgmCMReconfig: reconfiguration successful, incarnation 258992448 with 2 nodes, local node number 2, master node number 1
rac2->
rac1-> for x in `ls -tr ocssd* `; do grep -i "master node" $x ; done | tail -1
2014-08-03 13:56:06.449: [ CSSD][2877254544]clssgmCMReconfig: reconfiguration successful, incarnation 258992448 with 2 nodes, local node number 1, master node number 1
rac1->
The OCR Automatic backups are taken only by master node. If the Master fails, the OCR backups will be created on the new Master. The Master node which has OCR backups goes down due to failure then we cannot be recover the
OCR that’s why Oracle recommends taking backups using “ocrconfig” and also integrating OCR backups with backup strategy.
Run the below command to find which node is OCR Master and taking automatic backups.
$ocrconfig –showbackup
testrac02 2010/08/30 16:29:52 /oracle/crs/cdata/crs
testrac02 2010/08/30 16:29:52 /oracle/crs/cdata/crs
testrac02 2010/08/30 12:29:49 /oracle/crs/cdata/crs
testrac02 2010/08/30 08:29:46 /oracle/crs/cdata/crs
testrac02 2010/08/29 00:29:23 /oracle/crs/cdata/crs
The block level masters are used by Cache fusion while transferring the block. Any node can become the master node of a particular block and you can also
see which node acting as master in V$GES_RESOURCE table (MASTER_NODE column)
You can manually remaster an object with oradebug command:
SQL> oradebug lkdebug -m pkey "object_id"
I have seen many users asking how to find “Master node” in Oracle RAC, let me clear some of their doubts.
There are two types of Masters in Oracle RAC, one is Mater node at Oracle Clusterware level and other is Master node for specific resource or block or object.
The node which gets the active state during startup is authorized to be a master node by Cluster Synchronization Service.
Run the below command to find which node is master at Clusterware level
$cat $ORA_CRS_HOME/log/`hostname`/cssd/ocssd* |grep master
or
$ for x in `ls -tr $ORA_CRS_HOME/log/`hostname`/cssd/ocssd* `; do grep -i "master node" $x ; done | tail -1
rac2-> for x in `ls -tr ocssd* `; do grep -i "master node" $x ; done | tail -1
2014-08-03 13:56:06.891: [ CSSD][2877254544]clssgmCMReconfig: reconfiguration successful, incarnation 258992448 with 2 nodes, local node number 2, master node number 1
rac2->
rac1-> for x in `ls -tr ocssd* `; do grep -i "master node" $x ; done | tail -1
2014-08-03 13:56:06.449: [ CSSD][2877254544]clssgmCMReconfig: reconfiguration successful, incarnation 258992448 with 2 nodes, local node number 1, master node number 1
rac1->
The OCR Automatic backups are taken only by master node. If the Master fails, the OCR backups will be created on the new Master. The Master node which has OCR backups goes down due to failure then we cannot be recover the
OCR that’s why Oracle recommends taking backups using “ocrconfig” and also integrating OCR backups with backup strategy.
Run the below command to find which node is OCR Master and taking automatic backups.
$ocrconfig –showbackup
testrac02 2010/08/30 16:29:52 /oracle/crs/cdata/crs
testrac02 2010/08/30 16:29:52 /oracle/crs/cdata/crs
testrac02 2010/08/30 12:29:49 /oracle/crs/cdata/crs
testrac02 2010/08/30 08:29:46 /oracle/crs/cdata/crs
testrac02 2010/08/29 00:29:23 /oracle/crs/cdata/crs
The block level masters are used by Cache fusion while transferring the block. Any node can become the master node of a particular block and you can also
see which node acting as master in V$GES_RESOURCE table (MASTER_NODE column)
You can manually remaster an object with oradebug command:
SQL> oradebug lkdebug -m pkey "object_id"
相关文章推荐
- 如何获得rac环境中的主节点(how to identify master node in rac)
- 如何获得rac环境中的主节点(how to identify master node in rac)
- How to Check Whether Oracle Binary/Instance is RAC Enabled and Relink Oracle Binary in RAC (文档 ID 28
- [Decrypting User Password]How to find password of a User in Oracle Apps R12?
- How to Check Whether Oracle Binary/Instance is RAC Enabled and Relink Oracle Binary in RAC
- How-to find the SQL that using lots of temp tablespace in Oracle
- How to Check Whether Oracle Binary/Instance is RAC Enabled and Relink Oracle Binary in RAC (文档 ID 28
- How to Check Whether Oracle Binary/Instance is RAC Enabled and Relink Oracle Binary in RAC (文档 ID 28
- How to Change ASM Home on a Node in RAC [ID 558508.1]
- [Decrypting User Password]How to find password of a User in Oracle Apps R12?
- How to install oracle 10g for Linux in ubuntu
- How to Find Bapi for Particular Transaction in SAP
- Post Goods Issue error .How to Change Current Period In Material Master ?
- How to use Oracle 11g ODP.NET UDT in an Oracle Stored Procedure's Where clause
- How to find and fix faults in Linux applications.
- How to set user-defined-type as Oracle SP input parameter in .NET
- How To Find The Top Wrinkle Cream In 5 Easy Steps
- How To Collect Diagnostic Data to Troubleshoot Create Accounting in Oracle Assets?
- How to enable Apache, OC4J and OPMN logging in Oracle Applications R12
- How to Find Bapi for Particular Transaction in SAP