[zt] 11g R2 執行root.sh指令碼不成功的一個例子
近日安裝oracle 11g R2 叢集時,在第1個節點執行root.sh指令碼時沒有成功。搞了一整天終於解決。記錄一下:
1.---執行root.sh指令碼
[root@lir-rac1 install]# /u01/app/11.2.0.0/grid/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/11.2.0.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2010-05-18 10:57:09: Parsing the host name
2010-05-18 10:57:09: Checking for super user privileges
2010-05-18 10:57:09: User has super user privileges
Using configuration parameter file: /u01/app/11.2.0.0/grid/crs/install/crsconfig_params
/u01/app/11.2.0.0/grid/bin/ocrconfig.bin: error while loading shared libraries: /u01/app/11.2.0.0/grid/lib/libclntsh.so.11.1:
cannot restore segment prot after reloc: Permission denied
Command return code of 127 (32512) from command: /u01/app/11.2.0.0/grid/bin/ocrconfig -local -upgrade grid oinstall
Failed to create or upgrade OLR
2.-----------------------------------------------------
網上查詢資料cannot restore segment prot after reloc: Permission denied
說是SELINUX 的原因,檢查/etc/selinux/config 檔案後,發現是有問題,想起來這個機器單獨裝過(選擇文字方式的作業系統),可能和之前其它節點的設定不同了。
[root@lir-rac1 install]# vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
#SELINUX=enforcing
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
----這個檔案也要檢查。
[root@lir-rac1 install]# vi /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
#SELINUX=enforcing
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
---再次執行root.sh指令碼,還是提示錯誤。仔細看提示資訊。
Using configuration parameter file: /u01/app/11.2.0.0/grid/crs/install/crsconfig_params
/u01/app/11.2.0.0/grid/bin/ocrconfig.bin: error while loading shared libraries: /u01/app/11.2.0.0/grid/lib/libclntsh.so.11.1:
cannot restore segment prot after reloc: Permission denied
提示無法裝載/u01/app/11.2.0.0/grid/lib/libclntsh.so.11.1 檔案:
3.----------------------------------------------------------------
使用chcon命令 改變檔案的SELinux屬性:
[root@lir-rac1 install]# chcon -t texrel_shlib_t /u01/app/11.2.0.0/grid/lib/libclntsh.so.11.1
------------------------------------
執行root.sh 指令碼
[root@lir-rac1 install]# /u01/app/11.2.0.0/grid/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/11.2.0.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2010-05-18 10:58:08: Parsing the host name
2010-05-18 10:58:08: Checking for super user privileges
2010-05-18 10:58:08: User has super user privileges
Using configuration parameter file: /u01/app/11.2.0.0/grid/crs/install/crsconfig_params
Improper Oracle Clusterware configuration found on this host
Deconfigure the existing cluster configuration before starting
to configure a new Clusterware
run '/u01/app/11.2.0.0/grid/crs/install/rootcrs.pl -deconfig'
to configure existing failed configuration and then rerun root.sh
---------------------------------------------------------------------------------------------------------
4.--刪除這個節點的註冊資源
[root@lir-rac1 install]# ./roothas.pl -delete -force -verbose
2010-05-18 10:58:18: Checking for super user privileges
2010-05-18 10:58:18: User has super user privileges
2010-05-18 10:58:18: Parsing the host name
Using configuration parameter file: ./crsconfig_params
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Stop failed, or completed with errors.
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Delete failed, or completed with errors.
Failure at scls_scr_setval with code 8
Internal Error Information:
Category: -2
Operation: failed
Location: scrsearch3
Other: id doesnt exist scls_scr_setval
System Dependent Information: 2
CRS-4544: Unable to connect to OHAS
CRS-4000: Command Stop failed, or completed with errors.
/u01/app/11.2.0.0/grid/bin/acfsdriverstate: line 51: /lib/acfstoolsdriver.sh: No such file or directory
/u01/app/11.2.0.0/grid/bin/acfsdriverstate: line 51: exec: /lib/acfstoolsdriver.sh: cannot execute: No such file or directory
Successfully deconfigured Oracle Restart stack
----------------------------------------------------------------------
5.--刪除最後一個節點的註冊資源,(不知道不執行有沒有問題,我是又執行了一次)
[root@lir-rac1 install]# ./rootcrs.pl -verbose -deconfig -force -lastnode
2010-05-18 10:58:54: Parsing the host name
2010-05-18 10:58:54: Checking for super user privileges
2010-05-18 10:58:54: User has super user privileges
Using configuration parameter file: ./crsconfig_params
Can't open /etc/oracle/scls_scr/lir-rac1/root/ohasdrun for write: No such file or directory at s_crsconfig_lib.pm line 1021.
[root@lir-rac1 install]# chcon -t texrel_shlib_t /u01/app/11.2.0.0/grid/lib/libclntsh.so.11.1
6.--重新執行指令碼。
[root@lir-rac1 install]# /u01/app/11.2.0.0/grid/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/11.2.0.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2010-05-18 10:59:53: Parsing the host name
2010-05-18 10:59:53: Checking for super user privileges
2010-05-18 10:59:53: User has super user privileges
Using configuration parameter file: /u01/app/11.2.0.0/grid/crs/install/crsconfig_params
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
root wallet
root wallet cert
root cert export
peer wallet
profile reader wallet
pa wallet
peer wallet keys
pa wallet keys
peer cert request
pa cert request
peer cert
pa cert
peer root cert TP
profile reader root cert TP
pa root cert TP
peer pa cert TP
pa peer cert TP
profile reader pa cert TP
profile reader peer cert TP
peer user cert
pa user cert
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
CRS-2672: Attempting to start 'ora.gipcd' on 'lir-rac1'
CRS-2672: Attempting to start 'ora.mdnsd' on 'lir-rac1'
CRS-2676: Start of 'ora.gipcd' on 'lir-rac1' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'lir-rac1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'lir-rac1'
CRS-2676: Start of 'ora.gpnpd' on 'lir-rac1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'lir-rac1'
CRS-2676: Start of 'ora.cssdmonitor' on 'lir-rac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'lir-rac1'
CRS-2672: Attempting to start 'ora.diskmon' on 'lir-rac1'
CRS-2676: Start of 'ora.diskmon' on 'lir-rac1' succeeded
CRS-2676: Start of 'ora.cssd' on 'lir-rac1' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'lir-rac1'
CRS-2676: Start of 'ora.ctssd' on 'lir-rac1' succeeded
ASM created and started successfully.
DiskGroup DATA created successfully.
clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-2672: Attempting to start 'ora.crsd' on 'lir-rac1'
CRS-2676: Start of 'ora.crsd' on 'lir-rac1' succeeded
CRS-4256: Updating the profile
Successful addition of voting disk 131a3b74601d4f65bf96316ce1b19d8d.
Successfully replaced voting disk group with +DATA.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 131a3b74601d4f65bf96316ce1b19d8d (ORCL:DISKCRS1) [DATA]
Located 1 voting disk(s).
CRS-2673: Attempting to stop 'ora.crsd' on 'lir-rac1'
CRS-2677: Stop of 'ora.crsd' on 'lir-rac1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'lir-rac1'
CRS-2677: Stop of 'ora.asm' on 'lir-rac1' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'lir-rac1'
CRS-2677: Stop of 'ora.ctssd' on 'lir-rac1' succeeded
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'lir-rac1'
CRS-2677: Stop of 'ora.cssdmonitor' on 'lir-rac1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'lir-rac1'
CRS-2677: Stop of 'ora.cssd' on 'lir-rac1' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'lir-rac1'
CRS-2677: Stop of 'ora.gpnpd' on 'lir-rac1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'lir-rac1'
CRS-2677: Stop of 'ora.gipcd' on 'lir-rac1' succeeded
CRS-2673: Attempting to stop 'ora.mdnsd' on 'lir-rac1'
CRS-2677: Stop of 'ora.mdnsd' on 'lir-rac1' succeeded
CRS-2672: Attempting to start 'ora.mdnsd' on 'lir-rac1'
CRS-2676: Start of 'ora.mdnsd' on 'lir-rac1' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'lir-rac1'
CRS-2676: Start of 'ora.gipcd' on 'lir-rac1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'lir-rac1'
CRS-2676: Start of 'ora.gpnpd' on 'lir-rac1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'lir-rac1'
CRS-2676: Start of 'ora.cssdmonitor' on 'lir-rac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'lir-rac1'
CRS-2672: Attempting to start 'ora.diskmon' on 'lir-rac1'
CRS-2676: Start of 'ora.diskmon' on 'lir-rac1' succeeded
CRS-2676: Start of 'ora.cssd' on 'lir-rac1' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'lir-rac1'
CRS-2676: Start of 'ora.ctssd' on 'lir-rac1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'lir-rac1'
CRS-2676: Start of 'ora.asm' on 'lir-rac1' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'lir-rac1'
CRS-2676: Start of 'ora.crsd' on 'lir-rac1' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'lir-rac1'
CRS-2676: Start of 'ora.evmd' on 'lir-rac1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'lir-rac1'
CRS-2676: Start of 'ora.asm' on 'lir-rac1' succeeded
CRS-2672: Attempting to start 'ora.DATA.dg' on 'lir-rac1'
CRS-2676: Start of 'ora.DATA.dg' on 'lir-rac1' succeeded
CRS-2672: Attempting to start 'ora.registry.acfs' on 'lir-rac1'
CRS-2676: Start of 'ora.registry.acfs' on 'lir-rac1' succeeded
lir-rac1 2010/05/18 11:04:38 /u01/app/11.2.0.0/grid/cdata/lir-rac1/backup_20100518_110438.olr
Preparing packages for installation...
cvuqdisk-1.0.7-1
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
Updating inventory properties for clusterware
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 16998 MB Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
'UpdateNodeList' was successful.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-683074/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 11g R2 執行root.sh指令碼不成功的一個例子:薦指令碼
- 11g R2執行root.sh 不成功的處理及解除安裝 11g grid
- Oracle RAC重新執行root.sh指令碼Oracle指令碼
- 10G RAC重新執行root.sh指令碼指令碼
- shell指令碼放到crontab裡就執行不成功的問題指令碼
- 安裝rac clusterware如何在root.sh失敗後快速重執行root.sh指令碼指令碼
- PHP 避免同時執行一個指令碼PHP指令碼
- 安裝oracle11g遇到的執行root.sh指令碼問題Oracle指令碼
- 一個“指令碼執行夯死”問題的分析指令碼
- 安裝RAC 執行root.sh指令碼報錯,解決辦法指令碼
- 不能執行兩個指令碼的方法指令碼
- 從一個shell指令碼執行出錯聊起指令碼
- 一個使用執行緒計數器的例子執行緒
- 11G R2中的並行執行,dbms_parallel_execute並行Parallel
- Shell指令碼應用兩個例子指令碼
- oracle 11gR2 rac for aix 第二個節點執行root.sh不成功問題處理OracleAI
- oracle 11gR2 rac 執行root.sh建立diskgroup 不成功問題總結Oracle
- 今天寫了一個統計執行sql次數的指令碼SQL指令碼
- 一個SystemC執行緒與SystemVerilog執行緒通訊的例子執行緒
- 執行shell指令碼指令碼
- 指令碼執行方式指令碼
- 執行Shell指令碼的方式指令碼
- PHP 使用檔案鎖 避免同時執行一個指令碼PHP指令碼
- 如何在Windows上使用Git建立一個可執行指令碼?WindowsGit指令碼
- 分享一個shell指令碼的坑:grep匹配+wc取值 在指令碼執行後的結果與手動執行結果不一致指令碼
- 通過一個簡單的例子,瞭解 Cypress 的執行原理
- Ollydbg 編寫指令碼的一些語法及例子(OD指令碼)指令碼
- Oracle:GRID 下 root.sh 指令碼Oracle指令碼
- Oracle 11R2 Grid Infrastructure執行root.sh指令碼rootcrs.pl execution failed的處理OracleASTStruct指令碼AI
- 教小師妹學多執行緒,一個有深度的例子!執行緒
- 執行Shell指令碼的方式(轉)指令碼
- mybatis執行sql指令碼MyBatisSQL指令碼
- crontab執行shell指令碼指令碼
- PowerShell 指令碼執行策略指令碼
- SQL SERVER執行指令碼SQLServer指令碼
- 指令碼後臺執行指令碼
- 執行python指令碼後臺執行Python指令碼
- 有關程式碼執行效率提升的小例子