Showing posts with label ocrdump commands. Show all posts
Showing posts with label ocrdump commands. Show all posts

January 6, 2019

ocrdump commands in Oracle RAC

Oracle RAC ocrdump commands

OCRDUMP: -- dumps OCR (Oracle Cluster Registry) / OLR (Oracle Local Registry) contents to a file

# ocrdump -help or ocrdump -h

# ocrdump [-local] [file_name|-stdout] [-backupfile backup_filename] [-keyname key_name] [-xml] [-noheader]

# ocrdump               -- default filename is OCRDUMPFILE
# ocrdump MYFILE
# ocrdump ${HOST}_OCRDUMP
# ocrdump -backupfile my_file
# ocrdump -stdout -keyname SYSTEM
# ocrdump -stdout -xml
$ ocrdump -local olr.lst                 --> Normal Text Format
$ ocrdump -local -xml olr_xml.lst  --> XML format
$ ocrdump -local -backupfile olr_backup_file_name
$ ocrdump -backupfile $CRS_HOME/backup.ocr -stdout -xml

Log file will be $ORACLE_HOME/log/node_name/client/ocrdump_pid.log

Debugging can be controlled through $ORA_CRS_HOME/srvm/admin/ocrlog.ini

How to take backup of OCR file?
# ocrdump -backupfile my_file

Related Oracle Articles:     ocrconfig commands RAC      ocrcheck commands RAC