Chinaunix首页 | 论坛 | 博客
  • 博客访问: 183518
  • 博文数量: 46
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 490
  • 用 户 组: 普通用户
  • 注册时间: 2017-03-26 14:22
个人简介

做最Low逼的DBA

文章分类

全部博文(46)

文章存档

2017年(46)

我的朋友

分类: Oracle

2017-04-19 23:59:23

1.运行root.sh后,按提示运行roothas.pl报错:

[root@oranode1 mnt]# /u01/app/11.2.0/grid/crs/install/roothas.pl
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
User ignored Prerequisites during installation
/u01/app/11.2.0/grid/bin/crsctl query crs activeversion ... failed rc=127 with message:
 /u01/app/11.2.0/grid/bin/crsctl.bin: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory

Improper Oracle Grid Infrastructure configuration found on this host
Deconfigure the existing cluster configuration before starting
to configure a new Grid Infrastructure
run ‘/u01/app/11.2.0/grid/crs/install/roothas.pl -deconfig‘
to configure existing failed configuration and then rerun root.sh
[root@oranode1 mnt]#

解决思路
1.1确定libcap包已安装
1.2创建连接
1.3在/lib64 ln -s libcap.so.2.16 libcap.so.1 解决这个问题

2.搜索得知是缺少compat-libcap1,安装这个包
[root@oranode1 lib]# yum install compat-libcap1
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package compat-libcap1.x86_64 0:1.10-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================================================
 Package                                       Arch                                  Version                                 Repository                          Size
======================================================================================================================================================================
Installing:
 compat-libcap1                                x86_64                                1.10-1                                  ISO                                 17 k

Transaction Summary
======================================================================================================================================================================
Install       1 Package(s)

Total download size: 17 k
Installed size: 29 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : compat-libcap1-1.10-1.x86_64                                                                                                                       1/1
  Verifying  : compat-libcap1-1.10-1.x86_64                                                                                                                       1/1

Installed:
  compat-libcap1.x86_64 0:1.10-1                                                                                                                                      

Complete!
[root@oranode1 lib]# rpm -qa |grep compat-libcap1
compat-libcap1-1.10-1.x86_64

3.重新运行roothas.pl,按提示重新配置roothas
[root@oranode1 lib]# /u01/app/11.2.0/grid/crs/install/roothas.pl
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
User ignored Prerequisites during installation
Improper Oracle Grid Infrastructure configuration found on this host
Deconfigure the existing cluster configuration before starting
to configure a new Grid Infrastructure
run '/u01/app/11.2.0/grid/crs/install/roothas.pl -deconfig'
to configure existing failed configuration and then rerun root.sh
[root@oranode1 lib]# /u01/app/11.2.0/grid/crs/install/roothas.pl -deconfig
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Oracle Restart stack is not active on this node
Restart the SIHA stack (use /u01/app/11.2.0/grid/bin/crsctl start has) and retry
Failed to write the checkpoint:'' with status:FAIL.Error code is 256
Failed to verify HA resources
[root@oranode1 lib]# /u01/app/11.2.0/grid/bin/crsctl status res -t
CRS-4639: Could not contact Oracle High Availability Services
CRS-4000: Command Status failed, or completed with errors.

[root@oranode1 lib]# /u01/app/11.2.0/grid/bin/crsctl start has
CRS-4124: Oracle High Availability Services startup failed.
CRS-4000: Command Start failed, or completed with errors.
[root@oranode1 lib]# /u01/app/11.2.0/grid/crs/install/roothas.pl
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
User ignored Prerequisites during installation
Improper Oracle Grid Infrastructure configuration found on this host
Deconfigure the existing cluster configuration before starting
to configure a new Grid Infrastructure
run '/u01/app/11.2.0/grid/crs/install/roothas.pl -deconfig'
to configure existing failed configuration and then rerun root.sh

[root@oranode1 config]# /u01/app/11.2.0/grid/crs/install/roothas.pl -h
Option hahome requires an argument
Usage:
      roothas.pl [-verbose] [-upgrade | -patch]
                 [-paramfile ] [-deconfig] [-force]
                 [-unlock [-hahome ]]

      Options:
       -verbose   Run this script in verbose mode
       -upgrade   Oracle HA is being upgraded from previous version
       -patch     Oracle HA is being upgraded to a patch version
       -paramfile Complete path of file specifying HA parameter values
       -deconfig  To deconfigure Oracle Restart
       -force     To deconfigure Oracle Restart when configuration
                  is in a good condition
       -unlock    Unlock Oracle Restart home
       -hahome    Complete path of Oracle HA home

      If neither -upgrade nor -patch is supplied, a new install is performed

      To see the full manpage for this program, execute:
        perldoc roothas.pl

