Oracle 11g r2安装完,建完库之后,启动em 报OC4J_DBConsole_source_ora11g not found的错误,em起不来。
[oracle@source ~]$ emctl start dbconsole
OC4J Configuration issue. /oracle/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_source_ora11g not found.
由于是新环境,重新创建资料档案库,并重新配置数据库control
[oracle@source admin]$ emca -repos drop --删除当前的资料库
STARTED EMCA at Dec 8, 2012 1:13:13 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: ora11g
Listener port number: 1521
Password for SYS user:
Password for SYSMAN user:
Do you wish to continue? [yes(Y)/no(N)]: yes
Dec 8, 2012 1:13:47 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /oracle/cfgtoollogs/emca/ora11g/emca_2012_12_08_13_13_12.log.
Dec 8, 2012 1:14:08 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Dec 8, 2012 1:20:13 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Enterprise Manager configuration completed successfully
FINISHED EMCA at Dec 8, 2012 1:20:13 PM
[oracle@source admin]$ emca -repos create --创建新的资料库
STARTED EMCA at Dec 8, 2012 1:20:42 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: ora11g
Listener port number: 1521
Password for SYS user:
Password for SYSMAN user:
Do you wish to continue? [yes(Y)/no(N)]: Y
Dec 8, 2012 1:21:02 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /oracle/cfgtoollogs/emca/ora11g/emca_2012_12_08_13_20_41.log.
Dec 8, 2012 1:21:03 PM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Dec 8, 2012 1:32:44 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Enterprise Manager configuration completed successfully
FINISHED EMCA at Dec 8, 2012 1:32:44 PM
[oracle@source admin]$ emca -config dbcontrol db --配置database control
STARTED EMCA at Dec 8, 2012 1:55:39 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: ora11g
Database Control is already configured for the database ora11g
You have chosen to configure Database Control for managing the database ora11g
This will remove the existing configuration and the default settings and perform a fresh configuration
Do you wish to continue? [yes(Y)/no(N)]: Y
Listener ORACLE_HOME [ /oracle/product/10.2.0/db_1 ]:
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
-----------------------------------------------------------------
You have specified the following settings
Database ORACLE_HOME ................ /oracle/product/10.2.0/db_1
Local hostname ................ source
Listener ORACLE_HOME ................ /oracle/product/10.2.0/db_1
Listener port number ................ 1521
Database SID ................ ora11g
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Dec 8, 2012 1:56:34 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /oracle/cfgtoollogs/emca/ora11g/emca_2012_12_08_13_55_38.log.
Dec 8, 2012 1:56:37 PM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Dec 8, 2012 1:57:33 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Dec 8, 2012 2:00:53 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Dec 8, 2012 2:01:28 PM oracle.sysman.emcp.util.DBControlUtil configureSoftwareLib
INFO: Software library configured successfully.
Dec 8, 2012 2:01:28 PM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Deploying Provisioning archives ...
Dec 8, 2012 2:06:40 PM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Provisioning archives deployed successfully.
Dec 8, 2012 2:06:40 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Dec 8, 2012 2:07:45 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Dec 8, 2012 2:07:45 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Dec 8, 2012 2:11:38 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Dec 8, 2012 2:11:39 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://source:5500/em <<<<<<<<<<<
Dec 8, 2012 2:20:53 PM oracle.sysman.emcp.EMDBPostConfig invoke
WARNING:
************************ 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: /oracle/product/10.2.0/db_1/source_ora11g/sysman/config/emkey.ora. Please ensure this file is backed up as the encrypted data will become unusable if this file is lost.
***********************************************************
Enterprise Manager configuration completed successfully
FINISHED EMCA at Dec 8, 2012 2:20:53 PM
emca -repos create: 创建新的 Database Control 资料档案库
emca -repos drop: 删除当前的 Database Control 资料档案库
emca -repos recreate: 删除当前的 Database Control 资料档案库并重新创建一个
emca -config dbcontrol db:配置数据库的 Database Control
emca -deconfig dbcontrol db:取消数据库的 Database Control
注:
(1)如果服务器上存在多个数据库,必须在启动Database control之前设置ORACLE_SID环境变量.
(2)最好使用静态IP地址来配置服务器.

- 大小: 65 KB
分享到:
相关推荐
### Oracle 10g IP更改后EM无法启动的解决方案 #### 背景与问题描述 在使用Oracle 10g的过程中,很多用户都遇到了IP地址更改后EM(Enterprise Manager)无法正常启动的问题。特别是在使用笔记本电脑的情况下,当...
### Oracle DBConsoleOcl 服务无法启动解决办法详解 #### 问题概述 在Windows操作系统下,用户遇到Oracle DBConsoleOcl服务无法启动的问题。具体表现为系统提示“Windows不能在本地计算机上启动OracleDBConsoleorcl...
然而,在某些情况下,DBConsole 可能无法启动,导致无法访问数据库管理界面。本文档将提供解决 DBConsole 起不来问题的方法。 问题分析: 在 Oracle 环境中,DBConsole 的启动依赖于多个组件,包括 Database ...
如果出现类似 "not found" 的错误信息,说明 DBCONSOLE 未配置。你可以通过查看 `$ORACLE_HOME/oc4j/j2ee` 目录下的内容来确认这一点。如果缺少以 `<hostname>_<SID>` 命名的 `OC4J_DBConsole` 子目录,则表明 ...
System.out.println("Error: Oracle JDBC driver not found."); e.printStackTrace(); } catch (SQLException e) { System.out.println("Error connecting to database:"); e.printStackTrace(); } } } ``` ...
11. **游标**:游标用于处理SQL查询结果集,有OPEN、FETCH、CLOSE等步骤,其四个主要属性是%ISOPEN、%FOUND、%NOTFOUND和%ROWCOUNT。 12. **数据导入导出**:Oracle提供了IMP和EXP工具进行数据导入和导出,或者使用...
六、 oracle安装、卸载和启动 硬件要求 物理内存:1GB 可用物理内存:50M 交换空间大小:3.25GB 硬盘空间:10GB 安装 1. 安装程序成功下载,将会得到如下2个文件: 解压文件将得到database文件夹,文件组织...
2. **游标通常分为_(显式)_和_(隐式)_两种,其属性分别是___(%NOTFOUND,%FOUND,%ISOPEN,%ROWCOUNT),(SQL%NOTFOUND,SQL%FOUND,SQL%ROWCOUNT, SQL%ISOPEN)_。** - 游标是用于处理查询结果集的一种机制。显式游标...