Oracle Database 11gR1 Enterprise Manager Console Cannot Display in Browser
Folks,
Hello. I am running Oracle Database 11gR1 with Operaing System Oracle Linux 5. I have some issues regarding EM connects with the Database Server as below:
First, the default listener is LISTENER with standard port number 1521 and protocol TCP/IP.
Its corresponding service naming S1 is with port 1521 and protocol TCP/IP and hostname localhost.localdomain.
I run this listener in the following way:
Step 1: [user@localhost bin]./lsnrctl start LISTENER (This command runs sucessfully.)
Step 2: [user@localhost bin] ./sqlplus SYS/SYS as sysdba (This command starts sqlplus sucessfully.)
Step 3: [user@localhost sqldeveloper] ./sqldeveloper.sh (This command invokes SQL Developer sucessfully.)
But when start Enterprise Manager Console, it cannot connect with the Database. I do it in this way:
[user@localhost bin] ./emctl start dbconsole
The above command's output is:
https://localhost.localdomain:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ... ...
When open the link https://localhost.localdomain:1158/em/console/aboutApplication in browser, this message comes up:
The connection to localhost.localdomain: 1158 cannot be established.
Thus, I add Port Number 1158 into both LISTENER and Service Naming S1. I run ./emctl start dbconsole again and get this message:
The connection to localhost.localdomain:1158 was interrupted while the page was loading.
In order to solve the above issue, I create another listener LISTENER2 and another Service Naming S2 with Port Number 1158 and protocol TCP/IP because
in my point of view, each listener only can have one Port Number(1521 or 1158) and its corresponding Service Naming (S1 or S2) need to have the same Port Number and Protocol (TCP/IP).
But when I run [user@localhost bin]./lsnrctl start LISTENER2, this message comes up: the listener supports no service.
From the message, it seems that LISTENER2 cannot work with its corresponding Service Naming S2 with Port 1158.
EM with Port 1158 cannot display in Browser.
My questions are :
First, Is there any relationship needed to be established between listener(LISTENER2) and Service Naming(S2) in order to display EM in Browser ?
Second, how do folks display EM in browser ?
Thanks.