环境:
OS:Red Hat Linux As 5
DB:11.2.0.1
1.安装grid过程中有报错,当时就忽略了,安装完成后检查has
[grid@hxl bin]$ sh -x /u01/grid/gridsoft/bin/crsctl check has
+ ORA_CRS_HOME=/u01/grid/gridsoft
+ MY_HOST=hxl
+ ORACLE_HOME=/u01/grid/gridsoft
+ export ORA_CRS_HOME ORACLE_HOME
+ '[' -z '' ']'
+ PERL='/u01/grid/gridsoft/perl/bin/perl -I/u01/grid/gridsoft/perl/lib'
+ LOGMSG='/bin/logger -puser.err'
+ case `/bin/uname` in
++ /bin/uname
+ LD_LIBRARY_PATH=/u01/grid/gridsoft/lib
+ export LD_LIBRARY_PATH
+ LD_ASSUME_KERNEL=
+ export LD_ASSUME_KERNEL
+ LOGGER=/usr/bin/logger
+ '[' '!' -f /usr/bin/logger ']'
+ LOGMSG='/usr/bin/logger -puser.err'
+ case $0 in
+ ORASYM=/u01/grid/gridsoft/bin/crsctl.bin
+ case $ORASYM in
+ export ORASYM
+ exec /u01/grid/gridsoft/bin/crsctl.bin check has
CRS-4639: Could not contact Oracle High Availability Services
2.运行crs目录下的roothas.pl
[root@hxl install]#cd /u01/grid/gridsoft/crs/install
[root@hxl install]# ./roothas.pl -deconfig -force -verbose
2012-09-18 20:45:37: Checking for super user privileges
2012-09-18 20:45:37: User has super user privileges
2012-09-18 20:45:37: Parsing the host name
Using configuration parameter file: ./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.
PROCL-26: Error while accessing the physical storage
CRS-4544: Unable to connect to OHAS
CRS-4000: Command Stop failed, or completed with errors.
ACFS-9200: Supported
acfsroot: ACFS-9313: No ADVM/ACFS installation detected.
Successfully deconfigured Oracle Restart stack
3.重新执行root.sh
[root@hxl gridsoft]#cd /u01/grid/gridsoft
[root@hxl gridsoft]# ./root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/grid/gridsoft
Enter the full pathname of the local bin directory: [/usr/local/bin]: y
Creating y directory...
Copying dbhome to y ...
Copying oraenv to y ...
Copying coraenv to y ...
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.sh script.
Now product-specific root actions will be performed.
2012-09-18 20:46:29: Checking for super user privileges
2012-09-18 20:46:29: User has super user privileges
2012-09-18 20:46:29: Parsing the host name
Using configuration parameter file: /u01/grid/gridsoft/crs/install/crsconfig_params
LOCAL ADD MODE
Creating OCR keys for user 'grid', privgrp 'oinstall'..
Operation successful.
CRS-4664: Node hxl successfully pinned.
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
hxl 2012/09/18 20:46:51 /u01/grid/gridsoft/cdata/hxl/backup_20120918_204651.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server
Updating inventory properties for clusterware
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 1568 MB Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
'UpdateNodeList' was successful.
4.查看res信息
[root@hxl gridsoft]# crsctl stat res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
1 OFFLINE OFFLINE
ora.diskmon
1 OFFLINE OFFLINE
5.检查has状态
[root@hxl gridsoft]# crsctl check has
CRS-4638: Oracle High Availability Services is online
6.启动相应资源
[root@hxl gridsoft]# crsctl start res -all
CRS-2672: Attempting to start 'ora.diskmon' on 'hxl'
CRS-2672: Attempting to start 'ora.cssd' on 'hxl'
CRS-2676: Start of 'ora.diskmon' on 'hxl' succeeded
CRS-2676: Start of 'ora.cssd' on 'hxl' succeeded
[root@hxl gridsoft]# crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.cssd ora.cssd.type ONLINE ONLINE hxl
ora.diskmon ora....on.type ONLINE ONLINE hxl
[root@hxl gridsoft]# ps -ef|grep gridsoft
grid 3771 1 0 20:46 ? 00:00:00 /u01/grid/gridsoft/bin/ohasd.bin reboot
grid 4756 1 0 20:47 ? 00:00:00 /u01/grid/gridsoft/bin/orarootagent.bin
grid 4760 1 0 20:47 ? 00:00:00 /u01/grid/gridsoft/bin/cssdagent
grid 4775 1 0 20:47 ? 00:00:00 /u01/grid/gridsoft/bin/ocssd.bin
grid 4788 1 0 20:47 ? 00:00:00 /u01/grid/gridsoft/bin/diskmon.bin -d -f
root 4826 3476 0 20:49 pts/1 00:00:00 grep gridsoft
[grid@hxl install]$ crsctl check has
CRS-4638: Oracle High Availability Services is online
--The End --
阅读(780) | 评论(0) | 转发(0) |