Oracle 12c: Oracle Enterprise Manager Express

From Ittichai Chammavanijakul's Wiki
Jump to navigation Jump to search
  • Make sure the listener is up.
[oracle@ol6 ~]$ lsnrctl status

LSNRCTL for Linux: Version 12.1.0.1.0 - Production on 13-AUG-2013 09:49:42

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 12.1.0.1.0 - Production
Start Date                05-AUG-2013 15:59:29
Uptime                    7 days 17 hr. 50 min. 13 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/12.1.0/db_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/ol6/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ol6.localdomain)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=ol6.localdomain)(PORT=5500))(Security=(my_wallet_directory=/u01/app/oracle/admin/cdb12c/xdb_wallet))(Presentation=HTTP)(Session=RAW))
(Session=RAW))
Services Summary...
Service "cdb12c.localdomain" has 1 instance(s).
  Instance "cdb12c", status READY, has 1 handler(s) for this service...
Service "cdb12cXDB.localdomain" has 1 instance(s).
  Instance "cdb12c", status READY, has 1 handler(s) for this service...
Service "pdb12c.localdomain" has 1 instance(s).
  Instance "cdb12c", status READY, has 1 handler(s) for this service...
The command completed successfully
  • Connect to database and make sure that dispatcher init parameter contains PROTOCOL=TCP attribute.
oracle@ol6 ~]$ . oraenv
ORACLE_SID = [cdb12c] ? 
The Oracle base remains unchanged with value /u01/app/oracle


[oracle@ol6 ~]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.1.0 Production on Tue Aug 13 09:46:24 2013

Copyright (c) 1982, 2013, Oracle.  All rights reserved.


Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> show parameter dispatcher

NAME				     TYPE	 VALUE
------------------------------------ ----------- ------------------------------
dispatchers			     string	 (PROTOCOL=TCP) (SERVICE=cdb12c
						 XDB)
max_dispatchers 		     integer
  • Set HTTP port for EM.
SQL> exec DBMS_XDB.setHTTPPort(8080);

PL/SQL procedure successfully completed.

  • Note that new port is added into the listener's listening endpoints.
[oracle@ol6 ~]$ lsnrctl status
:
:
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ol6.localdomain)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=ol6.localdomain)(PORT=5500))(Security=(my_wallet_directory=/u01/app/oracle/admin/cdb12c/xdb_wallet))(Presentation=HTTP)(Session=RAW))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ol6.localdomain)(PORT=8080))(Presentation=HTTP)(Session=RAW))
:
: