安装11.2.0.3 asm,grid 执行root脚本报错/u01/app/oraInventory/orainstRoot.sh

这是很久之前的脚本,贴出来凑个数


--下面是执行root脚本报错
[root@localhost app]# /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@localhost app]# u01/app/grid/product/11.3.0/grid/root.sh
-bash: u01/app/grid/product/11.3.0/grid/root.sh: No such file or directory
[root@localhost app]# /u01/app/grid/product/11.3.0/grid/root.sh
Performing root user operation for Oracle 11g 


The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/grid/product/11.3.0/grid


Enter the full pathname of the local bin directory: [/usr/local/bin]: 
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.




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 script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/grid/product/11.3.0/grid/crs/install/crsconfig_params
Creating trace directory
/u01/app/grid/product/11.3.0/grid/bin/clscfg.bin: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory
Failed to create keys in the OLR, rc = 127, Message:
   


Failed to write the checkpoint:'' with status:FAIL.Error code is 256
Failed to create keys in the OLR at /u01/app/grid/product/11.3.0/grid/crs/install/crsconfig_lib.pm line 7497.
/u01/app/grid/product/11.3.0/grid/perl/bin/perl -I/u01/app/grid/product/11.3.0/grid/perl/lib -I/u01/app/grid/product/11.3.0/grid/crs/install /u01/app/grid/product/11.3.0/grid/crs/install/roothas.pl execution failed
[root@localhost app]# cd /iso/


--补充包


[root@localhost Packages]# rpm -ivh compat-libcap1-1.10-1.x86_64.rpm 
warning: compat-libcap1-1.10-1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:compat-libcap1         ########################################### [100%]
[root@localhost Packages]# 


--卸载root脚本


/u01/app/grid/product/11.3.0/grid/crs/install/rootcrs.pl -verbose -deconfig -force


--重新执行2个root脚本
[root@localhost install]# /u01/app/grid/product/11.3.0/grid/crs/install/rootcrs.pl -verbose -deconfig -force
Using configuration parameter file: /u01/app/grid/product/11.3.0/grid/crs/install/crsconfig_params
Usage: srvctl []
    commands: enable|disable|start|stop|status|add|remove|modify|getenv|setenv|unsetenv|config|upgrade
    objects: database|service|asm|diskgroup|listener|home|ons
For detailed help on each command and object and its options use:
  srvctl -h or
  srvctl -h
PRKO-2012 : nodeapps object is not supported in Oracle Restart
CRS-4013: This command is not supported in a single-node configuration.
CRS-4000: Command Stop failed, or completed with errors.
################################################################
# You must kill processes or reboot the system to properly #
# cleanup the processes started by Oracle clusterware          #
################################################################
Failure in execution (rc=-1, 256, No such file or directory) for command /etc/init.d/ohasd deinstall
error: package cvuqdisk is not installed
Successfully deconfigured Oracle clusterware stack on this node
[root@localhost install]# /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@localhost install]# /u01/app/grid/product/11.3.0/grid/root.sh
Performing root user operation for Oracle 11g 


The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/grid/product/11.3.0/grid


Enter the full pathname of the local bin directory: [/usr/local/bin]: 
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.


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 script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/grid/product/11.3.0/grid/crs/install/crsconfig_params
LOCAL ADD MODE 
Creating OCR keys for user 'grid', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE 
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node localhost successfully pinned.
Adding Clusterware entries to upstart


localhost     2016/11/02 17:25:01     /u01/app/grid/product/11.3.0/grid/cdata/localhost/backup_20161102_172501.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server

[root@localhost install]# 


成功搞定。



你可能感兴趣的:(oracle安装错误集锦)