下面是测试一下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创建数据库的时候也没有勾上。
- 大小: 34.5 KB
分享到:
相关推荐
【网络同传后ORACLE 10g OEM配置解决方案】 在网络通信领域,高效的数据管理和维护是至关重要的。ORACLE 10g是一个广泛使用的的关系型数据库管理系统,它提供了强大的数据存储和管理功能。然而,在使用网络同传技术...
### Linux下安装与配置Oracle 10g #### 一、概述 在Linux环境中安装Oracle 10g是一项常见的数据库管理任务,对于那些希望在开源操作系统上运行Oracle数据库的用户来说尤为重要。本文将详细介绍如何在Linux系统(以...
总结起来,Oracle 10g的数据库应用教程详细介绍了如何使用Enterprise Manager 10g进行高效管理,以及Oracle Administration Assistant在Windows环境下的配置和管理作用。这些工具的使用,极大地提高了数据库的管理...
- **Oracle 10g**:分为企业版、标准版和Express版,其中企业版适用于大型企业级应用,而Express版则更适用于小型项目或个人开发。 DB2 UDB for Linux/Unix/Windows (LUW) V9.1则提供了以下版本: - **企业服务器...
在IT管理领域,Enterprise Manage(通常指的是Oracle Enterprise Manager,简称OEM)是一个强大的工具,用于监控、管理和维护Oracle数据库及相关的IT基础设施。在本场景中,用户遇到了在配置Enterprise Manage时启动...
根据提供的文件信息,我们可以了解到这份文档主要关注的是Oracle 10g版本中EMCA(Enterprise Manager Configuration Assistant)的配置和管理。以下将详细介绍这些配置命令及其功能。 ### 一、EMCA基本概念 EMCA是...
#### 四、Oracle 10g OEM 权限问题解决 在遇到远程操作异常错误时(如`RemoteOperationException: ERROR: Wrong password for user`),可能是因为权限问题导致的。可以通过以下步骤解决: 1. **打开本地安全策略*...
在使用Oracle数据库时,用户可能会遇到无法启动Oracle Enterprise Manager (OEM) Database Control(通常简称为Oracle DB Console)的问题。这个问题可能由多种因素引起,包括环境变量未正确设置、配置文件错误等。...
这个问题通常出现在Oracle 10g版本的安装过程中。 #### 二、错误分析与日志检查 当OracleDBConsoleorcl服务无法启动时,第一步是检查相关的日志文件以获取更多细节。根据题目中的部分日志信息,可以看到以下关键...
,5)oracle的企业管理器(oem,oracle,enterprise,manager),位置在,,开始,程序,oracle,oracle,oraclehome90,enterprise,manager,console, ,,即可启动oracle的企业管理器,是一个图形界面环境, , , , 四、Sql*plus的...
3. Oracle Enterprise Manager (OEM):全面的数据库监控和管理工具,包含DB Console、Grid Control等组件。 4. RMAN:Oracle的备份恢复工具,支持自动备份策略和恢复操作。 5. Data Pump:高效的数据迁移和导出导入...
3. 通过OEM(Oracle Enterprise Manager)登录:通过"开始" → "所有程序" → "Oracle-OraHome92" → "Enterprise Manager Console",选择"独立启动"登录。 三、SQL*PLUS常用命令 在SQL*PLUS中,用户可以进行多种...
配置 Oracle 数据库以便进行配置日志记录 151 设置“配置日志记录”属性 151 设置“配置日志记录”属性 151 委派“配置日志记录”管理 152 使用配置日志 152 查看“配置日志记录”属性 152 查看“配置日志记录”属性...