安装em
[oracle@database ~]$ emca -config dbcontrol db -repos create
STARTED EMCA at Mar 22, 2021 2:09:04 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
Listener port number: 1521
Listener ORACLE_HOME [ /opt/oracle/product/11.2.0/db_1 ]:
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 ................ /opt/oracle/product/11.2.0/db_1
Local hostname ................ orcl
Listener ORACLE_HOME ................ /opt/oracle/product/11.2.0/db_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
Mar 22, 2021 2:09:30 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /opt/oracle/cfgtoollogs/emca/plmdb/emca_2021_03_22_14_09_04.log.
Mar 22, 2021 2:09:31 PM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Mar 22, 2021 2:12:02 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Mar 22, 2021 2:12:03 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Mar 22, 2021 2:12:40 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Mar 22, 2021 2:12:41 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Mar 22, 2021 2:12:43 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
WARNING: Error executing /opt/oracle/product/11.2.0/db_1/bin/emctl secure dbconsole -host database -sid orcl
Mar 22, 2021 2:12:43 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
WARNING: Error securing Database control.
Mar 22, 2021 2:12:43 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_UNQNAME to Database unique name
2) /opt/oracle/product/11.2.0/db_1/bin/emctl stop dbconsole
3) /opt/oracle/product/11.2.0/db_1/bin/emctl config emkey -repos -sysman_pwd < Password for SYSMAN user >
4) /opt/oracle/product/11.2.0/db_1/bin/emctl secure dbconsole -sysman_pwd < Password for SYSMAN user >
5) /opt/oracle/product/11.2.0/db_1/bin/emctl start dbconsole
To secure Em Key, run /opt/oracle/product/11.2.0/db_1/bin/emctl config emkey -remove_from_repos -sysman_pwd < Password for SYSMAN user >
Mar 22, 2021 2:12:43 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Mar 22, 2021 2:12:47 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Mar 22, 2021 2:12:47 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is http://database: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_UNQNAME to Database unique name
2) /opt/oracle/product/11.2.0/db_1/bin/emctl stop dbconsole
3) /opt/oracle/product/11.2.0/db_1/bin/emctl config emkey -repos -sysman_pwd < Password for SYSMAN user >
4) /opt/oracle/product/11.2.0/db_1/bin/emctl secure dbconsole -sysman_pwd < Password for SYSMAN user >
5) /opt/oracle/product/11.2.0/db_1/bin/emctl start dbconsole
To secure Em Key, run /opt/oracle/product/11.2.0/db_1/bin/emctl config emkey -remove_from_repos -sysman_pwd < Password for SYSMAN user >
安装完成后访问:http://database:1158/em
删除repository
emca -repos drop
删除配置
emca -deconfig dbcontrol db
重新配置
emca -config dbcontrol db -repos recreate
在Oracle数据库中,执行了emca配置命令创建和更新仓库,并尝试安全配置数据库控制。过程中成功创建了仓库和上传配置数据,但在安全化数据库控制步骤遇到错误。建议按照提示手动执行相关命令以确保数据库控制的安全模式。
1682

被折叠的 条评论
为什么被折叠?



