ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ocr 记录

ocr 记录

原创 Linux操作系统 作者:nokilled 时间:2009-02-21 21:03:50 0 删除 编辑

rac1->ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          2
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       3828
         Available space (kbytes) :     258292
         ID                       :  573893696
         Device/File Name         : /ocfs/clusterware/ocr
                                    Device/File integrity check succeeded

                                    Device/File not configured

         Cluster registry integrity check succeeded

rac1->


rac1->ocrdump -stdout -keyname SYSTEM.css
02/21/2009 06:56:40
ocrdump -stdout -keyname SYSTEM.css

[SYSTEM.css]
UNDEF :
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.interfaces]
UNDEF :
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_CREATE_SUB_KEY, OTHER_PERMISSION : PROCR_READ, USER_NAME : oracle, GROUP_NAME : oinstall}

[SYSTEM.css.interfaces.global]
UNDEF :
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_ALL_ACCESS, OTHER_PERMISSION : PROCR_READ, USER_NAME : oracle, GROUP_NAME : oinstall}

[SYSTEM.css.interfaces.global.eth0]
UNDEF :
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_ALL_ACCESS, OTHER_PERMISSION : PROCR_READ, USER_NAME : oracle, GROUP_NAME : oinstall}

[SYSTEM.css.interfaces.global.eth0.192|d168|d0|d0]
UNDEF :
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_ALL_ACCESS, OTHER_PERMISSION : PROCR_READ, USER_NAME : oracle, GROUP_NAME : oinstall}

[SYSTEM.css.interfaces.global.eth0.192|d168|d0|d0.1]
ORATEXT : public
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_ALL_ACCESS, OTHER_PERMISSION : PROCR_READ, USER_NAME : oracle, GROUP_NAME : oinstall}

[SYSTEM.css.interfaces.global.eth1]
UNDEF :
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_ALL_ACCESS, OTHER_PERMISSION : PROCR_READ, USER_NAME : oracle, GROUP_NAME : oinstall}

[SYSTEM.css.interfaces.global.eth1.100|d100|d10|d0]
UNDEF :
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_ALL_ACCESS, OTHER_PERMISSION : PROCR_READ, USER_NAME : oracle, GROUP_NAME : oinstall}

[SYSTEM.css.interfaces.global.eth1.100|d100|d10|d0.1]
ORATEXT : cluster_interconnect
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_ALL_ACCESS, OTHER_PERMISSION : PROCR_READ, USER_NAME : oracle, GROUP_NAME : oinstall}

[SYSTEM.css.clustername]
ORATEXT : rac_cluster
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.diskfile]
ORATEXT : /ocfs/clusterware/votingdisk
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.configured_node_map]
BYTESTREAM (16) : 06
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.node_names]
UNDEF :
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.node_names.rac1]
UNDEF :
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.node_names.rac1.nodenum]
UB4 (10) : 1
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.node_names.rac2]
UNDEF :
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.node_names.rac2.nodenum]
UB4 (10) : 2
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.node_numbers]
UNDEF :
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.node_numbers.node1]
UNDEF :
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.node_numbers.node1.nodename]
ORATEXT : rac1
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.node_numbers.node1.privatename]
ORATEXT : rac1-priv
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.node_numbers.node1.hostname]
ORATEXT : rac1
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.node_numbers.node1.nsendpoint]
ORATEXT : (ADDRESS=(PROTOCOL=tcp)(HOST=rac1-priv)(PORT=49895))
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.node_numbers.node2]
UNDEF :
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.node_numbers.node2.nodename]
ORATEXT : rac2
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.node_numbers.node2.privatename]
ORATEXT : rac2-priv
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.node_numbers.node2.hostname]
ORATEXT : rac2
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.node_numbers.node2.nsendpoint]
ORATEXT : (ADDRESS=(PROTOCOL=tcp)(HOST=rac2-priv)(PORT=49895))
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.privatenames]
UNDEF :
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.privatenames.rac1-priv]
UNDEF :
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.privatenames.rac1-priv.nodenum]
UB4 (10) : 1
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.privatenames.rac2-priv]
UNDEF :
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.privatenames.rac2-priv.nodenum]
UB4 (10) : 2
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.hostnames]
UNDEF :
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.hostnames.rac1]
UNDEF :
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.hostnames.rac1.nodenum]
UB4 (10) : 1
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.hostnames.rac2]
UNDEF :
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

