#!/sbin/runscript # Akadia AG, Arvenweg 4, CH-3604 Thun # ---------------------------------------------------------------------- # File: dbconsole # # Autor: Martin Zahn / 10.03.2004 # # Purpose: Startup Oracle Enterprise Manager DB Console # ---------------------------------------------------------------------- depend() { need net after lsnrora } start() { ebegin "Start Oracle Enterprise Manager DB Console" ORACLE_HOME=/opt/oracle/product/10.1.0; export ORACLE_HOME ORACLE_SID=AKI1; export ORACLE_SID ORACLE_OWNER=oracle; export ORACLE_OWNER TNS_ADMIN=/home/oracle/config/10.1.0 export TNS_ADMIN NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1; export NLS_LANG ORA_NLS10=${ORACLE_HOME}/nls/data; export ORA_NLS10 CLASSPATH=${CLASSPATH}:${ORACLE_HOME}/jdbc/lib/classes12.zip LD_LIBRARY_PATH=${ORACLE_HOME}/lib; export LD_LIBRARY_PATH DISABLE_HUGETLBFS=1; export DISABLE_HUGETLBFS su $ORACLE_OWNER -c "$ORACLE_HOME/bin/emctl start dbconsole" su $ORACLE_OWNER -c "$ORACLE_HOME/bin/isqlplusctl start" eend $? "Failed to start Oracle Enterprise Manager DB Console." } stop() { ebegin "Stopping Oracle Enterprise Manager DB Console" ORACLE_HOME=/opt/oracle/product/10.1.0; export ORACLE_HOME ORACLE_SID=AKI1; export ORACLE_SID ORACLE_OWNER=oracle; export ORACLE_OWNER TNS_ADMIN=/home/oracle/config/10.1.0 export TNS_ADMIN NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1; export NLS_LANG ORA_NLS10=${ORACLE_HOME}/nls/data; export ORA_NLS10 CLASSPATH=${CLASSPATH}:${ORACLE_HOME}/jdbc/lib/classes12.zip LD_LIBRARY_PATH=${ORACLE_HOME}/lib; export LD_LIBRARY_PATH DISABLE_HUGETLBFS=1; export DISABLE_HUGETLBFS su $ORACLE_OWNER -c "$ORACLE_HOME/bin/emctl stop dbconsole" su $ORACLE_OWNER -c "$ORACLE_HOME/bin/isqlplusctl stop" eend $? "Failed to stop Oracle Enterprise Manager DB Console." }