OEM

Generate tnsnames.ora from up to date OEM using sqlcl

No it is not required to use sqlcl for this.  sqlplus or any other sql execution tool of your choice will work. C:\sqldeveloper-17.2.0.188.1159-x64\sqlcl-17.2.0.184.1230-no-jre\sqlcl\bin\sql.bat /nolog connect sysman/yourSysmanPW@your-oem-hostname:1521/emService spool newtns.ora set pagesize 0 set verify off set feedback off select distinct sid.PROPERTY_VALUE||’ = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = ‘||machine.PROPERTY_VALUE||’)(PORT = ‘||port.PROPERTY_VALUE||’))) (CONNECT_DATA …

Generate tnsnames.ora from up to date OEM using sqlcl Read More »

I forgot the URL to Oracle Enterprise Manager / OEM 13c – one way to find it – emctl status oms -details

I forgot the URL to OEM – one way to find it – along with many the other related ports, homes, logs. It is under “Console URL:” below. export OMS_HOME=/u01/app/oracle/middleware $OMS_HOME/bin/emctl status oms -details Oracle Enterprise Manager Cloud Control 13c Release 2 Copyright (c) 1996, 2016 Oracle Corporation. All rights reserved. Enter Enterprise Manager Root …

I forgot the URL to Oracle Enterprise Manager / OEM 13c – one way to find it – emctl status oms -details Read More »

Oracle 11gR2 OEM dbcontrol drop and recreate after database clone – OC4J_DBConsole not found

Got this error after a 11gR2 database clone. oracle [prod] logs $ emctl status dbconsole OC4J Configuration issue. /u01/app/oracle/product/11.2.0.4/db_1/oc4j/j2ee/OC4J_DBConsole_hostname_prod not found. Just drop and recreate the repository and the configuration as follows – be aware this action will quiesce the database – and potentially impact operations emca -deconfig dbcontrol db -repos drop emca -config dbcontrol …

Oracle 11gR2 OEM dbcontrol drop and recreate after database clone – OC4J_DBConsole not found Read More »

oraInventory – what's this about?

Here are a few tidbits (not comprehensive – I’ll leave that to Oracle) about “oraInventory”. Generally, it’s directory structure containing XML files that point at installed Oracle Products. Where is “oraInventory”? On Linux & most UNIX dialects here is a pointer to the directory structure: /etc/oraInst.loc or /var/opt/oracle/oraInst.loc $ cat /etc/oraInst.loc inventory_loc=/u01/app/oraInventory inst_group=dba So lets …

oraInventory – what's this about? Read More »