[SYSTEM.css.hostnames.rac2.nodenum]
UB4 (10) : 2
SECURITY : {USER_PERMISSION : PROCR_ALL_ACCESS, GROUP_PERMISSION : PROCR_READ, OTHER_PERMISSION : PROCR_READ, USER_NAME : root, GROUP_NAME : root}

rac1->

 

rac1->ocrdump -stdout -keyname SYSTEM.css -xml

02/21/2009 06:58:22
ocrdump -stdout -keyname SYSTEM.css -xml


SYSTEM.css
UNDEF

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.interfaces
UNDEF

PROCR_ALL_ACCESS
PROCR_CREATE_SUB_KEY
PROCR_READ
oracle
oinstall


SYSTEM.css.interfaces.global
UNDEF

PROCR_ALL_ACCESS
PROCR_ALL_ACCESS
PROCR_READ
oracle
oinstall


SYSTEM.css.interfaces.global.eth0
UNDEF

PROCR_ALL_ACCESS
PROCR_ALL_ACCESS
PROCR_READ
oracle
oinstall


SYSTEM.css.interfaces.global.eth0.192|d168|d0|d0
UNDEF

PROCR_ALL_ACCESS
PROCR_ALL_ACCESS
PROCR_READ
oracle
oinstall


SYSTEM.css.interfaces.global.eth0.192|d168|d0|d0.1
ORATEXT

PROCR_ALL_ACCESS
PROCR_ALL_ACCESS
PROCR_READ
oracle
oinstall


SYSTEM.css.interfaces.global.eth1
UNDEF

PROCR_ALL_ACCESS
PROCR_ALL_ACCESS
PROCR_READ
oracle
oinstall


SYSTEM.css.interfaces.global.eth1.100|d100|d10|d0
UNDEF

PROCR_ALL_ACCESS
PROCR_ALL_ACCESS
PROCR_READ
oracle
oinstall


SYSTEM.css.interfaces.global.eth1.100|d100|d10|d0.1
ORATEXT

PROCR_ALL_ACCESS
PROCR_ALL_ACCESS
PROCR_READ
oracle
oinstall


SYSTEM.css.clustername
ORATEXT

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.diskfile
ORATEXT

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.configured_node_map
BYTESTREAM (16)

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.node_names
UNDEF

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.node_names.rac1
UNDEF

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.node_names.rac1.nodenum
UB4 (10)

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.node_names.rac2
UNDEF

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.node_names.rac2.nodenum
UB4 (10)

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.node_numbers
UNDEF

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.node_numbers.node1
UNDEF

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.node_numbers.node1.nodename
ORATEXT

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.node_numbers.node1.privatename
ORATEXT

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.node_numbers.node1.hostname
ORATEXT

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.node_numbers.node1.nsendpoint
ORATEXT

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.node_numbers.node2
UNDEF

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.node_numbers.node2.nodename
ORATEXT

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.node_numbers.node2.privatename
ORATEXT

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.node_numbers.node2.hostname
ORATEXT

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.node_numbers.node2.nsendpoint
ORATEXT

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.privatenames
UNDEF

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.privatenames.rac1-priv
UNDEF

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.privatenames.rac1-priv.nodenum
UB4 (10)

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.privatenames.rac2-priv
UNDEF

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.privatenames.rac2-priv.nodenum
UB4 (10)

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.hostnames
UNDEF

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.hostnames.rac1
UNDEF

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.hostnames.rac1.nodenum
UB4 (10)

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.hostnames.rac2
UNDEF

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


