emca

来源:互联网 发布:在蜂窝数据找不到应用 编辑:程序博客网 时间:2024/05/28 17:06
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>emctlOracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
Oracle Enterprise Manager 10g Database Control commands:
emctl start | stop dbconsole
emctl status | secure | setpasswd dbconsole
emctl config dbconsole -heap_size <size_value> -max_perm_size <size_value>
emctl status agent
emctl status agent -secure [-omsurl <http://<oms-hostname>:<oms-unsecure-port>/em/*>]
emctl getversion
emctl reload | upload | clearstate | getversion agent
emctl reload agent dynamicproperties [<Target_name>:<Target_Type>]....
emctl config agent <options>
emctl config agent updateTZ
emctl config agent getTZ
emctl resetTZ agent
emctl config agent credentials [<Target_name>[:<Target_Type>]]
emctl gensudoprops
emctl clearsudoprops
Blackout Usage :
emctl start blackout <Blackoutname> [-nodeLevel] [<Target_name>[:<Target_Type>]].... [-d
ation>]
emctl stop blackout <Blackoutname>
emctl status blackout [<Target_name>[:<Target_Type>]]....

The following are valid options for blackouts
<Target_name:Target_type> defaults to local node target if not specified.
If -nodeLevel is specified after <Blackoutname>,the blackout will be applied to all targets and
target list that follows will be ignored.
Duration is specified in [days] hh:mm

emctl getemhome
emctl ilint
Em Key Commands Usage :
emctl config emkey -emkeyfile <emkey.ora path> [-force] [-sysman_pwd <sysman password>]
emctl config emkey -emkey [-emkeyfile <emkey.ora path>] [-force] [-sysman_pwd <sysman password>]
emctl config emkey -repos [-emkeyfile <emkey.ora path>] [-force] [-sysman_pwd <sysman password>]
emctl config emkey -remove_from_repos [-sysman_pwd <sysman password>]
emctl config emkey -copy_to_repos [-sysman_pwd <sysman password>]
emctl status emkey [-sysman_pwd <sysman password>]

Secure DBConsole Usage :
emctl secure dbconsole -sysman_pwd <sysman password> [-passwd_file <abs file loc>]
[-host <slb hostname>] [-sid <service name>] [-reset] [-secure_port <secure_port>]
[-root_dc <root_dc>] [-root_country <root_country>] [-root_state <root_state>] [-root_lo
oot_loc>]
[-root_org <root_org>] [-root_unit <root_unit>] [-root_email <root_email>]
[-wallet <wallet loc>] [-wallet_pwd <wallet pwd>] [-trust_certs_loc <certs loc>]
emctl secure status dbconsole
Register Targettype Usage :
emctl register oms targettype [-o <Output filename>] <XML filename> <rep user> <rep passwd> <rep
t> <rep port> <rep sid> OR
emctl register oms targettype [-o <Output filename>] <XML filename> <rep user> <rep passwd> <rep
nect descriptor>


C:\Documents and Settings\Administrator>emctl stop dbconsoleOracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
https://20130222-0017:5500/em/console/aboutApplication
发生系统错误 1060。

指定的服务并未以已安装的服务存在。


C:\Documents and Settings\Administrator>emctl start dbconsoleOracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
https://20130222-0017:5500/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ...服务名无效。

请键入 NET HELPMSG 2185 以获得更多的帮助。


C:\Documents and Settings\Administrator>emca -config dbcontrol db -repos create
EMCA 开始于 2013-3-31 10:11:16
EM Configuration Assistant, 11.2.0.0.2 正式版
版权所有 (c) 2003, 2005, Oracle。保留所有权利。

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

已指定以下设置

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

本地主机名 ................ 20130222-0017
监听程序 ORACLE_HOME ................ C:\app\Administrator\product\11.2.0\dbhome_1
监听程序端口号 ................ 1521
数据库 SID ................ DB02
通知的电子邮件地址 ...............
通知的发件 (SMTP) 服务器 ...............

-----------------------------------------------------------------
是否继续? [是(Y)/否(N)]: Y
2013-3-31 10:11:38 oracle.sysman.emcp.EMConfig perform
信息: 正在将此操作记录到 C:\app\Administrator\cfgtoollogs\emca\db02\emca_2013_03_31_10_11_16.log
2013-3-31 10:11:39 oracle.sysman.emcp.util.DBControlUtil stopOMS
信息: 正在停止 Database Control (此操作可能需要一段时间)...
2013-3-31 10:11:39 oracle.sysman.emcp.EMReposConfig createRepository
信息: 正在创建 EM 资料档案库 (此操作可能需要一段时间)...
2013-3-31 10:11:39 oracle.sysman.emcp.EMReposConfig invoke
严重: 创建资料档案库时出错
2013-3-31 10:11:39 oracle.sysman.emcp.EMReposConfig invoke
信息: 有关详细资料, 请参阅 C:\app\Administrator\cfgtoollogs\emca\db02\emca_repos_create_<日期>.l
中的日志文件。
2013-3-31 10:11:39 oracle.sysman.emcp.EMConfig perform
严重: 创建资料档案库时出错
有关详细资料, 请参阅 C:\app\Administrator\cfgtoollogs\emca\db02\emca_2013_03_31_10_11_16.log 中的
志文件。
无法完成配置。 有关详细资料, 请参阅 C:\app\Administrator\cfgtoollogs\emca\db02\emca_2013_03_31_1
_16.log 中的日志文件。

C:\Documents and Settings\Administrator>emca -deconfig dbcontrol db -repos drop
EMCA 开始于 2013-3-31 10:14:45
EM Configuration Assistant, 11.2.0.0.2 正式版
版权所有 (c) 2003, 2005, Oracle。保留所有权利。

输入以下信息:
数据库 SID: DB02
监听程序端口号: 1521
SYS 用户的口令:
SYSMAN 用户的口令:

是否继续? [是(Y)/否(N)]: Y
2013-3-31 10:15:00 oracle.sysman.emcp.EMConfig perform
信息: 正在将此操作记录到 C:\app\Administrator\cfgtoollogs\emca\db02\emca_2013_03_31_10_14_45.log
2013-3-31 10:15:00 oracle.sysman.emcp.util.DBControlUtil stopOMS
信息: 正在停止 Database Control (此操作可能需要一段时间)...
2013-3-31 10:15:01 oracle.sysman.emcp.EMReposConfig invoke
信息: 正在删除 EM 资料档案库 (此操作可能需要一段时间)...
2013-3-31 10:18:01 oracle.sysman.emcp.EMReposConfig invoke
信息: 已成功删除资料档案库
已成功完成 Enterprise Manager 的配置
EMCA 结束于 2013-3-31 10:18:05

C:\Documents and Settings\Administrator>sqlplus / as sysdba;
SQL*Plus: Release 11.2.0.1.0 Production on 星期日 3月 31 10:18:22 2013

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> conn root/root as sysdba;
已连接。
SQL> drop user sysman cascade;
drop user sysman cascade
*
第 1 行出现错误:
ORA-01918: 用户 'SYSMAN' 不存在


SQL> drop user mgmt_view cascade;
drop user mgmt_view cascade
*
第 1 行出现错误:
ORA-01918: 用户 'MGMT_VIEW' 不存在


SQL> drop role mgmt_user;
drop role mgmt_user
*
第 1 行出现错误:
ORA-01919: 角色 'MGMT_USER' 不存在


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

C:\Documents and Settings\Administrator>emca -config dbcontrol db -repos create
EMCA 开始于 2013-3-31 10:19:36
EM Configuration Assistant, 11.2.0.0.2 正式版
版权所有 (c) 2003, 2005, Oracle。保留所有权利。

输入以下信息:
数据库 SID: DB02
监听程序端口号: 1521
监听程序 ORACLE_HOME [ C:\app\Administrator\product\11.2.0\dbhome_1 ]:
SYS 用户的口令:
DBSNMP 用户的口令:
SYSMAN 用户的口令:
通知的电子邮件地址 (可选):
通知的发件 (SMTP) 服务器 (可选):
-----------------------------------------------------------------

已指定以下设置

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

本地主机名 ................ 20130222-0017
监听程序 ORACLE_HOME ................ C:\app\Administrator\product\11.2.0\dbhome_1
监听程序端口号 ................ 1521
数据库 SID ................ DB02
通知的电子邮件地址 ...............
通知的发件 (SMTP) 服务器 ...............

-----------------------------------------------------------------
是否继续? [是(Y)/否(N)]: Y
2013-3-31 10:19:57 oracle.sysman.emcp.EMConfig perform
信息: 正在将此操作记录到 C:\app\Administrator\cfgtoollogs\emca\db02\emca_2013_03_31_10_19_35.log
2013-3-31 10:19:58 oracle.sysman.emcp.EMReposConfig createRepository
信息: 正在创建 EM 资料档案库 (此操作可能需要一段时间)...
2013-3-31 10:28:11 oracle.sysman.emcp.EMReposConfig invoke
信息: 已成功创建资料档案库
2013-3-31 10:28:16 oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
信息: 正在将配置数据上载到 EM 资料档案库 (此操作可能需要一段时间)...
2013-3-31 10:29:30 oracle.sysman.emcp.EMReposConfig invoke
信息: 已成功上载配置数据
2013-3-31 10:29:35 oracle.sysman.emcp.util.DBControlUtil configureSoftwareLib
信息: 软件库已配置成功。
2013-3-31 10:29:35 oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
信息: 正在部署预配档案...
2013-3-31 10:30:01 oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
信息: 预配档案部署成功。
2013-3-31 10:30:20 oracle.sysman.emcp.util.DBControlUtil secureDBConsole
信息: 正在保护 Database Control (此操作可能需要一段时间)...
2013-3-31 10:30:27 oracle.sysman.emcp.util.DBControlUtil secureDBConsole
信息: 已成功保护 Database Control。
2013-3-31 10:30:27 oracle.sysman.emcp.util.DBControlUtil startOMS
信息: 正在启动 Database Control (此操作可能需要一段时间)...
2013-3-31 10:32:03 oracle.sysman.emcp.EMDBPostConfig performConfiguration
信息: 已成功启动 Database Control
2013-3-31 10:32:03 oracle.sysman.emcp.EMDBPostConfig performConfiguration
信息: >>>>>>>>>>> Database Control URL 为 https://20130222-0017:5500/em <<<<<<<<<<<
2013-3-31 10:32:07 oracle.sysman.emcp.EMDBPostConfig invoke
警告:
************************ WARNING ************************

管理资料档案库已置于安全模式下, 在此模式下将对 Enterprise Manager 数据进行加密。加密密钥已放置在文件
C:/app/Administrator/product/11.2.0/dbhome_1/20130222-0017_db02/sysman/config/emkey.ora 中。请务必
备份此文件, 因为如果此文件丢失, 则加密数据将不可用。

***********************************************************
已成功完成 Enterprise Manager 的配置
EMCA 结束于 2013-3-31 10:32:07

https://127.0.0.1:1158/em/