MacLochlainns Weblog

Michael McLaughlin's Technical Blog

Site Admin

Reconfigure Oracle EM

with 186 comments

One mistake can lead to a lot of work. When you’ve installed Oracle Database 11g, you can’t change the Windows Hostname without reinstalling Oracle Enterprise Manager. If you’re trying to resolve an ORACLE_UNQNAME problem, check another post of mine for that answer.

These are the steps:

1. Change the %ORACLE_HOME%\network\admin\listener.ora file from an IP number to machine name.

2. Change the %ORACLE_HOME%\network\admin\tnsnames.ora file from an IP number to a machine name.

3. Change the C:\WINDOWS\System32\drivers\etc\hosts file by adding this line beneath the default localhost line (for the new Hostname value):

127.0.0.1       localhost
172.16.113.128  mclaughlin11g mclaughlin11g.techtinker.com

4. Change the Windows hostname by navigating: Start > Control Panel > System (classic view) from the random assignment of VMWare Fusion.

5. Reboot the machine to set the networking. Unlock the SYSMAN account because it ensures that emca can drop it and all dependencies. Then, drop the em configuration with the following commands.

C:\Data> set ORACLE_SID=orcl
C:\Data> emca -deconfig dbcontrol db -repos drop

6. You’ll receive the following prompts, enter the Oracle SID and Port number without double quotes but you must enter all passwords with double quotes (at least in Oracle Database 11g):

Oracle Database 11gR1

STARTED EMCA at Jul 13, 2008 8:26:42 AM
EM Configuration Assistant, Version 11.1.0.5.0 Production
Copyright (c) 2003, 2005, Oracle.  All rights reserved.
 
Enter the following information:
Database SID: orcl
Listener port number: 1521
Password for SYS user:
Password for SYSMAN user:
Password for SYSMAN user:
Do you wish to continue? [yes(Y)/no(N)]: y

Oracle Database 11gR2

STARTED EMCA at Sep 3, 2012 7:40:07 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle.  All rights reserved.
 
Enter the following information:
Database SID: orcl
Listener port number: 1521
Password for SYS user:
Password for SYSMAN user:
 
Do you wish to continue? [yes(Y)/no(N)]: y

7. If you failed to unlock the SYSMAN account in step #5, you should drop the SYSMAN user manually. If you don’t drop the SYSMAN schema, you’ll raise an error when you try to recreate it:

CONFIG: ORA-20001: SYSMAN already EXISTS..
ORA-06512: at line 17
 
oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-20001: SYSMAN already EXISTS..
ORA-06512: at line 17

The Java stack trace will look like this, more or less based on version and release:

at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1530)
at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeScript(SQLEngine.java:880)
at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java
at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java
at oracle.sysman.emcp.EMReposConfig.createRepository(EMReposConfig.java:492)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:218)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:147)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:222)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:535)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1215)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:519)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:468)

Drop the user and dependent on version a few other objects, like:

DROP USER sysman CASCADE;
DROP PUBLIC SYNONYM setemviewusercontext;
DROP ROLE mgmt_user;
DROP PUBLIC SYNONYM mgmt_target_blackouts;
DROP USER mgmt_view;

8. You can then create the em environment with the following syntax:

C:\Data> emca -config dbcontrol db -repos create

9. Again, you’ll receive the following prompts, enter the Oracle SID and Port number without double quotes but you must enter all passwords with double quotes (at least in Oracle Database 11g):

STARTED EMCA at Jul 13, 2008 8:28:48 AM
EM Configuration Assistant, Version 11.1.0.5.0 Production
Copyright (c) 2003, 2005, Oracle.  ALL rights reserved.
 
Enter the following information:
DATABASE SID: orcl
Listener port NUMBER: 1521
Password FOR SYS USER:
Password FOR DBSNMP USER:
Password FOR SYSMAN USER:
Password FOR SYSMAN USER: Email address FOR notifications (optional):
Outgoing Mail (SMTP) server FOR notifications (optional):
-----------------------------------------------------------------
 
You have specified the following settings
 
DATABASE ORACLE_HOME ................ C:\app\Administrator\product\11.1.0\db_1
 
LOCAL hostname ................ mclaughlin11g
Listener port NUMBER ................ 1521
DATABASE SID ................ orcl
Email address FOR notifications ...............
Outgoing Mail (SMTP) server FOR notifications ...............
 
-----------------------------------------------------------------
 
Do you wish TO continue? [yes(Y)/no(N)]: y

A note to me, remember haste makes waste. I’m just glad that rebuilding the MarkLogic server was easy.

Written by maclochlainn

July 13th, 2008 at 9:40 am

Posted in Uncategorized

186 Responses to 'Reconfigure Oracle EM'