SYSTEM.css.hostnames.rac2.nodenum
UB4 (10)

PROCR_ALL_ACCESS
PROCR_READ
PROCR_READ
root
root


rac1->

rac1->ocrconfig -showbackup

[root@rac1 /]# vi ./etc/oracle/ocr.loc

ocrconfig_loc=/ocfs/clusterware/ocr
local_only=FALSE


ocrconfig -options


rac1->ocrconfig -help
Name:
        ocrconfig - Configuration tool for Oracle Cluster Registry.

Synopsis:
        ocrconfig [option]
        option:
                -export [-s online]
                                                    - Export cluster register contents to a file
                -import                   - Import cluster registry contents from a file
                -upgrade [ []]
                                                    - Upgrade cluster registry from previous version
                -downgrade [-version ]
                                                    - Downgrade cluster registry to the specified version
                -backuploc                 - Configure periodic backup location
                -showbackup [auto|manual]           - Show backup information
                -manualbackup                       - Perform. OCR backup
                -restore                  - Restore from physical backup
                -replace ocr|ocrmirror [] - Add/replace/remove a OCR device/file
                -overwrite                          - Overwrite OCR configuration on disk
                -repair ocr|ocrmirror     - Repair local OCR configuration
                -help                               - Print out this help information

Note:
        A log file will be created in
        $ORACLE_HOME/log//client/ocrconfig_.log. Please ensure
        you have file creation privileges in the above directory before
        running this tool.

rac1->

Options could be one of the following given below.

-backuploc pathname - Specifies an OCR backup directory location. For this entry, specify a full path name that is accessible by all of the nodes.The default location for generating backups on Linux or UNIX systems is CRS_home/cdata/cluster_name where cluster_name is the name of our cluster.
-downgrade - Downgrades an OCR to an earlier version.
-export - Exports the contents of an OCR into a target file.
-help - Displays help for the ocrconfig commands.
-import - Imports the OCR contents from a previously exported OCR file.
-manualbackup - Performs an OCR backup on demand. The ocrconfig command creates the backup in the location that we specify with the-backuploc option.
-overwrite - Updates an OCR configuration that is recorded on the OCR with the current OCR configuration information that is found on the node from which we are running this command.
-repair - Updates an OCR configuration on the node from which we are running this command with the new configuration information specified by this command.
-replace - Adds, replaces, or removes an OCR location.
-showbackup[automanual] - Displays the backup location, timestamp, and the originating node
name of the backup files that Oracle created. By default, the -showbackup option displays information for both automatic and manual backups.We can optionally specify the auto or the manual flag to display information about only automatic backups or only manual backups, respectively:
1) auto—Displays information about automatic backups that Oracle created in the past 4 hours, 8 hours, 12 hours, and in the last day and week.
2) manual—Displays information about manual backups that you invoke using the -manualbackup option.We do not have to be the root user to issue the -showbackup option.
-upgrade - Upgrades an OCR to a later version.
-restore - Restores an OCR from an automatically created OCR backup file location for generating backups uses the same path structure.

 

rac1->crsctl check crs
Cluster Synchronization Services appears healthy
Cluster Ready Services appears healthy
Event Manager appears healthy
rac1->


rac1->su root
Password:
rac1->ocrconfig -export /tmp/ocrexptest.bak
rac1->ls -ls /tmp/ocrexptest.bak
92 -rw-r--r--  1 root root 85469 Feb 21 07:54 /tmp/ocrexptest.bak
rac1->vi /tmp/ocrexptest.bak

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/46907/viewspace-557313/,如需转载,请注明出处,否则将追究法律责任。

上一篇: init.crs
下一篇: aix backup and restore
请登录后发表评论 登录
全部评论

注册时间:2007-12-30

  • 博文量
    108
  • 访问量
    286672