em repository

5
--- To Create or Recreate EM Repository Step # 1 : First Drop Repositiry emca -deconfig dbcontrol db -repos drop STARTED EMCA at Jan 7, 2013 3:21:02 PM EM Configuration Assistant, Version 10.2.0.1.0 Production Copyright (c) 2003, 2005, Oracle. All rights reserved. Enter the following information: Database SID: test Enter your database SID Listener port number: 1521 Enter Listener Port Number Password for SYS user: oracle Enter Sys password Password for SYSMAN user: oracle Enter sysman password Do you wish to continue? [yes(Y)/no(N)]: yes Jan 7, 2013 3:21:31 PM oracle.sysman.emcp.EMConfig perform INFO: This operation is being logged at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/test/emca_2013-01-07_03-21-02- PM.log. Jan 7, 2013 3:21:32 PM oracle.sysman.emcp.util.DBControlUtil stopOMS INFO: Stopping Database Control (this may take a while) ... Jan 7, 2013 3:21:42 PM oracle.sysman.emcp.EMReposConfig dropRepository INFO: Dropping the EM repository (this may take a while) ... Jan 7, 2013 3:23:07 PM oracle.sysman.emcp.EMReposConfig invoke INFO: Repository successfully dropped Enterprise Manager configuration completed successfully Step # 2 : Then Create Repositiry emca -config dbcontrol db -repos create STARTED EMCA at Jan 7, 2013 3:28:56 PM EM Configuration Assistant, Version 10.2.0.1.0 Production Copyright (c) 2003, 2005, Oracle. All rights reserved. Enter the following information: Database SID: test Enter your database SID Listener port number: 1521 Enter Listener Port Number Password for SYS user: oracle Enter Sys password Password for DBSNMP user: oracle Enter DBSNMP password Password for SYSMAN user: oracle Enter sysman password Email address for notifications (optional): Enter Outgoing Mail (SMTP) server for notifications (optional): Enter ----------------------------------------------------------------- You have specified the following settings

Upload: muzairzahid

Post on 21-Apr-2017

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: EM Repository

--- To Create or Recreate EM RepositoryStep # 1 : First Drop Repositiry

emca -deconfig dbcontrol db -repos drop

STARTED EMCA at Jan 7, 2013 3:21:02 PMEM Configuration Assistant, Version 10.2.0.1.0 ProductionCopyright (c) 2003, 2005, Oracle. All rights reserved.

Enter the following information:Database SID: test Enter your database SIDListener port number: 1521 Enter Listener Port Number Password for SYS user: oracle Enter Sys password Password for SYSMAN user: oracle Enter sysman password

Do you wish to continue? [yes(Y)/no(N)]: yesJan 7, 2013 3:21:31 PM oracle.sysman.emcp.EMConfig performINFO: This operation is being logged at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/test/emca_2013-01-07_03-21-02-PM.log.Jan 7, 2013 3:21:32 PM oracle.sysman.emcp.util.DBControlUtil stopOMSINFO: Stopping Database Control (this may take a while) ...Jan 7, 2013 3:21:42 PM oracle.sysman.emcp.EMReposConfig dropRepositoryINFO: Dropping the EM repository (this may take a while) ...Jan 7, 2013 3:23:07 PM oracle.sysman.emcp.EMReposConfig invokeINFO: Repository successfully droppedEnterprise Manager configuration completed successfully

Step # 2 : Then Create Repositiry

emca -config dbcontrol db -repos create

STARTED EMCA at Jan 7, 2013 3:28:56 PMEM Configuration Assistant, Version 10.2.0.1.0 ProductionCopyright (c) 2003, 2005, Oracle. All rights reserved.

Enter the following information:Database SID: test Enter your database SIDListener port number: 1521 Enter Listener Port NumberPassword for SYS user: oracle Enter Sys passwordPassword for DBSNMP user: oracle Enter DBSNMP passwordPassword for SYSMAN user: oracle Enter sysman passwordEmail address for notifications (optional): EnterOutgoing Mail (SMTP) server for notifications (optional): Enter-----------------------------------------------------------------

You have specified the following settings

Database ORACLE_HOME ................ /u01/app/oracle/product/10.2.0/db_1

Database hostname ................ oracle-server.dba.comListener port number ................ 1521Database SID ................ testEmail address for notifications ............... Outgoing Mail (SMTP) server for notifications ...............

-----------------------------------------------------------------Do you wish to continue? [yes(Y)/no(N)]: yes

Page 2: EM Repository

