使用emctl status dbconsole命令发现em不在运行状态

[[email protected] DBOracle]$ emctl status dbconsole 
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0 
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved. 
https://localhost.localdomain:1158/em/console/aboutApplication 
Oracle Enterprise Manager 11g is not running. 
------------------------------------------------------------------ 
Logs are generated in directory /usr/oracle/DBOracle/app/localhost.localdomain_mwdb/sysman/log

根据提示帮助,使用emca -config dbcontrol db -repos recreate重建。

[[email protected] DBOracle]$ emca -config dbcontrol db -repos recreate

STARTED EMCA at Oct 17, 2011 9:54:44 AM 
EM Configuration Assistant, Version 11.2.0.0.2 Production 
Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Enter the following information: 
Database SID: mwdb 
Database Control is already configured for the database mwdb 
You have chosen to configure Database Control for managing the database mwdb 
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 [ /usr/oracle/DBOracle/app ]: 
Password for SYS user:  
Password for DBSNMP user: [[email protected] DBOracle]$ 
[[email protected] DBOracle]$ emca -config dbcontrol db -repos recreate

STARTED EMCA at Oct 17, 2011 9:55:44 AM 
EM Configuration Assistant, Version 11.2.0.0.2 Production 
Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Enter the following information: 
Database SID: mwdb 
Database Control is already configured for the database mwdb 
You have chosen to configure Database Control for managing the database mwdb 
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 [ /usr/oracle/DBOracle/app ]: 
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 ................ /usr/oracle/DBOracle/app

Local hostname ................ localhost.localdomain 
Listener ORACLE_HOME ................ /usr/oracle/DBOracle/app 
Listener port number ................ 1522 
Database SID ................ mwdb 
Email address for notifications ............... 
Outgoing Mail (SMTP) server for notifications ...............

----------------------------------------------------------------- 
Do you wish to continue? [yes(Y)/no(N)]: y 
Oct 17, 2011 9:56:28 AM oracle.sysman.emcp.EMConfig perform 
INFO: This operation is being logged at /usr/oracle/cfgtoollogs/emca/mwdb/emca_2011_10_17_09_55_44.log. 
Oct 17, 2011 9:56:28 AM oracle.sysman.emcp.util.DBControlUtil stopOMS 
INFO: Stopping Database Control (this may take a while) ... 
Oct 17, 2011 9:56:31 AM oracle.sysman.emcp.EMReposConfig invoke 
INFO: Dropping the EM repository (this may take a while) ... 
Oct 17, 2011 9:58:23 AM oracle.sysman.emcp.EMReposConfig invoke 
INFO: Repository successfully dropped 
Oct 17, 2011 9:58:23 AM oracle.sysman.emcp.EMReposConfig createRepository 
INFO: Creating the EM repository (this may take a while) ... 
Oct 17, 2011 10:04:20 AM oracle.sysman.emcp.EMReposConfig invoke 
INFO: Repository successfully created 
Oct 17, 2011 10:04:21 AM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository 
INFO: Uploading configuration data to EM repository (this may take a while) ... 
Oct 17, 2011 10:05:06 AM oracle.sysman.emcp.EMReposConfig invoke 
INFO: Uploaded configuration data successfully 
Oct 17, 2011 10:05:09 AM oracle.sysman.emcp.util.DBControlUtil configureSoftwareLib 
INFO: Software library configured successfully. 
Oct 17, 2011 10:05:09 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary 
INFO: Deploying Provisioning archives ... 
Oct 17, 2011 10:05:28 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary 
INFO: Provisioning archives deployed successfully. 
Oct 17, 2011 10:05:28 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole 
INFO: Securing Database Control (this may take a while) ... 
Oct 17, 2011 10:06:07 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole 
INFO: Database Control secured successfully. 
Oct 17, 2011 10:06:07 AM oracle.sysman.emcp.util.DBControlUtil startOMS 
INFO: Starting Database Control (this may take a while) ... 
Oct 17, 2011 10:06:21 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration 
INFO: Database Control started successfully 
Oct 17, 2011 10:06:21 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration 
INFO: >>>>>>>>>>> The Database Control URL is https://localhost.localdomain:1158/em <<<<<<<<<<< 
Oct 17, 2011 10:06:23 AM 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: /usr/oracle/DBOracle/app/localhost.localdomain_mwdb/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 Oct 17, 2011 10:06:23 AM

再次启动em,启动成功。

时间: 2024-10-20 03:38:01

