Skip navigation.

Arun Bavera

Syndicate content
Few of my technology tips.
Updated: 10 hours 51 min ago

How to uninstall/remove EM12c Agent

Tue, 2014-11-11 15:59
./emctl stop agent

/opt/app/oracle/agent12c/core/ /opt/app/oracle/agent12c/core/ -agentHome /opt/app/oracle/agent12c

rm -Rf /opt/app/oracle/agent12c

From host where emcli is installed:
emcli delete_target -name="" -type="oracle_emd" -delete_monitored_targets –async


Check any left out info:
select target_name,target_type from MGMT_TARGETS_DELETE where DELETE_COMPLETE_TIME is null

select target_name,target_type from MGMT_TARGETS_DELETE where target_name like '%spare%' and target_type='oracle_emd'

You can try:

exec mgmt_admin.delete_target('target_name','target_type');

If the agent install fails to register with OEM than try:

     cd /opt/app/oracle/agent12c/agent_inst/bin/
    /opt/app/oracle/agent12c/agent_inst/bin/emctl secure agent
    /opt/app/oracle/agent12c/agent_inst/bin/emctl start agent
    /opt/app/oracle/agent12c/agent_inst/bin/emctl config agent addInternalTargets

   /opt/app/oracle/agent12c/agent_inst/bin/emctl upload
Categories: Development

Seeing slow startup of SOA OSB and other Java based application then verify Entropy

Mon, 2014-11-10 09:20
We faced slow startup of Domain Creation, slow startup  of Domain and resolved using proper Entropy settings:
You should be able to select the faster-but-slightly-less-secure /dev/urandom on Linux using:
Default /dev/urandom is configured, but as mentioned this is ignored by Java.
However, this doesn’t work with Java 5 and later (Java Bug 6202721). The suggested work-around is to use: the extra ‘/./’)
You can also set in your environment like below in
if [ "${USER_MEM_ARGS}" != "" ] ; then
export MEM_ARGS
Or at runtime:

Categories: Development

Getting too much alerts for Database Time Spent Waiting (%) Metric in EM12c ?

Thu, 2014-11-06 11:17


It is Better to set the Database Time Spent Waiting (%)= 99 in Monitoring Templates , so that any new Database discovered will gets synced with the Template collection and changes the default 30% to 99%.


Verify that the DBA_THRESHOLDS in target database is updated.

i.e the below query should return no rows:

SELECT metrics_name, critical_value, warning_value, object_name, status
where metrics_name like '%Database Time Spent%';



How to Disable Alerts for The Database Time Spent Waiting (%) Metric? (Doc ID 1500074.1)

Database Server Generated Metrics Alerts Not Cleared In Grid Console Even After Disabling the Metric (Doc ID 786520.1)

"Database Time Spent Waiting (%)" at 100 for Event Class "Other" when Database is not Under Load (Doc ID 1526552.1)

Categories: Development

Find and Replace in a file

Wed, 2014-11-05 14:12

Had to replace all the occurrence of wrong  inventory then use this:

grep -rl 'oraInventory' .  | xargs sed -i 's|'/home/emuser/oraInventory'|'/opt/app/oracle/oraInventory'|g'

Categories: Development

Creating FMW12c Domain using EM12c User Defined Deployment Procedure

Tue, 2014-10-21 16:03
1. Installing Software example: Install JDK, INFRA, OSB, RCU Creation in 5 minutes, 58 secondsimage

2. Second example: creating BAM12c 2 node cluster in 9 minutes,  Create RCU, Create domain, Extend Domain, startNodemanger, start admin, start Nodemanager on Mgrserver, startall ManagedServers
2 Nodes, BAM Cluster
Categories: Development