Friday 28 November 2014

Em12c Creating Metric Extension(User Defined Metrics) for BPEL Process State OFF

clip_image002
clip_image004
clip_image006
clip_image008
clip_image010

select Domain_ref,process_id,state  from ORABPEL.PROCESS where state=1;


clip_image012
clip_image014
clip_image016
1) Save as Deployable Draft
2) Publish Metric Extension
3) Deploy To Targets : Cluster Database
4) Add this metric to your incident Rules to get alerts
clip_image018
clip_image020

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

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: 
$JAVA_HOME/jre/lib/security/java.security 
Default /dev/urandom is configured, but as mentioned this is ignored by Java. 
-Djava.security.egd=file:/dev/urandom 
However, this doesn’t work with Java 5 and later (Java Bug 6202721). The suggested work-around is to use:
-Djava.security.egd=file:/dev/./urandom(note the extra ‘/./’) 
  
You can also set in your environment like below in setDomainEnv.sh 
if "${USER_MEM_ARGS}" != "" ] ; then 
MEM_ARGS="${USER_MEM_ARGS} 
export MEM_ARGS 
fi 
MEM_ARGS="${MEM_ARGS} -Djava.security.egd=file:/dev/./urandom" 
  
  
Or at runtime: 
export CONFIG_JVM_ARGS="-Djava.security.egd=file:/dev/./urandom" 
/u01/app/oracle/product/fmw/wlserver_12.1/common/bin/config.sh 
  
References:
http://theheat.dk/blog/?p=1539
http://stackoverflow.com/questions/137212/how-to-solve-performance-problem-with-java-securerandom






How to uninstall/remove EM12c Agent

./emctl stop agent

/opt/app/oracle/agent12c/core/12.1.0.3.0/perl/bin/perl /opt/app/oracle/agent12c/core/12.1.0.3.0/sysman/install/AgentDeinstall.pl -agentHome /opt/app/oracle/agent12c

rm -Rf /opt/app/oracle/agent12c

From host where emcli is installed:
emcli delete_target -name="test.example.com:1836" -type="oracle_emd" -delete_monitored_targets –async

Reference:
https://docs.oracle.com/cd/E24628_01/install.121/e24089/deinstall_agent.htm#CBBCEJHG

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