Pages

Tuesday, July 16, 2013

How to configure the HTTPS Port for EM Database Express 12c

Configuring the HTTPS Port for EM Database Express 12c

If you used dbca to configure your database and enabled to configure also the EM Express you can find the EM Express URL provided by DBCA in the latest GUI screen.
If you forget the URL you can use the following SQL statement to find the port for EM Express:
[oracle@vsi08devpom ~]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.1.0 Production on Tue Jul 16 13:31:31 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> select dbms_xdb_config.gethttpsport() from dual;

DBMS_XDB_CONFIG.GETHTTPSPORT()
------------------------------
              5500
In your web browser enter the EM Express URL in this format to go to the login page: https://hostname:portnumber/em/
When EM Express prompts you for your username and password, log in as a user with DBA privilege (such as SYSTEM or SYS). 

If you want to change the default HTTPS Port for EM Express, that is 5500, you can proceed following these steps (as seen on Oracle documentation):

1. Configure and start the Oracle Net Listener (the listener). You can use lsnrctl to start, stop, and view the status of the listener

2. If the listener is running on a nonstandard port (for example, not 1521), then the init.ora file for the database you want to manage using EM Express must contain a local_listener entry so that the HTTPS port can register with the correct listener. The local_listener entry references a TNSNAMES entry that points to the correct listener. For example:
local_listener=inst1
where inst1 is a TNSNAMES entry defined in tnsnames.ora that points to the listener. For example:
inst1= (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=host_name)(PORT=1234))
(CONNECT_DATA=(SERVICE_NAME=service_name)(SERVER=DEDICATED)))
In this example, 1234 is the nonstandard port on which the listener has been configured to listen.

3. Enable the TCP dispatcher by adding the following entry to the init.ora file for the database you want to manage using EM Express:
dispatchers="(PROTOCOL=TCP)(SERVICE=XDB)"
In my case, because the database SID is CDB001 I have:
SQL> show parameter dispatchers

NAME                     TYPE     VALUE
------------------------------------ ----------- ------------------------------
dispatchers                 string     (PROTOCOL=TCP) (SERVICE=CDB001
                         XDB)
max_dispatchers              integer

4. Restart the database so that the changes made in the init.ora file take effect.

5. Use the PL/SQL procedure DBMS_XDB_CONFIG.SETHTTPSPORT to set the HTTPS port for EM Express. This will update the HTTPS port in the xdbconfig.xml file in the Oracle XML DB Repository. You must connect as SYS / AS SYSDBA to run the procedure. In my case I'm going to change the default port 5500 to 5555:
SQL> exec DBMS_XDB_CONFIG.SETHTTPSPORT(5555);

PL/SQL procedure successfully completed.

6. To access EM Express, enter a URL in the following format in a Web browser: https://hostname:portnumber/em/

Have a look at the following picture:

When prompted for your username and password, log in as a user with DBA privilege (such as SYSTEM).
 
Simply executes the same procedure to set again the default port number to 5500.


That's all.









13 comments:

  1. Hello,

    Please can you let me know how to upgrade EM Database Express 12c to Enterprise Manager Cloud control 12c R3.

    Thanks & regards
    Sunil

    ReplyDelete
  2. Hi Mate!
    did you try to disable SSL in DB Express and connect via http?

    Cheers!

    ReplyDelete
  3. In 2004, Mark saw Rooney in Branson, Mo., where Chris had booked Mickey and Jan for a gig. Mark says he found Chris "already positioning himself" to get access to Rooney's money, having persuaded Mickey and Jan to move out of their "big and beautiful" home in Sherman Oaks and into a "really michael kors sale crappy rental home" in Westlake Village. Moreover, recalls Mark, "He was on the phone shopping for new Porsches. The guy said he needed to check Chris' credit and paperwork and he goes, 'You've got to check my f—ing credit? I'm a f—ing millionaire! What are you talking about?' And michael kors outlet online sale I'm like, 'Wait a minute, what's going on here?' "
    Demi Lovato has a lot to celebrate this week — she debuted the music video for "Confident," released her fifth studio album of the same name, which Billboard described as a "surprisingly compelling listen," and now she's landed a michael kors outlets modeling contract.The "Cool for the Summer" singer has been signed with Wilhelmina Models, the agency announced on Friday. Lovato is in good company at Wilhelmina, joining Nick Jonas, Sydney Sierota, Ellar Coltrane and Empire's Trai Byers as part of the agency's impressive roster."We are so thrilled to represent such 2015 michael kors outlet a sophisticated, confident and talented woman, as Demi," said Alex Vaickus, CEO of Wilhelmina Models, in a release. "She has proved that she is an accomplished singer and actress, and we look forward to seeing her success within the modeling realm."
    Anna Wintour is a busy lady, and her michael kors stores time is money — $25,000 to be exact. That's what it will cost for a meet-and-greet with the legendary Vogue editor in chief at the Conde Nast HQ at 1 World Trade Center in New York City. But don't worry, the money is all for a good cause. The michael kors outlet online meet-and-greet as well as host of goodies from the closet (including Vera Wang and Michael Kors swag) is part of a Charity Buzz auction raising money for the United States Tennis Foundation. Bidding closes on Sept. 14, so make your move quick.
    When Gigi Hadid isn't working the runways michael kors uk and shutting down Internet trolls, she apparently directs music videos in her spare time (because starring in one just won't cut it). Yes, the 20-year-old face of Guess co-directed boyfriend Joe Jonas' new music video, "Cake by the Ocean," a dance-rock track by Jonas' new band, DNCE.Just as the michael kors outlet online store 49.00 outlet song suggests,

    ReplyDelete
  4. Hello,

    how can i get the EM express url to put in my web browser, please?

    Thanks in advance.

    ReplyDelete
  5. The ClipAir for snoring is a very soft, high quality little clip that is inserted in the nose to increase airflow.  It will:
    1. Improve quality of sleep by reducing or eliminate snoring sounds
    2. Improve your mood
    3. Improve the mood of your partner
    4. Prevent you from being sent to the couch by that same partner
    Now the exact solution has been found to get rid of this disease. ClipAir Nasal Dilator is one such device that can be easily fitted in the nose to get rid of snoring all night. There is no need to do any kind of surgery to apply it in the nose. This clip can be easily fitted to the nose. This clip is very soft and comfortable, by applying it, there will be no pain in your nose. Its price is also not much. you can buy ClipAir Nasal Dilator from our website as we are authorised dealer available in Canada & USA. If you or your partner has this type of disease, you can buy it from here
    snoring mouth gaurd
    how to stop snoring
    snoring nose clip
    anti snoring solution
    snoring remedies
    clip air nasal dilator
    nasal dilator
    anti snoring device
    snoring solutions

    ReplyDelete