11G RAC环境GRID目录及文件错误权限的修复

打印 上一主题 下一主题

主题 1050|帖子 1050|积分 3150

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

x
最近一段时间,遇到几个项目由于种种原因导致GRID_HOME目录或者下面的文件的权限被修改,出现CRS不能正常的启动。在启动ora.mdnsd的时,一直在STARTING。此故障原来模拟过几次都很轻松搞定,并且在半年前一个生产环境中的操作中也很顺利,但是这次一个朋友RP不好,不管怎么弄,就是不能启动。再来测试一下11.2.0.3/11.2.0.4环境中怎么恢复文件的权限。在下面操作中,会提到rootcrs.pl脚本,在11.2.0.3.6后oracle为了解决权限问题,添加init参数,但是此参数作用有限,并不是help中介绍的那样。1 11.2.0.4环境测试

1.1  测试前的资源状态

下面查看一下测试前的资源状态,确保每个资源的状态都是正常的。
  1. [grid@rac112042 ~]$ crsctl status resource -t
  2. --------------------------------------------------------------------------------
  3. NAME           TARGET  STATE        SERVER                   STATE_DETAILS
  4. --------------------------------------------------------------------------------
  5. Local Resources
  6. --------------------------------------------------------------------------------
  7. ora.DATA.dg
  8.                ONLINE  ONLINE       rac112041
  9.                ONLINE  ONLINE       rac112042
  10. ora.LISTENER.lsnr
  11.                ONLINE  ONLINE       rac112041
  12.                ONLINE  ONLINE       rac112042
  13. ora.OCR.dg
  14.                ONLINE  ONLINE       rac112041
  15.                ONLINE  ONLINE       rac112042
  16. ora.asm
  17.                ONLINE  ONLINE       rac112041                Started
  18.                ONLINE  ONLINE       rac112042                Started
  19. ora.gsd
  20.                ONLINE  OFFLINE      rac112041
  21.                ONLINE  OFFLINE      rac112042
  22. ora.net1.network
  23.                ONLINE  ONLINE       rac112041
  24.                ONLINE  ONLINE       rac112042
  25. ora.ons
  26.                ONLINE  ONLINE       rac112041
  27.                ONLINE  ONLINE       rac112042
  28. ora.registry.acfs
  29.                ONLINE  ONLINE       rac112041
  30.                ONLINE  ONLINE       rac112042
  31. --------------------------------------------------------------------------------
  32. Cluster Resources
  33. --------------------------------------------------------------------------------
  34. ora.LISTENER_SCAN1.lsnr
  35.       1        ONLINE  ONLINE       rac112041
  36. ora.cvu
  37.       1        ONLINE  ONLINE       rac112041
  38. ora.oc4j
  39.       1        ONLINE  ONLINE       rac112041
  40. ora.rac11204.db
  41.       1        ONLINE  ONLINE       rac112042                Open
  42.       2        ONLINE  ONLINE       rac112041                Open
  43. ora.rac112041.vip
  44.       1        ONLINE  ONLINE       rac112041
  45. ora.rac112042.vip
  46.       1        ONLINE  ONLINE       rac112042
  47. ora.scan1.vip
  48.       1        ONLINE  ONLINE       rac112041
复制代码
 1.2 修改目录的属主为ROOT

将/oracle目录的权限全部修改为root:root 
  1. [root@rac112042 ~]# chown -R root:root /oracle
复制代码
 1.3 启动主机,观察报错

