Resolving DB Console Issue
Resolving DB Console Issue
unique name value. You can find it with the following query as the SYSTEM user (through
SQL*Plus):
LISTENING
While this blog discusses the hard way to determine whether the DB Console is running, you can
simply open the Windows Services to see whether the DB Console is running. Likewise, if you
know the URL, enter it in your browser. Assuming you dont know how to do either or are just a
gluten for the command line, the rest of this post is important.
You can see your Windows services by typing services.msc in the Start->Run Command field.
That way you dont need to navigate the various links that differ between Windows releases.
Many know that you can check the status of the running DB Console with the emctl utility at the
command line. It lets you find the URL that you should enter for the DB Console in a browser. This
knowledge is where users encounter the problem with %ORACLE_UNQNAME% environment variable
($ORACLE_UNQNAME on Linux or Unix).
For example, running the following command raises an error that instructs you to set
the %ORACLE_UNQNAME%environment variable. Although, it leaves many wondering whats the
right value to enter.
Its not hard to find this information when you know how. While the error message complains
about one environment variable, there are actually two environment values you need to set. They
are: %ORACLE_HOSTNAME%and %ORACLE_UNQNAME%.
You can find them by navigating to the %ORACLE_HOME%\oc4j\j2ee\ folder (or directory). The
file name of the DB Console file tells you the values for these environment variables because
theyre embedded in the files name. A snapshot from Windows Explorer shows them both.
You can set these environment variables as shown below in command shell of Windows (Linux or
Unix users should use terminal), and then successfully run emctl from the command line.
C:\>set ORACLE_HOSTNAME=localhost
C:\>set ORACLE_UNQNAME=orcl
https://localhost:1158/em
The browser will prompt you with a security warning like the following:
Click the Add Exception button and youll see the following Windows dialog.
Having granted the exception, you arrive at the following credential web page. Connect as
the SYSDBA using theSYS users account when you require extraordinary privileges. Doing so,
shows a security risk in the console. You should connect as the SYSTEM user with NORMAL access
generally, as shown below.
The following home page shows after your credentials are validated.
Hope that helps those trying to sort out running the DB Console and finding the
magic %ORACLE_UNQNAME% value. Check this other blog post for instructions to reconfigure OEM.