重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2778|回复: 0
打印 上一主题 下一主题

[Oracle] oralce 11.2.0.4手动创建EM

[复制链接]
跳转到指定楼层
楼主
发表于 2019-11-11 18:09:08 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
这里使用的版本是RedHat7.0,Oracle 11.2.0.4

1.dbconsole启动失败
[oracle@redhat75 ~]$ emctl start dbconsole
Environment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to database unique name.


2.删除旧的EM资料档案库
[oracle@redhat75 ~]$ emca -repos drop

STARTED EMCA at Nov 11, 2019 4:31:52 PM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle.  All rights reserved.

Enter the following information:
Database SID: orcl--输入sid
Listener port number: 1521--端口号
Password for SYS user: --密码
Password for SYSMAN user: --密码

----------------------------------------------------------------------
WARNING : While repository is dropped the database will be put in quiesce mode.--避开业务高峰期
----------------------------------------------------------------------

Do you wish to continue? [yes(Y)/no(N)]: y--yes
Nov 11, 2019 4:32:21 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_2019_11_11_16_31_51.log.
Nov 11, 2019 4:32:22 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
WARNING: ORA-28000: the account is locked

Nov 11, 2019 4:32:22 PM oracle.sysman.emcp.ParamsManager checkListenerStatusForDBControl
WARNING: Error initializing SQL connection. SQL operations cannot be performed
Nov 11, 2019 4:32:22 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Nov 11, 2019 4:32:51 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Enterprise Manager configuration completed successfully--配置成功
FINISHED EMCA at Nov 11, 2019 4:32:51 PM


3.创建em资料库档案
[oracle@redhat75 ~]$ emca -config dbcontrol db -repos create

STARTED EMCA at Nov 11, 2019 4:33:11 PM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle.  All rights reserved.

Enter the following information:
Database SID: orcl--输入sid
Listener port number: 1521--端口号
Listener ORACLE_HOME [ /u01/app/oracle/product/11.2.0.1/dbhome_1 ]:
Password for SYS user:  --密码
Password for DBSNMP user: --密码
Nov 11, 2019 4:33:33 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
WARNING: ORA-28000: the account is locked

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 ................ /u01/app/oracle/product/11.2.0.1/dbhome_1
Local hostname ................ redhat75
Listener ORACLE_HOME ................ /u01/app/oracle/product/11.2.0.1/dbhome_1
Listener port number ................ 1521
Database SID ................ orcl
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............

-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y--yes
Nov 11, 2019 4:33:52 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_2019_11_11_16_33_11.log.
Nov 11, 2019 4:33:53 PM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Nov 11, 2019 4:35:27 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Nov 11, 2019 4:35:30 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Nov 11, 2019 4:36:02 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Nov 11, 2019 4:36:04 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Nov 11, 2019 4:36:09 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Nov 11, 2019 4:36:09 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Nov 11, 2019 4:36:45 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Nov 11, 2019 4:36:45 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://redhat75:1158/em <<<<<<<<<<<--可以测试访问
Nov 11, 2019 4:36:47 PM oracle.sysman.emcp.EMDBPostConfig invoke
WARNING: --(该密钥丢失后,加密文件将不可用
************************  WARNING  ************************

Management Repository has been placed in secure mode wherein Enterprise Manager data will be encrypted.  The encryption key has been placed in the file: /u01/app/oracle/product/11.2.0.1/dbhome_1/redhat75_orcl/sysman/config/emkey.ora. Ensure this file is backed up as the encrypted data will become unusable if this file is lost.
***********************************************************
Enterprise Manager configuration completed successfully--配置成功
FINISHED EMCA at Nov 11, 2019 4:36:47 PM

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-27 04:03 , Processed in 0.105064 second(s), 23 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表