这里直接重启主机来测试的,因为修改的权限crs不能正常停。
  1. [root@rac112042 ~]# reboot
  2. [root@rac112042 ~]#
  3. Broadcast message from root@rac112042
  4.         (/dev/pts/0) at 18:39 ...
  5. The system is going down for reboot NOW!
  6. [grid@rac112042 ~]$ crsctl status resource -t -init
  7. An error occurred while attempting to change log file permissions. Logging may not be active for this process.
  8. CLSU-00100: Operating System function: scls_chmod failed with error data: 1
  9. CLSU-00101: Operating System error message: Operation not permitted
  10. CLSU-00103: error location: chmodfail
  11. CLSU-00104: additional error information: chmod operation failed
  12. An error occurred while attempting to change log file permissions. Logging may not be active for this process.
  13. CLSU-00100: Operating System function: scls_chmod failed with error data: 1
  14. CLSU-00101: Operating System error message: Operation not permitted
  15. CLSU-00103: error location: chmodfail
  16. CLSU-00104: additional error information: chmod operation failed
  17. --------------------------------------------------------------------------------
  18. NAME           TARGET  STATE        SERVER                   STATE_DETAILS
  19. --------------------------------------------------------------------------------
  20. Cluster Resources
  21. --------------------------------------------------------------------------------
  22. ora.asm
  23.       1        ONLINE  OFFLINE
  24. ora.cluster_interconnect.haip
  25.       1        ONLINE  OFFLINE
  26. ora.crf
  27.       1        ONLINE  OFFLINE
  28. ora.crsd
  29.       1        ONLINE  OFFLINE
  30. ora.cssd
  31.       1        ONLINE  OFFLINE
  32. ora.cssdmonitor
  33.       1        ONLINE  OFFLINE
  34. ora.ctssd
  35.       1        ONLINE  OFFLINE
  36. ora.diskmon
  37.       1        OFFLINE OFFLINE
  38. ora.drivers.acfs
  39.       1        ONLINE  OFFLINE
  40. ora.evmd
  41.       1        ONLINE  OFFLINE
  42. ora.gipcd
  43.       1        ONLINE  OFFLINE
  44. ora.gpnpd
  45.       1        ONLINE  OFFLINE
  46. ora.mdnsd
  47.       1        ONLINE  OFFLINE                               STARTING
  48.     可以看到crs启动的时候一直HANG在了.ora.mdnsd这个资源,启动的动作一直视STARTING,代表一直在启动这个资源。还能看到CRSCTL报错信息
复制代码
1.3.1 查看GRID的ALERT日志
  1. [ohasd(1964)]CRS-2112:The OLR service started on node rac112042.
  2. 2015-12-15 05:50:23.407:
  3. [ohasd(1964)]CRS-1301:Oracle High Availability Service started on node rac112042.
  4. 2015-12-15 05:50:23.430:
  5. [ohasd(1964)]CRS-8017:location: /etc/oracle/lastgasp has 2 reboot advisory log files, 0 were announced and 0 errors occurred
  6. 2015-12-15 05:50:28.420:
  7. [/oracle/app/11.2.0/grid/bin/orarootagent.bin(2186)]CRS-2302:Cannot get GPnP profile. Error CLSGPNP_NO_DAEMON (GPNPD daemon is not running).
  8. 2015-12-15 05:52:32.545:
  9. [ohasd(1964)]CRS-2757:Command 'Start' timed out waiting for response from the resource 'ora.mdnsd'. Details at (:CRSPE00111:) {0:0:2} in /oracle/app/11.2.0/grid/log/rac112042/ohasd/ohasd.log.
  10. 这里看到ora.mdnsd资源启动时候出现了timed out还在方法的重试。
