Inicializando o banco de dados, o OMS e o agent em um ambiente que usa OEM (ORACLE ENTERPRISE MANAGER) 11G

  É muito simples iniciar o banco de dados, o OMS e o agent em um ambiente que usa OEM. Você somente precisa setar as variáveis de ambiente e efetuar um start como abaixo: ##START DB export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 export ORACLE_SID=OEM sqlplus “/as sysdba” startup select instance_name, status, host_name from gv$instance; [oracle@ocm agent11g]$ export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 [oracle@ocm agent11g]$ export ORACLE_SID=OEM [oracle@ocm agent11g]$ sqlplus ” /as sysdba” SQL*Plus: Release 11.2.0.3.0 Production on Thu Oct 22 19:53:29 2015 Copyright (c) 1982, 2011, Oracle.  All rights reserved. Connected to an idle instance. SQL> startup ORACLE…

EM Configuration issue. /u01/app/oracle/product/11.2.0/dbhome_1/ocm.localdomain_OEM not found.

  Eu estava tentando parar o OMS quando eu recebi o seguinte erro “EM Configuration issue. /u01/app/oracle/product/11.2.0/dbhome_1/ocm.localdomain_OEM not found.”. Para resolver este problema, eu fiz os seguintes passos: Meu erro: [oracle@ocm bin]$ emctl status oms EM Configuration issue. /u01/app/oracle/product/11.2.0/dbhome_1/ocm.localdomain_OEM not found.   Minha solução: [oracle@ocm MWOEM]$ export OMS_HOME=/u01/Oracle/MWOEM/oms11g [oracle@ocm MWOEM]$ export AGENT_HOME=/u01/Oracle/MWOEM/agent11g [oracle@ocm MWOEM]$ export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 [oracle@ocm bin]$  $OMS_HOME/bin/emctl start oms [oracle@ocm bin]$  $OMS_HOME/bin/emctl start oms Oracle Enterprise Manager 11g Release 1 Grid Control Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved. Starting WebTier… WebTier Successfully Started Starting Oracle…