Oracle OCR的备份与恢复

 Oracle OCR的备份与恢复

 

一.1  BLOG文档结构图

wps51CF.tmp 

wps51E0.tmp 

 

一.2  前言部分

 

一.2.1  导读和注意事项

各位技术爱好者,看完本文后,你可以掌握如下的技能,也可以学到一些其它你所不知道的知识,~O(∩_∩)O~

rac中OCR的简介及其作用

rac中OCR的备份和恢复

rac的健忘与脑裂

grid用户下的日志文件:$ORACLE_HOME/log文件夹内容被删除导致集群不能启动如何恢复?(重点)

⑤ 如何修复11.2 Grid权限误操作【(How to check and fix file permissions on Grid Infrastructure environment (文档 ID 1931142.1)

⑥ 如何修复ASM实例名和节点名不一致的情况【How to Change 11.2 ASM Configuration to Match ASM Instance Name to the Node Where It Runs? (example, +ASM2 on Node2, etc) (文档 ID 1419424.1)

permission.pl脚本的使用

  Tips:

① 本文在ITpubhttp://blog.itpub.net/26736162)和博客园(http://www.cnblogs.com/lhrbest)有同步更新

② 文章中用到的所有代码,相关软件,相关资料请前往小麦苗的云盘下载(http://blog.itpub.net/26736162/viewspace-1624453/

若文章代码格式有错乱,推荐使用搜狗360QQ浏览器,也可以下载pdf格式的文档来查看,pdf文档下载地址:http://blog.itpub.net/26736162/viewspace-1624453/

本篇BLOG中命令的输出部分需要特别关注的地方我都用灰色背景和粉红色字体来表示,比如下边的例子中,thread 1的最大归档日志号为33thread 2的最大归档日志号为43是需要特别关注的地方;而命令一般使用黄色背景和红色字体注;对代码或代码输出部分的注释一般采用蓝色字体表示

 

  List of Archived Logs in backup set 11

  Thrd Seq     Low SCN    Low Time            Next SCN   Next Time

  ---- ------- ---------- ------------------- ---------- ---------

  1    32      1621589    2015-05-29 11:09:52 1625242    2015-05-29 11:15:48

  1    33      1625242    2015-05-29 11:15:48 1625293    2015-05-29 11:15:58

  2    42      1613951    2015-05-29 10:41:18 1625245    2015-05-29 11:15:49

  2    43      1625245    2015-05-29 11:15:49 1625253    2015-05-29 11:15:53

 

 

 

 

[ZHLHRDB1:root]:/>lsvg -o

T_XDESK_APP1_vg

rootvg

[ZHLHRDB1:root]:/>

00:27:22 SQL> alter tablespace idxtbs read write;

 

 

====》2097152*512/1024/1024/1024=1G 

 

 

 

本文如有错误或不完善的地方请大家多多指正,ITPUB留言或QQ皆可,您的批评指正是我写作的最大动力。

 

 

一.2.2  相关参考文章链接

关于物理和逻辑备份比较好的一篇文章:https://gjilevski.com/2010/12/20/backup-and-restore-of-ocr-in-grid-infrastructure-11g-r2-11-2-2/

 

wps51E1.tmp

一.2.3  本文简介

写这篇blog的情况是这样的,rac启动有问题,但是$GRID_HOME/log下的文件太多了,我就把下边的内容清空了,结果是集群更加不能启动就连基本的日志也没有了,重启OS无效,最后在仔细的想了想查看了一下运行正常的库的$GRID_HOME/log下的文件结构,发现有的文件夹最后有个Tt的权限,由此联想到可能是权限的缘故导致的,于是上MOS搜了搜文章果然搜到几篇文章,11.2.0.3.6以上比较好解决,但是小于这个版本的就不好弄了,自己总结的方法是重新跑root.sh脚本,而跑完后集群中注册的很多资源不存在了,于是这个又涉及到OCR的备份与恢复。另外执行root.sh若是顺序不对,或者其他的原因可能导致asm实例号和主机号不一致,就是rac1上的实例名是+ASM2,这个虽然没有啥影响,但是看着着实不爽,因此更改它们直接的对应关系也比较重要,所以总体而言就引出了文章开头提出的6个问题。

 

一.3  相关知识点扫盲(摘自网络+个人总结)

Clusterware 在运行期间需要两个文件: OCR Voting Disk. 2 个文件必须存放在共享存储上。 OCR 用于解决健忘问题, Voting Disk 用于解决脑裂问题。

一.3.1  OCR Disk

Oracle Clusterware把整个集群的配置信息放在共享存储上,这个存储就是OCR Disk. 在整个集群中,只有一个节点能对OCR Disk 进行读写操作,这个节点叫作Master Node,所有节点都会在内存中保留一份OCR的拷贝,同时一个OCR Process 从这个内存中读取内容。 OCR 内容发生改变时,由Master NodeOCR Process负责同步到其他节点的OCR Process

健忘问题是由于每个节点都有配置信息的拷贝,修改节点的配置信息不同步引起的。Oracle 采用的解决方法就是把这个配置文件放在共享的存储上, 这个文件就是 OCR DiskOCR 中保存整个集群的配置信息,配置信息以"Key-Value" 的形式保存其中。 在 Oracle10g 以前, 这个文件叫作 Server Manageability Repository(SRVM). Oracle 10g, 这部分内容被重新设计,并重名为 OCR.。在 Oracle Clusterware 安装的过程中, 安装程序会提示用户指定 OCR 位置。并且用户指定的这个位置会被记录在/etc/oracle/ocr.loc(Linux SystemAIX) 或者/var/opt/oracle/ocr.loc(Solaris System)文件中。 而在 Oracle 9i RAC 中,对等的是 srvConfig.Loc文件。 Oracle Clusterware在启动时会根据这里面的内容从指定位置读入 OCR 内容。

[zfzhlhrdb3:root]:/>cd /etc/oracle

[zfzhlhrdb3:root]:/etc/oracle>ls -l

total 3160

drwxrwx---    2 root     dba             256 Dec 29 14:16 lastgasp

-rw-r--r--    1 root     dba              37 Dec 29 14:10 ocr.loc

-rw-r--r--    1 root     system            0 Dec 29 14:10 ocr.loc.orig

-rw-r--r--    1 root     dba              92 Dec 29 14:10 olr.loc

-rw-r--r--    1 root     system            0 Dec 29 14:10 olr.loc.orig

drwxrwxr-x    5 root     dba             256 Dec 29 14:09 oprocd

drwxr-xr-x    3 root     dba             256 Dec 29 14:09 scls_scr

-rws--x---    1 root     dba         1606037 Dec 29 14:09 setasmgid

[zfzhlhrdb3:root]:/etc/oracle>

[zfzhlhrdb3:root]:/etc/oracle>more /etc/oracle/ocr.loc

ocrconfig_loc=+DATA

local_only=FALSE

[zfzhlhrdb3:root]:/etc/oracle>

 

OCR key

整个 OCR 的信息是树形结构,有 3 个大分支。分别是 SYSTEM,DATABASE CRS。每个分支下面又有许多小分支。这些记录的信息只能由 root 用户修改。

一.3.1.1  OCR包含的内容 

OCR中通常包含下列内容

v 节点成员信息

v 数据库实例,节点,以及其他的映射关系

v ASM

v 资源配置信息(vip,services等等)

v 服务特性(Service characteristics)

v Oracle集群中相关进程的信息

v CRS控制的第三方应用程序信息

 

[zfzhlhrdb1:root]:/>ocrdump -local -stdout -xml|more|grep -i \<name\>|sed -e 's/\<NAME\>//g' -e 's/\<\/NAME\>//g'|awk -F . '{print $1,$2,$3}'|uniq

SYSTEM 

SYSTEM crs

SYSTEM crs usersecurity

SYSTEM crs deny

SYSTEM crs user_default_dir

SYSTEM ORA_CRS_HOME

SYSTEM WALLET

SYSTEM GNS

SYSTEM version

SYSTEM version localhost

SYSTEM version activeversion

SYSTEM GPnP

SYSTEM GPnP profiles

SYSTEM css

SYSTEM css nodenum_hint

SYSTEM network

SYSTEM network haip

SYSTEM OHASD

SYSTEM OHASD DM

SYSTEM OHASD SERVERPOOLS

SYSTEM OHASD SERVERS

SYSTEM OHASD TYPES

SYSTEM OHASD RESOURCES

SYSTEM CRS

SYSTEM CRS JOIN_SIGNATURE

SYSTEM OLR

SYSTEM OLR MANUALBACKUP

SYSTEM OCR

SYSTEM OCR BACKUP

DATABASE 

DATABASE NODEAPPS

DATABASE VIP_RANGE

DATABASE LOG

DATABASE ASM

DATABASE DATABASES

CRS 

[zfzhlhrdb1:root]:/>ocrdump -stdout -xml|more|grep -i \<name\>|sed -e 's/\<NAME\>//g' -e 's/\<\/NAME\>//g'|awk -F . '{print $1,$2,$3}'|uniq

SYSTEM 

SYSTEM version

SYSTEM version activeversion

SYSTEM version hostnames

SYSTEM versionstring

SYSTEM WALLET

SYSTEM WALLET APPQOSADMIN

SYSTEM GNS

SYSTEM css

SYSTEM css interfaces

SYSTEM crs

SYSTEM crs versions

SYSTEM crs usersecurity

SYSTEM crs deny

SYSTEM crs user_default_dir

SYSTEM crs e2eport

SYSTEM crs uiport

SYSTEM crs 11

SYSTEM ACFS

SYSTEM ORA_CRS_HOME

SYSTEM evm

SYSTEM evm debug

SYSTEM evm cevmkey

SYSTEM evm rmport

SYSTEM evm cevmport

SYSTEM DIAG

SYSTEM DIAG status

SYSTEM local_only

SYSTEM WLM

SYSTEM GPnP

SYSTEM GPnP profiles

SYSTEM JAZNFILE

                <name>jazn com</name>

                                <name>qosadmin</name> 

                                <name>oc4jadmin</name> 

<name>JtaAdmin</name> 

                                <name>ascontrol_appadmin</name> 

                                <name>oc4j-administrators</name> 

                                                <name>qosadmin</name> 

                                                <name>oc4jadmin</name> 

                                                <name>JtaAdmin 

                                <name>qos_admin</name> 

                                                <name>qosadmin</name> 

                                <name>oc4j-app-administrators</name> 

                                <name>users</name> 

                                <name>ascontrol_monitor</name> 

                                <name> 

                                                <name>qosadmin</name> 

                                                <name>oc4jadmin</name> 

                                                <name>qos_admin</name> 

                                        <name>jazn com/oc4j-administrators</name>

                                <name>login</name> 

                                <name>subject propagation</name>

                                <name>oracle security jazn

                                <name>jazn com/*</name>

                                <name>administration</name> 

                                <name>jazn com</name>

                                        <name>jazn com/ascontrol_admin</name>

                                <name>login</name> 

                                <name>subject propagation</name>

                                <name>oracle security jazn

                                <name>oracl 

                                <name>oracle security jazn

                                <name>jazn com/*</name>

                                <name>administration</name> 

                                <name>jazn com</name>

                                        <name>jazn com/oc4j-app-administrators</name>

                                <name>login</name> 

                                        <name>jazn com/users</name>

                                <name>login</name> 

                <name>oracle security jazn

                                                <name>coreid password header</name>

                                                <name>coreid resource operation</name>

                                                <name>addAllRoles</name> 

                                                <name>coreid password attribute</name>

                                                <name>coreid resource type</name>

                                                <name>coreid name attribute</name>

                                                <name>coreid resource name</name>

                                                <name>core 

                <name>oracle security jazn

                                                <name>addAllRoles</name> 

                <name>oracle security wss

                                                <name>addAllRoles</name> 

                <name>oracle security jazn

                                                <name>addAllRoles</name> 

                <name>oracle security jazn

                                                <name>addAllRoles</name> 

                <name>oracle security jazn

                                                <name>addAllRoles</name> 

                <name>oracle security wss

                                                <name>addAllRoles</name> 

                                                <name>issuer name 1</name>

SYSTEM JAZNFILE STATE

SYSTEM CRSADMIN

SYSTEM CRSUSER

SYSTEM CRSD

SYSTEM CRSD DM

SYSTEM CRSD SERVERPOOLS

SYSTEM CRSD SERVERS

SYSTEM CRSD TYPES

SYSTEM CRSD RESOURCES

SYSTEM OCR

SYSTEM OCR BACKUP

DATABASE 

DATABASE NODEAPPS

DATABASE NODEAPPS zfzhlhrdb1

DATABASE NODEAPPS zfzhlhrdb2

DATABASE VIP_RANGE

DATABASE LOG

DATABASE ASM

DATABASE ASM zfzhlhrdb1

DATABASE ASM zfzhlhrdb2

DATABASE DATABASES

CRS 

CRS CUR

CRS HIS

CRS SEC

CRS STAGE

CRS STAGE node1

CRS STAGE node2

[zfzhlhrdb1:root]:/>

 

 

一.3.1.2  OCR存储内容的表现形式

1. 同样地与Windows注册表来类比,OCR其存储内容的表现形式与其相同,是采用键值对的方式来展现。

2. 整个OCR 的信息是树形结构,有3个大分支。分别是SYSTEM,DATABASE CRS

3. 每个分支下面又有许多小分支。这些记录的信息只能由root用户修改。

4. 可以使用ocrdump命令将其内容全部导出或者按分支进行导出。

 

 

一.3.2  Voting Disk

Voting Disk 这个文件主要用于记录节点成员状态,在出现脑裂时,决定那个 Partion 获得控制权,其他的 Partion 必须从集群中剔除。在安装 Clusterware 时也会提示指定这个位置。安装完成后可以通过如下命令来查看 Voting Disk 位置。

$crsctl query css votedisk

 [zfzhlhrdb3:root]:/dev>crsctl query css votedisk

##  STATE    File Universal Id                File Name Disk group

--  -----    -----------------                --------- ---------

1. ONLINE   83cb4909d3254f4ebf1181b024aaf539 (/dev/rhdisk2) [DATA]

Located 1 voting disk(s).

[zfzhlhrdb3:root]:/dev>ls -l /dev/rhdisk*

crw-------    2 root     system       19,  0 Dec 29 10:02 /dev/rhdisk0

crw-------    1 root     system       19,  4 Dec 29 11:15 /dev/rhdisk1

crw-rw----    1 grid     asmadmin     19,  6 Jan 08 15:17 /dev/rhdisk2

crw-rw----    1 root     system       19,  3 Dec 29 11:15 /dev/rhdisk3

crw-rw----    1 root     system       19,  1 Dec 29 11:15 /dev/rhdisk4

crw-------    1 root     system       19,  7 Dec 29 11:15 /dev/rhdisk5

crw-------    1 root     system       19,  8 Dec 29 11:15 /dev/rhdisk6

crw-------    1 root     system       19,  2 Dec 29 11:15 /dev/rhdisk7

crw-------    1 root     system       19,  5 Dec 29 11:15 /dev/rhdisk8

[zfzhlhrdb3:root]:/dev>

 

一.3.3  健忘症(Amnesia)

集群环境配置文件不是集中存放的,而是每个节点都有一个本地副本,在集群正常运行时,用户可以在任何节点更改集群的配置,并且这种更改会自动同步到其他节点。有一种特殊情况: 节点 A 正常关闭, 在节点 B 上修改配置, 关闭结点 A,启动结点B。 这种情况下,修改的配置文件是丢失的, 就是所谓的健忘症。OCR 用于解决健忘问题。

健忘是由于某个节点更新了OCR中的内容,而集群中的另外一些节点此时处于关闭,维护或重启阶段,OCR Master进程来不及将其信息更新到这些异常节点缓存而导致的不一致。譬如,在A节点发出了添加ocr镜像的命令,在这个时候B节点处于重启阶段。重启后A已经更新完毕,而此时B并不知道已经为ocr增加了一个新的镜像磁盘,健忘由此而生。

如下例,节点bo2dbp添加了新的ocr之后,配置文件发生了变化,此时节点bo2dbsocr.loc会被更新,如果bo2dbs处于关闭或重启阶段,则该文件得不到该更新,此即位健忘一例。

 

一.3.4  脑裂(Split Brain)

在集群中,节点间通过某种机制(心跳)了解彼此的健康状态,以确保各节点协调工作。假设只有"心跳"出现问题, 各个节点还在正常运行, 这时,每个节点都认为其他的节点宕机了, 自己是整个集群环境中的"唯一建在者",自己应该获得整个集群的"控制权"。 在集群环境中,存储设备都是共享的, 这就意味着数据灾难, 这种情况就是"脑裂"解决这个问题的通常办法是使用投票算法(Quorum Algorithm). 它的算法机理如下:集群中各个节点需要心跳机制来通报彼此的"健康状态",假设每收到一个节点的"通报"代表一票。对于三个节点的集群,正常运行时,每个节点都会有 3 票。 当结点 A 心跳出现故障但节点 A 还在运行,这时整个集群就会分裂成 2 个小的 partition。 节点 A 是一个,剩下的 2 个是一个。 这是必须剔除一个 partition 才能保障集群的健康运行。对于有 3 个节点的集群, A 心跳出现问题后, B C 是一个 partion,有 2 票, A只有 1 票。 按照投票算法, B C 组成的集群获得控制权, A 被剔除。如果只有 2 个节点,投票算法就失效了。 因为每个节点上都只有 1 票。 这时就需要引入第三个设备: Quorum Device. Quorum Device 通常采用饿是共享磁盘,这个磁盘也叫作Quorum disk。 这个 Quorum Disk 也代表一票。 当 2 个结点的心跳出现问题时, 2 个节点同时去争取 Quorum Disk 这一票, 最早到达的请求被最先满足。 故最先获得 Quorum Disk的节点就获得 2 票。另一个节点就会被剔除。

 

一.3.5  OCR命令系列

 

一.3.5.1  ocrdump

该命令能以ASCII的方式打印出OCR的内容,但是这个命令不能用作OCR的备份恢复,也就是说产生的文件只能用作阅读,而不能用于恢复。

命令格式: ocrdump [-stdout] [filename] [-keyname name] [-xml]

参数说明:

-stdout: 把内容打印输出到屏幕上

Filename:内容输出到文件中

-keyname:只打印某个键及其子健内容

-xml:以xml格式打印输出

   示例:把system.css键的内容以.xml格式打印输出到屏幕

[root@raw1 bin]# ./ocrdump -stdout -keyname system.css -xml|more

<OCRDUMP>

 

<TIMESTAMP>03/08/2010 04:28:41</TIMESTAMP>

<DEVICE>/dev/raw/raw1</DEVICE>

<COMMAND>./ocrdump.bin -stdout -keyname system.css -xml </COMMAND>

......

 

这个命令在执行过程中,会在$CRS_HOME/log/<node_name>/client 目录下产生日志文件,文件名ocrdump_<pid>.log,如果命令执行出现问题,可以从这个日志查看问题原因。

 

一.3.5.2  ocrcheck

Ocrcheck 命令用于检查OCR内容的一致性,命令执行过程会在$CRS_HOME/log/nodename/client 目录下产生ocrcheck_pid.log 日志文件。 这个命令不需要参数。

[zfzhlhrdb1:root]:/>ocrcheck

Status of Oracle Cluster Registry is as follows :

         Version                  :          3

         Total space (kbytes)     :     262120

         Used space (kbytes)      :       3176

         Available space (kbytes) :     258944

         ID                       :  362503260

         Device/File Name         :      +DATA

                                    Device/File integrity check succeeded

 

                                    Device/File not configured

 

                                    Device/File not configured

 

                                    Device/File not configured

 

                                    Device/File not configured

 

         Cluster registry integrity check succeeded

 

         Logical corruption check succeeded

 

一.3.5.3  ocrconfig

该命令用于维护OCR 磁盘,安装clusterware过程中,如果选择External Redundancy冗余方式,则只能输入一个OCR磁盘位置。 但是Oracle允许配置两个OCR 磁盘互为镜像,以防止OCR 磁盘的单点故障。 OCR 磁盘和Votedisk磁盘不一样,OCR磁盘最多只能有两个,一个Primary OCR 和一个Mirror OCR

[root@raw1 bin]# ./ocrconfig --help

Name:

        ocrconfig - Configuration tool for Oracle Cluster Registry.

Synopsis:

        ocrconfig [option]

        option:

                -export <filename> [-s online]

                                                    - Export cluster register contents to a file

                -import <filename>                  - Import cluster registry contents from a file

                -upgrade [<user> [<group>]]

                                                    - Upgrade cluster registry from previous version

                -downgrade [-version <version string>]

                                                    - Downgrade cluster registry to the specified version

                -backuploc <dirname>                - Configure periodic backup location

                -showbackup                         - Show backup information

                -restore <filename>                 - Restore from physical backup

                -replace ocr|ocrmirror [<filename>] - Add/replace/remove a OCR device/file

                -overwrite                          - Overwrite OCR configuration on disk

                -repair ocr|ocrmirror <filename>    - Repair local OCR configuration

                -help                               - Print out this help information

Note:

        A log file will be created in

        $ORACLE_HOME/log/<hostname>/client/ocrconfig_<pid>.log. Please ensure

        you have file creation privileges in the above directory before

        running this tool.

 

一.3.6  Oracle RAC OCR 的备份与恢复

 

 Oracle Clusterware把整个集群的配置信息放在共享存储上,这些信息包括了集群节点的列表、集群数据库实例到节点的映射以及CRS应用程序资源信息。也即是存放在ocr 磁盘(或者ocfs文件)上。因此对于这个配置文件的重要性是不言而喻的。任意使得ocr配置发生变化的操作在操作之间或之后都建议立即备份ocr

因为OCR的内容如此重要,Oracle 4个小时对其做一次备份,并且保留最后的3个备份,以及前一天,前一周的最后一个备份。 这个备份由Master Node CRSD进程完成,备份的默认位置是$CRS_HOME/crs/cdata/<cluster_name>目录下。 每次备份后,备份文件名自动更改,以反应备份时间顺序,最近一次的备份叫作backup00.ocr。这些备份文件除了保存在本地,DBA还应该在其他存储设备上保留一份,以防止意外的存储故障。

与Oracle数据库备份恢复相似,OCR的备份也有物理备份或逻辑备份的概念,因此有两种备份方式,两种恢复方式。

 

常用命令:

crsctl query css votedisk

lquerypv -h /dev/rhdisk2

crsctl stop has -f

crsctl start has

crsctl stat res -t

 

一.3.6.1  dd备份恢复

备份表决磁盘:

dd if=/dev/raw/raw3 of=/tmp/votedisk_lhr.bak bs=1024k count=4

恢复表决磁盘:

dd if=/tmp/votedisk_lhr.bak of=/dev/raw/raw3 bs=1024k count=4

 

注:11g不推荐使用dd来进行备份恢复,盘头一般是前4K

一.3.6.2  kfed恢复磁盘头

dd if=/dev/rhdisk2 of=/asm_rhdisk2_dd.bak bs=1024 count=4

dd if=/dev/zero of=/dev/rhdisk2 bs=1024 count=4

kfed repair /dev/rhdisk2

关于kfed、kfodamdu的更多内容可以参考:http://blog.itpub.net/26736162/viewspace-1694198/

http://blog.itpub.net/26736162/viewspace-1694199/

 

一.3.6.3  md_backup和md_restore恢复磁盘头

 

asmcmd md_backup /oracle/app/11.2.0/grid/cdata/ZFTPCCDB-crs/asm_md_backup.bak

asmcmd md_restore /oracle/app/11.2.0/grid/cdata/ZFTPCCDB-crs/asm_md_backup.bak

 

 

dd if=/dev/rhdisk2 of=/asm_rhdisk2_dd.bak bs=1024k count=4

dd if=/dev/zero of=/dev/rhdisk2 bs=1024k count=4

crsctl stop has -f

crsctl start has

ASMCMD [+] > startup force nomount;

ASMCMD [+] > md_restore /asm_rhdisk2_dd.bak

 

 

ASMCMD [+] > md_backup /rman/asm_md.bak

dd if=/dev/zero  of=/dev/rhdisk2 bs=1024 count=4

crsctl stop has -f

crsctl start has

ASMCMD [+] > startup force nomount;

ASMCMD [+] > md_restore /rman/asm_md.bak

 

关于md_backup和md_restore更多内容可以参考:http://blog.itpub.net/26736162/viewspace-2121309/

 

一.3.6.4  物理备份与恢复(自动备份)

缺省情况下,Oracle 4个小时对其做一次备份,并且保留最后的3个副本,以及前一天,前一周的最后一个备份副本。用户不能自定义备份频率以及备份文件的副本数。

对于OCR的备份由是由Master Node CRSD进程完成,因此备份的默认位置是$CRS_HOME/crs/cdata/<cluster_name>目录下。

备份的文件会自动更名,以反应备份时间顺序,最近一次的备份叫作backup00.ocr

由于是在Master Node的节点之上进行备份,因此备份文件仅存在于Master Node节点。

对于Master Node的节点crash之后则由剩余节点接管。

备份目录可以通过ocrconfig -backuploc <directory_name> 命令修改。

OCR磁盘最多只能有两个,一个Primary OCR 和一个Mirror OCR。两者互为镜像以避免单点故障。

对于物理备份恢复,不能简单的使用操作系统级别的复制命令(使用ocr文件时)来完成,该操作将导致ocr不可用。

对于物理备份,仅仅只能使用restore方式来进行恢复,而不支持import方式

1,查看备份磁盘 

[zfzhlhrdb2:grid]:/home/grid>ocrconfig -showbackup

 

zfzhlhrdb1     2016/06/30 15:13:46     /oracle/app/11.2.0/grid/cdata/zfzhlhrdb-crs/backup00.ocr

 

zfzhlhrdb1     2016/06/30 11:13:45     /oracle/app/11.2.0/grid/cdata/zfzhlhrdb-crs/backup01.ocr

 

zfzhlhrdb1     2016/06/30 07:13:45     /oracle/app/11.2.0/grid/cdata/zfzhlhrdb-crs/backup02.ocr

 

zfzhlhrdb1     2016/06/29 03:13:41     /oracle/app/11.2.0/grid/cdata/zfzhlhrdb-crs/day.ocr

 

zfzhlhrdb1     2016/06/20 03:13:08     /oracle/app/11.2.0/grid/cdata/zfzhlhrdb-crs/week.ocr

PROT-25: Manual backups for the Oracle Cluster Registry are not available

[zfzhlhrdb2:grid]:/home/grid>oerr prot 25

00025, 0, "Manual backups for the Oracle Cluster Registry are not available"

// *Cause: Manual backups for the Oracle Cluster Registry were not yet created.

// *Action: Manual backups can be created using 'ocrconfig -manualbackup'

//          command.

[zfzhlhrdb2:grid]:/home/grid>ocrconfig -manualbackup

PROT-20: Insufficient permission to proceed. Require privileged user

[zfzhlhrdb2:grid]:/home/grid>exit

[zfzhlhrdb2:root]:/>

[zfzhlhrdb2:root]:/>

[zfzhlhrdb2:root]:/>ocrconfig -manualbackup

 

zfzhlhrdb1     2016/06/30 16:21:34     /oracle/app/11.2.0/grid/cdata/zfzhlhrdb-crs/backup_20160630_162134.ocr

[zfzhlhrdb2:root]:/>ocrconfig -showbackup

 

zfzhlhrdb1     2016/06/30 15:13:46     /oracle/app/11.2.0/grid/cdata/zfzhlhrdb-crs/backup00.ocr

 

zfzhlhrdb1     2016/06/30 11:13:45     /oracle/app/11.2.0/grid/cdata/zfzhlhrdb-crs/backup01.ocr

 

zfzhlhrdb1     2016/06/30 07:13:45     /oracle/app/11.2.0/grid/cdata/zfzhlhrdb-crs/backup02.ocr

 

zfzhlhrdb1     2016/06/29 03:13:41     /oracle/app/11.2.0/grid/cdata/zfzhlhrdb-crs/day.ocr

 

zfzhlhrdb1     2016/06/20 03:13:08     /oracle/app/11.2.0/grid/cdata/zfzhlhrdb-crs/week.ocr

 

zfzhlhrdb1     2016/06/30 16:21:34     /oracle/app/11.2.0/grid/cdata/zfzhlhrdb-crs/backup_20160630_162134.ocr

  在节点一执行,可以看到2个节点得到的内容一致

[zfzhlhrdb1:root]:/>ocrconfig -showbackup

 

zfzhlhrdb1     2016/06/30 15:13:46     /oracle/app/11.2.0/grid/cdata/zfzhlhrdb-crs/backup00.ocr

 

zfzhlhrdb1     2016/06/30 11:13:45     /oracle/app/11.2.0/grid/cdata/zfzhlhrdb-crs/backup01.ocr

 

zfzhlhrdb1     2016/06/30 07:13:45     /oracle/app/11.2.0/grid/cdata/zfzhlhrdb-crs/backup02.ocr

 

zfzhlhrdb1     2016/06/29 03:13:41     /oracle/app/11.2.0/grid/cdata/zfzhlhrdb-crs/day.ocr

 

zfzhlhrdb1     2016/06/20 03:13:08     /oracle/app/11.2.0/grid/cdata/zfzhlhrdb-crs/week.ocr

 

zfzhlhrdb1     2016/06/30 16:21:34     /oracle/app/11.2.0/grid/cdata/zfzhlhrdb-crs/backup_20160630_162134.ocr

[zfzhlhrdb1:root]:/> 

2,恢复

ocrconfig -restore /app/crs/product/11.0.6/crs/cdata/racluster/backup01.ocr

 

3,查看配置

[grid@rac1 ~]$ more /etc/oracle/ocr.loc

ocrconfig_loc=+DATA

local_only=FALSE

[grid@rac1 ~]$

 

4,查看进程

[grid@rac1 ~]$ ps -ef | grep d.bin

 

root      4694     1  0 10:00 ?        00:00:13 /u01/grid/bin/ohasd.bin reboot

grid      4821     1  0 10:00 ?        00:00:28 /u01/grid/bin/oraagent.bin

root      4823     1  0 10:00 ?        00:00:04 /u01/grid/bin/orarootagent.bin

grid      4846     1  0 10:00 ?        00:00:00 /u01/grid/bin/gipcd.bin

grid      4859     1  0 10:00 ?        00:00:00 /u01/grid/bin/mdnsd.bin

grid      4874     1  0 10:00 ?        00:00:01 /u01/grid/bin/gpnpd.bin

root      8645     1  0 10:47 ?        00:00:04 /u01/grid/bin/cssdmonitor

root      8662     1  0 10:48 ?        00:00:05 /u01/grid/bin/cssdagent

grid      8664     1  0 10:48 ?        00:00:01 /u01/grid/bin/diskmon.bin -d -f

grid      8688     1  0 10:48 ?        00:00:40 /u01/grid/bin/ocssd.bin

root      8754     1  0 10:50 ?        00:00:01 /u01/grid/bin/octssd.bin

grid      8770     1  0 10:50 ?        00:00:02 /u01/grid/bin/evmd.bin

grid      8888     1  0 10:51 ?        00:00:00 /u01/grid/bin/oclskd.bin

root      8920     1  0 10:51 ?        00:00:07 /u01/grid/bin/crsd.bin reboot

root      8966     1  0 10:51 ?        00:00:00 /u01/grid/bin/oclskd.bin

grid      9013  8770  0 10:51 ?        00:00:00 /u01/grid/bin/evmlogger.bin -o /u01/grid/evm/log/evmlogger.info -l /u01/grid/evm/log/evmlogger.log

grid      9055     1  0 10:51 ?        00:00:06 /u01/grid/bin/oraagent.bin

root      9059     1  0 10:51 ?        00:00:42 /u01/grid/bin/orarootagent.bin

grid      9283     1  0 10:52 ?        00:00:00 /u01/grid/bin/tnslsnr LISTENER -inherit

oracle    9549     1  0 10:58 ?        00:00:26 /u01/grid/bin/oraagent.bin

oracle    9773     1  0 11:00 ?        00:00:00 /u01/grid/bin/oclskd.bin

grid     18618     1  0 13:46 ?        00:00:00 /u01/grid/bin/tnslsnr LISTENER_SCAN1 -inherit

grid     22527 21370  0 14:58 pts/2    00:00:00 grep d.bin

[grid@rac1 ~]$

注:

ocssd:用于管理与协调集群中各个节点的关系,并用于节点通信。该进程非常的重要,如果这个进程异常中止,会导致系统自动重启。在某些极端的情况下,如果ocssd无法正常启动,就会导致操作系统循环重启。

crsd:监控节点各个资源,当某个资源发生异常是,自动重启或者切换该资源。

evmd:是一个基于后台的事件检测程序。

oclskd:该守护进程是Oracle 11g(11.10.6)新增的一个后台进程,主要是用于监控RAC数据库节点实例,当某个实例挂起时,就重启该节点。    

一.3.6.5  逻辑备份与恢复(手动备份)

其实OCR也可以通过手动的方式导出、导入、方法如下:

ocrconfig -export /tmp/ocr_bak

ocrconfig -import /tmp/ocr_bak

使用ocrconfig -export 方式产生的备份,统称之为逻辑备份。

对于重大的ocr配置发生变化前后,如添加删除节点,修改集群资源,创建数据库等,都建议使用逻辑备份。

对于由于错误配置而导致的ocr被损坏的情形下,我们可以使用ocrconfig -import方式进行恢复。

对于这种逻辑方式也可以还原丢失或损坏的ocr磁盘(文件)

 

一.3.7  如何修复11.2 Grid权限误操作

关于Oracle GRID HOME文件目录的权限问题

chown -R 误操作了,将整个/u01/app的权限修过了如何恢复?

删除了$GRID_HOME/log文件夹下的所有内容,集群不能启动,如何恢复?

使用chown -R 误操作了,将整个/u01/app的权限修过了,导致grid无法启动。,搜了下mos发现了一篇文档:Tips for checking file permissions on GRID environment(ID 1931142.1)

wps51F1.tmp

该文档中描述到,$GRID_HOME/crs/utl下面的几个文件中记录了整个GRID_HOME下面的文件和目录的相关权限。

Check the permissions from the following 2 files which are created during Grid Infrastructure installation.

In $GRID_HOME/crs/utl (for 11.2 and 12.1.0.1) and <GRID_HOME>/crs/utl/<hostname> (for 12.1.0.2) directory:

crsconfig_dirs :which has all directories listed in <GRID_HOME> and their permissions

crsconfig_fileperms :which has list of files and their permissions and locations in <GRID_HOME>.

 

我们来看下是否是这样的,cd $ORACLE_HOME/crs/utl

[root@rac2 bin]# cd  /home/grid/app/11.2/grid/crs/utl

[root@rac2 utl]# ls -ltr

total 324

-rw-r–r– 1 root root  1128 Aug 11 09:48 usrvip

-rw-r–r– 1 root root  8437 Aug 11 09:48 srvctl

……

-rw-r–r– 1 root root 12102 Aug 11 09:48 crsconfig_files

-rw-r–r– 1 root root 13468 Aug 11 09:48 crsconfig_fileperms

-rw-r–r– 1 root root  8666 Aug 11 09:48crsconfig_dirs

-rw-r–r– 1 root root   699 Aug 11 09:48 crfsetenv

-rw-r–r– 1 root root  1280 Aug 11 09:48 cmdllroot.sh

-rw-r–r– 1 root root  3680 Aug 11 09:48 cluutil

-rw-r–r– 1 root root  1648 Aug 11 09:48 clsrwrap

-rw-r–r– 1 root root   540 Aug 11 09:48 appvipcfg

[zfzhlhrdb1:grid]:/oracle/app/11.2.0/grid/crs/utl>more crsconfig_dirs

# Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.

# The values in each line use the following format:

#

# OSLIST DIRNAME OWNER GROUP CLOSED-PERMS OPEN-PERMS

#

# Note:

# 1) OSLIST is a comma-separated list of platforms on which the directory

#    needs to be created.  'all' indicates that the directory needs to be

#    created on every platform.  OSLIST MUST NOT contain whitespace.

# 2) Permissions need to be specified AS OCTAL NUMBERS.  If permissions are

#    not specified, default (umask) values will be used.

#

# TBD: OPEN-PERMS need to be added for each dir

 

all /oracle/app/11.2.0/grid/cdata grid dba 0775

all /oracle/app/11.2.0/grid/cdata/zfzhlhrdb-crs grid dba 0775

all /oracle/app/11.2.0/grid/cfgtoollogs grid dba 0775

all /oracle/app/11.2.0/grid/cfgtoollogs/crsconfig grid dba 0775

all /oracle/app/11.2.0/grid/log grid dba 0775

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1 root dba 01755

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/crsd root dba 0750

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/ctssd root dba 0750

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/evmd grid dba 0750

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/cssd grid dba 0750

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/mdnsd grid dba 0750

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/gpnpd grid dba 0750

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/gnsd root dba 0750

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/srvm grid dba 0750

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/gipcd grid dba 0750

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/diskmon grid dba 0750

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/cvu grid dba 0750

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/cvu/cvulog grid dba 0750

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/cvu/cvutrc grid dba 0750

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/acfssec root dba 0755

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/acfsrepl grid dba 0750

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/acfslog grid dba 0750

all /oracle/app/11.2.0/grid/cdata/localhost grid dba 0755

all /oracle/app/11.2.0/grid/cdata/zfzhlhrdb1 grid dba 0755

all /oracle/app/11.2.0/grid/cv grid dba 0775

all /oracle/app/11.2.0/grid/cv/log grid dba 0775

all /oracle/app/11.2.0/grid/cv/init grid dba 0775

all /oracle/app/11.2.0/grid/cv/report grid dba 0775

all /oracle/app/11.2.0/grid/cv/report/html grid dba 0775

all /oracle/app/11.2.0/grid/cv/report/text grid dba 0775

all /oracle/app/11.2.0/grid/cv/report/xml grid dba 0775

 

# These dirs must be owned by crsuser in SIHA, and $SUPERUSER in cluster env.

# 'HAS_USER' is set appropriately in roothas.pl and rootcrs.pl for this

# purpose

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/ohasd root dba 0750

all /oracle/app/11.2.0/grid/lib root dba 0755

all /oracle/app/11.2.0/grid/bin root dba 0755

 

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/agent root dba 01775

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/agent/crsd root dba 01777

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/agent/ohasd root dba 01775

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/client grid dba 01777

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/racg grid dba 01775

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/racg/racgmain grid dba 01777

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/racg/racgeut grid dba 01777

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/racg/racgevtf grid dba 01777

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/admin grid dba 0750

all /oracle/app/11.2.0/grid/log/diag/clients grid asmadmin 01770

all /oracle/app/11.2.0/grid/evm grid dba 0750

all /oracle/app/11.2.0/grid/evm/init grid dba 0750

all /oracle/app/11.2.0/grid/auth/evm/zfzhlhrdb1 root dba 01777

all /oracle/app/11.2.0/grid/evm/log grid dba 01770

all /oracle/app/11.2.0/grid/eons/init grid dba 0750

all /oracle/app/11.2.0/grid/auth/ohasd/zfzhlhrdb1 root dba 01777

all /oracle/app/11.2.0/grid/mdns grid dba 0750

all /oracle/app/11.2.0/grid/mdns/init grid dba 0750

all /oracle/app/11.2.0/grid/gipc grid dba 0750

all /oracle/app/11.2.0/grid/gipc/init grid dba 0750

all /oracle/app/11.2.0/grid/gnsd root dba 0750

all /oracle/app/11.2.0/grid/gnsd/init root dba 0750

all /oracle/app/11.2.0/grid/gpnp grid dba 0750

all /oracle/app/11.2.0/grid/gpnp/init grid dba 0750

all /oracle/app/11.2.0/grid/ohasd grid dba 0750

all /oracle/app/11.2.0/grid/ohasd/init grid dba 0750

all /oracle/app/11.2.0/grid/gpnp grid dba 0750

all /oracle/app/11.2.0/grid/gpnp/profiles grid dba 0750

all /oracle/app/11.2.0/grid/gpnp/profiles/peer grid dba 0750

all /oracle/app/11.2.0/grid/gpnp/wallets grid dba 01750

all /oracle/app/11.2.0/grid/gpnp/wallets/root grid dba 01700

all /oracle/app/11.2.0/grid/gpnp/wallets/prdr grid dba 01750

all /oracle/app/11.2.0/grid/gpnp/wallets/peer grid dba 01700

all /oracle/app/11.2.0/grid/gpnp/wallets/pa grid dba 01700

all /oracle/app/11.2.0/grid/mdns grid dba 0750

all /oracle/app/11.2.0/grid/gpnp grid dba 0750

all /oracle/app/11.2.0/grid/gpnp/zfzhlhrdb1/profiles grid dba 0750

all /oracle/app/11.2.0/grid/gpnp/zfzhlhrdb1/profiles/peer grid dba 0750

all /oracle/app/11.2.0/grid/gpnp/zfzhlhrdb1/wallets grid dba 01750

all /oracle/app/11.2.0/grid/gpnp/zfzhlhrdb1/wallets/root grid dba 01700

all /oracle/app/11.2.0/grid/gpnp/zfzhlhrdb1/wallets/prdr grid dba 01750

all /oracle/app/11.2.0/grid/gpnp/zfzhlhrdb1/wallets/peer grid dba 01700

all /oracle/app/11.2.0/grid/gpnp/zfzhlhrdb1/wallets/pa grid dba 01700

all /oracle/app/11.2.0/grid/css grid dba 0711

all /oracle/app/11.2.0/grid/css/init grid dba 0711

all /oracle/app/11.2.0/grid/css/log grid dba 0711

all /oracle/app/11.2.0/grid/auth/css/zfzhlhrdb1 root dba 01777

all /oracle/app/11.2.0/grid/crs root dba 0755

all /oracle/app/11.2.0/grid/crs/init root dba 0755

all /oracle/app/11.2.0/grid/crs/profile root dba 0755

all /oracle/app/11.2.0/grid/crs/script root dba 0755

all /oracle/app/11.2.0/grid/crs/template root dba 0755

all /oracle/app/11.2.0/grid/auth/crs/zfzhlhrdb1 root dba 01777

all /oracle/app/11.2.0/grid/crs/log grid dba 01750

all /oracle/app/11.2.0/grid/crs/trace grid dba 01750

all /oracle/app/11.2.0/grid/crs/public grid dba 01777

all /oracle/app/11.2.0/grid/ctss root dba 0755

all /oracle/app/11.2.0/grid/ctss/init root dba 0755

all /oracle/app/11.2.0/grid/racg/usrco grid dba

all /oracle/app/11.2.0/grid/racg/dump grid dba 0775

all /oracle/app/11.2.0/grid/srvm/admin grid dba 0775

all /oracle/app/11.2.0/grid/srvm/log grid dba 0775

all /oracle/app/11.2.0/grid/evm/admin/conf grid dba 0750

all /oracle/app/11.2.0/grid/evm/admin/logger grid dba 0750

all /oracle/app/11.2.0/grid/crf root dba 0750

all /oracle/app/11.2.0/grid/crf/admin root dba 0750

all /oracle/app/11.2.0/grid/crf/admin/run grid dba 0750

all /oracle/app/11.2.0/grid/crf/admin/run/crfmond root dba 0700

all /oracle/app/11.2.0/grid/crf/admin/run/crflogd root dba 0700

all /oracle/app/11.2.0/grid/crf/db root dba 0750

all /oracle/app/11.2.0/grid/crf/db/zfzhlhrdb1 root dba 0750

all /oracle/app/11.2.0/grid/osysmond root dba 0755

all /oracle/app/11.2.0/grid/osysmond/init root dba 0755

all /oracle/app/11.2.0/grid/ologgerd root dba 0755

all /oracle/app/11.2.0/grid/ologgerd/init root dba 0755

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/crfmond root dba 0750

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/crflogd root dba 0750

 

unix /etc/oracle/oprocd root dba 0775

unix /etc/oracle/oprocd/check root dba 0770

unix /etc/oracle/oprocd/stop root dba 0770

unix /etc/oracle/oprocd/fatal root dba 0770

unix /etc/oracle/scls_scr root dba 0755

unix /etc/oracle/scls_scr/zfzhlhrdb1 root dba 0755

unix /var/tmp/.oracle root dba 01777

unix /tmp/.oracle root dba 01777

unix /oracle/app/11.2.0/grid/log/zfzhlhrdb1/acfsreplroot root dba 0750

# create $ID, if it doesn't exist (applicable only in dev env)

unix /etc root root 0755

unix /oracle/app/11.2.0/grid root dba 0755

 

# Last Gasp files directory - change "unix" to "all"

# once Windows makes a directory decision.

unix /etc/oracle/lastgasp root dba 0770

unix /etc/rc.d/rc2.d root root 0755

[zfzhlhrdb1:grid]:/oracle/app/11.2.0/grid/crs/utl> more crsconfig_fileperms

# Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.

# The values in each line use the following format:

#

# OSLIST FILENAME OWNER GROUP PERMS

#

# Note:

# 1) OSLIST is a comma-separated list of platforms on which the file

#    permissions need to be set.  'all' indicates that the directory needs

#    to be created on every platform.  OSLIST MUST NOT contain whitespace.

# 2) Permissions need to be specified AS OCTAL NUMBERS.  If permissions

#    are not specified, default (umask) values will be used.

# 3) The fields within each line of this file must be delimited by a single space

#

unix /oracle/app/11.2.0/grid/log/zfzhlhrdb1/alertzfzhlhrdb1.log grid dba 0664

unix /oracle/app/11.2.0/grid/bin/usrvip root dba 0755

unix /oracle/app/11.2.0/grid/bin/appvipcfg root dba 0755

unix /oracle/app/11.2.0/grid/crs/install/preupdate.sh grid dba 0755

unix /oracle/app/11.2.0/grid/crs/install/s_crsconfig_defs grid dba 0755

unix /oracle/app/11.2.0/grid/bin/cluutil grid dba 0755

unix /oracle/app/11.2.0/grid/bin/ocrcheck root dba 0755

unix /oracle/app/11.2.0/grid/bin/ocrcheck.bin root dba 0755

unix /oracle/app/11.2.0/grid/bin/ocrconfig root dba 0755

unix /oracle/app/11.2.0/grid/bin/ocrconfig.bin root dba 0755

unix /oracle/app/11.2.0/grid/bin/ocrdump root dba 0755

unix /oracle/app/11.2.0/grid/bin/ocrdump.bin root dba 0755

unix /oracle/app/11.2.0/grid/bin/ocrpatch root dba 0755

unix /oracle/app/11.2.0/grid/bin/appagent grid dba 0755

unix /oracle/app/11.2.0/grid/bin/clssproxy grid dba 0755

unix /oracle/app/11.2.0/grid/bin/cssvfupgd root dba 0755

unix /oracle/app/11.2.0/grid/bin/cssvfupgd.bin root dba 0755

unix /oracle/app/11.2.0/grid/bin/racgwrap grid dba 0755

unix /oracle/app/11.2.0/grid/bin/cemutls grid dba 0755

unix /oracle/app/11.2.0/grid/bin/cemutlo grid dba 0755

unix /oracle/app/11.2.0/grid/bin/crs_getperm grid dba 0755

unix /oracle/app/11.2.0/grid/bin/crs_profile grid dba 0755

unix /oracle/app/11.2.0/grid/bin/crs_register grid dba 0755

unix /oracle/app/11.2.0/grid/bin/crs_relocate grid dba 0755

unix /oracle/app/11.2.0/grid/bin/crs_setperm grid dba 0755

unix /oracle/app/11.2.0/grid/bin/crs_start grid dba 0755

unix /oracle/app/11.2.0/grid/bin/crs_stat grid dba 0755

unix /oracle/app/11.2.0/grid/bin/crs_stop grid dba 0755

unix /oracle/app/11.2.0/grid/bin/crs_unregister grid dba 0755

unix /oracle/app/11.2.0/grid/bin/gipcd grid dba 0755

unix /oracle/app/11.2.0/grid/bin/mdnsd grid dba 0755

unix /oracle/app/11.2.0/grid/bin/gpnpd grid dba 0755

unix /oracle/app/11.2.0/grid/bin/gpnptool grid dba 0755

unix /oracle/app/11.2.0/grid/bin/oranetmonitor grid dba 0755

unix /oracle/app/11.2.0/grid/bin/rdtool grid dba 0755

unix /oracle/app/11.2.0/grid/bin/octssd root dba 0741

unix /oracle/app/11.2.0/grid/bin/octssd.bin root dba 0741

unix /oracle/app/11.2.0/grid/bin/ohasd root dba 0741

unix /oracle/app/11.2.0/grid/bin/ohasd.bin root dba 0741

unix /oracle/app/11.2.0/grid/bin/crsd root dba 0741

unix /oracle/app/11.2.0/grid/bin/crsd.bin root dba 0741

unix /oracle/app/11.2.0/grid/bin/evmd grid dba 0755

unix /oracle/app/11.2.0/grid/bin/evminfo grid dba 0755

unix /oracle/app/11.2.0/grid/bin/evmlogger grid dba 0755

unix /oracle/app/11.2.0/grid/bin/evmmkbin grid dba 0755

unix /oracle/app/11.2.0/grid/bin/evmmklib grid dba 0755

unix /oracle/app/11.2.0/grid/bin/evmpost grid dba 0755

unix /oracle/app/11.2.0/grid/bin/evmshow grid dba 0755

unix /oracle/app/11.2.0/grid/bin/evmsort grid dba 0755

unix /oracle/app/11.2.0/grid/bin/evmwatch grid dba 0755

unix /oracle/app/11.2.0/grid/bin/lsnodes grid dba 0755

unix /oracle/app/11.2.0/grid/bin/oifcfg grid dba 0755

unix /oracle/app/11.2.0/grid/bin/olsnodes grid dba 0755

unix /oracle/app/11.2.0/grid/bin/oraagent grid dba 0755

unix /oracle/app/11.2.0/grid/bin/orarootagent root dba 0741

unix /oracle/app/11.2.0/grid/bin/orarootagent.bin root dba 0741

unix /oracle/app/11.2.0/grid/bin/scriptagent grid dba 0755

unix /oracle/app/11.2.0/grid/bin/lsdb grid dba 0755

unix /oracle/app/11.2.0/grid/bin/emcrsp grid dba 0755

unix /oracle/app/11.2.0/grid/bin/onsctl grid dba 0755

unix /oracle/app/11.2.0/grid/crs/install/onsconfig grid dba 0554

unix /oracle/app/11.2.0/grid/bin/gnsd root dba 0741

unix /oracle/app/11.2.0/grid/bin/gnsd.bin root dba 0741

unix /oracle/app/11.2.0/grid/bin/gsd.sh grid dba 0755

unix /oracle/app/11.2.0/grid/bin/gsdctl grid dba 0755

unix /oracle/app/11.2.0/grid/bin/scrctl grid dba 0750

unix /oracle/app/11.2.0/grid/bin/vipca grid dba 0755

unix /oracle/app/11.2.0/grid/bin/oc4jctl grid dba 0755

unix /oracle/app/11.2.0/grid/bin/cvures grid dba 0755

unix /oracle/app/11.2.0/grid/bin/odnsd grid dba 0755

unix /oracle/app/11.2.0/grid/bin/qosctl grid dba 0755

unix /oracle/app/11.2.0/grid/crs/install/cmdllroot.sh grid dba 0755

unix /oracle/app/11.2.0/grid/crs/utl/rootdelete.sh root root 0755

unix /oracle/app/11.2.0/grid/crs/utl/rootdeletenode.sh root root 0755

unix /oracle/app/11.2.0/grid/crs/utl/rootdeinstall.sh root root 0755

unix /oracle/app/11.2.0/grid/crs/utl/rootaddnode.sh root root 0755

unix /oracle/app/11.2.0/grid/lib/libskgxpcompat.so grid dba 0644

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/client/olsnodes.log grid dba 0666

all /oracle/app/11.2.0/grid/log/zfzhlhrdb1/client/oifcfg.log grid dba 0666

unix /oracle/app/11.2.0/grid/bin/srvctl root dba 0755

unix /oracle/app/11.2.0/grid/bin/cluvfy root dba 0755

unix /oracle/app/11.2.0/grid/bin/clsecho root dba 0755

unix /oracle/app/11.2.0/grid/bin/clsecho.bin root dba 0755

unix /oracle/app/11.2.0/grid/bin/clscfg root dba 0755

unix /oracle/app/11.2.0/grid/bin/clscfg.bin root dba 0755

unix /oracle/app/11.2.0/grid/bin/clsfmt root dba 0755

unix /oracle/app/11.2.0/grid/bin/clsfmt.bin root dba 0755

unix /oracle/app/11.2.0/grid/bin/clsid grid dba 0755

unix /oracle/app/11.2.0/grid/bin/crsctl root dba 0755

unix /oracle/app/11.2.0/grid/bin/crsctl.bin root dba 0755

unix /oracle/app/11.2.0/grid/bin/ndfnceca grid dba 0750

unix /oracle/app/11.2.0/grid/bin/oclskd root dba 0755

unix /oracle/app/11.2.0/grid/bin/oclskd.bin root dba 0751

unix /oracle/app/11.2.0/grid/bin/oclsomon grid dba 0755

unix /oracle/app/11.2.0/grid/bin/oclsvmon grid dba 0755

unix /oracle/app/11.2.0/grid/bin/ocssd grid dba 0755

unix /oracle/app/11.2.0/grid/bin/cssdagent root dba 0741

unix /oracle/app/11.2.0/grid/bin/cssdagent.bin root dba 0741

unix /oracle/app/11.2.0/grid/bin/cssdmonitor root dba 0741

unix /oracle/app/11.2.0/grid/bin/cssdmonitor.bin root dba 0741

unix /oracle/app/11.2.0/grid/bin/diskmon root dba 0741

unix /oracle/app/11.2.0/grid/bin/diskmon.bin root dba 0741

unix /oracle/app/11.2.0/grid/bin/diagcollection.sh root dba 0755

unix /oracle/app/11.2.0/grid/bin/oradnssd grid dba 0755

unix /oracle/app/11.2.0/grid/bin/oradnssd.bin grid dba 0755

unix /oracle/app/11.2.0/grid/bin/setasmgidwrap grid dba 0755

unix /oracle/app/11.2.0/grid/bin/oclumon root dba 0750

unix /oracle/app/11.2.0/grid/bin/oclumon.bin root dba 0750

unix /oracle/app/11.2.0/grid/bin/oclumon.pl grid dba 0750

unix /oracle/app/11.2.0/grid/bin/crswrapexece.pl root dba 0744

unix /oracle/app/11.2.0/grid/bin/crfsetenv root dba 0750

unix /oracle/app/11.2.0/grid/bin/osysmond root dba 0750

unix /oracle/app/11.2.0/grid/bin/osysmond.bin root dba 0750

unix /oracle/app/11.2.0/grid/bin/ologgerd root dba 0750

unix /oracle/app/11.2.0/grid/bin/ologdbg grid dba 0750

unix /oracle/app/11.2.0/grid/bin/ologdbg.pl grid dba 0750

unix /etc/oracle/setasmgid root dba 4710

 

# Jars and shared libraries used by the executables invoked by the root script

 

unix /oracle/app/11.2.0/grid/jlib/srvm.jar root dba 0644

unix /oracle/app/11.2.0/grid/jlib/srvmasm.jar root dba 0644

unix /oracle/app/11.2.0/grid/jlib/srvctl.jar root dba 0644

unix /oracle/app/11.2.0/grid/jlib/srvmhas.jar root dba 0644

unix /oracle/app/11.2.0/grid/jlib/gns.jar root dba 0644

unix /oracle/app/11.2.0/grid/jlib/ons.jar root dba 0644

unix /oracle/app/11.2.0/grid/jlib/netcfg.jar root dba 0644

unix /oracle/app/11.2.0/grid/jlib/i18n.jar root dba 0644

unix /oracle/app/11.2.0/grid/jlib/supercluster.jar root dba 0644

unix /oracle/app/11.2.0/grid/jlib/supercluster-common.jar root dba 0644

unix /oracle/app/11.2.0/grid/jlib/antlr-complete.jar root dba 0644

unix /oracle/app/11.2.0/grid/jlib/antlr-3.3-complete.jar root dba 0644

 

unix /oracle/app/11.2.0/grid/lib/libhasgen11.so root dba 0644

unix /oracle/app/11.2.0/grid/lib/libocr11.so root dba 0644

unix /oracle/app/11.2.0/grid/lib/libocrb11.so root dba 0644

unix /oracle/app/11.2.0/grid/lib/libocrutl11.so root dba 0644

unix /oracle/app/11.2.0/grid/lib/libclntsh.so.11.1 root dba 0644

unix /oracle/app/11.2.0/grid/lib/libclntshcore.so.11.1 root dba 0644

unix /oracle/app/11.2.0/grid/lib/libskgxn2.so root dba 0644

unix /oracle/app/11.2.0/grid/lib/libskgxp11.so root dba 0644

unix /oracle/app/11.2.0/grid/lib/libasmclntsh11.so root dba 0644

unix /oracle/app/11.2.0/grid/lib/libcell11.so root dba 0644

unix /oracle/app/11.2.0/grid/lib/libnnz11.so root dba 0644

unix /oracle/app/11.2.0/grid/lib/libclsra11.so root dba 0644

unix /oracle/app/11.2.0/grid/lib/libgns11.so root dba 0644

unix /oracle/app/11.2.0/grid/lib/libeons.so root dba 0644

unix /oracle/app/11.2.0/grid/lib/libonsx.so root dba 0644

unix /oracle/app/11.2.0/grid/lib/libeonsserver.so root dba 0644

 

unix /oracle/app/11.2.0/grid/lib/libsrvm11.so root dba 0644

unix /oracle/app/11.2.0/grid/lib/libsrvmhas11.so root dba 0644

unix /oracle/app/11.2.0/grid/lib/libsrvmocr11.so root dba 0644

unix /oracle/app/11.2.0/grid/lib/libuini11.so root dba 0644

 

unix /oracle/app/11.2.0/grid/lib/libgnsjni11.so root dba 0644

unix /oracle/app/11.2.0/grid/lib/librdjni11.so root dba 0644

unix /oracle/app/11.2.0/grid/lib/libgnsjni11.so root dba 0644