复制代码
1.3.2 查看ohasd日志
  1. [root@rac112042 ~]# tail -f /oracle/app/11.2.0/grid/log/rac112042/ohasd/ohasd.log
  2. 2015-12-15 05:52:34.274: [    AGFW][314713856]{0:0:2} Agfw Proxy Server replying to the message: AGENT_HANDSHAKE[Proxy] ID 20484:11
  3. 2015-12-15 05:52:34.277: [    AGFW][314713856]{0:11:2} Received the reply to the message: RESTYPE_ADD[ora.daemon.type] ID 8196:312 from the agent /oracle/app/11.2.0/grid/bin/oraagent_grid
  4. 2015-12-15 05:52:34.278: [    AGFW][314713856]{0:11:2} Received the reply to the message: RESTYPE_ADD[ora.asm.type] ID 8196:313 from the agent /oracle/app/11.2.0/grid/bin/oraagent_grid
  5. 2015-12-15 05:52:34.279: [    AGFW][314713856]{0:11:2} Received the reply to the message: RESTYPE_ADD[ora.evm.type] ID 8196:314 from the agent /oracle/app/11.2.0/grid/bin/oraagent_grid
  6. 2015-12-15 05:52:34.280: [    AGFW][314713856]{0:11:2} Received the reply to the message: RESTYPE_ADD[ora.gipc.type] ID 8196:315 from the agent /oracle/app/11.2.0/grid/bin/oraagent_grid
  7. 2015-12-15 05:52:34.282: [    AGFW][314713856]{0:11:2} Received the reply to the message: RESTYPE_ADD[ora.gpnp.type] ID 8196:316 from the agent /oracle/app/11.2.0/grid/bin/oraagent_grid
  8. 2015-12-15 05:52:34.283: [    AGFW][314713856]{0:11:2} Received the reply to the message: RESTYPE_ADD[ora.haip.type] ID 8196:317 from the agent /oracle/app/11.2.0/grid/bin/oraagent_grid
  9. 2015-12-15 05:52:34.284: [    AGFW][314713856]{0:11:2} Received the reply to the message: RESTYPE_ADD[ora.mdns.type] ID 8196:318 from the agent /oracle/app/11.2.0/grid/bin/oraagent_grid
  10. 2015-12-15 05:52:34.285: [    AGFW][314713856]{0:11:2} Received the reply to the message: RESOURCE_ADD[ora.asm 1 1] ID 4356:319 from the agent /oracle/app/11.2.0/grid/bin/oraagent_grid
  11. 2015-12-15 05:52:34.286: [    AGFW][314713856]{0:11:2} Received the reply to the message: RESOURCE_ADD[ora.mdnsd 1 1] ID 4356:320 from the agent /oracle/app/11.2.0/grid/bin/oraagent_grid
复制代码
1.4 修改文件权限

这里直接使用chown -R 修改文件的权限,grid在安装的时候,在执行root.sh前$ORACLE_HOME目录下面所有的文件的都是grid:oinstall的(这里具体的安装用户,用户组可能不一样,根据各个环境不同做相应的修改)。
  1. [root@rac112042 app]# pwd
  2. /oracle/app
  3. [root@rac112042 app]# chown -R grid:oinstall 11.2.0
  4. [root@rac112042 app]# chown -R grid:oinstall grid
复制代码
init修改部分文件的权限
  1. [root@rac112042 app]# /oracle/app/11.2.0/grid/crs/install/rootcrs.pl -init
  2. Using configuration parameter file: /oracle/app/11.2.0/grid/crs/install/crsconfig_params
复制代码
由于GRID_HOME目录下面部分文件的属主是root,特别是与acfs、asmfd等相关的文件。需要使用init来修改,如果没有使用相关的功能,这步可以不需要操作的。修改oracle 2进制文件权限这里需要6751的权限
  1. [root@rac112042 app]# ls -l /oracle/app/11.2.0/grid/bin/oracle
  2. -rwxr-x--x 1 grid oinstall 209914519 Aug 27 21:16 /oracle/app/11.2.0/grid/bin/oracle
  3. [root@rac112042 app]# chmod 6751 /oracle/app/11.2.0/grid/bin/oracle
  4. [root@rac112042 app]#  ls -l /oracle/app/11.2.0/grid/bin/oracle
  5. -rwsr-s--x 1 grid oinstall 209914519 Aug 27 21:16 /oracle/app/11.2.0/grid/bin/oracle
复制代码
1.5 重启CRS

