The following is a test on how to configure the db console in Oracle 10 Gb. EM is usually used too much and is not familiar with it.
Test environment: OS: SOLARIS 10, DB: 10.2.0.1
1. EMCA Creation
- $ Emca-config dbcontrol db-repos create
- Started emca atDec 22,201 2 12:30:09
- EM Configuration Assistant, Version 10.2.0.1.0 Production
- Copyright (c) 2003,200 5, Oracle. All rights reserved.
- Enter the following information:
- Database SID: htz
- Listener port number: 1521
- Passwordfor SYS user:
- Passwordfor DBSNMP user:
- Passwordfor SYSMAN user:
- Email address for communications (optional ):
- Outgoing Mail (SMTP) server for communications (optional ):
- -----------------------------------------------------------------
- You have specified the following settings
- Database ORACLE_HOME ....../u01/app/oracle/product/11.2.0/db_1
- Database hostname...
- Listener port number... 1521
- Database SID ...... htz
- Email address for communications ...............
- Outgoing Mail (SMTP) server for communications ...............
- -----------------------------------------------------------------
- Do you wish tocontinue? [Yes (Y)/no (N)]: Y
- Dec 22,201 2 12:31:12 PM oracle. sysman. emcp. EMConfig perform
- INFO: This operation is being logged at/u01/app/oracle/product/11.2.0/db_1/export toollogs/emca/htz/emca_2012-12-22_12-30-09-PM.log.
- Dec 22,201 2 12:31:13 PM oracle. sysman. emcp. EMReposConfig createRepository
- INFO: Creating the EM repository (this may take a while )...
- Dec 22,201 2 12:31:13 oracle. sysman. emcp. EMReposConfig invoke
- SEVERE: Error creating the repository
- Dec 22,201 2 12:31:13 oracle. sysman. emcp. EMReposConfig invoke
- INFO: Refer to the log file at/u01/app/oracle/product/11.2.0/db_1/export toollogs/emca/htz/emca_repos_create _ <date>. log for more details.
- Dec 22,201 2 12:31:13 PM oracle. sysman. emcp. EMConfig perform
- SEVERE: Error creating the repository
- Refer to the log file at/u01/app/oracle/product/11.2.0/db_1/export toollogs/emca/htz/emca_2012-12-22_12-30-09-PM.log for more details.
- Cocould not complete the configuration. Refer to the log file at/u01/app/oracle/product/11.2.0/db_1/export toollogs/emca/htz/emca_2012-12-22_12-30-09-PM.log for more details
Dizzy. An error is reported. The database is newly created. Check the cause.
2. View logs
- $ Cd $ ORACLE_HOME/export tool */
- $ Ls
- Cfgfw configToolAllCommands dbca emca netca oui
- $ Cd emca/htz
- $ Vi emca_2012-12-22_12-30-09-PM.log
- CONFIG: No value was setfor the parameter SYS_PWD.
- Dec 22,201 2 12:31:01 oracle. sysman. emcp. util. GeneralUtil initSQLEngine
- CONFIG: SQLEngine connecting with SID: htz, oracleHome:/u01/app/oracle/product/11.2.0/db_1, anduser:
- Dec 22,201 2 12:31:01 oracle. sysman. emcp. util. GeneralUtil initSQLEngine
- CONFIG: SQLEngine created successfully and connected
- Dec 22,201 2 12:31:01 oracle. sysman. emcp. ParamsManager setFlag
- CONFIG: Flag 'asm _ db' settofalse
- Dec 22,201 2 12:31:01 oracle. sysman. emcp. ParamsManager setFlag
- CONFIG: Flag 'asm _ db' settofalse
- Dec 22,201 2 12:31:03 oracle. sysman. emcp. ParamsManager setParam
- CONFIG: Setting param: PORT value: 1521
- Dec 22,201 2 12:31:05 PM oracle. sysman. emcp. ParamsManager getParam
- CONFIG: No value was setfor the parameter SYS_PWD.
- Dec 22,201 2 12:31:05 oracle. sysman. emcp. util. GeneralUtil initSQLEngine
- CONFIG: SQLEngine connecting with SID: htz, oracleHome:/u01/app/oracle/product/11.2.0/db_1, anduser: SYS
- Dec 22,201 2 12:31:05 oracle. sysman. emcp. util. GeneralUtil initSQLEngine
- CONFIG: SQLEngine created successfully and connected
- "Emca_2012-12-22_12-30-09-PM.log" 370 lines, 26004 characters
- At oracle.sysman.assistants.util.sqlEngine.SQLEngine.exe cuteScript (SQLEngine. java: 841)
- At oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.exe cuteScript (SQLPlusEngine. java: 265)
- At oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.exe cuteScript (SQLPlusEngine. java: 306)
- At oracle. sysman. emcp. EMReposConfig. createRepository (EMReposConfig. java: 360)
- At oracle. sysman. emcp. EMReposConfig. invoke (EMReposConfig. java: 182)
- At oracle. sysman. emcp. EMReposConfig. invoke (EMReposConfig. java: 124)
- At oracle. sysman. emcp. EMConfig. perform (EMConfig. java: 142)
- At oracle. sysman. emcp. EMConfigAssistant. invokeEMCA (EMConfigAssistant. java: 479)
- At oracle. sysman. emcp. EMConfigAssistant. Configure mconfiguration (EMConfigAssistant. java: 1123)
- At oracle. sysman. emcp. EMConfigAssistant. statusMain (EMConfigAssistant. java: 463)
- At oracle. sysman. emcp. EMConfigAssistant. main (EMConfigAssistant. java: 412)
- Dec 22,201 2 12:31:13 oracle. sysman. emcp. EMReposConfig invoke
- SEVERE: Error creating the repository
- Dec 22,201 2 12:31:13 oracle. sysman. emcp. EMReposConfig invoke
- INFO: Refer to the log file at/u01/app/oracle/product/11.2.0/db_1/export toollogs/emca/htz/emca_repos_create _ <date>. log for more details.
- Dec 22,201 2 12:31:13 PM oracle. sysman. emcp. EMConfig perform
- SEVERE: Error creating the repository
- Refer to the log file at/u01/app/oracle/product/11.2.0/db_1/export toollogs/emca/htz/emca_2012-12-22_12-30-09-PM.log for more details.
- Dec 22,201 2 12:31:13 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: 194)
- At oracle. sysman. emcp. EMReposConfig. invoke (EMReposConfig. java: 124)
- At oracle. sysman. emcp. EMConfig. perform (EMConfig. java: 142)
- At oracle. sysman. emcp. EMConfigAssistant. invokeEMCA (EMConfigAssistant. java: 479)
- At oracle. sysman. emcp. EMConfigAssistant. Configure mconfiguration (EMConfigAssistant. java: 1123)
- At oracle. sysman. emcp. EMConfigAssistant. statusMain (EMConfigAssistant. java: 463)
- At oracle. sysman. emcp. EMConfigAssistant. main (EMConfigAssistant. java: 412)
- Look at another log
- $ Vi emca_repos_create_2012-12-22_12-31-13-PM.log
- Emca_repos_create_2012-12-22_12-31-13-PM.log 21 lines, 911 characters
- Check if repos user already exists.
- Old 6: WHERE username = UPPER ('& EM_REPOS_USER ');
- New 6: WHERE username = UPPER ('sysmance ');
- 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
- The user already exists, and no EM has been created before, and the DBCA has not been checked during database creation.