add s resource to crs

From: mek s <sidi.bouzid.meknessy_at_gmail.com>
Date: Wed, 6 Jul 2011 19:17:33 +0200
Message-ID: <CAJX5RkRBf0zfzagVNpdyTyz8KjTHsv5krFJgZrtWZE6Hc-t-dA_at_mail.gmail.com>



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 Wed Jul 06 2011 - 12:17:33 CDT

Original text of this message