重启CRS后的资源状态如下
  1. [grid@rac112042 ~]$ crsctl status resource  -t -init
  2. --------------------------------------------------------------------------------
  3. NAME           TARGET  STATE        SERVER                   STATE_DETAILS
  4. --------------------------------------------------------------------------------
  5. Cluster Resources
  6. --------------------------------------------------------------------------------
  7. ora.asm
  8.       1        ONLINE  ONLINE       rac112042                Started
  9. ora.cluster_interconnect.haip
  10.       1        ONLINE  ONLINE       rac112042
  11. ora.crf
  12.       1        ONLINE  ONLINE       rac112042
  13. ora.crsd
  14.       1        ONLINE  ONLINE       rac112042
  15. ora.cssd
  16.       1        ONLINE  ONLINE       rac112042
  17. ora.cssdmonitor
  18.       1        ONLINE  ONLINE       rac112042
  19. ora.ctssd
  20.       1        ONLINE  ONLINE       rac112042                OBSERVER
  21. ora.diskmon
  22.       1        OFFLINE OFFLINE
  23. ora.drivers.acfs
  24.       1        ONLINE  ONLINE       rac112042
  25. ora.evmd
  26.       1        ONLINE  ONLINE       rac112042
  27. ora.gipcd
  28.       1        ONLINE  ONLINE       rac112042
  29. ora.gpnpd
  30.       1        ONLINE  ONLINE       rac112042
  31. ora.mdnsd
  32.       1        ONLINE  ONLINE       rac112042
  33. [grid@rac112042 ~]$ crsctl status resource -t
  34. --------------------------------------------------------------------------------
  35. NAME           TARGET  STATE        SERVER                   STATE_DETAILS
  36. --------------------------------------------------------------------------------
  37. Local Resources
  38. --------------------------------------------------------------------------------
  39. ora.DATA.dg
  40.                ONLINE  ONLINE       rac112041
  41.                ONLINE  ONLINE       rac112042
  42. ora.LISTENER.lsnr
  43.                ONLINE  ONLINE       rac112041
  44.                ONLINE  ONLINE       rac112042
  45. ora.OCR.dg
  46.                ONLINE  ONLINE       rac112041
  47.                ONLINE  ONLINE       rac112042
  48. ora.asm
  49.                ONLINE  ONLINE       rac112041                Started
  50.                ONLINE  ONLINE       rac112042                Started
  51. ora.gsd
  52.                ONLINE  OFFLINE      rac112041
  53.                ONLINE  OFFLINE      rac112042
  54. ora.net1.network
  55.                ONLINE  ONLINE       rac112041
  56.                ONLINE  ONLINE       rac112042
  57. ora.ons
  58.                ONLINE  ONLINE       rac112041
  59.                ONLINE  ONLINE       rac112042
  60. ora.registry.acfs
  61.                ONLINE  ONLINE       rac112041
  62.                ONLINE  ONLINE       rac112042
  63. --------------------------------------------------------------------------------
  64. Cluster Resources
  65. --------------------------------------------------------------------------------
  66. ora.LISTENER_SCAN1.lsnr
  67.       1        ONLINE  ONLINE       rac112041
  68. ora.cvu
  69.       1        ONLINE  ONLINE       rac112041
  70. ora.oc4j
  71.       1        ONLINE  ONLINE       rac112041
  72. ora.rac11204.db
  73.       1        ONLINE  OFFLINE
  74.       2        ONLINE  ONLINE       rac112041                Open
  75. ora.rac112041.vip
  76.       1        ONLINE  ONLINE       rac112041
  77. ora.rac112042.vip
  78.       1        ONLINE  ONLINE       rac112042
  79. ora.scan1.vip
  80.       1        ONLINE  ONLINE       rac112041
复制代码
1.6 TRACE  init修改的文件内容

