Re: Add s resource to crs failed

From: mek s <sidi.bouzid.meknessy_at_gmail.com>
Date: Fri, 8 Jul 2011 12:55:59 +0200
Message-ID: <CAJX5RkRv0j3s7jsMuSGubPE3WZK2WLgNLz6BtpRdeW6sUAfhrQ_at_mail.gmail.com>



The thing is when I try the command:

sudo -u oracle /opt/11.2.0/grid/crs/script/agentstartup.sh start from grid user it succeed, but, with

-bash-3.2$ crsctl start res crs_dbconsole

CRS-2672: Attempting to start 'crs_dbconsole' on 'adv'
CRS-2674: Start of 'crs_dbconsole' on 'adv' failed
CRS-4000: Command Start failed, or completed with errors.

It fails...

2011/7/8 Oleksandr Denysenko <odenysenko_at_gmail.com>

> Hi.
>
> Try to use as a starting point one of provided action scripts
> Third-Party Applications Using the Script Agent<http://download.oracle.com/docs/cd/E11882_01/rac.112/e16794/resatt.htm#CWADD92006>(
> http://download.oracle.com/docs/cd/E11882_01/rac.112/e16794/resatt.htm#CWADD92006
> )
>
>
> Pay special attention on script return codes.
>
>
> Oleksandr
>
> 08.07.2011 10:20, mek s пишет:
>
>
> In single instance database version is 11.2.0.2, with grid standalone
>>> infrastructure;
>>>
>>>> I am trying to add db console to crs resources, but it's failing.
>>>>
>>>> Any idea?
>>>>
>>>>
>>>> [root_at_adv script]# cat crs_dbconsole.sh
>>>> #!/bin/bash
>>>> #
>>>> # dbcagent.sh - script to start and stop the dbconsole 11gR2 agent
>>>> #
>>>> # description: Oracle 11gR2 database console agent
>>>>
>>>> ORACLE_BASE=/opt/app/oracle
>>>> ORACLE_HOME=/opt/app/oracle/product/11.2.0/db_1
>>>> LIBRARY_PATH=$ORACLE_HOME/lib
>>>> ORACLE_SID=db02
>>>> ORACLE_UNQNAME=$ORACLE_SID
>>>> PATH=$ORACLE_HOME/bin:$PATH
>>>>
>>>> export ORACLE_BASE
>>>> export ORACLE_HOME
>>>> export LD_LIBRARY_PATH
>>>> export ORACLE_SID
>>>> export ORACLE_UNQNAME
>>>> export PATH
>>>>
>>>> agent_start () {
>>>> $ORACLE_HOME/bin/emctl start dbconsole
>>>> }
>>>>
>>>> agent_stop () {
>>>> $ORACLE_HOME/bin/emctl stop dbconsole
>>>> }
>>>>
>>>> agent_check () {
>>>> $ORACLE_HOME/bin/emctl status agent
>>>> }
>>>>
>>>> case "$1" in
>>>> start)
>>>> agent_start
>>>> ;;
>>>> stop)
>>>> agent_stop
>>>> ;;
>>>> check)
>>>> agent_check
>>>> ;;
>>>> clean)
>>>> agent_clean $(ps -C emagent -o pid=)
>>>> ;;
>>>> *)
>>>> echo $"Usage: `basename $0` {start|stop|status|clean}"
>>>> exit 1
>>>> esac
>>>> [root_at_adv script]#
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> [root_at_adv script]# /opt/11.2.0/grid/bin/crsctl add resource
>>>> crs_dbconsole -type local_resource -attr "
>>>> ACTION_SCRIPT=/opt/11.2.0/grid/crs/script/crs_dbconsole.sh,
>>>> > DESCRIPTION=Local DB Console Ressource for DB Console Agent, DEGREE=1,
>>>> ENABLED=1, AUTO_START=restore, START_TIMEOUT=120, UPTIME_THRESHOLD=1h,
>>>> > CHECK_INTERVAL=60, STOP_TIMEOUT=120, SCRIPT_TIMEOUT=120,
>>>> RESTART_ATTEMPTS=3, OFFLINE_CHECK_INTERVAL=60, START_DEPENDENCIES=,
>>>> STOP_DEPENDENCIES="
>>>> [root_at_adv script]#
>>>> [root_at_adv script]# /opt/11.2.0/grid/bin/crsctl stat res -t
>>>>
>>>> --------------------------------------------------------------------------------
>>>> NAME TARGET STATE SERVER
>>>> STATE_DETAILS
>>>>
>>>> --------------------------------------------------------------------------------
>>>> Local Resources
>>>>
>>>> --------------------------------------------------------------------------------
>>>> crs_dbconsole
>>>> OFFLINE OFFLINE adv
>>>> dbcagent
>>>> OFFLINE OFFLINE adv
>>>> ora.LISTENER.lsnr
>>>> ONLINE ONLINE adv
>>>> ora.LISTENER_OAM.lsnr
>>>> ONLINE ONLINE adv
>>>> ora.ons
>>>> OFFLINE OFFLINE adv
>>>>
>>>> --------------------------------------------------------------------------------
>>>> Cluster Resources
>>>>
>>>> --------------------------------------------------------------------------------
>>>> ora.db02.db
>>>> 1 ONLINE ONLINE adv Open
>>>> ora.cssd
>>>> 1 OFFLINE OFFLINE
>>>> ora.diskmon
>>>> 1 OFFLINE OFFLINE
>>>> ora.evmd
>>>> 1 ONLINE ONLINE adv
>>>> [root_at_adv script]#
>>>> [root_at_adv script]# /opt/11.2.0/grid/bin/crsctl start res crs_dbconsole
>>>> CRS-2672: Attempting to start 'crs_dbconsole' on 'adv'
>>>> CRS-2674: Start of 'crs_dbconsole' on 'adv' failed
>>>> CRS-2679: Attempting to clean 'crs_dbconsole' on 'adv'
>>>> CRS-2678: 'crs_dbconsole' on 'adv' has experienced an unrecoverable
>>>> failure
>>>> CRS-0267: Human intervention required to resume its availability.
>>>> CRS-5802: Unable to start the agent process
>>>> CRS-4000: Command Start failed, or completed with errors.
>>>> [root_at_adv script]# /opt/11.2.0/grid/bin/crsctl delete res
>>>> crs_dbconsole
>>>> [root_at_adv script]#
>>>>
>>>>
>>>
>>
>
>

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Jul 08 2011 - 05:55:59 CDT

Original text of this message