OraMatt: YABAOracle

Yet Another Blog About Oracle

Start DBConsole

Quick little script to get DBConsole up and running


#!/bin/bash


export DBCONSOLE_STATUS=`emctl status dbconsole | grep running | awk '{ print $6 }'`


if [ -z "${DBCONSOLE_STATUS}" ]
then 
	echo "Not running"
	export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
	export ORACLE_BASE=/u01/app/oracle
	export ORACLE_SID=orcl
	export ORACLE_UNQNAME=orcl
	export ORACLE_DB=orcl
	export PATH=$PATH:$ORACLE_HOME/bin
	# Start DBConsole
	emctl start dbconsole

else
	echo "DBConsole is ${DBCONSOLE_STATUS}"
	exit 1
fi

Leave a comment

Navigation

About

I’m Matt and I do Oracle things.