oracle11g database control

前端之家收集整理的这篇文章主要介绍了oracle11g database control前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。


Oracle Enterprise Manager与Oracle Database Control

OEM是一个统称,是Oracle提供的图形化企业级管理工具的统称。具体有三种可用的工具:

(1)Database Control

它用于管理一个数据库(可以是RAC集群数据库),具有实时管理和监视的功能,运行调度作业功能,告警功能

(2)Application Server Control

用于管理一个或者多个应用服务器实例。

(3)Grid Control

Grid Control可以管理多个数据库和应用服务器,还可以管理计算机节点,支持通过第三方插件管理第三方产品。


Database Control 在oracle10g便加入数据库,安装实例时,提示管理选项。

6282f4aa20b96a80b8bd1e5f1f5f4c13.jpg-wh_


1、首次尝试查看状态,未配置 EMCA。

oracle@sy-sp1:~>emctlstatusdbconsole
EnvironmentvariableORACLE_UNQNAMEnotdefined.PleasesetORACLE_UNQNAMEtodatabaseuniquename.

2、尝试配置数据

oracle@sy-sp1:~>emca-reposcreate

STARTEDEMCAatOct23,20171:26:56PM
EMConfigurationAssistant,Version11.2.0.0.2Production
Copyright(c)2003,2005,Oracle.Allrightsreserved.

Enterthefollowinginformation:
DatabaseSID:ora10
Listenerportnumber:1521
PasswordforSYSuser:
PasswordforSYSMANuser:

Doyouwishtocontinue?[yes(Y)/no(N)]:y
Oct23,20171:27:33PMoracle.sysman.emcp.EMConfigperform
INFO:Thisoperationisbeingloggedat/u01/app/oracle/cfgtoollogs/emca/ora10/emca_2017_10_23_13_26_55.log.
Oct23,20171:27:33PMoracle.sysman.emcp.EMReposConfigcreateRepository
INFO:CreatingtheEMrepository(thismaytakeawhile)...
Oct23,20171:27:33PMoracle.sysman.emcp.EMReposConfiginvoke
SEVERE:Errorcreatingtherepository
Oct23,20171:27:33PMoracle.sysman.emcp.EMReposConfiginvoke
INFO:Refertothelogfileat/u01/app/oracle/cfgtoollogs/emca/ora10/emca_repos_create_<date>.logformoredetails.
Oct23,20171:27:33PMoracle.sysman.emcp.EMConfigperform
SEVERE:Errorcreatingtherepository
Refertothelogfileat/u01/app/oracle/cfgtoollogs/emca/ora10/emca_2017_10_23_13_26_55.logformoredetails.
Couldnotcompletetheconfiguration.Refertothelogfileat/u01/app/oracle/cfgtoollogs/emca/ora10/emca_2017_10_23_13_26_55.logformoredetails.

3、报错!在安装过程多次报错,简单列举,并给出方法

ORA-20001:SYSMANalreadyexists..
CONFIG:ORA-00955:nameisalreadyusedbyanexistingobject

4、解决方法删除sysman用户,同时删除公共的相关表。

dropusersysmancascade;
droproleMGMT_USER;
droppublicsynonymMGMT_TARGET_BLACKOUTS;
droppublicsynonymMGMT_AVAILABILITY;
droppublicsynonymMGMT_SEVERITY_ARRAY;
droppublicsynonymMGMT_CURRENT_AVAILABILITY;
droppublicsynonymMGMT_SEVERITY_OBJ;
droppublicsynonymMGMT_GUID_OBJ;
droppublicsynonymMGMT_GUID_ARRAY;
droppublicsynonymSMP_EMD_AVAIL_OBJ;

5、重装重配数据

oracle@sy-sp1:/u01/app/oracle/oradata/ora11g/network/admin>emca-reposrecreate

STARTEDEMCAatOct23,20173:22:58PM
EMConfigurationAssistant,20173:23:16PMoracle.sysman.emcp.EMConfigperform
INFO:Thisoperationisbeingloggedat/u01/app/oracle/cfgtoollogs/emca/ora10/emca_2017_10_23_15_22_57.log.
Oct23,20173:23:17PMoracle.sysman.emcp.EMReposConfiginvoke
INFO:DroppingtheEMrepository(thismaytakeawhile)...
Oct23,20173:23:22PMoracle.sysman.emcp.EMReposConfiginvoke
INFO:Repositorysuccessfullydropped
Oct23,20173:23:23PMoracle.sysman.emcp.EMReposConfigcreateRepository
INFO:CreatingtheEMrepository(thismaytakeawhile)...
Oct23,20173:29:01PMoracle.sysman.emcp.EMReposConfiginvoke
INFO:Repositorysuccessfullycreated
EnterpriseManagerconfigurationcompletedsuccessfully
FINISHEDEMCAatOct23,20173:29:01PM