下面通过strace命令可以跟踪到init参数修改了那些文件的权限
  1. [root@rac112042 bin]# strace /oracle/app/11.2.0/grid/crs/install/rootcrs.pl -init >/tmp/rootcrs_init.txt
  2. chmod("/oracle/app/11.2.0/grid/cfgtoollogs/crsconfig/rootcrs_rac112042.log", 0775) = 0
  3. chmod("/oracle/app/11.2.0/grid/cdata", 0775) = 0
  4. chmod("/oracle/app/11.2.0/grid/cdata/rac11204cluster", 0775) = 0
  5. chmod("/oracle/app/11.2.0/grid/cfgtoollogs", 0775) = 0
  6. chmod("/oracle/app/11.2.0/grid/cfgtoollogs/crsconfig", 0775) = 0
  7. chmod("/oracle/app/11.2.0/grid/log", 0775) = 0
  8. chmod("/oracle/app/11.2.0/grid/log/rac112042", 01755) = 0
  9. chmod("/oracle/app/11.2.0/grid/log/rac112042/crsd", 0750) = 0
  10. chmod("/oracle/app/11.2.0/grid/log/rac112042/ctssd", 0750) = 0
  11. chmod("/oracle/app/11.2.0/grid/log/rac112042/evmd", 0750) = 0
  12. ........
  13. chown("/oracle/app/11.2.0/grid/cfgtoollogs/crsconfig/rootcrs_rac112042.log", 501, 501) = 0
  14. chown("/oracle/app/11.2.0/grid/cdata", 501, 501) = 0
  15. chown("/oracle/app/11.2.0/grid/cdata/rac11204cluster", 501, 501) = 0
  16. chown("/oracle/app/11.2.0/grid/cfgtoollogs", 501, 501) = 0
  17. chown("/oracle/app/11.2.0/grid/cfgtoollogs/crsconfig", 501, 501) = 0
  18. chown("/oracle/app/11.2.0/grid/log", 501, 501) = 0
  19. chown("/oracle/app/11.2.0/grid/log/rac112042", 0, 501) = 0
  20. chown("/oracle/app/11.2.0/grid/log/rac112042/crsd", 0, 501) = 0
  21. chown("/oracle/app/11.2.0/grid/log/rac112042/ctssd", 0, 501) = 0
  22. chown("/oracle/app/11.2.0/grid/log/rac112042/evmd", 501, 501) = 0
  23. chown("/oracle/app/11.2.0/grid/log/rac112042/cssd", 501, 501) = 0
  24. chown("/oracle/app/11.2.0/grid/log/rac112042/mdnsd", 501, 501) = 0
  25. chown("/oracle/app/11.2.0/grid/log/rac112042/gpnpd", 501, 501) = 0
  26. .....
复制代码
其实init修改的东西就是下面文件中的
  1. [grid@rac112041 utl]$ cat crsconfig_dirs |wc -l
  2. 147
  3. [grid@rac112041 utl]$ cat crsconfig_fileperms |wc -l
  4. 227
复制代码
由于init参数在11.2.0.3.6以后才提供的参数,如果在11.2.0.3.6之前需要手动修改这些文件的权限,我们可以通过下面的命令来完成
  1. grep -v ^# crsconfig_dirs|grep -v ^$|awk {'print "chown " $3 ":" $4,$2'}>crsconfig_dirs_1.sh
  2. grep -v ^# crsconfig_dirs|grep -v ^$|awk {'print "chmod " $5,$2'}>crsconfig_dirs_2.sh
  3. crsconfig_filesperms
  4. grep -v ^# crsconfig_fileperms|grep -v ^$|awk {'print "chown " $3 ":" $4,$2'}>crsconfig_fileperms_1.sh
  5. grep -v ^# crsconfig_fileperms|grep -v ^$|awk {'print "chmod " $5,$2'}>crsconfig_fileperms_2.sh
复制代码
1.7 通过执行root.sh来解决权限问题

