11g R2 运行root.sh脚本不成功的一个例子:
2017-05-11 11:56
741 查看
点击打开链接
51CTO首页
51CTO博客
我的博客
搜索每日博报
WOT峰会学院论坛博客下载更多
登录注册
【复制】
【订阅】
原创:32翻译:0转载:134
博 客|写博文|帮
助
首页|
oracle 基础|
oracle rman|
oracle pl/sql|
oracle 性能调优|
oracle 11g|
UNIX/LINUX|
网络管理|
oracle 高可用
写留言去学院学习发消息
加友情链接进家园 加好友
用户名:gjm008
文章数:166
评论数:18
访问量:278443
无忧币:59
博客积分:1400
博客等级:5
注册日期:2009-04-17
每天5分钟玩转 OpenStack阅读量:5863
【51CTO三周年】我在学院不得不说的收获阅读量:12276
从菜鸟到老鸟-教你玩转Mac操作系统阅读量:415780
QT学习之路:从入门到精通阅读量:1103306
/etc/hosts 文件引起的监..
如何下载ORACLE 10G,11G..
一次truncate table 后的..
Oracle Cluster verifica..
向数据库中存储以及读取B..
一次 ORA-00600错误 参数..
Can’t connect to local..
wsdyc
fujia..
jw5281
guobi..
wiledy
luosuper
90831..
oracl..
wlllo..
llill..
lucen..
龙白雪
drummerxu:非常感谢楼主!!解决问题了!!顺..
yyf2008up:链接已失效,Oracle站点报404。
蓝色风铃527:对我有帮助,谢谢!
han5xin2yu1:Oracle Database 10g R2 Documentat..
Docker编排工具之Rancher-Server..
oracle如何修改单个用户密码永不过期
MariaDB10.1.22 Spider3.3腾讯补..
Zabbix监控MySQL小记
解决Linux下MySQL启动错误Startin..
sql优化-检索及定位
mysqldump备份与恢复 之 黑锅侠
mysql主从复制以及读写分离
ActiveMQ(13):ActiveMQ的集群
MariaDB Spider蜘蛛侠轻松解决表..
一句SQL完成动态分级查询
dbtan的博客
天堂向左 DBA向右
杨老大的博客
骨骨学习笔记
三十而立的博客
rickyzhu的博客
冰冷的太阳
gzmaster
技术人才招聘
相关视频课程更多
Gamemaker_弹珠游戏视频教程(共5课时)2065人学习
轻松玩转Windows7基础视频课程[肖哥](共39课时)14783人学习
Unity3D益智三消类:“快乐消消乐”(产品级)实战视频课程(共26课时)14096人学习
博主的更多文章>>
11g R2 运行root.sh脚本不成功的一个例子:
2010-05-18 11:32:38
标签:休闲
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)
: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/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)
: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/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)
: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/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.
7.呵呵,困扰了一天的我问题终于解决了。
类别:oracle 11g┆阅读(18580)┆评论(4)┆返回博主首页┆返回博客首页
上一篇
如果Unstall 11g R2 Grid下一篇
安装11G R2 RAC的一个问题
广州、深圳招聘DBA(有OCP/OCM认证优先)
Oracle DBA
数据库管理工程师
数据库开发工程师
数据库管理员
诚聘大数据开发师
数据分析工程师
数据库开发
高级数据建模分析师
[1楼]
lvoqxw 回复
[align=right]2010-05-19 13:13:42[/align]
oracle 有一点小问题,安装都会报错。
[2楼]
[匿名]passing by 回复
[align=right]2010-08-12 12:39:25[/align]
Thanks for sharing.
[3楼]
蓝色风铃527 回复
[align=right]2014-04-29 15:05:49[/align]
对我有帮助,谢谢!
[4楼]
drummerxu 回复
[align=right]2016-03-10 01:36:34[/align]
非常感谢楼主!!解决问题了!!顺便补充一句:roothas.pl脚本在grid/csr/下
昵 称:登录 快速注册验证码:请点击后输入验证码博客过2级,无需填写验证码
内 容:
每日博报 精彩不止一点
Linux运维笔记
MariaDB10.1.22 Spider3.3腾讯补丁流媒体服务器之Nginx的Rtmp模块MongoDB 3 分片集群安装配置基于BIND软件实现互联网DNS解析
返回顶部
Copyright By 51CTO.COM 版权所有
51CTO首页
51CTO博客
我的博客
搜索每日博报
WOT峰会学院论坛博客下载更多
登录注册
高山
http://gaoshan.blog.51cto.com【复制】
【订阅】
原创:32翻译:0转载:134
博 客|写博文|帮
助
首页|
oracle 基础|
oracle rman|
oracle pl/sql|
oracle 性能调优|
oracle 11g|
UNIX/LINUX|
网络管理|
oracle 高可用
gjm008 的BLOG
加友情链接进家园 加好友
博客统计信息
51CTO推荐博客用户名:gjm008
文章数:166
评论数:18
访问量:278443
无忧币:59
博客积分:1400
博客等级:5
注册日期:2009-04-17
热门专题
更多>>每天5分钟玩转 OpenStack阅读量:5863
【51CTO三周年】我在学院不得不说的收获阅读量:12276
从菜鸟到老鸟-教你玩转Mac操作系统阅读量:415780
QT学习之路:从入门到精通阅读量:1103306
热门文章
11g R2 运行root.sh脚本../etc/hosts 文件引起的监..
如何下载ORACLE 10G,11G..
一次truncate table 后的..
Oracle Cluster verifica..
向数据库中存储以及读取B..
一次 ORA-00600错误 参数..
Can’t connect to local..
搜索BLOG文章
最近访客
wsdyc
fujia..
jw5281
guobi..
wiledy
luosuper
90831..
oracl..
wlllo..
llill..
lucen..
龙白雪
最新评论
okeyear:rundll32 url.dll,FileProtocolHand..drummerxu:非常感谢楼主!!解决问题了!!顺..
yyf2008up:链接已失效,Oracle站点报404。
蓝色风铃527:对我有帮助,谢谢!
han5xin2yu1:Oracle Database 10g R2 Documentat..
51CTO推荐博文
更多>>Docker编排工具之Rancher-Server..
oracle如何修改单个用户密码永不过期
MariaDB10.1.22 Spider3.3腾讯补..
Zabbix监控MySQL小记
解决Linux下MySQL启动错误Startin..
sql优化-检索及定位
mysqldump备份与恢复 之 黑锅侠
mysql主从复制以及读写分离
ActiveMQ(13):ActiveMQ的集群
MariaDB Spider蜘蛛侠轻松解决表..
一句SQL完成动态分级查询
友情链接
IT精品课程dbtan的博客
天堂向左 DBA向右
杨老大的博客
骨骨学习笔记
三十而立的博客
rickyzhu的博客
冰冷的太阳
gzmaster
技术人才招聘
相关视频课程更多
Gamemaker_弹珠游戏视频教程(共5课时)2065人学习
轻松玩转Windows7基础视频课程[肖哥](共39课时)14783人学习
Unity3D益智三消类:“快乐消消乐”(产品级)实战视频课程(共26课时)14096人学习
博主的更多文章>>
11g R2 运行root.sh脚本不成功的一个例子:
2010-05-18 11:32:38
标签:休闲
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)
: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/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)
: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/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)
: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/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.
7.呵呵,困扰了一天的我问题终于解决了。
蓝色风铃527、drummerxu | 2人 | 了这篇文章 |
上一篇
如果Unstall 11g R2 Grid下一篇
安装11G R2 RAC的一个问题
职位推荐
招兼职tableau培训讲师广州、深圳招聘DBA(有OCP/OCM认证优先)
Oracle DBA
数据库管理工程师
数据库开发工程师
数据库管理员
诚聘大数据开发师
数据分析工程师
数据库开发
高级数据建模分析师
文章评论
[1楼]
lvoqxw 回复
[align=right]2010-05-19 13:13:42[/align]
oracle 有一点小问题,安装都会报错。
[2楼]
[匿名]passing by 回复
[align=right]2010-08-12 12:39:25[/align]
Thanks for sharing.
[3楼]
蓝色风铃527 回复
[align=right]2014-04-29 15:05:49[/align]
对我有帮助,谢谢!
[4楼]
drummerxu 回复
[align=right]2016-03-10 01:36:34[/align]
非常感谢楼主!!解决问题了!!顺便补充一句:roothas.pl脚本在grid/csr/下
发表评论
昵 称:登录 快速注册验证码:请点击后输入验证码博客过2级,无需填写验证码
内 容:
每日博报 精彩不止一点
Linux运维笔记
饿了么的架构设计及演进之路
MariaDB10.1.22 Spider3.3腾讯补丁流媒体服务器之Nginx的Rtmp模块MongoDB 3 分片集群安装配置基于BIND软件实现互联网DNS解析
返回顶部
Copyright By 51CTO.COM 版权所有
相关文章推荐
- 11g R2 运行root.sh脚本不成功的一个例子: 推荐
- 11g R2 RAC安装第2个节点root.sh不成功
- 记录搭建redis用作缓存并且成功运行了一个简单例子的经历
- linux 使用非当前登录运行程序方式,如root登录用test运行一个test.sh
- oracle 11g ASM单节点数据库安装grid执行root.sh脚本报错
- RAC安装GI时运行root.sh脚本结果
- 一个ExtJS+jsp+Servlet与数据库连接且运行成功的例子
- 让powershell同时只能运行一个脚本(进程互斥例子)
- 安装12.1.0.2 集群GRID/GI, 运行root.sh 脚本失败的案例
- 我现在在做一个app,里面要有聊天的功能,但是我在网上找了好多例子,我都没有运行成功,希望路过的大神能给我点指导或者源码也行
- 使用API获取一个应用是否运行结束的例子
- 让一个脚本自动定时运行,设置、启动 linux定时脚本 (crontab详解)
- 如何实现使得一个普通用户以root身份运行命令和如何使用sudo命令?
- 早上学习了一个smarty局部刷新的例子发上来大家看看,过两天我会把它与数据库相互结合起来写成功发过来的
- 成功运行第一个ServiceMix官方例子 Writing a http upload application
- 一个用eXosip实现的UAC和UAS的例子(调试成功)
- sock脚本单用户正常运行,多用户肯定只有一个用户正常运行,这是什么原因
- 写了一个简单的shell脚本监控mysql服务器运行状态
- 一个成功传递引用类型参数到非托管环境的例子
- 一个查选优化的例子,转--SQL Server中存储过程比直接运行SQL语句慢的原因