Configure the Enterprise Manager repository

Enterprise Manager (EM) -ийг бааз үүсгэхдээ идэвхжүүлээгүй тохиолдолд дараах алхамаар идэвхжүүлнэ.

[[email protected] ~]$ emctl status dbconsole
Дээрхи коммандыг ажиллуулахад EM repo үүссэн болон үүсээгүй тохиолдол тус бүр өөр үр дүн харуулна.

[[email protected] ~]$ export ORACLE_SID=emtest

REPO өмнө үүсчихсэн тохиолдолд:

[[email protected] ~]$ emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
https://node214.oracle.me:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is not running.
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/11.2.0/db_1/node214.oracle.me_DB11G/sysman/log
[[email protected] ~]$

REPO өмнө үүсээгүй тохиолдолд:

[[email protected] ~]$ emctl status dbconsole
OC4J Configuration issue. /u01/app/oracle/product/11.2.0//db_1/oc4j/j2ee/OC4J_DBConsole_node214.oracle.me_emtest not found.
[[email protected] ~]$ emctl status agent
/u01/app/oracle/product/11.2.0//db_1/node214.oracle.me_emtest not found.

REPO үүсгэх


[[email protected] ~]$  # шинээр үүсгэх
[[email protected] ~]$  emca -config dbcontrol db -repos create
[[email protected] ~]$  # дахин үүсгэх
[[email protected] ~]$  emca -config dbcontrol db -repos recreate

STARTED EMCA at Feb 15, 2017 8:17:10 AM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Enter the following information:
Database SID: emtest
Listener port number: 1521
Listener ORACLE_HOME [ /u01/app/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 ................ /u01/app/oracle/product/11.2.0/db_1

Local hostname ................ node214.oracle.me
Listener ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/db_1
Listener port number ................ 1521
Database SID ................ emtest
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............

-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Feb 15, 2017 8:17:30 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/emtest/emca_2017_02_15_08_17_10.log.
Feb 15, 2017 8:17:31 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Feb 15, 2017 8:19:29 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Feb 15, 2017 8:19:30 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Feb 15, 2017 8:24:11 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Feb 15, 2017 8:24:16 AM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Feb 15, 2017 8:24:58 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Feb 15, 2017 8:25:02 AM oracle.sysman.emcp.util.DBControlUtil configureSoftwareLib
INFO: Software library configured successfully.
Feb 15, 2017 8:25:02 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Deploying Provisioning archives ...
Feb 15, 2017 8:25:24 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Provisioning archives deployed successfully.
Feb 15, 2017 8:25:24 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Feb 15, 2017 8:25:55 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Feb 15, 2017 8:25:55 AM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Feb 15, 2017 8:27:01 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Feb 15, 2017 8:27:01 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://node214.oracle.me:5500/em <<<<<<<<<<<
Feb 15, 2017 8:27:06 AM 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/db_1/node214.oracle.me_emtest/sysman/config/emkey.ora.   Please 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 Feb 15, 2017 8:27:06 AM
[[email protected] ~]$
[[email protected] ~]$
[[email protected] ~]$ emctl status agent
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 10.2.0.4.2
OMS Version       : 10.2.0.4.2
Protocol Version  : 10.2.0.4.2
Agent Home        : /u01/app/oracle/product/11.2.0/db_1/node214.oracle.me_emtest
Agent binaries    : /u01/app/oracle/product/11.2.0/db_1
Agent Process ID  : 7432
Parent Process ID : 7387
Agent URL         : https://node214.oracle.me:1830/emd/main
Repository URL    : https://node214.oracle.me:5500/em/upload/
Started at        : 2017-02-15 08:25:58
Started by user   : oracle
Last Reload       : 2017-02-15 08:25:58
Last successful upload                       : 2017-02-15 08:28:24
Total Megabytes of XML files uploaded so far :     9.78
Number of XML files pending upload           :        0
Size of XML files pending upload(MB)         :     0.00
Available disk space on upload filesystem    :    38.87%
Data channel upload directory                : /u01/app/oracle/product/11.2.0/db_1/node214.oracle.me_emtest/sysman/recv
Last successful heartbeat to OMS             : 2017-02-15 08:27:56
---------------------------------------------------------------
Agent is Running and Ready
[[email protected] ~]$

Repo үүссэн тул одоо шалгая.

[[email protected] ~]$
[[email protected] ~]$ emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
https://node214.oracle.me:5500/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/11.2.0/db_1/node214.oracle.me_emtest/sysman/log
[[email protected] ~]$

Enterprise manager 5500 порт дээр ажиллаж байгаа харагдаж байна. https://node214.oracle.me:5500/em хаягаар хандах боломжтой.