Unable to setup Database control using emca on linux Please help!

I have read about a dozen post on this issue and no one gives exactly what they did to solve the problem. Seems like i have an incomplete installation that is screwing me up. I've read of some people removing the SYSMAN schema, people removing certain roles, etc.
The only thing ive tried:
emca -deconfig dbcontrol db -repos drop
emca -config dbcontrol db -repos create
Can someone please give me the exact steps I must follow in order to have a COMPLETE fresh clean dbconsole?
[oracle@oracle ~]$ env |grep ORACLE
ORACLE_UNQNAME=DB11G
ORACLE_SID=DB11G
ORACLE_BASE=/u01/app/oracle
ORACLE_HOSTNAME=oracle.localdomain
ORACLE_TERM=xterm
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
[oracle@oracle ~]$ emca -config dbcontrol db -repos create
STARTED EMCA at Jan 5, 2011 12:24:55 AM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: DB11G
Listener port number: 1521
Listener ORACLE_HOME [ /u01/app/oracle/product/11.2.0/db_1 ]:
Password for SYS user:
Password for DBSNMP 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 ................ /u01/app/oracle/product/11.2.0/db_1
Local hostname ................ oracle.localdomain
Listener ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/db_1
Listener port number ................ 1521
Database SID ................ DB11G
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
Do you wish to continue? [yes(Y)/no(N)]: y
Jan 5, 2011 12:25:26 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/DB11G/emca_2011_01_05_00_24_54.log.
Jan 5, 2011 12:25:28 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Jan 5, 2011 12:25:28 AM oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Error creating the repository
Jan 5, 2011 12:25:28 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/DB11G/emca_repos_create_<date>.log for more details.
Jan 5, 2011 12:25:28 AM oracle.sysman.emcp.EMConfig perform
SEVERE: Error creating the repository
Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/DB11G/emca_2011_01_05_00_24_54.log for more details.
Could not complete the configuration. Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/DB11G/emca_2011_01_05_00_24_54.log for more details.
#LOG FOR WHEN I TRY TO CREATE IT
INFO: Creating the EM repository (this may take a while) ...
Jan 5, 2011 12:25:28 AM oracle.sysman.emcp.EMReposConfig createRepository
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
at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1650)
at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeScript(SQLEngine.java:1000)
at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:339)
at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:380)
at oracle.sysman.emcp.EMReposConfig.createRepository(EMReposConfig.java:510)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:228)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:157)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:253)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:589)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1448)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:573)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:521)
Jan 5, 2011 12:25:28 AM oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Error creating the repository
Jan 5, 2011 12:25:28 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/DB11G/emca_repos_create_<date>.log for more details.
Jan 5, 2011 12:25:28 AM oracle.sysman.emcp.EMConfig perform
SEVERE: Error creating the repository
Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/DB11G/emca_2011_01_05_00_24_54.log for more details.
Jan 5, 2011 12:25:28 AM 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:240)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:157)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:253)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:589)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1448)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:573)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:521)
Jan 5, 2011 12:25:28 AM oracle.sysman.emcp.EMConfig restoreOuiLoc
CONFIG: Restoring oracle.installer.oui_loc to /u01/app/oracle/product/11.2.0/db_1/oui
# LOG FOR WHEN I TRY TO DROP THE REPO
CONFIG: Enter SYS user's password :
Getting temporary tablespace from database...
Could not connect to SYS/(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle.localdomain)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=DB11G.WORLD))): ORA-01017: invalid username/password; logon denied (DBD ERROR: OCISessionBegin)
Jan 5, 2011 12:38:09 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: stty: standard input: Invalid argument
stty: standard input: Invalid argument
Jan 5, 2011 12:38:09 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
WARNING: Error executing /u01/app/oracle/product/11.2.0/db_1/sysman/admin/emdrep/bin/RepManager -connect (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle.localdomain)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=DB11G.WORLD))) -repos_user SYSMAN -action drop -verbose -output_file /u01/app/oracle/cfgtoollogs/emca/DB11G/emca_repos_drop_2011_01_05_00_38_08.log
Jan 5, 2011 12:38:09 AM oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Error dropping the repository
Jan 5, 2011 12:38:09 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/DB11G/emca_repos_drop_<date>.log for more details.
Jan 5, 2011 12:38:09 AM oracle.sysman.emcp.EMConfig perform
SEVERE: Error dropping the repository
Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/DB11G/emca_2011_01_05_00_37_37.log for more details.
Jan 5, 2011 12:38:09 AM oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: Error dropping the repository
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:218)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:157)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:253)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:589)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1448)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:573)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:521)
Jan 5, 2011 12:38:09 AM oracle.sysman.emcp.EMConfig restoreOuiLoc
CONFIG: Restoring oracle.installer.oui_loc to /u01/app/oracle/product/11.2.0/db_1/oui