Subscribe to comments with RSS or TrackBack to 'Reconfigure Oracle EM'.

  1. Great, this works fine for me. Thanks a lot

    Shahul

    13 Jan 09 at 4:15 am

  2. Thanks for this post! It helped me a lot!

    Rob Cilissen

    16 Jan 09 at 8:18 am

  3. […] Dank aan: MacLochlainns Weblog […]

  4. Thank you so much. It worked for me. 🙂

    Mohammed Yehia

    1 Feb 09 at 1:44 am

  5. […] Another method from MacLochLainns Weblog: […]

  6. I followed the steps but the EM is still not configured.
    Server: error creating the repository
    When I see the log i got this error:
    Oracle.sysman.emcp.exception.EMConfigException: Error creating the repository

    Waqas

    6 May 09 at 2:37 am

  7. I’d need to know what OS, what database version, et cetera to try and help you. Can you send that information?

    maclochlainn

    6 May 09 at 11:32 am

  8. Dear Sir,

    I followed your steps as described above, but no succes. I am running Oracle EBS R12 on a Windows XP plattform, I am able to drop the repository succesfully but when I try to create is gives the following error:

    Check if repos user already exists.

    OLD   6:    WHERE username=UPPER('&EM_REPOS_USER');
    NEW   6:    WHERE username=UPPER('SYSMAN');
    OLD   8:   IF ( '&EM_CHECK_TYPE' = 'EXISTS') THEN
    NEW   8:   IF ( 'NOT_EXISTS' = 'EXISTS') THEN
    OLD  11:       raise_application_error(-20000, '&EM_REPOS_USER does not exists..');
    NEW  11:       raise_application_error(-20000, 'SYSMAN does not exists..');
    OLD  14:   ELSIF ( '&EM_CHECK_TYPE' = 'NOT_EXISTS' ) THEN
    NEW  14:   ELSIF ( 'NOT_EXISTS' = 'NOT_EXISTS' ) THEN
    OLD  17:       raise_application_error(-20001, '&EM_REPOS_USER already exists..');
    NEW  17:       raise_application_error(-20001, 'SYSMAN already exists..');
    OLD  21:       raise_application_error(-20002, 'Invalid Check type &EM_CHECK_TYPE');
    NEW  21:       raise_application_error(-20002, 'Invalid Check type NOT_EXISTS');
    DECLARE
    *
    ERROR at line 1:
    ORA-20001: SYSMAN already EXISTS..
    ORA-06512: at line 17

    When i try to launch EM (knowing dat the repository is dropped) the following happens:

    G:oraclePRODdbtech_st10.2.0BIN> emctl start dbconsole
    OC4J Configuration issue. G:oraclePRODdbtech_st10.2.0/oc4j/j2ee/OC4J_DBConsole_EEBSE01_PROD not found.

    But as I said if I try to create the repository is doesn’t work.

    Could you point out what’s wrong?

    Michael: Check here for what I think you’re looking for as an answer.

    Best regard ans thanx in advance,

    Yours sincerely Maruti Bhanot

    Maruti Bhanot

    16 May 09 at 1:06 pm

  9. You’re not working with OEM. When you’ve installed the Oracle EBS R12, it’s the Oracle Applications Enterprise Manager (OAEM). It has different dependencies because it often leverages Java repackaged by the Oracle Applications development group. It appears that you might need some grants between scheme, but I’m not sure which ones. I’ve got this in a test plan for a situation like that but the project’s not scheduled until June.

    maclochlainn

    16 May 09 at 3:33 pm

  10. Thanx for your relpy!

    Yours sincerely Maruti Bhanot

    Maruti Bhanot

    18 May 09 at 3:01 pm

  11. Hi,
    I have oracle 10g installed on my system, but due to some IT policies they, IT, changed the computer host name!! I changed the host name in listener.ora and tnsnames.ora, and thereby SQL*Plus works. Unfortunately, I am not able to run enterprise database manager control when following the steps in the post above.

    Milind Pangarkar

    5 Jun 09 at 5:16 am

  12. There’s really not a lot of information to go on in your comment. However, based on the fact that the IT department changed the machine hostname, I’ll make some assumptions. Assuming that you have an account that has administrative rights on the local machine but not within the Windows domain, Oracle may have been installed using the Administrator account rather than yours. You can confirm if this or similar problems exist by attempting to log in as the privileged user:

    C:> sqlplus '/ as sysdba'

    If it says that you lack permissions to run that command, then your account doesn’t have adequate permissions. By the way, the single quotes aren’t necessary on newer releases of Oracle.

    Second assumption, the IT department has a license monitoring software installed on your PC. This is frequently the case with IT governance policies. I’d suggest that you disable the software because they interfere with Oracle’s operation on Windows. Hope this helps, but if not could you provide some more detail?

    maclochlainn

    7 Jun 09 at 4:17 pm

  13. I have 2 network cards in use on my server. The server belongs to a workgroup, but the 2nd network connection connects to a different network. When I run this procedure the local hostname returned to me is the ip address of the 2nd network card, but I desire the ip address of the 1st network card or either the alias I created in the hosts file.

    The line in my hosts file is this
    150.1.1.50 SPM2_L2_ONLINE APPSERVER

    In my listener.ora and my tnsnames.ora my alias APPSERVER is used. There is no entry in the hosts file for the ip address belonging to the 2nd network card. What am I doind wrong?

    P Hunt

    22 Jun 09 at 3:36 pm

  14. I was able to get the correct ip address to be listed as the local hostname, but now I have a new error. Here is the part of my error log where things appear to start going wrong

    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.util.OUIInventoryUtil getInstallInventory
    CONFIG: Error accessing inventory.
    oracle.sysman.oii.oiit.OiitTargetLockNotAvailableException: The inventory C:Program FilesOracleInventory cannot be read since it is being written to by another session. Please close all the other(write) sessions for accessing inventory.
     
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Homes to scan for used ports: [D:appAdministratorproduct11.1.0db_1]
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Searching all DBConsole instances for used ports under ORACLE_HOME D:appAdministratorproduct11.1.0db_1
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Marking JMS port: null from D:appAdministratorproduct11.1.0db_1oc4jj2eeOC4J_DBConsole
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Marking RMI port: null from D:appAdministratorproduct11.1.0db_1oc4jj2eeOC4J_DBConsole
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Marking HTTP port: null from D:appAdministratorproduct11.1.0db_1oc4jj2eeOC4J_DBConsole
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.util.PortManager getAgentPort
    CONFIG: Cannot parse EMD_URL correctly. No port identified
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Marking Agent port: null from D:appAdministratorproduct11.1.0db_1sysmanconfigemd.properties
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.util.PortManager markAllUsedPorts
    CONFIG: Cannnot parse EMD_URL correctly. No port identified
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.util.FileUtil getProperties
    CONFIG: Error reading file D:appAdministratorproduct11.1.0db_1installstaticports.ini
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.util.PortManager getFreePorts
    CONFIG: D:appAdministratorproduct11.1.0db_1:150.1.1.50:null:orcl:{}:null:{DBCONTROL_HTTP_PORT=1158, RMI_PORT=5520, JMS_PORT=5540, AGENT_PORT=3938}
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter AGENT_PORT_orcl.
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: AGENT_PORT_orcl value: 3938
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter DBCONTROL_HTTP_PORT_orcl.
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: DBCONTROL_HTTP_PORT_orcl value: 1158
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter JMS_PORT_orcl.
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: JMS_PORT_orcl value: 5540
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter RMI_PORT_orcl.
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.ParamsManager setParam
    CONFIG: Setting param: RMI_PORT_orcl value: 5520
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.EMDBPreConfig getFreePorts
    CONFIG: Ports assigned for SID: orcl : {DBCONTROL_HTTP_PORT=1158, RMI_PORT=5520, JMS_PORT=5540, AGENT_PORT=3938}
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.util.ClusterUtil getLocalNode
    CONFIG: isLocalNodeDone: true localNode: null
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.EMDBPreConfig copyAgentTimeStampFile
    CONFIG: File: D:appAdministratorproduct11.1.0db_1150.1.1.50_orclsysmanemdagntstmp.txt:150.1.1.50 does not exists.
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine connecting with SID: orcl, oracleHome: D:appAdministratorproduct11.1.0db_1, and user: SYS
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: SQLEngine created successfully and connected
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.EMReposConfig createRepository
    CONFIG: Spooling to D:appAdministratorcfgtoollogsemcaorclemca_repos_create_2009_06_22_17_51_11.log
    Jun 22, 2009 5:51:11 PM oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    Jun 22, 2009 5:52:43 PM oracle.sysman.emcp.EMReposConfig createRepository
    CONFIG: ORA-00955: name is already used by an existing object
     
    oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-00955: name is already used by an existing object
     
    	at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1530)
    	at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeScript(SQLEngine.java:880)
    	at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:270)
    	at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:311)
    	at oracle.sysman.emcp.EMReposConfig.createRepository(EMReposConfig.java:492)
    	at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:218)
    	at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:147)
    	at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:222)
    	at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:535)
    	at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1215)
    	at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:519)
    	at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:468)
    Jun 22, 2009 5:52:43 PM oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Error creating the repository
    Jun 22, 2009 5:52:43 PM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Refer to the log file at D:appAdministratorcfgtoollogsemcaorclemca_repos_create_.log for more details.
    Jun 22, 2009 5:52:43 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error creating the repository
    Refer to the log file at D:appAdministratorcfgtoollogsemcaorclemca_2009_06_22_17_50_34.log for more details.
    Jun 22, 2009 5:52:43 PM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace: 
    oracle.sysman.emcp.exception.EMConfigException: Error creating the repository
    	at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:230)
    	at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:147)
    	at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:222)
    	at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:535)
    	at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1215)
    	at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:519)
    	at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:468)

    Any help would be appreciated.

    P Hunt

    23 Jun 09 at 7:36 am

  15. The errors in general, and the log throwing an ORA-00955 error may indicate that you neeed to manually drop the SYSMAN schema after deconfiguring Oracle EM. Have you tried a manual drop of the SYSMAN schema (step #7)?

    The other error that’s interesting is the concurrency control lock. Is it possible that you’ve two domains on the single box? I ask because Oracle lives in a single domain on Windows, and when you’ve two or more domains permissions and access to components differ substantially. Can you let me know if you’ve got two domains on that server?

    maclochlainn

    23 Jun 09 at 9:43 am

  16. I did do the manual drop of sysman. I looked at the emca_repos_create… file and saw that it was complaining about some MGMT% synonyms already existing so it could not create the synonym. I have been dropping these synonyms one by one to see if I can get somewhere. I saw a solution on another website where all the synonyms had to be dropped manually in addition to the sysman user. I do not know if I have 2 domains on the server. What I do know is the server belongs to a workgroup. The ip address for the 1st network card corresponds to this workgroup. The 2nd network card is used for level 3 access. It’s ip address belongs to the level 3 network which I assume is part of a domain.

    P Hunt

    23 Jun 09 at 1:38 pm

  17. Which NIC does 150.1.1.50 belong to, the primary or secondary? Which NIC should the EM run on?
    You’re installing as the Administrator user account from the logs, but just want to confirm that?
    Synonyms creation failure shouldn’t cause a fatal failure because they’re created to mirror the old ones, they just won’t translate in between rebuilding SYSMAN. Did you’re log indicate that the process stopped completed at those synonym creation statements?
    What’s in this or a more recent equivalent log file: D:\app\Administrator\cfgtoollogs\emca\orcl\emca_2009_06_22_17_50_34.log?

    maclochlainn

    23 Jun 09 at 10:49 pm

  18. 150.1.1.50 belongs to network connection 1. This is where the EM should run. Yes the install is being done as administrator. Here is the last line of file emca_repos_create_2009_06_23_16_29_17.log

    CREATE PUBLIC SYNONYM MGMT_USER FOR MGMT_USER
                          *
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
     
    This is where the program stops.  Here is the accompanying file emca_2009_06_23_16_29_03.log (well the portion where the error begins)
     
    CONFIG: ORA-00955: name is already used by an existing object
     
    oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-00955: name is already used by an existing object
     
    	at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1530)
    	at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeScript(SQLEngine.java:880)
    	at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:270)
    	at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:311)
    	at oracle.sysman.emcp.EMReposConfig.createRepository(EMReposConfig.java:492)
    	at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:218)
    	at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:147)
    	at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:222)
    	at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:535)
    	at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1215)
    	at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:519)
    	at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:468)
    Jun 23, 2009 4:30:43 PM oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Error creating the repository
    Jun 23, 2009 4:30:43 PM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Refer to the log file at D:appAdministratorcfgtoollogsemcaorclemca_repos_create_.log for more details.
    Jun 23, 2009 4:30:43 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error creating the repository
    Refer to the log file at D:appAdministratorcfgtoollogsemcaorclemca_2009_06_23_16_29_03.log for more details.
    Jun 23, 2009 4:30:43 PM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace: 
    oracle.sysman.emcp.exception.EMConfigException: Error creating the repository
    	at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:230)
    	at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:147)
    	at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:222)
    	at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:535)
    	at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1215)
    	at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:519)
    	at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:468)

    I have a concern that if I do get this working, my dual network cards will cause me a problem. When I try to use the emctl start command, it constructs a folder name with the ip address of network connection 2. Perhaps I’ll address this if I get to this point.

    P Hunt

    24 Jun 09 at 7:39 am

  19. Worked perfectly for me !!
    (was necessary after 10g XE upgraded to full version 10g 10.2.0.4 on another machine)

    Reinhold Seifert

    29 Jun 09 at 5:50 am

  20. I have recreated OEM configuration. Oracle 11g dbconsole is running. OEM is running but when I am trying to open database control on internet explorer, it is not displaying the page.

    Rajiv

    9 Jul 09 at 4:37 pm

  21. Have you tried Firefox? What’s your URL that;s failing?

    maclochlainn

    9 Jul 09 at 6:08 pm

  22. Hello,

    I posted a while ago about EM on Windows enviroment which wasn’t working for me, I switched to CentOS 5.3 running my R12 and the following steps worked for me:

    Configure OEM Database Control on R12

    Source enviroment the of the database tier. Env. file location is in my case /ERP/db/tech_st/11.1.0/

    [oracle@localhost 11.1.0]$ . VIS_localhost.env
     
    [oracle@localhost bin]$ ./emca -config dbcontrol db -repos recreate -SID VIS -PORT 1521 -DBCONTROL_HTTP_PORT 5500
     
    STARTED EMCA at Aug 13, 2009 1:57:51 PM
    EM Configuration Assistant, Version 11.1.0.7.0 Production
    Copyright (c) 2003, 2005, Oracle.  All rights reserved.
     
    Enter the following information:
    Password for SYSMAN user: Email address for notifications (optional): 
    Outgoing Mail (SMTP) server for notifications (optional): 
    -----------------------------------------------------------------
     
    You have specified the following settings
     
    Database ORACLE_HOME ................ /ERP/db/tech_st/11.1.0
     
    Local hostname ................ localhost.localdomain
    Listener port number ................ 1521
    Database SID ................ VIS
    Email address for notifications ............... 
    Outgoing Mail (SMTP) server for notifications ............... 
    -----------------------------------------------------------------
    Do you wish to continue? [yes(Y)/no(N)]: Y
    Aug 13, 2009 2:01:03 PM oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at /ERP/db/tech_st/11.1.0/cfgtoollogs/emca/VIS/emca_2009_08_13_13_57_51.log.
    Aug 13, 2009 2:01:14 PM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Dropping the EM repository (this may take a while) ...
    Aug 13, 2009 2:18:41 PM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully dropped
    Aug 13, 2009 2:18:42 PM oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    Aug 13, 2009 2:51:16 PM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully created
    Aug 13, 2009 2:51:48 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
    INFO: Uploading configuration data to EM repository (this may take a while) ...
    Aug 13, 2009 2:55:52 PM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Uploaded configuration data successfully
    Aug 13, 2009 2:56:11 PM oracle.sysman.emcp.util.DBControlUtil configureSoftwareLib
    INFO: Software library configured successfully.
    Aug 13, 2009 2:56:11 PM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
    INFO: Deploying Provisioning archives ...
    Aug 13, 2009 2:56:54 PM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
    INFO: Provisioning archives deployed successfully.
    Aug 13, 2009 2:56:54 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
    INFO: Securing Database Control (this may take a while) ...
    Aug 13, 2009 2:57:43 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
    INFO: Database Control secured successfully.
    Aug 13, 2009 2:57:43 PM oracle.sysman.emcp.util.DBControlUtil startOMS
    INFO: Starting Database Control (this may take a while) ...
    Aug 13, 2009 3:02:16 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
    INFO: Database Control started successfully
    Aug 13, 2009 3:02:17 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
    INFO: >>>>>>>>>>> The Database Control URL is https://localhost.localdomain:5500/em <<<<<<<<<<<
    Aug 13, 2009 3:02:53 PM oracle.sysman.emcp.EMDBPostConfig invoke
    WARNING: 
    ************************  WARNING  ************************
     
    Management Repository has been placed in secure mode wherein Enterprise Manager data will be encrypted.  The encryption key has been placed in the file: /ERP/db/tech_st/11.1.0/localhost.localdomain_VIS/sysman/config/emkey.ora.   Please ensure this file is backed up as the encrypted data will become unusable if this file is lost. 
     
    ***********************************************************
    Enterprise Manager configuration completed successfully
    FINISHED EMCA at Aug 13, 2009 3:02:53 PM

    Afterwards, open a browser and enter:

    https://<localhost>.<localdomain>:5500/em/console/

    Accept te certificate and there you go….

    I got the main info of this site:

    http://orafin.blogspot.com/2008/09/enable-database-enterprise-manager.html

    So it is working now fine for me, perhaps on a Windows enviroment if you use de Windows commands it should perhaps work, not tried still…

    Regards,

    Maruti

    Maruti Bhanot

    14 Aug 09 at 4:02 am

  23. This was a neat and clear help. thanks a lot.

    Rakesh Vyas

    22 Sep 09 at 1:10 am

  24. Thanks !!!
    I didn’t see see the forest for the trees.
    ETC/host is the solution for my challenges with the console.
    This article is short and to the point
    great

    Gerd

    28 Sep 09 at 1:48 am

  25. thanks for your help!
    but i have another error after the reconfiguration of em: Unable to determine local host from URL REPOSITORY_URL=http://ORACLE-LAPTOP:%EM_UPLOAD_PORT%/em/upload/
    could you help me again please!!!!!!

    Patricia

    21 Oct 09 at 8:13 am

  26. The public synonym for SYSMAN objects will not be dropped although the user is drooped by using the command:

    DROP USER sysman CASCADE;

    After user is dropped, all the public synonyms that tie to it hv to be dropped manually.

    SELECT 'drop public synonym ' || a.object_name || ';'
    FROM all_objects a
    WHERE a.object_type='SYNONYM'
    AND a.owner = 'PUBLIC'
    AND a.status = 'INVALID'

    yapkang

    7 Jan 10 at 9:53 pm

  27. I have a problem about reconfiguration of ports
    When I execute emca -config dbcontrol db, the password of SYS is accepted.
    When I execute emca -reconfig ports -…… the password of SYS (the same as before of course) is rejected.
    Could you help me with this issue? I’m installing Oracle 11g on Windows 7 (32bit).
    Thanks a lot.

    Marcela

    10 Jan 10 at 5:36 pm

  28. Thanks you too much sir its really help full, long live DBA

    saif

    16 Jan 10 at 11:56 pm

  29. Thank you, thank you, thank you.

    dto

    22 Jan 10 at 9:09 am

  30. Marcela, What’s the exact error message that you get?

    maclochlainn

    22 Jan 10 at 10:35 am

  31. Hi;

    Thanks for sharing this information! I was struggling to reconfigure em control and this has helped me make some progress.

    I was able to deconfigure using emca.

    The sysman user and other ‘residuals’ were also all gone. (maybe this got more thorough in 11.2.0).

    I am having no luck when I try to reconfigure however. Despite the Java exception messages you’ll see below, the database is happily up and running. Any ideas would be appreciated.

    Thank you, Jack

    C:appproduct11.2.0dbhome_1BIN>set
    ALLUSERSPROFILE=C:Documents and SettingsAll Users
    APPDATA=C:Documents and SettingsAdministratorApplication Data
    CLIENTNAME=Console
    CommonProgramFiles=C:Program FilesCommon Files
    COMPUTERNAME=JACKXPPRO
    ComSpec=C:WINDOWSsystem32cmd.exe
    FP_NO_HOST_CHECK=NO
    HOMEDRIVE=C:
    HOMEPATH=Documents and SettingsAdministrator
    LOGONSERVER=JACKXPPRO
    NUMBER_OF_PROCESSORS=2
    oracle_home=c:appproduct11.2.0dbhome_1
    oracle_sid=orcl
    ORACLE_UNQNAME=orcl
    OS=Windows_NT
    Path=C:appproduct11.2.0dbhome_1bin;C:appproduct11.1.0db_1bin;C:WINDOWSsystem32;C:WINDOW
    S;C:WINDOWSSystem32Wbem
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 6, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=1706
    ProgramFiles=C:Program Files
    PROMPT=$P$G
    SESSIONNAME=Console
    SystemDrive=C:
    SystemRoot=C:WINDOWS
    TEMP=C:DOCUME~1ADMINI~1LOCALS~1Temp
    TMP=C:DOCUME~1ADMINI~1LOCALS~1Temp
    TNS_ADMIN=C:appproduct11.2.0db_home1networkadmin
    USERDOMAIN=JACKXPPRO
    USERNAME=Jack Reid
    USERPROFILE=C:Documents and SettingsAdministrator
    windir=C:WINDOWS
     
    C:appproduct11.2.0dbhome_1BIN> emca -config dbcontrol db -repos create
     
    STARTED EMCA at May 6, 2010 10:43:03 PM
    EM Configuration Assistant, Version 11.2.0.0.2 Production
    Copyright (c) 2003, 2005, Oracle.  All rights reserved.
     
    Enter the following information:
    Database SID: orcl
    Exception in thread "main" oracle.sysman.emcp.exception.DatabaseUnavailableException: Database instance unavailable.
            at oracle.sysman.emcp.DatabaseChecks.throwDBUnavailableException(DatabaseChecks.java:151)
            at oracle.sysman.emcp.DatabaseChecks.checkDbAvailabilityImpl(DatabaseChecks.java:144)
            at oracle.sysman.emcp.DatabaseChecks.checkDbAvailability(DatabaseChecks.java:163)
            at oracle.sysman.emcp.DatabaseChecks.getDbServiceName(DatabaseChecks.java:582)
            at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1272)
            at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:574)
            at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:522)
     
    C:appproduct11.2.0dbhome_1BIN>

    Jack

    6 May 10 at 8:46 pm

  32. thank you very much. It did not require me to drop any users/schemas.

    sushant

    9 May 10 at 8:43 pm

  33. Hi Maclochlainn,

    Because of some replication problem my production server has gone to hanging mode, so, I force to restart my production server. After restarting every thing working fine except my OEM unable to restart. I followed your steps, but at the end I am getting “SEVERE: Error starting Database Control”. Checked the log file, repository created successfully, but unable to start the repository. mailing you end part of the log file. Please help me to start the OEM.

    Creating directories...
    Creating targets.xml...
    Done.
     
    May 29, 2010 9:05:18 AM oracle.sysman.emcp.EMAgentConfig instantiateEMConfigFiles
    CONFIG: Successfully deployed state dirs for oracledb.jll.com
    May 29, 2010 9:05:18 AM oracle.sysman.emcp.EMAgentConfig performConfiguration
    CONFIG: Successfully updated agent config files
    May 29, 2010 9:05:18 AM oracle.sysman.emcp.util.FileUtil _copyFile
    CONFIG: Copying file C:oracleproduct10.2.0db_1sysmanconfigemd.properties.emca.tmp to C:oracleproduct10.2.0db_1sysmanconfigemd.properties
    May 29, 2010 9:05:18 AM oracle.sysman.emcp.util.FileUtil backupFile
    CONFIG: The original file C:oracleproduct10.2.0db_1sysmanconfigemd.properties.emca.tmp has been copied to C:oracleproduct10.2.0db_1sysmanconfigemd.properties
    May 29, 2010 9:05:18 AM oracle.sysman.emcp.util.FileUtil _copyFile
    CONFIG: Copying file C:oracleproduct10.2.0db_1sysmanemdtargets.xml.emca.tmp to C:oracleproduct10.2.0db_1sysmanemdtargets.xml
    May 29, 2010 9:05:18 AM oracle.sysman.emcp.util.FileUtil backupFile
    CONFIG: The original file C:oracleproduct10.2.0db_1sysmanemdtargets.xml.emca.tmp has been copied to C:oracleproduct10.2.0db_1sysmanemdtargets.xml
    May 29, 2010 9:05:18 AM oracle.sysman.emcp.util.ClusterUtil getLocalNode
    CONFIG: isLocalNodeDone: true localNode: null
    May 29, 2010 9:05:18 AM oracle.sysman.emcp.util.ClusterUtil getLocalNode
    CONFIG: isLocalNodeDone: true localNode: null
    May 29, 2010 9:05:18 AM oracle.sysman.emcp.util.PortManager addPortEntries
    CONFIG: Updating file C:oracleproduct10.2.0db_1installportlist.ini ...
    May 29, 2010 9:05:18 AM oracle.sysman.emcp.util.FileUtil _copyFile
    CONFIG: Copying file C:oracleproduct10.2.0db_1installportlist.ini to C:oracleproduct10.2.0db_1installportlist.ini.emca.util.tmp
    May 29, 2010 9:05:18 AM oracle.sysman.emcp.util.FileUtil backupFile
    CONFIG: The original file C:oracleproduct10.2.0db_1installportlist.ini has been copied to C:oracleproduct10.2.0db_1installportlist.ini.emca.util.tmp
    May 29, 2010 9:05:18 AM oracle.sysman.emcp.util.PortManager addPortEntries
    CONFIG: Removing existing entries from portlist.ini Enterprise Manager Console HTTP Port (JLLDB) = 1158
    May 29, 2010 9:05:19 AM oracle.sysman.emcp.util.PortManager addPortEntries
    CONFIG: Writing the selected ports to portlist.ini
    May 29, 2010 9:05:19 AM oracle.sysman.emcp.util.FileUtil _copyFile
    CONFIG: Copying file C:oracleproduct10.2.0db_1installportlist.ini.emca.util.tmp to C:oracleproduct10.2.0db_1installportlist.ini
    May 29, 2010 9:05:19 AM oracle.sysman.emcp.util.PortManager addPortEntries
    CONFIG: File C:oracleproduct10.2.0db_1installportlist.ini is successfully updated
    May 29, 2010 9:05:19 AM oracle.sysman.emcp.util.PortManager addPortEntries
    CONFIG: Updating file C:oracleproduct10.2.0db_1installportlist.ini ...
    May 29, 2010 9:05:19 AM oracle.sysman.emcp.util.FileUtil _copyFile
    CONFIG: Copying file C:oracleproduct10.2.0db_1installportlist.ini to C:oracleproduct10.2.0db_1installportlist.ini.emca.util.tmp
    May 29, 2010 9:05:19 AM oracle.sysman.emcp.util.FileUtil backupFile
    CONFIG: The original file C:oracleproduct10.2.0db_1installportlist.ini has been copied to C:oracleproduct10.2.0db_1installportlist.ini.emca.util.tmp
    May 29, 2010 9:05:19 AM oracle.sysman.emcp.util.PortManager addPortEntries
    CONFIG: Removing existing entries from portlist.ini Enterprise Manager Agent Port (JLLDB) = 3938
    May 29, 2010 9:05:19 AM oracle.sysman.emcp.util.PortManager addPortEntries
    CONFIG: Writing the selected ports to portlist.ini
    May 29, 2010 9:05:19 AM oracle.sysman.emcp.util.FileUtil _copyFile
    CONFIG: Copying file C:oracleproduct10.2.0db_1installportlist.ini.emca.util.tmp to C:oracleproduct10.2.0db_1installportlist.ini
    May 29, 2010 9:05:19 AM oracle.sysman.emcp.util.PortManager addPortEntries
    CONFIG: File C:oracleproduct10.2.0db_1installportlist.ini is successfully updated
    May 29, 2010 9:05:19 AM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
    May 29, 2010 9:05:19 AM oracle.sysman.emcp.util.DBControlUtil startOMS
    INFO: Starting Database Control (this may take a while) ...
    May 29, 2010 9:05:19 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: cmdType: 0
    May 29, 2010 9:05:19 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Starting Windows service...OracleDBConsoleJLLDB
    May 29, 2010 9:05:19 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:05:29 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:05:39 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:05:49 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:05:59 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:06:09 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:06:19 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:06:29 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:06:39 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:06:49 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:06:59 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:07:09 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:07:19 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:07:29 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:07:39 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:07:49 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:07:59 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:08:09 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:08:19 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:08:29 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:08:39 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:08:49 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:08:59 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:09:09 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:09:19 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:09:29 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:09:39 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:09:49 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:09:59 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:10:09 AM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleJLLDB' to fully start
    May 29, 2010 9:10:19 AM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error starting Database Control
    Refer to the log file at C:oracleproduct10.2.0db_1cfgtoollogsemcaJLLDBemca_2010-05-29_09-00-58-AM.log for more details.
    May 29, 2010 9:10:19 AM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace: 
    oracle.sysman.emcp.exception.EMConfigException: Error starting Database Control
    	at oracle.sysman.emcp.EMDBPostConfig.performConfiguration(EMDBPostConfig.java:569)
    	at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:181)
    	at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:150)
    	at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:155)
    	at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
    	at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
    	at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
    	at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)

    Sfi

    28 May 10 at 9:51 pm

  34. Hi,

    in step 3 you suggets adding a new line in etc/hosts file.
    Is this the new hostname with current IP address, or old hostname with current IP address?

    Christos

    1 Jun 10 at 4:18 am

  35. Yes, it’s the new hostname value.

    maclochlainn

    1 Jun 10 at 9:43 am

  36. It appears that the Windows Service is corrupted. Have you tried dropping it and recreating it?

    maclochlainn

    2 Jun 10 at 1:29 am

  37. Excellent post, it worked for me. Thank you very much. I highly recommend it.

    Hugo Mendoza

    4 Jun 10 at 10:22 am

  38. I think that dropping/recreating the Windows Service would help. Would you give me an idea of where that is documented?

    I have hunted through the Utilities doc but don’t see it in there. (But I wouldn’t be surprised to find that my interpretation of what Oracle’s trying to tell me is wrong either.)

    Thank you, Jack

    Jack

    13 Jun 10 at 1:10 pm

  39. The ORADIM utility creates, maintains, and deletes Windows services for the database.

    Create an instance by specifying the following options:

    -NEW -SID sid | -SRVC srvc | -ASMSID sid | -ASMSRVC srvc [-SYSPWD pass] [-STARTMODE auto|manual] [-SRVCSTART system|demand] [-PFILE file | -SPFILE [-SHUTMODE normal|immediate|abort] [-TIMEOUT secs] [-RUNAS osusr/ospass]

    Edit an instance by specifying the following options:

    -EDIT -SID sid | -ASMSID sid [-SYSPWD pass] [-STARTMODE auto|manual] [-SRVCSTART system|demand] [-PFILE file | -SPFILE] [-SHUTMODE normal|immediate|abort] [-SHUTTYPE srvc|inst] [-RUNAS osusr/ospass]

    Delete instances by specifying the following options:

    -DELETE -SID sid | -ASMSID sid | -SRVC srvc | -ASMSRVC srvc

    Startup services and instance by specifying the following options:

    -STARTUP -SID sid | -ASMSID sid [-SYSPWD pass] [-STARTTYPE srvc|inst|srvc,inst] [-PFILE filename | -SPFILE]

    Shutdown service and instance by specifying the following options:

    -SHUTDOWN -SID sid | -ASMSID sid [-SYSPWD pass] [-SHUTTYPE srvc|inst|srvc,inst] [-SHUTMODE normal|immediate|abort]

    Query for help by specifying the following parameters:

    -? | -h | -help

    maclochlainn

    13 Jun 10 at 2:02 pm

  40. This is a very helpfull article.
    But I am still not able to configure em

    I followed the given steps.

    Here is the error that i get.

    D:app324923product11.1.0db_3BIN>emca -config dbcontrol db -repos create
    STARTED EMCA at Jun 16, 2010 3:23:34 AM
    EM Configuration Assistant, Version 11.1.0.7.0 Production
    Copyright (c) 2003, 2005, Oracle.  All rights reserved.
     
    Enter the following information:
    Database SID: migis
    Listener port number: 1521
    Password for SYS user:
    Password for DBSNMP user:
    Password for SYSMAN user:
    Password for SYSMAN user: Email address for notifications (optional):
    Outgoing Mail (SMTP) server for notifications (optional):
    -----------------------------------------------------------------
     
    You have specified the following settings
     
    Database ORACLE_HOME ................ D:app324923product11.1.0db_3
     
    Local hostname ................ 01HW265735.India.TCS.com
    Listener port number ................ 1521
    Database SID ................ migis
    Email address for notifications ...............
    Outgoing Mail (SMTP) server for notifications ...............
     
    -----------------------------------------------------------------
    Do you wish to continue? [yes(Y)/no(N)]: y
    Jun 16, 2010 3:24:20 AM oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at D:app324923cfgtoollogsemcamigise
    mca_2010_06_16_03_23_34.log.
    Jun 16, 2010 3:24:21 AM oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    Jun 16, 2010 3:31:17 AM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully created
    Jun 16, 2010 3:31:30 AM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepos
    itory
    INFO: Uploading configuration data to EM repository (this may take a while) ...
    Jun 16, 2010 3:31:33 AM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Refer to the log file at D:app324923cfgtoollogsemcamigisemca_repos
    _config_.log for more details.
    Jun 16, 2010 3:31:33 AM oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Error uploading configuration data to the repository
    Jun 16, 2010 3:31:33 AM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error uploading configuration data to the repository
    Refer to the log file at D:app324923cfgtoollogsemcamigisemca_2010_06_16_
    03_23_34.log for more details.
    Could not complete the configuration. Refer to the log file at D:app324923cfg
    toollogsemcamigisemca_2010_06_16_03_23_34.log for more details.

    Contents of log file are as below:

    INFO: [D:app324923product11.1.0db_3sysmanadminemdrepsqlcoreconfiguration.xml]
    Jun 16, 2010 3:31:30 AM oracle.sysman.emdrep.config.EMSchemaConfiguration getConfigIntegrations
    INFO: Number of Configuration Instances:1
    Jun 16, 2010 3:31:30 AM oracle.sysman.emdrep.config.EMSchemaConfiguration getConfigIntegrations
    INFO: oracle.sysman.emdrep.util.TransxWrapper
        D:app324923product11.1.0db_3jlib/transx.zip
        D:app324923product11.1.0db_3xdk/lib/transx.zip
        D:app324923product11.1.0db_3lib/transx.zip
        D:app324923product11.1.0db_3lib/xmlparserv2.jar
        D:app324923product11.1.0db_3lib/xsu12.jar
        D:app324923product11.1.0db_3jlib/xdb.jar
        D:app324923product11.1.0db_3rdbms/jlib/xdb.jar
        D:app324923product11.1.0db_3oc4j/jdbc/lib/orai18n.jar
        D:app324923product11.1.0db_3jdbc/lib/ojdbc14.jar
        D:app324923product11.1.0db_3sysman/jlib/emCORE.jar
        D:app324923product11.1.0db_3oc4j/jdbc/lib/ojdbc14.jar
        D:app324923product11.1.0db_3oc4j/jdbc/lib/ojdbc14dms.jar
        D:app324923product11.1.0db_3jdbc/lib/ojdbc5.jar
        D:app324923product11.1.0db_3jdbc/lib/ojdbc5dms.jar
        D:app324923product11.1.0db_3oc4j/lib/dms.jar
        D:app324923product11.1.0db_3oc4j/jdbc/lib/dms.jar
        D:app324923product11.1.0db_3dms/lib/dms.jar
    Jun 16, 2010 3:31:31 AM oracle.sysman.emdrep.config.IConfigurationContext createConnection
    INFO: jdbcUrl = jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=01HW265735.India.TCS.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=dgmigis)))
    Jun 16, 2010 3:31:32 AM oracle.sysman.emdrep.config.IConfigurationContext createConnection
    INFO: jdbcUrl = jdbc:oracle:oci:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=01HW265735.India.TCS.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=dgmigis)))
    Jun 16, 2010 3:31:32 AM oracle.sysman.emdrep.config.IConfigurationContext createConnection
    INFO: jdbcUrl = jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=01HW265735.India.TCS.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=dgmigis)))
    Jun 16, 2010 3:31:33 AM oracle.sysman.emdrep.config.IConfigurationContext createConnection
    INFO: jdbcUrl = jdbc:oracle:oci:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=01HW265735.India.TCS.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=dgmigis)))
    Jun 16, 2010 3:31:33 AM oracle.sysman.emdrep.config.EMSchemaConfiguration$ConfigInstance run
    SEVERE: null
    java.lang.reflect.InvocationTargetException
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:585)
    	at oracle.sysman.emdrep.config.EMSchemaConfiguration$ConfigInstance.run(EMSchemaConfiguration.java:469)
    	at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.sysman.emdrep.config.ConfigurationException: Cannot Create Connection:(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=01HW265735.India.TCS.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=dgmigis)))
    SYSMAN
    normal
    ORA-01017: invalid username/password; logon denied
     
    java.sql.SQLException: ORA-01017: invalid username/password; logon denied
     
    	at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    	at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:131)
    	at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:204)
    	at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:693)
    	at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:338)
    	at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:508)
    	at oracle.jdbc.driver.T2CConnection.(T2CConnection.java:133)
    	at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:53)
    	at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)
    	at java.sql.DriverManager.getConnection(DriverManager.java:525)
    	at java.sql.DriverManager.getConnection(DriverManager.java:140)
    	at oracle.sysman.emdrep.config.IConfigurationContext.createConnection(IConfigurationContext.java:201)
    	at oracle.sysman.emdrep.config.IConfigurationContext.createConnection(IConfigurationContext.java:240)
    	at oracle.sysman.emdrep.config.IConfigurationContext.getConnection(IConfigurationContext.java:194)
    	at oracle.sysman.emdrep.config.IConfigurationContext.init(IConfigurationContext.java:98)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:585)
    	at oracle.sysman.emdrep.config.EMSchemaConfiguration$ConfigInstance.run(EMSchemaConfiguration.java:469)
    	at java.lang.Thread.run(Thread.java:595)
     
    	at oracle.sysman.emdrep.config.IConfigurationContext.createConnection(IConfigurationContext.java:245)
    	at oracle.sysman.emdrep.config.IConfigurationContext.getConnection(IConfigurationContext.java:194)
    	at oracle.sysman.emdrep.config.IConfigurationContext.init(IConfigurationContext.java:98)
    	... 6 more
    Caused by: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
     
    	at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    	at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:131)
    	at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:204)
    	at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:693)
    	at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:338)
    	at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:508)
    	at oracle.jdbc.driver.T2CConnection.(T2CConnection.java:133)
    	at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:53)
    	at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)
    	at java.sql.DriverManager.getConnection(DriverManager.java:525)
    	at java.sql.DriverManager.getConnection(DriverManager.java:140)
    	at oracle.sysman.emdrep.config.IConfigurationContext.createConnection(IConfigurationContext.java:201)
    	at oracle.sysman.emdrep.config.IConfigurationContext.createConnection(IConfigurationContext.java:240)
    	... 8 more
     
    Jun 16, 2010 3:31:33 AM oracle.sysman.emdrep.config.EMSchemaConfiguration perform
    WARNING: Exception Occured during Execution of oracle.sysman.emdrep.util.TransxWrapper
    Jun 16, 2010 3:31:33 AM oracle.sysman.emdrep.config.EMSchemaConfiguration perform
    SEVERE: FATAL EXCEPTIONS:
    FATAL Configuration Exceptions

    Regards,
    prabhjot

    prabhjot

    16 Jun 10 at 4:40 am

  41. The log is truncated in length. If you open it in an editor, could you re-paste it. It appears that the error occurs trying to createConnection, the initial question becomes was your %TNS_ADMIN% set in your session, and is the listener running?

    maclochlainn

    17 Jun 10 at 9:25 pm

  42. maclochlainn;

    Thank you! Deleting/re-creating the Windows service through ORADIM allowed me to run EMCA successfully to recreate the DBConsole service.

    I appreciate you sharing your expertise.

    Jack ‘donnachaich’

    Jack

    19 Jun 10 at 1:26 pm

  43. Thank you, after a 24 hour struggle to fix EM, I gave up and followed your instructions, EM was back to normal in 5 minutes.
    Many thanks.

    Semih BATTAL

    4 Aug 10 at 4:23 pm

  44. Very useful! Thanks a lot~

    Amy

    30 Sep 10 at 12:21 am

  45. I’m taking a class and have to install Oracle 11g on my windows 7 Professional x64. Everything installs thru the database config assistant. The text tells me to make note of the url for em on the last screen. The url is always empty. Prior to the last page I get a popup error saying no listener but I would not be able to get past the text’s step 4 withot listener. I make it to the bitter end and then get a popup error about the listener. When I click OK, I get the screen the book references but the url is empty. Any suggestions for someone learning Oracle?

    Zero

    15 Oct 10 at 2:49 am

  46. Thanks, The steps provided is very helpful and informative. Thanks again

    Antony Rajesh

    29 Oct 10 at 5:45 am

  47. Did not need to remove the SYSMAN user. (10.2.0)
    Modified windows domain name and recreated EM.
    Thanks a lot!
    Luc

    Luc Vinck

    16 Nov 10 at 6:37 am

  48. Will following these steps and recreating EM delete my scheduled jobs? Thanks for posting this by the way. Very informative!

    Dave

    14 Dec 10 at 7:54 pm

  49. I’m a new Oracle DBA. The environment I’m working in has no documentation. After a couple of days, I can’t seem to get EM running. Is there a way to install EM after Oracle has been installed and running? Oracle is installed in a linux environment btw. Any suggestions? Thank you.

    Giovanni

    28 Dec 10 at 8:34 am

  50. Most likely you need to uninstall and re-install if it’s damaged, as covered in the blog post. However, you may not need to do this, what are the errors when you try to start it?

    maclochlainn

    28 Dec 10 at 10:16 am

Leave a Reply