再建 oracle em

先 看一下: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 成功。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

shenghuiping2001

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值