OEM创建出错

来源:互联网 发布:php软件开发工程师 编辑:程序博客网 时间:2024/05/21 00:53

      数据库环境:Oracle 11gR2  ASM单实例  系统环境: liunx5.5 64位

    今天我在用Oracle11G创建一个ASM单实例环境时候,在dbca创建数据库快要完毕后,弹出一个错误提示框。

Database connection through listener failed. Fix the error and run EM Configuration Assistant again.Some of the possible reasons may be:1) Listener port 1158 provided is incorrect. Provide the correct port.2) Listener is not up. Start the Listener.3) Database service ora11g is not registered with listener. Register the database service.4) Listener is up on physical host and ORACLE_HOSTNAME environment variable is set to virtual host. Unset ORACLE_HOSTNAME environment variable.5) Listener is up on virtual host. Set environment variable ORACLE_HOSTNAME=<virtual host>.6) /etc/hosts does not have correct entry for hostname.
     使得我的OEM没有创建成功,后来根据问题框里面的提示,发现ORACLE_HOSTNAME没有配置好,在配置好以后,重新创建OEM。

asm-> asm-> emca -config dbcontrol db -repos recreateSTARTED EMCA at Aug 14, 2014 4:41:09 PMEM Configuration Assistant, Version 11.2.0.3.0 ProductionCopyright (c) 2003, 2011, Oracle.  All rights reserved.Enter the following information:Database SID: PRODDatabase Control is already configured for the database PRODYou have chosen to configure Database Control for managing the database PRODThis will remove the existing configuration and the default settings and perform a fresh configuration----------------------------------------------------------------------WARNING : While repository is dropped the database will be put in quiesce mode.----------------------------------------------------------------------Do you wish to continue? [yes(Y)/no(N)]: YListener ORACLE_HOME [ /u01/app/oracle/product/11.2.0/db_1 ]: Password for SYS user:  Password for SYS user:  Password for DBSNMP user:  Password for SYSMAN user:  Email address for notifications (optional): Outgoing Mail (SMTP) server for notifications (optional): ASM ORACLE_HOME [ /u01/app/oracle/product/11.2.0/db_1 ]: ASM SID [ +ASM ]: ASM port [ 1521 ]: ASM username [ ASMSNMP ]: ASM user password:  ASM user password: -----------------------------------------------------------------You have specified the following settingsDatabase ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/db_1Local hostname ................ asmListener ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/db_1Listener port number ................ 1521Database SID ................ PRODEmail address for notifications ............... Outgoing Mail (SMTP) server for notifications ............... ASM ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/db_1ASM SID ................ +ASMASM port ................ 1521ASM user role ................ SYSDBAASM username ................ ASMSNMP---------------------------------------------------------------------------------------------------------------------------------------WARNING : While repository is dropped the database will be put in quiesce mode.----------------------------------------------------------------------Do you wish to continue? [yes(Y)/no(N)]: YAug 14, 2014 4:41:47 PM oracle.sysman.emcp.EMConfig performINFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/PROD/emca_2014_08_14_16_41_06.log.Aug 14, 2014 4:41:48 PM oracle.sysman.emcp.util.DBControlUtil stopOMSINFO: Stopping Database Control (this may take a while) ...Aug 14, 2014 4:41:52 PM oracle.sysman.emcp.EMReposConfig invokeINFO: Dropping the EM repository (this may take a while) ...Aug 14, 2014 4:44:52 PM oracle.sysman.emcp.EMReposConfig invokeINFO: Repository successfully droppedAug 14, 2014 4:44:53 PM oracle.sysman.emcp.EMReposConfig createRepositoryINFO: Creating the EM repository (this may take a while) ...Aug 14, 2014 4:49:22 PM oracle.sysman.emcp.EMReposConfig invokeINFO: Repository successfully createdAug 14, 2014 4:49:26 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepositoryINFO: Uploading configuration data to EM repository (this may take a while) ...Aug 14, 2014 4:50:11 PM oracle.sysman.emcp.EMReposConfig invokeINFO: Uploaded configuration data successfullyAug 14, 2014 4:50:12 PM oracle.sysman.emcp.ParamsManager getLocalListenerWARNING: Error retrieving listener for asmAug 14, 2014 4:50:18 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsoleINFO: Securing Database Control (this may take a while) ...Aug 14, 2014 4:50:24 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsoleINFO: Database Control secured successfully.Aug 14, 2014 4:50:24 PM oracle.sysman.emcp.util.DBControlUtil startOMSINFO: Starting Database Control (this may take a while) ...Aug 14, 2014 4:51:13 PM oracle.sysman.emcp.EMDBPostConfig performConfigurationINFO: Database Control started successfullyAug 14, 2014 4:51:14 PM oracle.sysman.emcp.EMDBPostConfig performConfigurationINFO: >>>>>>>>>>> The Database Control URL is https://asm:1158/em <<<<<<<<<<<Aug 14, 2014 4:51:17 PM oracle.sysman.emcp.EMDBPostConfig invokeWARNING: ************************  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: /u01/app/oracle/product/11.2.0/db_1/asm_PROD/sysman/config/emkey.ora. Ensure this file is backed up as the encrypted data will become unusable if this file is lost. ***********************************************************Enterprise Manager configuration completed successfullyFINISHED EMCA at Aug 14, 2014 4:51:17 PM
     重新创建完成,这个时候要5分钟以上,大家要耐心等待。


      

0 0