再建 oracle em

原创 2011年01月08日 12:37:00

先 看一下:oracle_home:

 

echo $ORACLE_HOSTNAME
hgpsfesvc

 

在看一下hostname

 

echo $hostname
hgpsfe01

 

看刚才报错:是configuration, 触发问题,所以考虑 修改/etc/hosts

 

vi /etc/hosts

43.82.201.176 hgpsfesvc  hgpsfe_svc

 

在这个ip 后 的hostname 中再加上 hgpsfe01

 

43.82.201.176 hgpsfesvc hgpsfe01 hgpsfe_svc

 

发现 还是配置有问题。

 

再想: 加上 127.0.0.1

 

127.0.0.1 hgpsfesvc hgpsfe01 hgpsfe_svc

报存后,再 建:


oracle@hgpsfe01:/oracle$ export ORACLE_HOSTNAME=hgpsfe01
oracle@hgpsfe01:/oracle$ emca -config dbcontrol db -repos recreate                               

STARTED EMCA at Jan 7, 2011 5:49:46 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: sfe
Listener port number: 1521
Listener ORACLE_HOME [ /oracle/app/oracle/product/11g/db ]:
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/app/oracle/product/11g/db

Local hostname ................ hgpsfe01
Listener ORACLE_HOME ................ /oracle/app/oracle/product/11g/db
Listener port number ................ 1521
Database SID ................ sfe
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............

-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Jan 7, 2011 5:50:18 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /oracle/app/oracle/cfgtoollogs/emca/sfe/emca_2011_01_07_17_49_46.log.
Jan 7, 2011 5:50:20 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Jan 7, 2011 5:53:10 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Jan 7, 2011 5:53:10 PM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Jan 7, 2011 6:03:14 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Jan 7, 2011 6:03:19 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Jan 7, 2011 6:04:48 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Jan 7, 2011 6:04:52 PM oracle.sysman.emcp.util.DBControlUtil configureSoftwareLib
INFO: Software library configured successfully.
Jan 7, 2011 6:04:52 PM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Deploying Provisioning archives ...
Jan 7, 2011 6:05:37 PM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Provisioning archives deployed successfully.
Jan 7, 2011 6:05:37 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Jan 7, 2011 6:06:57 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
WARNING: Error executing /oracle/app/oracle/product/11g/db/bin/emctl secure dbconsole -host hgpsfe01 -sid sfe
Jan 7, 2011 6:06:57 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
WARNING: Error securing Database control.
Jan 7, 2011 6:06:57 PM 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 sfe
 2) /oracle/app/oracle/product/11g/db/bin/emctl stop dbconsole
 3) /oracle/app/oracle/product/11g/db/bin/emctl config emkey -repos -sysman_pwd < Password for SYSMAN user > 
 4) /oracle/app/oracle/product/11g/db/bin/emctl secure dbconsole -sysman_pwd < Password for SYSMAN user > 
 5) /oracle/app/oracle/product/11g/db/bin/emctl start dbconsole
 
 To secure Em Key, run /oracle/app/oracle/product/11g/db/bin/emctl config emkey -remove_from_repos -sysman_pwd < Password for SYSMAN user >
Jan 7, 2011 6:06:57 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Jan 7, 2011 6:08:22 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Jan 7, 2011 6:08:22 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is http://hgpsfe01: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 sfe
 2) /oracle/app/oracle/product/11g/db/bin/emctl stop dbconsole
 3) /oracle/app/oracle/product/11g/db/bin/emctl config emkey -repos -sysman_pwd < Password for SYSMAN user > 
 4) /oracle/app/oracle/product/11g/db/bin/emctl secure dbconsole -sysman_pwd < Password for SYSMAN user > 
 5) /oracle/app/oracle/product/11g/db/bin/emctl start dbconsole
 
 To secure Em Key, run /oracle/app/oracle/product/11g/db/bin/emctl config emkey -remove_from_repos -sysman_pwd < Password for SYSMAN user >
 
 ----
 
 装好之后测试,:https://43.82.201.176:1158/em 打不开。

 

看一下监听:


 root@hgpsfe01:/# netstat -an | grep 1158
tcp        0      0  *.1158                 *.*                    LISTEN
tcp4       0      0  43.82.201.176.44872    43.82.201.176.1158     TIME_WAIT

 

发现是开的,

 后来去 同事看看:用:http://....(不是安全模式)可以打开

http://43.82.201.176:1158/em 成功。

Enterprise Manager Database Control Configuration - Errors Due to CA Expiry (文档 ID 1222603.1)

In this Document   Purpose      What is the Issue?   Scope and Application      Who is Affected?...

手工建oracle的em

  • 2012年02月29日 11:51
  • 22KB
  • 下载

oracle_EM无法正常启动

  • 2013年11月15日 16:28
  • 73KB
  • 下载

IE11如何解决Oracle 11g EM网站报“此网站的安全证书存在问题” (一)

如何解决Oracle 11g EM网站报“此网站的安全证书存在问题” 安装好Oracle 11g后使用IE11打开OEM出现以下错误,只有关闭浏览器选项: 解决办法: 1、在IE菜单...

Oracle10g EM Console配置

  • 2011年06月16日 16:12
  • 54KB
  • 下载

Linux平台下启动oracle 11g EM控制台

当我们的oracle服务器是使用的Linux/Unix系统时,我们从windows或者其他的客户端想用启动oracle的EM工具了解一些系统系统信息时 可以采用如下方式: 首先在服务器端打开一个窗...
  • webajax
  • webajax
  • 2011年08月19日 16:07
  • 8575

Oracle EM 的启动错误

  • 2011年02月28日 12:01
  • 626KB
  • 下载

Linux平台下启动oracle 11g EM控制台

  • 2012年05月27日 22:48
  • 195KB
  • 下载

Oracle修改ip或主机名后重建em和监听

oracle数据库修改ip和主机名的详细操作 修改ip操作 1.修改hosts文件中主机名对应的ip地址。 2.重启服务器网络 service network resta...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:再建 oracle em
举报原因:
原因补充:

(最多只允许输入30个字)