再建 oracle em
来源:互联网 发布:淘宝虚拟试衣间还有吗 编辑:程序博客网 时间:2024/06/04 17:41
先 看一下: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
- oracle EM
- Oracle EM
- Oracle EM
- oracle EM
- oracle em配置
- 如何启动 oracle EM
- ORACLE EM 报错一例!
- oracle em启动总结
- 重新配置Oracle EM
- oracle em 重建
- Oracle EM 命令
- oracle 10.2 重建em
- Oracle em相关
- oracle 配置em
- Oracle EM 启动出错
- Oracle EM相关知识
- Oracle EM 常见问题总结
- 可多行显示和输入的TextBox(java)
- grub rescue 的修复(Error:no such device)!
- 工厂设计模式
- 工厂设计模式
- POJ 1401 Factorial 解题报告
- 再建 oracle em
- 想跳槽时看看
- dfsdf
- ubuntu下rar中文名乱码问题
- 枚举
- 评语
- 在线人员控制代码
- Linux下Java编程
- 通过HQL来进行批量操作