环境模拟跟上面一样,下面通过执行root.sh来修改文件的权限。大概的步骤如下
  1. root@rac112042 ~]# /etc/init.d/ohasd  stop
  2. Stopping Oracle Clusterware stack
  3. Unable to communicate with the Cluster Synchronization Services daemon.
  4. CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac112042'
  5. CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac112042' has completed
  6. Unable to communicate with the Cluster Synchronization Services daemon.
  7. CRS-4133: Oracle High Availability Services has been stopped.
  8. [root@rac112042 ~]# /oracle/app/11.2.0/grid/crs/install/rootcrs.pl  -deconfig -force -verbose
  9. Using configuration parameter file: /oracle/app/11.2.0/grid/crs/install/crsconfig_params
  10. PRCR-1119 : Failed to look up CRS resources of ora.cluster_vip_net1.type type
  11. PRCR-1068 : Failed to query resources
  12. Cannot communicate with crsd
  13. PRCR-1070 : Failed to check if resource ora.gsd is registered
  14. Cannot communicate with crsd
  15. PRCR-1070 : Failed to check if resource ora.ons is registered
  16. Cannot communicate with crsd
  17. CRS-4535: Cannot communicate with Cluster Ready Services
  18. CRS-4000: Command Stop failed, or completed with errors.
  19. CRS-4544: Unable to connect to OHAS
  20. CRS-4000: Command Stop failed, or completed with errors.
  21. Removing Trace File Analyzer
  22. Successfully deconfigured Oracle clusterware stack on this node
  23. [root@rac112042 ~]# chown -R grid:oinstall /oracle/app/11.2.0
  24. [root@rac112042 ~]# chown -R grid:oinstall /oracle/app/grid
  25. [grid@rac112041 utl]$ olsnodes -n
  26. rac112041       1
  27. rac112042       2
  28. [root@rac112042 ~]#  /oracle/app/11.2.0/grid/root.sh
  29. Performing root user operation for Oracle 11g
  30. The following environment variables are set as:
  31.     ORACLE_OWNER= grid
  32.     ORACLE_HOME=  /oracle/app/11.2.0/grid
  33. Enter the full pathname of the local bin directory: [/usr/local/bin]:
  34. The contents of "dbhome" have not changed. No need to overwrite.
  35. The contents of "oraenv" have not changed. No need to overwrite.
  36. The contents of "coraenv" have not changed. No need to overwrite.
  37. Entries will be added to the /etc/oratab file as needed by
  38. Database Configuration Assistant when a database is created
  39. Finished running generic part of root script.
  40. Now product-specific root actions will be performed.
  41. Using configuration parameter file: /oracle/app/11.2.0/grid/crs/install/crsconfig_params
  42. User ignored Prerequisites during installation
  43. Installing Trace File Analyzer
  44. OLR initialization - successful
  45. Adding Clusterware entries to upstart
  46. CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node rac112041, number 1, and is terminating
  47. An active cluster was found during exclusive startup, restarting to join the cluster
  48. /oracle/app/11.2.0/grid/bin/srvctl start nodeapps -n rac112042 ... failed
  49. Failed to start Nodeapps at /oracle/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 9400.
  50. /oracle/app/11.2.0/grid/perl/bin/perl -I/oracle/app/11.2.0/grid/perl/lib -I/oracle/app/11.2.0/grid/crs/install /oracle/app/11.2.0/grid/crs/install/rootcrs.pl execution failed
  51. [grid@rac112042 ~]$ srvctl start listener -l listener -n rac112042
  52. [grid@rac112042 ~]$ crsctl status resource -t
  53. --------------------------------------------------------------------------------
  54. NAME           TARGET  STATE        SERVER                   STATE_DETAILS
  55. --------------------------------------------------------------------------------
  56. Local Resources
  57. --------------------------------------------------------------------------------
  58. ora.DATA.dg
  59.                ONLINE  ONLINE       rac112041
  60.                ONLINE  ONLINE       rac112042
  61. ora.LISTENER.lsnr
  62.                ONLINE  ONLINE       rac112041
  63.                ONLINE  ONLINE       rac112042
  64. ora.OCR.dg
  65.                ONLINE  ONLINE       rac112041
  66.                ONLINE  ONLINE       rac112042
  67. ora.asm
  68.                ONLINE  ONLINE       rac112041                Started
  69.                ONLINE  ONLINE       rac112042                Started
  70. ora.gsd
  71.                ONLINE  OFFLINE      rac112041
  72.                ONLINE  OFFLINE      rac112042
  73. ora.net1.network
  74.                ONLINE  ONLINE       rac112041
  75.                ONLINE  ONLINE       rac112042
  76. ora.ons
  77.                ONLINE  ONLINE       rac112041
  78.                ONLINE  ONLINE       rac112042
  79. ora.registry.acfs
  80.                ONLINE  ONLINE       rac112041
  81.                ONLINE  ONLINE       rac112042
  82. --------------------------------------------------------------------------------
  83. Cluster Resources
  84. --------------------------------------------------------------------------------
  85. ora.LISTENER_SCAN1.lsnr
  86.       1        ONLINE  ONLINE       rac112041
  87. ora.cvu
  88.       1        ONLINE  ONLINE       rac112041
  89. ora.oc4j
  90.       1        ONLINE  ONLINE       rac112041
  91. ora.rac11204.db
  92.       1        ONLINE  OFFLINE
  93.       2        ONLINE  ONLINE       rac112041                Open
  94. ora.rac112041.vip
  95.       1        ONLINE  ONLINE       rac112041
  96. ora.rac112042.vip
  97.       1        ONLINE  ONLINE       rac112042
  98. ora.scan1.vip
  99.       1        ONLINE  ONLINE       rac112041
  100. 重启后测试
  101. [root@rac112042 ~]# reboot
  102. [root@rac112042 ~]#
  103. Broadcast message from root@rac112042
  104.         (/dev/pts/0) at 20:19 ...
  105. The system is going down for reboot NOW!
  106. [grid@rac112042 ~]$ crsctl status resource -t
  107. --------------------------------------------------------------------------------
  108. NAME           TARGET  STATE        SERVER                   STATE_DETAILS
  109. --------------------------------------------------------------------------------
  110. Local Resources
  111. --------------------------------------------------------------------------------
  112. ora.DATA.dg
  113.                ONLINE  ONLINE       rac112041
  114.                ONLINE  ONLINE       rac112042
  115. ora.LISTENER.lsnr
  116.                ONLINE  ONLINE       rac112041
  117.                ONLINE  ONLINE       rac112042
  118. ora.OCR.dg
  119.                ONLINE  ONLINE       rac112041
  120.                ONLINE  ONLINE       rac112042
  121. ora.asm
  122.                ONLINE  ONLINE       rac112041                Started
  123.                ONLINE  ONLINE       rac112042                Started
  124. ora.gsd
  125.                ONLINE  OFFLINE      rac112041
  126.                ONLINE  OFFLINE      rac112042
  127. ora.net1.network
  128.                ONLINE  ONLINE       rac112041
  129.                ONLINE  ONLINE       rac112042
  130. ora.ons
  131.                ONLINE  ONLINE       rac112041
  132.                ONLINE  ONLINE       rac112042
  133. ora.registry.acfs
  134.                ONLINE  ONLINE       rac112041
  135.                ONLINE  ONLINE       rac112042
  136. --------------------------------------------------------------------------------
  137. Cluster Resources
  138. --------------------------------------------------------------------------------
  139. ora.LISTENER_SCAN1.lsnr
  140.       1        ONLINE  ONLINE       rac112041
  141. ora.cvu
  142.       1        ONLINE  ONLINE       rac112041
  143. ora.oc4j
  144.       1        ONLINE  ONLINE       rac112041
  145. ora.rac11204.db
  146.       1        ONLINE  OFFLINE
  147.       2        ONLINE  ONLINE       rac112041                Open
  148. ora.rac112041.vip
  149.       1        ONLINE  ONLINE       rac112041
  150. ora.rac112042.vip
  151.       1        ONLINE  ONLINE       rac112042
  152. ora.scan1.vip
  153.       1        ONLINE  ONLINE       rac112041
  154. [grid@rac112042 ~]$ ifconfig -a
  155. eth0      Link encap:Ethernet  HWaddr 00:0C:29:DD:03:E7
  156.           inet addr:192.168.111.14  Bcast:192.168.111.255  Mask:255.255.255.0
  157.           inet6 addr: fe80::20c:29ff:fedd:3e7/64 Scope:Link
  158.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  159.           RX packets:398 errors:0 dropped:0 overruns:0 frame:0
  160.           TX packets:369 errors:0 dropped:0 overruns:0 carrier:0
  161.           collisions:0 txqueuelen:1000
  162.           RX bytes:34980 (34.1 KiB)  TX bytes:101352 (98.9 KiB)
  163. eth1      Link encap:Ethernet  HWaddr 00:0C:29:DD:03:F1
  164.           inet addr:192.168.112.14  Bcast:192.168.112.255  Mask:255.255.255.0
  165.           inet6 addr: fe80::20c:29ff:fedd:3f1/64 Scope:Link
  166.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  167.           RX packets:2793 errors:0 dropped:0 overruns:0 frame:0
  168.           TX packets:2569 errors:0 dropped:0 overruns:0 carrier:0
  169.           collisions:0 txqueuelen:1000
  170.           RX bytes:1544440 (1.4 MiB)  TX bytes:1168263 (1.1 MiB)
  171. eth1:1    Link encap:Ethernet  HWaddr 00:0C:29:DD:03:F1
  172.           inet addr:169.254.183.8  Bcast:169.254.255.255  Mask:255.255.0.0
  173.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  174. eth2      Link encap:Ethernet  HWaddr 00:0C:29:DD:03:FB
  175.           inet addr:192.168.113.14  Bcast:192.168.113.255  Mask:255.255.255.0
  176.           inet6 addr: fe80::20c:29ff:fedd:3fb/64 Scope:Link
  177.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  178.           RX packets:52 errors:0 dropped:0 overruns:0 frame:0
  179.           TX packets:120 errors:0 dropped:0 overruns:0 carrier:0
  180.           collisions:0 txqueuelen:1000
  181.           RX bytes:8219 (8.0 KiB)  TX bytes:20215 (19.7 KiB)
  182. eth2:1    Link encap:Ethernet  HWaddr 00:0C:29:DD:03:FB
  183.           inet addr:192.168.113.16  Bcast:192.168.113.255  Mask:255.255.255.0
  184.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  185. lo        Link encap:Local Loopback
  186.           inet addr:127.0.0.1  Mask:255.0.0.0
  187.           inet6 addr: ::1/128 Scope:Host
  188.           UP LOOPBACK RUNNING  MTU:65536  Metric:1
  189.           RX packets:875 errors:0 dropped:0 overruns:0 frame:0
  190.           TX packets:875 errors:0 dropped:0 overruns:0 carrier:0
  191.           collisions:0 txqueuelen:0
  192.           RX bytes:1595555 (1.5 MiB)  TX bytes:1595555 (1.5 MiB)
复制代码
这里看到,集群式正常启动的
2 11.2.0.3的测试

下面简单给出11.2.0.3测试的恢复操作
  1. [root@11rac1 app]# chown -R grid:dba 11.2.0
  2. [root@11rac1 app]# chown -R grid:dba  grid
  3. [grid@11rac1 ~]$ ls -l $ORACLE_HOME/bin/oracle
  4. -rwxr-x--x 1 grid dba 204033598 Oct 17  2014 /u01/app/11.2.0/grid/bin/oracle
  5. [grid@11rac1 ~]$ chmod 6751 /u01/app/11.2.0/grid/bin/oracle
  6. [grid@11rac1 ~]$ ls -l $ORACLE_HOME/bin/oracle
  7. -rwsr-s--x 1 grid dba 204033598 Oct 17  2014 /u01/app/11.2.0/grid/bin/oracle
复制代码
3 测试总结

如果出现权限被修改,建议可以删除节点,再添加节点的方式来处理。虽然可以通过改权限等方式来处理,但是不保证后期打补丁或者其它的操作出现一些其它奇怪的错误。
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

嚴華

论坛元老
这个人很懒什么都没写!
快速回复 返回顶部 返回列表