使用emctl status dbconsole命令发现em不在运行状态的相关文章

emctl start dbconsole OC4J_dbconsole*** not found

C:\windows\system32>emctl start dbconsole OC4J Configuration issue. D:\app\product\11.1.0\db_1/oc4j/j2ee/OC4J_DBConsole_ghost1_orcl not found. 查看监听状态,环境变量 C:\windows\system32>echo %ORACLE_HOME% D:\app\product\11.1.0\db_1 C:\windows\system32>echo

Oracle故障排除:emctl start dbconsole遇到错误:OC4J Configuration issue

1.今天启动一台centos6.5上的oracle 11G 11.2.0.1.0下emctl start dbconsole报错:OC4J Configuration issue. 2.采取重新配置emctl的方法来试着解决,没有成功.系统显示shared_pool_size和hjob_quequ_processes参数不够大.于是以sys用户登录到oracle,修改参数: 3.再次重新配置emctl,过程如下: 4.输入https://ip:1158/em登录到Oracle EM企业管理器.

git status -s命令解析

git status -s 以精简的方式显示文件状态. git status 输出的命令很详细,但有些繁琐. 如果用 git status -s 或 git status --short 命令,会得到更为紧凑的格式输出. 新添加的未跟踪文件前面有 ?? 标记, 新添加到暂存区中的文件前面有 A 标记, 修改过的文件前面有 M标记. M 有两个可以出现的位置,出现在右边的 M 表示该文件被修改了但是还没放入暂存区,出现在靠左边的 M 表示该文件被修改了并放入了暂存区. 输出标记会有两列,第一列是对

25. PowerShell -- 命令发现和脚本块

PowerShell之发现命令 从用户的角度来看,在Powershell控制台上输入一条命令,然后直接回车执行,是一件简单的事情,事实上Powershell在后台做了很多事情,其中第一步,就是查看用户输入的命令是否可用,这个步骤也被称作自动化发现命令.使用Get-Command 命令可以查看当前作用域支持的所有命令.如果你想查看关于 LS 命令的信息,请把它传递给Get-Command. PS C:> Get-command LS CommandType Name Definition ----

重新配置EM 三步

1.使用"emca -deconfig dbcontrol db"命令删除配置 2.使用"emca -repos drop"命令删除 repository 3.使用"emca -config dbcontrol db -repos create"命令进行创建em 使用 emctl status dbconsole 可查看em状态 重新配置EM 三步

oracle一些命令

在windows server2008r2上oracle11g启动EM命令: 1.在开始运行里键入set ORACLE_SID=orcl   (你的库的实例名 )2.运行emctl start dbconsole启动EM 3.运行emctl status dbconsole,检查EM运行情况 启动后就可以在WEB界面访问 https://ip:1158/em/ 启动监听  cmd->:lsnrctl start  启动数据库  cmd-> sqlplus / as sysdba        

oracle em企业管理器的安装、配置及相关问题

2017-05-10 一.配置ORACLE_UNQNAME环境变量 二.重建EM资料库:emca -repos recreate 三.配置EM账号密码:DBSNMP.SYSMAN 四.配置EM资料库:emca -config dbcontrol db 五.解决Listener status UNKNOW 问题 六.企业生产环境EM外网端口映射 #查看EM进程 emctl status dbconsole #查看ORACLE_UNQNAME环境变量 select name, db_unique_n

OEM重新配置EM资料库

方法1:通过emca命令重新创建 C:\Users\Administrator>emca -repos recreate EMCA 开始于 2017-9-4 11:40:23 EM Configuration Assistant, 11.2.0.0.2 正式版 版权所有 (c) 2003, 2005, Oracle.保留所有权利. 输入以下信息: 数据库 SID: orcl 监听程序端口号: 1521 SYS 用户的口令: SYSMAN 用户的口令: 是否继续? [是(Y)/否(N)]: y 2

oracle系列(六)OEM与常见故障处理

博主QQ:819594300 博客地址:http://zpf666.blog.51cto.com/ 有什么疑问的朋友可以联系博主,博主会帮你们解答,谢谢支持! 前言:oracle除了使用命令操作以外,还可以使用OEM图形化管理,日常的管理工作都可以通过OEM操作,包括数据库对象的创建,用户权限的管理,数据文件和参数的配置.备份和恢复操作等. 一.OEM知识点 1.OEM简介 OEM是采用直观而且方便的图像化界面来控制和管理ORACLE数据库的工具集,它包含大量对DBA有用的工具.在oracle中