安装11.2.0.1的时候执行root.sh报错

来源:互联网 发布:网络兼职是真是假 编辑:程序博客网 时间:2024/05/17 02:45
安装11.2.0.1的时候报错:[root@rac1 ~]# /u01/app/11.2.0/grid/root.shRunning Oracle 11g root.sh script...The following environment variables are set as:    ORACLE_OWNER= grid    ORACLE_HOME=  /u01/app/11.2.0/gridEnter 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 byDatabase Configuration Assistant when a database is createdFinished running generic part of root.sh script.Now product-specific root actions will be performed.2016-01-10 14:30:55: Parsing the host name2016-01-10 14:30:55: Checking for super user privileges2016-01-10 14:30:55: User has super user privilegesUsing configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_paramsCreating trace directory/u01/app/11.2.0/grid/bin/clscfg.bin: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directoryFailed to create keys in the OLR, rc = 127, 32512OLR configuration failed根据以往经验解决:ln -s /lib64/libcap.so.2.16 /lib64/libcap.so.1报错:[root@rac1 ~]# /u01/app/11.2.0/grid/root.shRunning Oracle 11g root.sh script...The following environment variables are set as:    ORACLE_OWNER= grid    ORACLE_HOME=  /u01/app/11.2.0/gridEnter the full pathname of the local bin directory: [/usr/local/bin]:The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)[n]: y   Copying dbhome to /usr/local/bin ...The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)[n]: y   Copying oraenv to /usr/local/bin ...The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)[n]: y   Copying coraenv to /usr/local/bin ...Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root.sh script.Now product-specific root actions will be performed.2016-01-10 14:37:39: Parsing the host name2016-01-10 14:37:39: Checking for super user privileges2016-01-10 14:37:39: User has super user privilegesUsing configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_paramsImproper Oracle Clusterware configuration found on this hostDeconfigure the existing cluster configuration before startingto configure a new Clusterwarerun '/u01/app/11.2.0/grid/crs/install/rootcrs.pl -deconfig'to configure existing failed configuration and then rerun root.sh根据提示执行:[root@rac1 ~]# /u01/app/11.2.0/grid/crs/install/rootcrs.pl -deconfig2016-01-10 14:39:16: Parsing the host name2016-01-10 14:39:16: Checking for super user privileges2016-01-10 14:39:16: User has super user privilegesUsing configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_paramsOracle Clusterware stack is not active on this nodeRestart the clusterware stack (use /u01/app/11.2.0/grid/bin/crsctl start crs) and retryFailed to verify resources继续:[root@rac1 ~]# /u01/app/11.2.0/grid/bin/crsctl start crsFailure at scls_scr_setval with code 8Internal Error Information:  Category: -2 Operation: failed  Location: scrsearch3  Other: id doesnt exist scls_scr_setval  System Dependent Information: 2CRS-4000: Command Start failed, or completed with errors.怀疑是因为多次执行root.sh回退root.sh/u01/app/11.2.0/grid/crs/install/roothas.pl -deconfig -force -verbose执行成功![root@rac1 deinstall]# /u01/app/11.2.0/grid/root.shRunning Oracle 11g root.sh script...The following environment variables are set as:    ORACLE_OWNER= grid    ORACLE_HOME=  /u01/app/11.2.0/gridEnter the full pathname of the local bin directory: [/usr/local/bin]:The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)[n]: y   Copying dbhome to /usr/local/bin ...The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)[n]: y   Copying oraenv to /usr/local/bin ...The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)[n]: y   Copying coraenv to /usr/local/bin ...Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root.sh script.Now product-specific root actions will be performed.2016-01-10 15:08:57: Parsing the host name2016-01-10 15:08:57: Checking for super user privileges2016-01-10 15:08:57: User has super user privilegesUsing configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_paramsLOCAL ADD MODECreating OCR keys for user 'root', privgrp 'root'..Operation successful.  root wallet  root wallet cert  root cert export

0 0
原创粉丝点击