当前位置:  数据库>oracle

Oracle 10g 配置OEM/DB CONSOLE

    来源: 互联网  发布时间:2017-05-14

    本文导语: 下面是测试一下Oracle 10g中怎么配置DB CONSOLE,EM这个东西平时用得太多了,一点不熟悉 测试环境:OS:SOLARIS 10,DB :10.2.0.1 1,EMCA创建 $ emca -config dbcontrol db -repos create STARTED EMCA atDec 22, 2012 12:30:09 PM EM Configuration Assistant, Version 10.2.0.1....

下面是测试一下Oracle 10g中怎么配置DB CONSOLE,EM这个东西平时用得太多了,一点不熟悉

测试环境:OS:SOLARIS 10,DB :10.2.0.1

1,EMCA创建

  • $ emca -config dbcontrol db -repos create
  • STARTED EMCA atDec 22, 2012 12:30:09 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: htz
  • Listener port number: 1521
  • Passwordfor SYS user:
  • Passwordfor DBSNMP user:
  • Passwordfor 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
  • Database hostname ................ 10rac1
  • Listener port number ................ 1521
  • Database SID ................ htz
  • Email address for notifications ...............
  • Outgoing Mail (SMTP) server for notifications ...............
  • -----------------------------------------------------------------
  • Do you wish tocontinue? [yes(Y)/no(N)]: Y
  • Dec 22, 2012 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/cfgtoollogs/emca/htz/emca_2012-12-22_12-30-09-PM.log.
  • Dec 22, 2012 12:31:13 PM oracle.sysman.emcp.EMReposConfig createRepository
  • INFO: Creating the EM repository (this may take a while) ...
  • Dec 22, 2012 12:31:13 PM oracle.sysman.emcp.EMReposConfig invoke
  • SEVERE: Error creating the repository
  • Dec 22, 2012 12:31:13 PM oracle.sysman.emcp.EMReposConfig invoke
  • INFO: Refer to the log file at /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/emca/htz/emca_repos_create_.log for more details.
  • Dec 22, 2012 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/cfgtoollogs/emca/htz/emca_2012-12-22_12-30-09-PM.log for more details.
  • Could not complete the configuration. Refer to the log file at /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/emca/htz/emca_2012-12-22_12-30-09-PM.log for more details
  • 晕,报错了,数据库是新创建的,查看一下原因。

    2,日志查看

  • $ cd $ORACLE_HOME/cfgtool*/
  • $ 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, 2012 12:31:01 PM 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, 2012 12:31:01 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
  • CONFIG: SQLEngine created successfully and connected
  • Dec 22, 2012 12:31:01 PM oracle.sysman.emcp.ParamsManager setFlag
  • CONFIG: Flag 'asm_db'settofalse
  • Dec 22, 2012 12:31:01 PM oracle.sysman.emcp.ParamsManager setFlag
  • CONFIG: Flag 'asm_db'settofalse
  • Dec 22, 2012 12:31:03 PM oracle.sysman.emcp.ParamsManager setParam
  • CONFIG: Setting param: PORT value: 1521
  • Dec 22, 2012 12:31:05 PM oracle.sysman.emcp.ParamsManager getParam
  • CONFIG: No value was setfor the parameter SYS_PWD.
  • Dec 22, 2012 12:31:05 PM 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, 2012 12:31:05 PM 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.executeScript(SQLEngine.java:841)
  • at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:265)
  • at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(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.performConfiguration(EMConfigAssistant.java:1123)
  • at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
  • at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
  • Dec 22, 2012 12:31:13 PM oracle.sysman.emcp.EMReposConfig invoke
  • SEVERE: Error creating the repository
  • Dec 22, 2012 12:31:13 PM oracle.sysman.emcp.EMReposConfig invoke
  • INFO: Refer to the log file at /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/emca/htz/emca_repos_create_.log for more details.
  • Dec 22, 2012 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/cfgtoollogs/emca/htz/emca_2012-12-22_12-30-09-PM.log for more details.
  • Dec 22, 2012 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.performConfiguration(EMConfigAssistant.java:1123)
  • at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
  • at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)
  • 再看另一个日志
  • $ 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('SYSMAN');
  • 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
  • 报用户已经存在,原来没有创建过EM,DBCA创建数据库的时候也没有勾上。

  •     
     
     

    您可能感兴趣的文章:

  • 配置Oracle management server /Oracle启动OMS
  • c/c++开源软件 iis7站长之家
  • weblogic 中怎样配置 oracle JDBC driver?
  • redhat 8.0+oracle 8.1.7下面配置proc环境的问题
  • linux下怎么配置jdbc 访问oracle ,知情者请告知
  • oracle的jdbc的配置
  • 一个jsp的数据库问题-oracle的服务端如何配置
  • 不会配置oracle怎么办?
  • JDBC from ORACLE 8.1.7的配置问题
  • Linux上怎么配置oracle的ODBC数据源?
  • 请问jboss+oracle文件怎样配置,数据库中文字段不为乱码
  • jdk1.3+tomcat怎样配置oracle驱动程序
  • 请问哪里有 小性机 +linux +oracle 的配置方案?
  • Linux主机下配置Oracle 10G自动启动过程记
  • 如何配置 linux 下 oracle 的 listener .ora 和
  • 求.bash_profile配置oracle详解
  • 用redhat linux8.0+Oracle8i做网络数据库服务器,我需要怎样配置?
  • 配置Oracle RAC需要注意的问题
  • Oracle数据库安装配置示例
  • Linux Apache PHP Oracle 安装配置
  • 如何在linux(redhat9)下把oracle的console打开?
  • linux下oracle的console出错,怎么办?
  •  
    本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
    本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • Oracle 10g和Oracle 11g网格技术介绍
  • 虚拟机装Oracle R12与Oracle10g
  • Oracle 10g中导出到Oracle 9的问题小结
  • 安装Oracle 10g忘记sys密码
  • Oracle 10G进程体系学习笔记
  • [官方最新消息]Oracle 10G 认证考试新变化
  • SOLARIS 下如何卸载ORACLE10G
  • oracle10g 数据备份与导入
  • 为何用dbstart启动oracle10g不好用
  • linux下oracle 10g如何完全卸载?
  • Oracle 10g client for Solaris
  • 急求Linux下oracle 10g和weblogic 9的安装
  • Linux系统下利用java连接Oracle 10G
  • Linux下完全卸载ORACLE 10G的方法
  • Linux下Oracle 10G DBCA等汉字乱码解决方法
  • redhat as 4 下如何安装oracle 10g ?
  • 求助前辈们:solaris 10 x86 安装oracle 10g 错误
  • 将Oracle 8i数据成功移植Oracle 10g的方法
  • 上传一个非常详细的Oracle10G在IBMAIX 5L上的安装步骤与大家分享
  • linux as3 安装oracle10g ,web端能访问,终端用命令不能进入
  • 如何升级Oracle 9i到10g
  • Oracle 12c发布简单介绍及官方下载地址
  • 在linux下安装oracle,如何设置让oracle自动启动!也就是让oracle那个服务自动启动,不是手动的
  • oracle 11g最新版官方下载地址
  • 请问su oracle 和su - oracle有什么不同?
  • Oracle 数据库(oracle Database)Select 多表关联查询方式
  • Oracle 数据库开发工具 Oracle SQL Developer
  • Oracle数据库(Oracle Database)体系结构及基本组成介绍
  • Oracle EBS R12 支持 Oracle Database 11g
  • 如何设置让Oracle SQL Developer显示的时间包含时分秒
  • SCO unix下安装oracle,但没有光盘,请大家推荐一个oracle下载站点(unix版本的)。谢谢!!!!


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,