linux是centos 7.2 mini版的。
在安装好数据库后,能正常启动使用,
但是在安装em时,过程如下
配置OEM的方法
1.设置export ORACLE_UNQNAME等于oracle_sid
2.检查orapwSID文件是否存在
3.[oracle@localhost admin]$ emca -repos recreate等待成功
4.以sys用户登录oracle数据库
[oracle@localhost admin]$ sqlplus / as sysdba
执行
SQL> alter user DBSNMP identified by oracle ;
SQL> alter user sysman identified by oracle ;
回到shell
5.[oracle@localhost admin]$ emca -config dbcontrol db
6.测试
emctl start dbconsole
emctl status dbconsole
2017-8-2 17:39:43 oracle.sysman.emcp.util.PlatformInterface executeCommand
警告: 执行 /u01/app/oracle/product/11.2.0/bin/emctl secure dbconsole -host oracle -sid ORCL 时出错 -------------------这里有个错误
2017-8-2 17:39:43 oracle.sysman.emcp.EMDBPostConfig performConfiguration
警告: 保护 Database control 时出错。
2017-8-2 17:39:43 oracle.sysman.emcp.EMDBPostConfig setWarnMsg
信息: 保护 Database Control 时出错。Database Control 已在非安全模式下启动。要保护 Database Control, 请执行以下命令:
1) 将环境变量 ORACLE_UNQNAME 设置为 数据库的唯一名称
2) /u01/app/oracle/product/11.2.0/bin/emctl stop dbconsole
3) /u01/app/oracle/product/11.2.0/bin/emctl config emkey -repos -sysman_pwd < SYSMAN 用户的口令 >
4) /u01/app/oracle/product/11.2.0/bin/emctl secure dbconsole -sysman_pwd < SYSMAN 用户的口令 >
5) /u01/app/oracle/product/11.2.0/bin/emctl start dbconsole
要保护 EM 密钥, 请运行 /u01/app/oracle/product/11.2.0/bin/emctl config emkey -remove_from_repos -sysman_pwd < SYSMAN 用户的口令 >
2017-8-2 17:39:43 oracle.sysman.emcp.util.DBControlUtil startOMS
信息: 正在启动 Database Control (此操作可能需要一段时间)...
2017-8-2 17:39:48 oracle.sysman.emcp.EMDBPostConfig performConfiguration
信息: 已成功启动 Database Control
2017-8-2 17:39:48 oracle.sysman.emcp.EMDBPostConfig performConfiguration
信息: >>>>>>>>>>> Database Control URL 为 http://oracle:5500/em <<<<<<<<<<<
保护 Database Control 时出错。Database Control 已在非安全模式下启动。要保护 Database Control, 请执行以下命令:
1) 将环境变量 ORACLE_UNQNAME 设置为 数据库的唯一名称
2) /u01/app/oracle/product/11.2.0/bin/emctl stop dbconsole
3) /u01/app/oracle/product/11.2.0/bin/emctl config emkey -repos -sysman_pwd < SYSMAN 用户的口令 >
4) /u01/app/oracle/product/11.2.0/bin/emctl secure dbconsole -sysman_pwd < SYSMAN 用户的口令 >
5) /u01/app/oracle/product/11.2.0/bin/emctl start dbconsole
复制代码
有如上错误 ,然后按提示,做了这几条命令
现在emctl start dbconsole 服务启动起来后,没过几秒钟,端口就关闭了, 大神们还知道什么问题啊。
[oracle@oracle ~]$ emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.4.0
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
http://oracle:5500/em/console/aboutApplication
EM Daemon is not running.
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/11.2.0/oracle_ORCL/sysman/log
复制代码
这里有报em daemon is not running的错误,我不知道怎么办。。。网上查了要改时区,可是我这一改时区,他又自动改回去了。。。
http://www.cndba.cn/tianxiadishi/article/2067
http://www.cndba.cn/tianxiadishi/article/2067
http://www.cndba.cn/tianxiadishi/article/2067
http://www.cndba.cn/tianxiadishi/article/2067
http://www.cndba.cn/tianxiadishi/article/2067
http://www.cndba.cn/tianxiadishi/article/2067
http://www.cndba.cn/tianxiadishi/article/2067
http://www.cndba.cn/tianxiadishi/article/2067
http://www.cndba.cn/tianxiadishi/article/2067
http://www.cndba.cn/tianxiadishi/article/2067
emdb.nohup 日志下有一堆这样的错误,会跟它有关吗
- 17/08/02 18:22:13 警告: 代码源 /u01/app/oracle/product/11.2.0/sysman/jlib/j2ee/jsch.jar (来自
in /u01/app/oracle/product/11.2.0/oc4j/j2ee/oc4j_applications/applications/em/em) 与 /u01/app/oracle/product/11.2.0/oui/jlib/jsch.jar (from
in /u01/app/oracle/product/11.2.0/oc4j/j2ee/oc4j_applications/applications/em/em) 具有相同的文件名, 但与其不完全相同。如果前者包含相同类的不同版本, 则会被屏蔽掉, 因为后者在加载程序 em.web.em:0.0.0 的搜索路径中已是可见的。
- 17/08/02 18:22:13 警告: 代码源 /u01/app/oracle/product/11.2.0/sysman/jlib/j2ee/ssh.jar (来自
in /u01/app/oracle/product/11.2.0/oc4j/j2ee/oc4j_applications/applications/em/em) 与 /u01/app/oracle/product/11.2.0/oui/jlib/ssh.jar (from
in /u01/app/oracle/product/11.2.0/oc4j/j2ee/oc4j_applications/applications/em/em) 具有相同的文件名, 但与其不完全相同。如果前者包含相同类的不同版本, 则会被屏蔽掉, 因为后者在加载程序 em.web.em:0.0.0 的搜索路径中已是可见的。
- 17/08/02 18:22:13 警告: 代码源 /u01/app/oracle/product/11.2.0/sysman/jlib/j2ee/remoteinterfaces.jar (来自
in /u01/app/oracle/product/11.2.0/oc4j/j2ee/oc4j_applications/applications/em/em) 与 /u01/app/oracle/product/11.2.0/oui/jlib/remoteinterfaces.jar (from
in /u01/app/oracle/product/11.2.0/oc4j/j2ee/oc4j_applications/applications/em/em) 具有相同的文件名, 但与其不完全相同。如果前者包含相同类的不同版本, 则会被屏蔽掉, 因为后者在加载程序 em.web.em:0.0.0 的搜索路径中已是可见的。
- 17/08/02 18:22:13 警告: 代码源 /u01/app/oracle/product/11.2.0/sysman/jlib/ocm/jsse.jar (来自 manifest of /u01/app/oracle/product/11.2.0/sysman/jlib/emocmclnt.jar) 与 /u01/app/oracle/product/11.2.0/jdk/jre/lib/jsse.jar (from system property sun.boot.class.path) 具有相同的文件名, 但与其不完全相同。如果前者包含相同类的不同版本, 则会被屏蔽掉, 因为后者在加载程序 em.web.em:0.0.0 的搜索路径中已是可见的。
- 17/08/02 18:22:13 警告: 代码源 /u01/app/oracle/product/11.2.0/sysman/jlib/ocm/xmlparserv2.jar (来自 manifest of /u01/app/oracle/product/11.2.0/sysman/jlib/emocmclnt.jar) 与 /u01/app/oracle/product/11.2.0/oc4j/lib/xmlparserv2.jar (from
(ignore manifest Class-Path) in META-INF/boot.xml in /u01/app/oracle/product/11.2.0/oc4j/j2ee/home/oc4j.jar) 具有相同的文件名, 但与其不完全相同。如果前者包含相同类的不同版本, 则会被屏蔽掉, 因为后者在加载程序 em.web.em:0.0.0 的搜索路径中已是可见的。
- 17/08/02 18:22:13 警告: 代码源 /u01/app/oracle/product/11.2.0/sysman/jlib/ocm/http_client.jar (来自 manifest of /u01/app/oracle/product/11.2.0/sysman/jlib/emocmclnt.jar) 与 /u01/app/oracle/product/11.2.0/oc4j/j2ee/home/lib/http_client.jar (from
(ignore manifest Class-Path) in META-INF/boot.xml in /u01/app/oracle/product/11.2.0/oc4j/j2ee/home/oc4j.jar) 具有相同的文件名, 但与其不完全相同。如果前者包含相同类的不同版本, 则会被屏蔽掉, 因为后者在加载程序 em.web.em:0.0.0 的搜索路径中已是可见的。
- 17/08/02 18:22:13 警告: 代码源 /u01/app/oracle/product/11.2.0/sysman/jlib/ocm/log4j-core.jar (来自 manifest of /u01/app/oracle/product/11.2.0/sysman/jlib/emocmclnt.jar) 与 /u01/app/oracle/product/11.2.0/sysman/jlib/log4j-core.jar (from
in /u01/app/oracle/product/11.2.0/oc4j/j2ee/oc4j_applications/applications/em/em) 具有相同的文件名, 但与其不完全相同。如果前者包含相同类的不同版本, 则会被屏蔽掉, 因为后者在加载程序 em.web.em:0.0.0 的搜索路径中已是可见的。
复制代码
|
版权声明:本文为博主原创文章,未经博主允许不得转载。
不解