hahaha, i counted my chickens before they hatched..
Creating the web bit is failing
[oracle@oracle bin]$ emca -config dbcontrol db
#LOG
Connecting to database using connect string (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle.localdomain)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=DB11G.WORLD))) in home /u01/app/oracle/product/11.2.0/db_1 with user "SYS" role "SYSDBA".
Jan 5, 2011 3:43:23 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Couldn't connect to the db - ORA-01017: invalid username/password; logon denied (DBD ERROR: OCISessionBegin) at /u01/app/oracle/product/11.2.0/db_1/sysman/admin/scripts/emca/emcaDbUtil.pl line 106, <STDIN> line 2.
Jan 5, 2011 3:43:23 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Error executing /u01/app/oracle/product/11.2.0/db_1/sysman/admin/scripts/emca/emcaDbUtil /u01/app/oracle/product/11.2.0/db_1/perl/lib:/u01/app/oracle/product/11.2.0/db_1/perl/lib/site_perl:/u01/app/oracle/product/11.2.0/db_1/sysman/admin/scripts:/u01/app/oracle/product/11.2.0/db_1/bin: /u01/app/oracle/product/11.2.0/db_1/perl/bin/perl /u01/app/oracle/product/11.2.0/db_1/sysman/admin/scripts/emca/emcaDbUtil.pl /u01/app/oracle/product/11.2.0/db_1 (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle.localdomain)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=DB11G.WORLD))) SYS SYSDBA declare repos_pwd varchar2(30); view_user varchar2(30); view_user_pwd varchar2(30); view_user_acc_status varchar2(30); begin repos_pwd := ?; sysman.mgmt_view_priv.get_view_user(view_user); select account_status into view_user_acc_status from sys.dba_users where upper(username) = upper ( view_user ); IF view_user_acc_status like '%LOCKED%' THEN execute immediate 'alter user ' || view_user || ' account unlock'; END IF; IF view_user_acc_status like '%EXPIRED%' THEN sysman.mgmt_view_priv.set_view_user_creds ( repos_pwd ); sysman.mgmt_view_priv.GET_VIEW_USER_CREDS ( view_user, view_user_pwd ); execute immediate 'alter user ' || view_user || ' identified by ' || view_user_pwd || ''; END IF; end; DB11G 1 SYSMAN_PWD
Jan 5, 2011 3:43:23 AM oracle.sysman.emcp.EMReposConfig unlockMGMTAccount
CONFIG: Failed to unlock mgmt_view account
Jan 5, 2011 3:43:23 AM oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Failed to unlock all EM-related accounts
Jan 5, 2011 3:43:23 AM oracle.sysman.emcp.EMConfig perform
SEVERE: Failed to unlock all EM-related accounts
Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/DB11G/emca_2011_01_05_03_42_35.log for more details.
Jan 5, 2011 3:43:23 AM oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: Failed to unlock all EM-related accounts
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:348)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:157)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:253)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:589)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1448)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:573)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:521)
Jan 5, 2011 3:43:23 AM oracle.sysman.emcp.EMConfig restoreOuiLoc
CONFIG: Restoring oracle.installer.oui_loc to /u01/app/oracle/product/11.2.0/db_1/oui
I honestly have no bloody clue why its saying invalid user/pass.. all sys accounts are working fine..what am I missing here.
[oracle@oracle ~]$ sqlplus sysman
SQL*Plus: Release 11.2.0.1.0 Production on Wed Jan 5 03:52:40 2011
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>

Similar Messages

Maybe you are looking for