Wednesday, April 16, 2008

OCRDUMP utility

OCRDUMP utility enables you to view the OCR contents by writing OCR content to a file or stdout in a readable format.

$ ocrdump -help
Name:
        ocrdump - Dump contents of Oracle Cluster Registry to a file.

Synopsis:
        ocrdump [<filename>|-stdout] [-backupfile <backupfilename>] [-keyname <keyname>] [-xml] [-noheader]

Description:
        Default filename is OCRDUMPFILE. Examples are:

        prompt> ocrdump
        writes cluster registry contents to OCRDUMPFILE in the current directory

        prompt> ocrdump MYFILE
        writes cluster registry contents to MYFILE in the current directory

        prompt> ocrdump -stdout -keyname SYSTEM
        writes the subtree of SYSTEM in the cluster registry to stdout

        prompt> ocrdump -stdout -xml
        writes cluster registry contents to stdout in xml format

Notes:
        The header information will be retrieved based on best effort basis.
        A log file will be created in
           ORACLE_HOME/log/<hostname>/client/ocrdump_<pid>.log.
        Make sure you have file
        creation privileges in the above directory before
        running this tool.

 

OCRDUMP also creates a log file in CRS_home/log/hostname/client. To change the amount of logging, edit the file CRS_Home/srvm/admin/ocrlog.ini.

To change the logging component, edit the entry containing the comploglvl= entry. For example, to change the logging of the ORCAPI component to 3 and to change the logging of the OCRRAW component to 5, make the following entry in the ocrlog.ini file:

comploglvl="OCRAPI:3;OCRRAW:5" 


OCRDUMP Options and Option Descriptions



Options                             Description



file_name    The name of a file to which you want OCRDUMP to  write output.



By default, output from the OCRDUMP utility is written to the predefined output file named OCRDUMPFILE. The file_name option redirects OCRDUMP output to the file that you specify.



-stdout Use this option to redirect the OCRDUMP output to the text terminal that initiated the program.



If you do not redirect the output, output from the OCRDUMP utility is written to the predefined output file named OCRDUMPFILE by default.



-keyname The name of an OCR key whose subtree is to be dumped.



-xml Writes the output in XML format.



-noheader Does not print the time at which you ran the command and when the OCR configuration occurred.



-backupfile Option to identify a backup file.



backup_file_name The name of the backup file with the content you want to view. You can query the backups using the ocrconfig -showbackup command.





OCRDUMP Utility Examples


The following ocrdump utility examples extract various types of OCR information and write it to various targets:



ocrdump


Writes the OCR content to a file called OCRDUMPFILE in the current directory.



ocrdump MYFILE


Writes the OCR content to a file called MYFILE in the current directory.



ocrdump -stdout -keyname SYSTEM


Writes the OCR content from the subtree of the key SYSTEM to stdout.



ocrdump -stdout -xml 


Writes the OCR content to stdout in XML format.



Quick Reference

No comments:

Post a Comment