[root@oranode1 config]# /u01/app/11.2.0/grid/crs/install/roothas.pl -verbose -deconfig -force
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
CRS-4639: Could not contact Oracle High Availability Services
CRS-4000: Command Stop failed, or completed with errors.
CRS-4639: Could not contact Oracle High Availability Services
CRS-4000: Command Delete failed, or completed with errors.
CRS-4544: Unable to connect to OHAS
CRS-4000: Command Stop failed, or completed with errors.
Failure in execution (rc=-1, 0, 没有那个文件或目录) for command /etc/init.d/ohasd deinstall
Successfully deconfigured Oracle Restart stack
[root@oranode1 config]# /u01/app/11.2.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/11.2.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.

To configure Grid Infrastructure for a Stand-Alone Server run the following command as the root user:
/u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.pl


To configure Grid Infrastructure for a Cluster execute the following command:
/u01/app/11.2.0/grid/crs/config/config.sh
This command launches the Grid Infrastructure Configuration Wizard. The wizard also supports silent operation, and the parameters can be passed through the response file that is available in the installation media.

[root@oranode1 config]# /u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.pl
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
User ignored Prerequisites during installation
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 oranode1 successfully pinned.
Adding Clusterware entries to upstart

oranode1     2014/07/19 18:23:02     /u01/app/11.2.0/grid/cdata/oranode1/backup_20140719_182302.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server
[root@oranode1 config]#
[root@oranode1 config]#
[root@oranode1 config]# ps -ef |grep has
grid      3935  3815  3 Jul18 pts/3    00:49:40 /u01/app/11.2.0/grid/jdk/jre/bin/java -Doracle.installer.not_bootstrap=true -DORACLE_HOME=/u01/app/11.2.0/grid -Dsun.java2d.font.DisableAlgorithmicStyles=true -DDISPLAY=localhost:11.0 -DIGNORE_PREREQS= -DJDBC_PROTOCOL=thin -mx128m -classpath /u01/app/11.2.0/grid/assistants/asmca/jlib/asmca.jar:/u01/app/11.2.0/grid/assistants/jlib/assistantsCommon.jar:/u01/app/11.2.0/grid/jlib/ewt3.jar:/u01/app/11.2.0/grid/jlib/ewtcompat-3_3_15.jar:/u01/app/11.2.0/grid/jlib/share.jar:/u01/app/11.2.0/grid/jlib/help4.jar:/u01/app/11.2.0/grid/jlib/jewt4.jar:/u01/app/11.2.0/grid/jlib/oracle_ice5.jar:/u01/app/11.2.0/grid/jlib/kodiak.jar:/u01/app/11.2.0/grid/lib/xmlparserv2.jar:/u01/app/11.2.0/grid/jlib/orai18n.jar:/u01/app/11.2.0/grid/jlib/ldapjclnt11.jar:/u01/app/11.2.0/grid/jlib/netcfg.jar:/u01/app/11.2.0/grid/jlib/ojmisc.jar:/u01/app/11.2.0/grid/jlib/oraclepki103.jar:/u01/app/11.2.0/grid/jlib/opm.jar:/u01/app/11.2.0/grid/jdbc/lib/ojdbc5.jar:/u01/app/11.2.0/grid/jlib/srvm.jar:/u01/app/11.2.0/grid/jlib/srvmhas.jar:/u01/app/11.2.0/grid/jlib/srvmasm.jar:/u01/app/11.2.0/grid/classes:/u01/app/11.2.0/grid/jlib/oemlt.jar:/u01/app/11.2.0/grid/jlib/emca.jar:/u01/app/11.2.0/grid/sysman/jlib/emCORE.jar:/u01/app/11.2.0/grid/oc4j/j2ee/home/oc4j.jar:/u01/app/11.2.0/grid/oc4j/j2ee/home/db_oc4j_deploy.jar:/u01/app/11.2.0/grid/jlib/emConfigInstall.jar:/u01/app/11.2.0/grid/oui/jlib/OraInstaller.jar:/u01/app/11.2.0/grid/oui/jlib/OraPrereq.jar:/u01/app/11.2.0/grid/inventory/prereqs/oui/OraPrereqChecks.jar:/u01/app/11.2.0/grid/oui/jlib/OraPrereqChecks.jar:/u01/app/11.2.0/grid/oui/jlib/OraCheckPoint.jar:/u01/app/11.2.0/grid/jlib/cvu.jar:/u01/app/11.2.0/grid/assistants/asmca/doc/asmcahelp.jar:/u01/app/11.2.0/grid/oc4j/j2ee/home/lib/http_client.jar oracle.sysman.assistants.usmca.Usmca
grid     20932     1  0 17:15 ?        00:00:00 /u01/app/11.2.0/grid/bin/ohasd.bin reboot
grid     21192     1  0 17:32 ?        00:00:00 /u01/app/11.2.0/grid/bin/ohasd.bin reboot
grid     21570     1  0 17:48 ?        00:00:00 /u01/app/11.2.0/grid/bin/ohasd.bin reboot
root     22251     1  0 18:22 ?        00:00:00 /bin/sh /etc/init.d/init.ohasd run
grid     22265     1  6 18:22 ?        00:00:01 /u01/app/11.2.0/grid/bin/ohasd.bin reboot
root     22502 30692  0 18:23 pts/0    00:00:00 grep has


阅读(2509) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~