日期:2014-05-16 浏览次数:20470 次
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