Jan 7, 2013 3:29:35 PM oracle.sysman.emcp.EMConfig performINFO: This operation is being logged at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/test/emca_2013-01-07_03-28-56-PM.log.Jan 7, 2013 3:29:36 PM oracle.sysman.emcp.EMReposConfig createRepositoryINFO: Creating the EM repository (this may take a while) ...^[[3;7~Jan 7, 2013 3:33:17 PM oracle.sysman.emcp.EMReposConfig invokeINFO: Repository successfully createdJan 7, 2013 3:33:26 PM oracle.sysman.emcp.util.DBControlUtil startOMSINFO: Starting Database Control (this may take a while) ...Jan 7, 2013 3:35:01 PM oracle.sysman.emcp.EMDBPostConfig performConfigurationINFO: Database Control started successfullyJan 7, 2013 3:35:02 PM oracle.sysman.emcp.EMDBPostConfig performConfigurationINFO: >>>>>>>>>>> The Database Control URL is http://oracle-server.dba.com:1158/em <<<<<<<<<<<Enterprise Manager configuration completed successfullyFINISHED EMCA at Jan 7, 2013 3:35:02 PM

Or Use single command to drop and create repository enter information same as above

emca -config dbcontrol db -repos recreate

Another method to Drop and Create EM if we receive error the previous oneRecreate SYSMAN schema

sqlplus / as sysdba

drop user sysman cascade;User dropped.

drop role MGMT_USER;Role dropped.

drop user MGMT_VIEW cascade;User dropped.

drop public synonym MGMT_TARGET_BLACKOUTS;Synonym dropped.

drop public synonym SETEMVIEWUSERCONTEXT;Synonym dropped.

SQL> exit

$ORACLE_HOME / sysman / admin / emdrep lsbin/RepManager host_name port SID -action dropbin/RepManager oracle-server.dba.com 1521 test -action dropEnter SYS user’s password : oracleEnter repository user name : sysmanGetting temporary tablespace from database…Found temporary tablespace: TEMPChecking SYS Credentials … rem error switchOK.

Page 3: EM Repository

rem error switchDropping the repository..Quiescing DB … Done.Checking for Repos User … Does not Exist.Repos User does not exist …  Continuing with cleanup …Dropping Roles/Synonymns/Tablespaces … Done.Unquiescing DB … Done.Dropped Repository Successfully.

$ORACLE_HOME/bin./emca -repos createSTARTED EMCA at Jan 7, 2013 4:22:16 PMEM Configuration Assistant, Version 10.2.0.1.0 ProductionCopyright (c) 2003, 2005, Oracle. All rights reserved.

Enter the following information:Database SID: testListener port number: 1521Password for SYS user: oracle Password for SYSMAN user: oracle

Do you wish to continue? [yes(Y)/no(N)]: yesJan 7, 2013 4:22:34 PM oracle.sysman.emcp.EMConfig performINFO: This operation is being logged at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/test/emca_2013-01-07_04-22-16-PM.log.Jan 7, 2013 4:22:35 PM oracle.sysman.emcp.EMReposConfig createRepositoryINFO: Creating the EM repository (this may take a while) ...Jan 7, 2013 4:25:14 PM oracle.sysman.emcp.EMReposConfig invokeINFO: Repository successfully createdEnterprise Manager configuration completed successfullyFINISHED EMCA at Jan 7, 2013 4:25:14 PM

For only Config and Deconfig EM use the following 2 command’s

emca -deconfig dbcontrol dbSTARTED EMCA at Jan 7, 2013 4:39:53 PMEM Configuration Assistant, Version 10.2.0.1.0 ProductionCopyright (c) 2003, 2005, Oracle. All rights reserved.

Enter the following information:Database SID: test

Do you wish to continue? [yes(Y)/no(N)]: yesJan 7, 2013 4:39:59 PM oracle.sysman.emcp.EMConfig performINFO: This operation is being logged at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/test/emca_2013-01-07_04-39-53-PM.log.Jan 7, 2013 4:39:59 PM oracle.sysman.emcp.util.DBControlUtil stopOMSINFO: Stopping Database Control (this may take a while) ...Enterprise Manager configuration completed successfullyFINISHED EMCA at Jan 7, 2013 4:40:12 PMemca -config dbcontrol db[oracle@oracle-server bin]$ emca -config dbcontrol db

STARTED EMCA at Jan 7, 2013 4:42:07 PMEM Configuration Assistant, Version 10.2.0.1.0 ProductionCopyright (c) 2003, 2005, Oracle. All rights reserved.

Page 4: EM Repository

Enter the following information:Database SID: testListener port number: 1521Password for SYS user: oraclePassword for DBSNMP user: oracle Password for SYSMAN user: oraclePassword for SYSMAN user: Email address for notifications (optional): Enter Outgoing Mail (SMTP) server for notifications (optional): Enter-----------------------------------------------------------------

You have specified the following settings

Database ORACLE_HOME ................ /u01/app/oracle/product/10.2.0/db_1

Database hostname ................ oracle-server.dba.comListener port number ................ 1521Database SID ................ testEmail address for notifications ............... Outgoing Mail (SMTP) server for notifications ...............

-----------------------------------------------------------------Do you wish to continue? [yes(Y)/no(N)]: yesJan 7, 2013 4:42:29 PM oracle.sysman.emcp.EMConfig performINFO: This operation is being logged at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/test/emca_2013-01-07_04-42-07-PM.log.Jan 7, 2013 4:42:29 PM oracle.sysman.emcp.DatabaseChecks performReposChecksWARNING: 'shared_pool_size' must be greater than or equal to 80 MB. Jan 7, 2013 4:42:36 PM oracle.sysman.emcp.util.DBControlUtil startOMSINFO: Starting Database Control (this may take a while) ...Jan 7, 2013 4:44:11 PM oracle.sysman.emcp.EMDBPostConfig performConfigurationINFO: Database Control started successfullyJan 7, 2013 4:44:11 PM oracle.sysman.emcp.EMDBPostConfig performConfigurationINFO: >>>>>>>>>>> The Database Control URL is http://oracle-server.dba.com:1158/em <<<<<<<<<<<Enterprise Manager configuration completed successfully