6、继续安装

oracle@sy-sp1:/u01/app/oracle/oradata/ora11g/network/admin>emca-configdbcontroldb

STARTEDEMCAatOct23,20173:32:10PM
EMConfigurationAssistant,Oracle.Allrightsreserved.

Enterthefollowinginformation:
DatabaseSID:ora10
Listenerportnumber:1521
ListenerORACLE_HOME[/u01/app/oracle/oradata/ora11g]:
PasswordforSYSuser:
PasswordforDBSNMPuser:
PasswordforSYSMANuser:
Emailaddressfornotifications(optional):
OutgoingMail(SMTP)serverfornotifications(optional):
-----------------------------------------------------------------

Youhavespecifiedthefollowingsettings

DatabaSEORACLE_HOME................/u01/app/oracle/oradata/ora11g

Localhostname................localhost
ListenerORACLE_HOME................/u01/app/oracle/oradata/ora11g
Listenerportnumber................1521
DatabaseSID................ora10
Emailaddressfornotifications...............
OutgoingMail(SMTP)serverfornotifications...............

-----------------------------------------------------------------
Doyouwishtocontinue?[yes(Y)/no(N)]:y
Oct23,20173:32:48PMoracle.sysman.emcp.EMConfigperform
INFO:Thisoperationisbeingloggedat/u01/app/oracle/cfgtoollogs/emca/ora10/emca_2017_10_23_15_32_10.log.
Oct23,20173:32:54PMoracle.sysman.emcp.EMReposConfiguploadConfigDataToRepository
INFO:UploadingconfigurationdatatoEMrepository(thismaytakeawhile)...
Oct23,20173:33:45PMoracle.sysman.emcp.EMReposConfiginvoke
INFO:Uploadedconfigurationdatasuccessfully
Oct23,20173:33:49PMoracle.sysman.emcp.util.DBControlUtilconfigureSoftwareLib
INFO:Softwarelibraryconfiguredsuccessfully.
Oct23,20173:33:49PMoracle.sysman.emcp.EMDBPostConfigconfigureSoftwareLibrary
INFO:DeployingProvisioningarchives...
Oct23,20173:34:17PMoracle.sysman.emcp.EMDBPostConfigconfigureSoftwareLibrary
INFO:Provisioningarchivesdeployedsuccessfully.
Oct23,20173:34:17PMoracle.sysman.emcp.util.DBControlUtilsecureDBConsole
INFO:SecuringDatabaseControl(thismaytakeawhile)...
Oct23,20173:34:25PMoracle.sysman.emcp.util.DBControlUtilsecureDBConsole
INFO:DatabaseControlsecuredsuccessfully.
Oct23,20173:34:25PMoracle.sysman.emcp.util.DBControlUtilstartOMS
INFO:StartingDatabaseControl(thismaytakeawhile)...
Oct23,20173:35:27PMoracle.sysman.emcp.EMDBPostConfigperformConfiguration
INFO:DatabaseControlstartedsuccessfully
Oct23,20173:35:27PMoracle.sysman.emcp.EMDBPostConfigperformConfiguration
INFO:>>>>>>>>>>>TheDatabaseControlURLishttps://localhost:1158/em<<<<<<<<<<<
Oct23,20173:35:30PMoracle.sysman.emcp.EMDBPostConfiginvoke
WARNING:
************************WARNING************************

ManagementRepositoryhasbeenplacedinsecuremodewhereinEnterpriseManagerdatawillbeencrypted.Theencryptionkeyhasbeenplacedinthefile:/u01/app/oracle/oradata/ora11g/localhost_ora10/sysman/config/emkey.ora.Pleaseensurethisfileisbackedupastheencrypteddatawillbecomeunusableifthisfileislost.

***********************************************************
EnterpriseManagerconfigurationcompletedsuccessfully
FINISHEDEMCAatOct23,20173:35:30PM

7、查看启动状态

oracle@sy-sp1:/u01/app/oracle/oradata/ora11g/network/admin>emctlstatusdbconsole
OracleEnterpriseManager11gDatabaseControlRelease11.2.0.1.0
Copyright(c)1996,2009OracleCorporation.Allrightsreserved.
https://localhost:1158/em/console/aboutApplication
OracleEnterpriseManager11gisrunning.
------------------------------------------------------------------
Logsaregeneratedindirectory/u01/app/oracle/oradata/ora11g/localhost_ora10/sysman/log
原文链接:https://www.f2er.com/oracle/207265.html

猜你在找的Oracle相关文章