ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 初试Oracle Enterprise Manager

初试Oracle Enterprise Manager

原创 Linux操作系统 作者:lsq_008 时间:2009-03-18 13:33:00 0 删除 编辑

   以前从没使用过Oracle Enterprise Manager,今天在看administrator guide时看到了这个,按照文档上的命令,尝试启动服务:

-bash-3.00$ emctl start dbconsole
TZ set to US/Eastern
OC4J Configuration issue. /oracle/product/10204/oc4j/j2ee/OC4J_DBConsole_ora_server_ebank not found.

查了一下metalink,原来是没有配置,手动进行配置:

-bash-3.00$ emca -config dbcontrol db -repos create

STARTED EMCA at Mar 18, 2009 11:36:55 AM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Enter the following information:
Database SID: ebank
Listener port number: 1521
Password for SYS user: 
Password for DBSNMP user: 
Invalid username/password. [ORA-01034: ORACLE not available]
Password for DBSNMP user: 
Password for SYSMAN user: 
Email address for notifications (optional):
lly-007@163.com
Outgoing Mail (SMTP) server for notifications (optional):
-----------------------------------------------------------------

You have specified the following settings

Database ORACLE_HOME ................ /oracle/product/10204

Database hostname ................ ora_server
Listener port number ................ 1521
Database SID ................ ebank
Email address for notifications ...............
lly-007@163.com
Outgoing Mail (SMTP) server for notifications ...............

-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
Mar 18, 2009 11:41:29 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /oracle/product/10204/cfgtoollogs/emca/ebank/emca_2009-03-18_11-36-55-AM.log.
Mar 18, 2009 11:41:33 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Mar 18, 2009 11:47:10 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Mar 18, 2009 11:47:54 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Mar 18, 2009 11:48:02 AM oracle.sysman.emcp.util.PlatformInterface executeCommand
WARNING: Error executing /oracle/product/10204/bin/emctl config emkey -repos
Mar 18, 2009 11:48:02 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
WARNING: Configuring EM-Key failed.
Mar 18, 2009 11:48:02 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
WARNING: Error securing Database control.
Mar 18, 2009 11:48:02 AM oracle.sysman.emcp.EMDBPostConfig setWarnMsg
INFO: Error securing Database Control, Database Control has been brought up in non-secure mode. To secure the Database Control execute the following command(s):
 
 1) Set the environment variable ORACLE_SID to ebank
 2) /oracle/product/10204/bin/emctl stop dbconsole
 3) /oracle/product/10204/bin/emctl config emkey -repos -sysman_pwd < Password for SYSMAN user > 
 4) /oracle/product/10204/bin/emctl secure dbconsole -sysman_pwd < Password for SYSMAN user > 
 5) /oracle/product/10204/bin/emctl start dbconsole
 
 To secure Em Key, run /oracle/product/10204/bin/emctl config emkey -remove_from_repos -sysman_pwd < Password for SYSMAN user >
Mar 18, 2009 11:48:02 AM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Mar 18, 2009 11:50:00 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Mar 18, 2009 11:50:02 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is
http://ora_server:1158/em <<<<<<<<<<<


Error securing Database Control, Database Control has been brought up in non-secure mode. To secure the Database Control execute the following command(s):
 
 1) Set the environment variable ORACLE_SID to ebank
 2) /oracle/product/10204/bin/emctl stop dbconsole
 3) /oracle/product/10204/bin/emctl config emkey -repos -sysman_pwd < Password for SYSMAN user > 
 4) /oracle/product/10204/bin/emctl secure dbconsole -sysman_pwd < Password for SYSMAN user > 
 5) /oracle/product/10204/bin/emctl start dbconsole
 
 To secure Em Key, run /oracle/product/10204/bin/emctl config emkey -remove_from_repos -sysman_pwd < Password for SYSMAN user >

配置完成之后,就可以在浏览器里输入:http://hostname:portnumber/em登陆管理界面了。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10972173/viewspace-571402/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
十余年大型金融及电信系统数据库管理经验,曾服务于中国建设银行、中国移动。对oracle,mysql数据库有深入了解。 擅长python开发,独立开发了开源数据库自动化监控运维平台Power Monitor。

注册时间:2008-02-29

  • 博文量
    325
  • 访问量
    1239284