Oracle 11.2.0.1 的RAC,运行root.sh时报错,如下:
[root@rac1 oracle]#/u01/app/11.2.0/grid/root.sh
Running Oracle 11g root.sh script...
The following environment variables are setas:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/11.2.0/grid
Enter the full pathname of the local bindirectory: [/usr/local/bin]:
The file "dbhome" already existsin /usr/local/bin. Overwrite it? (y/n)
[n]:
The file "oraenv" already existsin /usr/local/bin. Overwrite it? (y/n)
[n]:
The file "coraenv" already existsin /usr/local/bin. Overwrite it? (y/n)
[n]:
Entries will be added to the /etc/oratabfile as needed by
Database Configuration Assistant when adatabase is created
Finished running generic part of root.shscript.
Now product-specific root actions will beperformed.
2012-06-27 14:17:23: Parsing the host name
2012-06-27 14:17:23: Checking for superuser privileges
2012-06-27 14:17:23: User has super userprivileges
Using configuration parameter file:/u01/app/11.2.0/grid/crs/install/crsconfig_params
Improper OracleClusterware configuration found on this host
Deconfigure the existingcluster configuration before starting
to configure a newClusterware
run'/u01/app/11.2.0/grid/crs/install/rootcrs.pl -deconfig'
to configure existing failed configurationand then rerun root.sh
You have new mail in /var/spool/mail/root
[root@rac1 oracle]#
解决方法上文已有说明,执行rootcrs.pl 脚本来卸载之前的操作。
注意这里的rootcrs.pl 是Oracle 11g中才有的,关于该脚本的使用说明,会另篇Blog进行说明。
[root@rac1 oracle]#/u01/app/11.2.0/grid/crs/install/rootcrs.pl -deconfig -verbose -force
2012-06-27 14:30:17: Parsing the host name
2012-06-27 14:30:17: Checking for superuser privileges
2012-06-27 14:30:17: User has super userprivileges
Using configuration parameter file:/u01/app/11.2.0/grid/crs/install/crsconfig_params
Failure to execute: Inappropriate ioctl fordevice for command /u01/app/11.2.0/grid/bin/crsctl check cluster -n rac1
Failure to execute: Inappropriate ioctl fordevice for command /u01/app/11.2.0/grid/bin/crsctl check cluster -n rac1
Usage: srvctl <command><object> [<options>]
commands:enable|disable|start|stop|status|add|remove|modify|getenv|setenv|unsetenv|config
objects: database|service|asm|diskgroup|listener|home|ons|eons
For detailed help on each command andobject and its options use:
srvctl <command> -h or
srvctl <command> <object> -h
PRKO-2012 : nodeapps object is notsupported in Oracle Restart
sh: /u01/app/11.2.0/grid/bin/clsecho: Nosuch file or directory
Can't exec"/u01/app/11.2.0/grid/bin/clsecho": No such file or directory at/u01/app/11.2.0/grid/lib/acfslib.pm line 937.
Failure to execute: Inappropriate ioctl fordevice for command /u01/app/11.2.0/grid/bin/crsctl check cluster -n rac1
You must kill crs processes or reboot thesystem to properly
cleanup the processes started by Oracleclusterware
2560+0 records in
2560+0 records out
10485760 bytes (10 MB) copied, 0.0373402 s,281 MB/s
error: package cvuqdisk is not installed
Successfully deconfigured Oracleclusterware stack on this node
You have new mail in /var/spool/mail/root
[root@rac1 oracle]#
执行完毕之后,就可以顺利执行root.sh脚本了。
-------------------------------------------------------------------------------------------------------
版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!
Skype: tianlesoftware
Email: [email protected]
Blog: http://www.tianlesoftware.com
Weibo: http://weibo.com/tianlesoftware
Twitter: http://twitter.com/tianlesoftware
Facebook: http://www.facebook.com/tianlesoftware
Linkedin: http://cn.linkedin.com/in/tianlesoftware
-------加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请----
DBA1 群:62697716(满); DBA2 群:62697977(满)DBA3 群:62697850(满)
DBA 超级群:63306533(满); DBA4 群:83829929 DBA5群: 142216823
DBA6 群:158654907 DBA7 群:172855474 DBA总群:104207940