再建 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 成功。

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

手工建oracle的em

  • 2012-02-29 11:51
  • 22KB
  • 下载

oracle_EM无法正常启动

  • 2013-11-15 16:28
  • 72KB
  • 下载

ORACLE 11R2 RAC EM 安装日记

ORACLE环境 1) ORACLE版本 sys@HORACLED> select * from v$version; Oracle Database 11g Enterprise Editio...

Oracle10g EM Console配置

  • 2011-06-16 16:12
  • 54KB
  • 下载

转eygle:Oracle10g EM乱码之快速解决

Oracle10g EM乱码之快速解决 作者:eygle |English Version 【转载时请以超链接形式标明文章出处和作者信息及本声明】 链接:http://www.eygle.c...

Oracle EM 的启动错误

  • 2011-02-28 12:01
  • 626KB
  • 下载

Oracle10g重建EM 报ORA-20001: SYSMAN already exists

10g重建EM 报ORA-20001: SYSMAN already exists 解决方法: Logon SQLPLUS as user SYS or SYSTEM, and drop the ...
  • turk
  • turk
  • 2012-03-14 08:39
  • 4184
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

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