Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

18

积分

0

好友

4

主题
1#
发表于 2012-2-24 22:57:54 | 查看: 7312| 回复: 5
在虚拟机环境下安装11r2,安装好多次了,最后运行脚本时总是出现错误,希望大家能帮忙。。。因为装了好多次了。。都是这样。。心好灰啊。。
在OUI界面下安装时未报任何错误,一直顺利安装,当安装进度条完成后,提示需要运行两个脚本:
/u01/app/oraInventory/orainstRoot.sh
/u01/app/11.2.0/grid/root.sh

第一个脚本顺利完成。
[root@dbrac2 ~]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.

第二个脚本则到最后面一直报错。
[root@dbrac2 ~]# /u01/app/11.2.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/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...

Creating /etc/oratab file...
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.
2012-02-24 22:17:30: Parsing the host name
2012-02-24 22:17:30: Checking for super user privileges
2012-02-24 22:17:30: User has super user privileges
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
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
Failed to create a peer profile for Oracle Cluster GPnP. gpnptool rc=32512
Creation of Oracle GPnP peer profile failed for dbrac2 at /u01/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 4138.

我已经关闭iptable了,但还是出现同样的问题。希望大家能给点指导。

上传了日志

[ 本帖最后由 lingksxz 于 2012-2-25 12:13 编辑 ]

rootcrs_dbrac1.txt

20.52 KB, 下载次数: 989

2#
发表于 2012-2-24 23:21:35
GPnP无法在第二个节点创建,
看一下XX/cfgtoollogs/crsconfig/rootcrs_<node_name>.log的详细信息

回复 只看该作者 道具 举报

3#
发表于 2012-2-24 23:30:00
1) Disable firewall and selinux encryption both
2) Deconfig crs on both nodes
3) clear all previous install from oracle home
4) reinstall

回复 只看该作者 道具 举报

4#
发表于 2012-2-25 12:11:33
1) Disable firewall and selinux encryption both
2) Deconfig crs on both nodes
3) clear all previous install from oracle home
4) reinstall

试过了,关闭了iptables和确认selinux已经关闭,重新安装也不行。

回复 只看该作者 道具 举报

5#
发表于 2012-2-25 14:54:55
2012-02-24 22:16:39: Successfully removed file: /tmp/fileBx7TIv
2012-02-24 22:16:39: /bin/su exited with rc=0
127
2012-02-24 22:16:39: gpnptool: rc=32512
2012-02-24 22:16:39: gpnptool output:
/u01/app/11.2.0/grid/bin/gpnptool.bin: error while loading shared libraries: /u01/app/11.2.0/grid/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied


cat /etc/selinux/config
检查SELINUX是否为disable
如果已经是disable,那:
chcon -t texrel_shlib_t /u01/app/11.2.0/grid/lib/libclntsh.so.11.1

回复 只看该作者 道具 举报

6#
发表于 2012-2-25 20:54:13
经过检查确实selinux没关闭,问题已经解决。非常感谢喔!!!!

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-11-15 01:48 , Processed in 0.057138 second(s), 24 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569