zhuyumu 发表于 2018-9-14 12:17:38

重置oracle EM-Kayson

  shell # su - oracle
  shell $ emca -deconfig dbcontrol -repos drop          // 此乃删除em档案库
  Enter the following information:
  Database SID: orcl
  Listener port number: 1521
  Listener ORACLE_HOME [ /u01/app/oracle/product/11.2.0/dbhome_1 ]:
  Password for SYS user: oracle
  Password for DBSNMP user: oracle
  Password for SYSMAN user: oracle
  Email address for notifications (optional): 回车
  Outgoing Mail (SMTP) server for notifications (optional): 回车
  ----------------------------------------------------------------------
  WARNING : While repository is dropped the database will be put in quiesce mode.
  ----------------------------------------------------------------------
  Do you wish to continue? : y
  shell $ emca -config dbcontrol db -repos create         //重建em档案库
  Enter the following information:
  Database SID: orcl
  Listener port number: 1521
  Listener ORACLE_HOME [ /u01/app/oracle/product/11.2.0/dbhome_1 ]:
  Password for SYS user: oracle
  Password for DBSNMP user: oracle
  Password for SYSMAN user: oracle
  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/dbhome_1
  Local hostname ................ dbserver1.ocp.com
  Listener ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbhome_1
  Listener port number ................ 1521
  Database SID ................ orcl
  Email address for notifications ...............
  Outgoing Mail (SMTP) server for notifications ...............
  -----------------------------------------------------------------
  ----------------------------------------------------------------------
  WARNING : While repository is dropped the database will be put in quiesce mode.
  ----------------------------------------------------------------------
  Do you wish to continue? : y
  Aug 18, 2013 7:03:25 PM oracle.sysman.emcp.EMConfig perform
  INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_2013_08_18_19_03_08.log.
  Aug 18, 2013 7:03:27 PM oracle.sysman.emcp.EMReposConfig invoke
  INFO: Dropping the EM repository (this may take a while) ...
  Aug 18, 2013 7:03:29 PM oracle.sysman.emcp.EMReposConfig invoke
  INFO: Repository successfully dropped
  Aug 18, 2013 7:03:29 PM oracle.sysman.emcp.EMReposConfig createRepository
  INFO: Creating the EM repository (this may take a while) ...
  Aug 17, 2013 11:30:28 PM oracle.sysman.emcp.EMReposConfig invoke
  INFO: Repository successfully created
  Aug 17, 2013 11:30:50 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
  INFO: Uploading configuration data to EM repository (this may take a while) ...
  Aug 17, 2013 11:32:34 PM oracle.sysman.emcp.EMReposConfig invoke
  INFO: Uploaded configuration data successfully
  Aug 17, 2013 11:32:39 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
  INFO: Securing Database Control (this may take a while) ...
  Aug 17, 2013 11:32:49 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
  INFO: Database Control secured successfully.
  Aug 17, 2013 11:32:49 PM oracle.sysman.emcp.util.DBControlUtil startOMS
  INFO: Starting Database Control (this may take a while) ...
  Aug 17, 2013 11:36:13 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
  INFO: Database Control started successfully
  Aug 17, 2013 11:36:15 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
  INFO: >>>>>>>>>>> The Database Control URL is https://dbserver1.ocp.com:5500/em
页: [1]
查看完整版本: 重置oracle EM-Kayson