Oracle 11G EM 问题

Microsoft Windows [版本 6.1.7600]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Users\Administrator>emca -config dbcontrol db

EMCA 开始于 2012-8-31 9:19:26
EM Configuration Assistant, 11.2.0.0.2 正式版
版权所有 (c) 2003, 2005, Oracle。保留所有权利。

输入以下信息:
数据库 SID: orcl
已为数据库 orcl 配置了 Database Control
您已选择配置 Database Control, 以便管理数据库 orcl
此操作将移去现有配置和默认设置, 并重新执行配置
是否继续? [是(Y)/否(N)]: y
监听程序 ORACLE_HOME [ E:\app\Administrator\product\11.2.0\dbhome_1 ]:
SYS 用户的口令:
DBSNMP 用户的口令:
SYSMAN 用户的口令:
通知的电子邮件地址 (可选):
通知的发件 (SMTP) 服务器 (可选):
-----------------------------------------------------------------

已指定以下设置

数据库 ORACLE_HOME ................ E:\app\Administrator\product\11.2.0\dbhome_1


本地主机名 ................ water
监听程序 ORACLE_HOME ................ E:\app\Administrator\product\11.2.0\dbhome
_1
监听程序端口号 ................ 1521
数据库 SID ................ orcl
通知的电子邮件地址 ...............
通知的发件 (SMTP) 服务器 ...............

-----------------------------------------------------------------
是否继续? [是(Y)/否(N)]: y
2012-8-31 9:20:02 oracle.sysman.emcp.EMConfig perform
信息: 正在将此操作记录到 E:\app\Administrator\cfgtoollogs\emca\orcl\emca_2012_08
_31_09_19_26.log。
2012-8-31 9:20:03 oracle.sysman.emcp.DatabaseChecks performReposChecks
严重: 'job_queue_processes' 必须大于等于 1。  改正错误, 然后以独立模式重新运行 E
M Configuration Assistant。
2012-8-31 9:20:03 oracle.sysman.emcp.EMConfig perform
严重: 'job_queue_processes' 必须大于等于 1。  改正错误, 然后以独立模式重新运行 E
M Configuration Assistant。
有关详细资料, 请参阅 E:\app\Administrator\cfgtoollogs\emca\orcl\emca_2012_08_31_
09_19_26.log 中的日志文件。
无法完成配置。 有关详细资料, 请参阅 E:\app\Administrator\cfgtoollogs\emca\orcl\e
mca_2012_08_31_09_19_26.log 中的日志文件。

C:\Users\Administrator>sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on 星期五 8月 31 09:20:34 2012

Copyright (c) 1982, 2010, Oracle.  All rights reserved.


连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select * from v$version
  2  ;

BANNER
--------------------------------------------------------------------------------

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE    11.2.0.1.0      Production
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production

SQL> quit
从 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 断


C:\Users\Administrator>sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on 星期五 8月 31 09:21:31 2012

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

SQL> conn / as sysdba
已连接。
SQL> alter system set job_queue_processer=5;
alter system set job_queue_processer=5
                 *
第 1 行出现错误:
ORA-02065: 非法的 ALTER SYSTEM 选项


SQL>  set job_queue_processer=5;
SP2-0735: 未知的 SET 选项开头 "job_queue_..."
SQL> alter system set job_queue_processer=5;
alter system set job_queue_processer=5
                 *
第 1 行出现错误:
ORA-02065: 非法的 ALTER SYSTEM 选项


SQL> connect orcl/orcl
ERROR:
ORA-01017: invalid username/password; logon denied


警告: 您不再连接到 ORACLE。
SQL> connect system/w123
已连接。
SQL> show parameter job;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
job_queue_processes                  integer     0
SQL> alter system set job_queue_processes=5;

系统已更改。

SQL> quit
从 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 断


C:\Users\Administrator>emca -config dbcontrol db

EMCA 开始于 2012-8-31 9:26:56
EM Configuration Assistant, 11.2.0.0.2 正式版
版权所有 (c) 2003, 2005, Oracle。保留所有权利。

输入以下信息:
数据库 SID: orcl
已为数据库 orcl 配置了 Database Control
您已选择配置 Database Control, 以便管理数据库 orcl
此操作将移去现有配置和默认设置, 并重新执行配置
是否继续? [是(Y)/否(N)]: y
监听程序 ORACLE_HOME [ E:\app\Administrator\product\11.2.0\dbhome_1 ]:
SYS 用户的口令:
DBSNMP 用户的口令:
SYSMAN 用户的口令:
SYSMAN 用户的口令: 通知的电子邮件地址 (可选):
通知的发件 (SMTP) 服务器 (可选):
-----------------------------------------------------------------

已指定以下设置

数据库 ORACLE_HOME ................ E:\app\Administrator\product\11.2.0\dbhome_1


本地主机名 ................ water
监听程序 ORACLE_HOME ................ E:\app\Administrator\product\11.2.0\dbhome
_1
监听程序端口号 ................ 1521
数据库 SID ................ orcl
通知的电子邮件地址 ...............
通知的发件 (SMTP) 服务器 ...............

-----------------------------------------------------------------
是否继续? [是(Y)/否(N)]: y
2012-8-31 9:27:16 oracle.sysman.emcp.EMConfig perform
信息: 正在将此操作记录到 E:\app\Administrator\cfgtoollogs\emca\orcl\emca_2012_08
_31_09_26_56.log。
2012-8-31 9:27:18 oracle.sysman.emcp.util.DBControlUtil stopOMS
信息: 正在停止 Database Control (此操作可能需要一段时间)...
2012-8-31 9:27:26 oracle.sysman.emcp.EMReposConfig invoke
严重: 无法对所有 EM 相关帐户解锁
2012-8-31 9:27:26 oracle.sysman.emcp.EMConfig perform
严重: 无法对所有 EM 相关帐户解锁
有关详细资料, 请参阅 E:\app\Administrator\cfgtoollogs\emca\orcl\emca_2012_08_31_
09_26_56.log 中的日志文件。
无法完成配置。 有关详细资料, 请参阅 E:\app\Administrator\cfgtoollogs\emca\orcl\e
mca_2012_08_31_09_26_56.log 中的日志文件。


你是全新安装的数据库,然后自带的数据库实例打不开?如果这样你还是重新来过吧。。
如果你是自己手动按数据库实例,你的配置em,不配肯定进不去。

先配监听再配em,配完em配dbcontrol,我自己摸索出来的。。。

你按着这个顺序来试试,不行的话我也不会了

1、设置好监听器,用lsnrctl start启动,然后用lsnrctl statu观察一下是否成功
2、emca -deconfig dbcontrol db 删除dbcontrol 
3、emca -repos drop删除EM资料库
4、emca -repos create创建资料库
5、emca -config dbcontrol db重新配置dbcontrol

猜你喜欢

转载自bioubiou.iteye.com/blog/1668476