tag:blogger.com,1999:blog-84787342024-03-13T04:52:01.665-07:00Ravi ReddyCurrently Working for Oracle India in SOA Support.Unknownnoreply@blogger.comBlogger202125tag:blogger.com,1999:blog-8478734.post-12564922978199497142018-09-18T01:46:00.001-07:002018-09-18T01:46:48.490-07:00sort access_log file and find out the no of requests to each service<b>sort access_log file and find out the no of requests to each service</b><br />
<div>Use the command to</div>
<div><br /></div>
<div>C:\cygwin64\bin\gawk '{print $7}' E:\tars-download\osb_server2_access.log | C:\cygwin64\bin\sort.exe | C:\cygwin64\bin\uniq.exe -c | C:\cygwin64\bin\sort.exe -nr | head -20</div>
<div><br /></div>
<div>These are the top 20 Proxy services that are called multiple times</div>
<div><br /></div>
<div>20618 /xxx</div>
<div> 20533 /xxx1</div>
<div> 15022 /xxx3</div>
<div> ..</div>
<div>..</div>
<br />
<br />
Tags: Publish<br />
September 18, 2018 at 11:55AM<br />
<a href="https://www.evernote.com/shard/s111/sh/af3024e3-bb42-4357-8394-ab80fb9724e2/10554657e4413565b2c3efa2263e3f7e" target="_blank">Open in Evernote</a>
Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-8478734.post-86272586296636889942018-09-17T23:55:00.001-07:002018-09-17T23:58:41.322-07:00coherence adapter to work with external remote cache<div dir="ltr" style="text-align: left;" trbidi="on">
<b>coherence adapter to work with external remote cache</b><br />
<div>
I have followed the exact steps given in the URL below to make the coherence adapter to work with external remote cache</div>
<div>
<br /></div>
<div>
<a href="https://docs.oracle.com/cd/E15357_01/coh.360/e15726/gs_example.htm" style="vertical-align: top;" title="Click (or CTRL+Click if using Firefox) to view">https://docs.oracle.com/cd/E15357_01/coh.360/e15726/gs_example.htm</a></div>
<div>
<br /></div>
<div>
1. create a file</div>
<div>
<br /></div>
<div>
example-config.xml</div>
<div>
<br /></div>
<div>
++</div>
<div>
<?xml version="1.0"?></div>
<div>
<!DOCTYPE cache-config SYSTEM "cache-config.dtd"></div>
<div>
<cache-config></div>
<div>
<caching-scheme-mapping></div>
<div>
<cache-mapping></div>
<div>
<cache-name>dist-extend</cache-name></div>
<div>
<scheme-name>extend</scheme-name></div>
<div>
</cache-mapping></div>
<div>
</caching-scheme-mapping></div>
<div>
<br /></div>
<div>
<caching-schemes></div>
<div>
<distributed-scheme></div>
<div>
<scheme-name>extend</scheme-name></div>
<div>
<lease-granularity>member</lease-granularity></div>
<div>
<backing-map-scheme></div>
<div>
<local-scheme/></div>
<div>
</backing-map-scheme></div>
<div>
<autostart>true</autostart></div>
<div>
</distributed-scheme></div>
<div>
<br /></div>
<div>
<proxy-scheme></div>
<div>
<service-name>ExtendTcpProxyService</service-name></div>
<div>
<thread-count>5</thread-count></div>
<div>
<acceptor-config></div>
<div>
<tcp-acceptor></div>
<div>
<local-address></div>
<div>
<address>localhost</address></div>
<div>
<port>9099</port></div>
<div>
</local-address></div>
<div>
</tcp-acceptor></div>
<div>
</acceptor-config></div>
<div>
<autostart>true</autostart></div>
<div>
</proxy-scheme></div>
<div>
</caching-schemes></div>
<div>
</cache-config></div>
<div>
++</div>
<div>
<br /></div>
<div>
2. Create a file</div>
<div>
<br /></div>
<div>
extend-config.xml</div>
<div>
<br /></div>
<div>
++</div>
<div>
<br /></div>
<div>
<?xml version="1.0"?></div>
<div>
<!DOCTYPE cache-config SYSTEM "cache-config.dtd"></div>
<div>
<br /></div>
<div>
<cache-config></div>
<div>
<caching-scheme-mapping></div>
<div>
<cache-mapping></div>
<div>
<cache-name>dist-extend</cache-name></div>
<div>
<scheme-name>remote</scheme-name></div>
<div>
</cache-mapping></div>
<div>
</caching-scheme-mapping></div>
<div>
<br /></div>
<div>
<caching-schemes></div>
<div>
<remote-cache-scheme></div>
<div>
<scheme-name>remote</scheme-name></div>
<div>
<service-name>ExtendTcpCacheService</service-name></div>
<div>
<initiator-config></div>
<div>
<tcp-initiator></div>
<div>
<remote-addresses></div>
<div>
<socket-address></div>
<div>
<address>localhost</address></div>
<div>
<port>9099</port></div>
<div>
</socket-address></div>
<div>
</remote-addresses></div>
<div>
<connect-timeout>10s</connect-timeout></div>
<div>
</tcp-initiator></div>
<div>
<outgoing-message-handler></div>
<div>
<request-timeout>5s</request-timeout></div>
<div>
</outgoing-message-handler></div>
<div>
</initiator-config></div>
<div>
</remote-cache-scheme></div>
<div>
<br /></div>
<div>
<remote-invocation-scheme></div>
<div>
<scheme-name>extend-invocation</scheme-name></div>
<div>
<service-name>ExtendTcpInvocationService</service-name></div>
<div>
<initiator-config></div>
<div>
<tcp-initiator></div>
<div>
<remote-addresses></div>
<div>
<socket-address></div>
<div>
<address>localhost</address></div>
<div>
<port>9099</port></div>
<div>
</socket-address></div>
<div>
</remote-addresses></div>
<div>
<connect-timeout>10s</connect-timeout></div>
<div>
</tcp-initiator></div>
<div>
<outgoing-message-handler></div>
<div>
<request-timeout>5s</request-timeout></div>
<div>
</outgoing-message-handler></div>
<div>
</initiator-config></div>
<div>
</remote-invocation-scheme></div>
<div>
</caching-schemes></div>
<div>
</cache-config></div>
<div>
<br /></div>
<div>
++</div>
<div>
<br /></div>
<div>
3. Run the external coherence server using the command</div>
<div>
<br /></div>
<div>
java -cp /fmw11g/soa12212/coherence/lib/coherence.jar:. -Dtangosol.coherence.cacheconfig=example-config.xml <a href="http://com.tangosol.net.defaultcacheserver/">com.tangosol.net.DefaultCacheServer</a></div>
<div>
<br /></div>
<div>
4. Modify the Outbound Connection Pool Configuration Table for</div>
<div>
eis/Coherence/Remote</div>
<div>
<br /></div>
<div>
with the following</div>
<div>
<br /></div>
<div>
CacheConfigLocation java.lang.String /home/oracle/extend-config.xml</div>
<div>
ClassLoaderMode java.lang.String CUSTOM</div>
<div>
ConnectionFactoryLocation java.lang.String <blank></div>
<div>
PojoJarFile java.lang.String <blank></div>
<div>
ServiceName java.lang.String <blank></div>
<div>
WLSExtendProxy java.lang.Boolean false</div>
<div>
<br /></div>
<div>
Here blank means no value.</div>
<div>
<br /></div>
<div>
5. Deploy the SOA Project ,</div>
<div>
extract the project Cohe1.zip and deploy the coherence soa project.</div>
<div>
<br /></div>
<div>
Refer to the uploaded file Cohe1.zip</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
6. Run the BPELProcess1 with the input as say TEST1234567890 ,</div>
<div>
on successful execution this creates a cache entry with the key as test1 and value as "TEST1234567890".</div>
<div>
<br /></div>
<div>
Check the flow trace , if everything goes well this you should see no error's.</div>
<div>
<br /></div>
<div>
Now run BPELProcess2 , give input as any random value , this reads coherence with the key name as "test1" and get's the value for the key "test1".</div>
<div>
Successful execution should give the result as "TEST1234567890"</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<br />
<br />
Tags: Publish<br />
September 17, 2018 at 04:09PM<br />
<a href="https://www.evernote.com/shard/s111/sh/39d978f9-b590-48a7-82df-ae86e12aae21/4bec168cc3564164ed252665e8c38c1a" target="_blank">Open in Evernote</a>
</div>
Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-8478734.post-72755162081270153762018-07-06T23:23:00.001-07:002018-07-06T23:23:18.067-07:00How to set weblogic Server Debug flags using WLST Scripts<b>How to set weblogic Server Debug flags using WLST Scripts</b><br />
<div>How to set weblogic Server Debug flags using WLST Scripts</div>
<div><br /></div>
<div><br /></div>
<div>-- Get List of Debug Flags available with Weblogic Server</div>
<div><br /></div>
<div>connect('weblogic','Welcome1','t3://localhost:7001')</div>
<div>cd('/Servers/AdminServer/ServerDebug/AdminServer')</div>
<div>ls()</div>
<div>exit()</div>
<div><br /></div>
<div><br /></div>
<div>To set the Debug Flags for example DebugJDBCSQL , DebugJTAXA abd DebugJTAJDBC</div>
<div><br /></div>
<div>connect('weblogic','Welcome1','t3://localhost:7001')</div>
<div>edit()</div>
<div>startEdit()</div>
<div>cd('/Servers/AdminServer/ServerDebug/AdminServer')</div>
<div>cmo.setDebugJDBCSQL(true)</div>
<div>cmo.setDebugJTAXA(true)</div>
<div>cmo.setDebugJTAJDBC(true)</div>
<div>save()</div>
<div>activate()</div>
<div>exit()</div>
<div><br /></div>
<div>To unset the Debug Flags for example DebugJDBCSQL , DebugJTAXA abd DebugJTAJDBC</div>
<div><br /></div>
<div>connect('weblogic','Welcome1','t3://localhost:7001')</div>
<div>edit()</div>
<div>startEdit()</div>
<div>cd('/Servers/AdminServer/ServerDebug/AdminServer')</div>
<div>cmo.unSet('DebugJDBCSQL')</div>
<div>cmo.unSet('DebugJTAXA')</div>
<div>cmo.unSet('DebugJTAJDBC')</div>
<div>save()</div>
<div>activate()</div>
<div>exit()</div>
<div><br /></div>
<div><br /></div>
<div>Lif of WLS Server Debug Flags</div>
<div><br /></div>
<div>wls:/soa_domain/serverConfig> cd('/Servers/AdminServer/ServerDebug/AdminServer')</div>
<div>wls:/soa_domain/serverConfig/Servers/AdminServer/ServerDebug/AdminServer> ls()</div>
<div>dr-- Server</div>
<div><br /></div>
<div>-r-- ApplicationContainer false</div>
<div>-r-- ClassChangeNotifier false</div>
<div>-r-- ClassFinder false</div>
<div>-r-- ClassLoader false</div>
<div>-r-- ClassLoaderVerbose false</div>
<div>-r-- ClassloaderWebApp false</div>
<div>-r-- ClasspathServlet false</div>
<div>-r-- DebugAbbreviation false</div>
<div>-r-- DebugAppContainer false</div>
<div>-r-- DebugAsyncQueue false</div>
<div>-r-- DebugBootstrapServlet false</div>
<div>-r-- DebugCertRevocCheck false</div>
<div>-r-- DebugClassRedef false</div>
<div>-r-- DebugClassSize false</div>
<div>-r-- DebugCluster false</div>
<div>-r-- DebugClusterAnnouncements false</div>
<div>-r-- DebugClusterFragments false</div>
<div>-r-- DebugClusterHeartbeats false</div>
<div>-r-- DebugConfigurationEdit false</div>
<div>-r-- DebugConfigurationRuntime false</div>
<div>-r-- DebugConnection false</div>
<div>-r-- DebugConnectorService false</div>
<div>-r-- DebugConsensusLeasing false</div>
<div>-r-- DebugDGCEnrollment false</div>
<div>-r-- DebugDRSCalls false</div>
<div>-r-- DebugDRSHeartbeats false</div>
<div>-r-- DebugDRSMessages false</div>
<div>-r-- DebugDRSQueues false</div>
<div>-r-- DebugDRSStateTransitions false</div>
<div>-r-- DebugDRSUpdateStatus false</div>
<div>-r-- DebugDeploy false</div>
<div>-r-- DebugDeployment false</div>
<div>-r-- DebugDeploymentPlan false</div>
<div>-r-- DebugDeploymentService false</div>
<div>-r-- DebugDeploymentServiceInternal false</div>
<div>-r-- DebugDeploymentServiceStatusUpdates false</div>
<div>-r-- DebugDeploymentServiceTransport false</div>
<div>-r-- DebugDeploymentServiceTransportHttp false</div>
<div>-r-- DebugDescriptor false</div>
<div>-r-- DebugDiagnosticAccessor false</div>
<div>-r-- DebugDiagnosticArchive false</div>
<div>-r-- DebugDiagnosticArchiveRetirement false</div>
<div>-r-- DebugDiagnosticCollections false</div>
<div>-r-- DebugDiagnosticContext false</div>
<div>-r-- DebugDiagnosticDataGathering false</div>
<div>-r-- DebugDiagnosticFileArchive false</div>
<div>-r-- DebugDiagnosticImage false</div>
<div>-r-- DebugDiagnosticInstrumentation false</div>
<div>-r-- DebugDiagnosticInstrumentationActions false</div>
<div>-r-- DebugDiagnosticInstrumentationConfig false</div>
<div>-r-- DebugDiagnosticInstrumentationEvents false</div>
<div>-r-- DebugDiagnosticInstrumentationWeaving false</div>
<div>-r-- DebugDiagnosticInstrumentationWeavingMatches false</div>
<div>-r-- DebugDiagnosticJdbcArchive false</div>
<div>-r-- DebugDiagnosticLifecycleHandlers false</div>
<div>-r-- DebugDiagnosticQuery false</div>
<div>-r-- DebugDiagnosticWatch false</div>
<div>-r-- DebugDiagnosticWlstoreArchive false</div>
<div>-r-- DebugDiagnosticsHarvester false</div>
<div>-r-- DebugDiagnosticsHarvesterData false</div>
<div>-r-- DebugDiagnosticsHarvesterMBeanPlugin false</div>
<div>-r-- DebugDiagnosticsHarvesterTreeBeanPlugin false</div>
<div>-r-- DebugDiagnosticsModule false</div>
<div>-r-- DebugDomainLogHandler false</div>
<div>-r-- DebugEjbCaching false</div>
<div>-r-- DebugEjbCmpDeployment false</div>
<div>-r-- DebugEjbCmpRuntime false</div>
<div>-r-- DebugEjbCompilation false</div>
<div>-r-- DebugEjbDeployment false</div>
<div>-r-- DebugEjbInvoke false</div>
<div>-r-- DebugEjbLocking false</div>
<div>-r-- DebugEjbMdbConnection false</div>
<div>-r-- DebugEjbPooling false</div>
<div>-r-- DebugEjbSecurity false</div>
<div>-r-- DebugEjbSwapping false</div>
<div>-r-- DebugEjbTimers false</div>
<div>-r-- DebugEmbeddedLDAP false</div>
<div>-r-- DebugEmbeddedLDAPLogLevel 0</div>
<div>-r-- DebugEmbeddedLDAPLogToConsole false</div>
<div>-r-- DebugEmbeddedLDAPWriteOverrideProps false</div>
<div>-r-- DebugEventManager false</div>
<div>-r-- DebugFailOver false</div>
<div>-r-- DebugFileDistributionServlet false</div>
<div>-r-- DebugHttp false</div>
<div>-r-- DebugHttpLogging false</div>
<div>-r-- DebugHttpSessions false</div>
<div>-r-- DebugIIOP false</div>
<div>-r-- DebugIIOPConnection false</div>
<div>-r-- DebugIIOPMarshal false</div>
<div>-r-- DebugIIOPNaming false</div>
<div>-r-- DebugIIOPOTS false</div>
<div>-r-- DebugIIOPReplacer false</div>
<div>-r-- DebugIIOPSecurity false</div>
<div>-r-- DebugIIOPStartup false</div>
<div>-r-- DebugIIOPTransport false</div>
<div>-r-- DebugIIOPTunneling false</div>
<div>-r-- DebugJ2EEManagement false</div>
<div>-r-- DebugJAXPDebugLevel 0</div>
<div>-r-- DebugJAXPDebugName null</div>
<div>-r-- DebugJAXPIncludeClass false</div>
<div>-r-- DebugJAXPIncludeLocation false</div>
<div>-r-- DebugJAXPIncludeName false</div>
<div>-r-- DebugJAXPIncludeTime false</div>
<div>-r-- DebugJAXPOutputStream null</div>
<div>-r-- DebugJAXPUseShortClass false</div>
<div>-r-- DebugJDBCConn false</div>
<div>-r-- DebugJDBCDriverLogging false</div>
<div>-r-- DebugJDBCInternal false</div>
<div>-r-- DebugJDBCONS false</div>
<div>-r-- DebugJDBCRAC false</div>
<div>-r-- DebugJDBCREPLAY false</div>
<div>-r-- DebugJDBCRMI false</div>
<div>-r-- DebugJDBCSQL true</div>
<div>-r-- DebugJDBCUCP false</div>
<div>-r-- DebugJMSAME false</div>
<div>-r-- DebugJMSBackEnd false</div>
<div>-r-- DebugJMSBoot false</div>
<div>-r-- DebugJMSCDS false</div>
<div>-r-- DebugJMSCommon false</div>
<div>-r-- DebugJMSConfig false</div>
<div>-r-- DebugJMSDispatcher false</div>
<div>-r-- DebugJMSDistTopic false</div>
<div>-r-- DebugJMSDurableSubscribers false</div>
<div>-r-- DebugJMSFrontEnd false</div>
<div>-r-- DebugJMSJDBCScavengeOnFlush false</div>
<div>-r-- DebugJMSLocking false</div>
<div>-r-- DebugJMSMessagePath false</div>
<div>-r-- DebugJMSModule false</div>
<div>-r-- DebugJMSPauseResume false</div>
<div>-r-- DebugJMSSAF false</div>
<div>-r-- DebugJMSStore false</div>
<div>-r-- DebugJMST3Server false</div>
<div>-r-- DebugJMSWrappers false</div>
<div>-r-- DebugJMSXA false</div>
<div>-r-- DebugJMX false</div>
<div>-r-- DebugJMXCompatibility false</div>
<div>-r-- DebugJMXCore false</div>
<div>-r-- DebugJMXDomain false</div>
<div>-r-- DebugJMXEdit false</div>
<div>-r-- DebugJMXRuntime false</div>
<div>-r-- DebugJNDI false</div>
<div>-r-- DebugJNDIFactories false</div>
<div>-r-- DebugJNDIResolution false</div>
<div>-r-- DebugJTA2PC false</div>
<div>-r-- DebugJTA2PCStackTrace false</div>
<div>-r-- DebugJTAAPI false</div>
<div>-r-- DebugJTAGateway false</div>
<div>-r-- DebugJTAGatewayStackTrace false</div>
<div>-r-- DebugJTAHealth false</div>
<div>-r-- DebugJTAJDBC false</div>
<div>-r-- DebugJTALLR false</div>
<div>-r-- DebugJTALifecycle false</div>
<div>-r-- DebugJTAMigration false</div>
<div>-r-- DebugJTANaming false</div>
<div>-r-- DebugJTANamingStackTrace false</div>
<div>-r-- DebugJTANonXA false</div>
<div>-r-- DebugJTAPropagate false</div>
<div>-r-- DebugJTARMI false</div>
<div>-r-- DebugJTARecovery false</div>
<div>-r-- DebugJTARecoveryStackTrace false</div>
<div>-r-- DebugJTAResourceHealth false</div>
<div>-r-- DebugJTAResourceName null</div>
<div>-r-- DebugJTATLOG false</div>
<div>-r-- DebugJTATransactionName null</div>
<div>-r-- DebugJTAXA true</div>
<div>-r-- DebugJTAXAStackTrace false</div>
<div>-r-- DebugJpaDataCache false</div>
<div>-r-- DebugJpaEnhance false</div>
<div>-r-- DebugJpaJdbcJdbc false</div>
<div>-r-- DebugJpaJdbcSchema false</div>
<div>-r-- DebugJpaJdbcSql false</div>
<div>-r-- DebugJpaManage false</div>
<div>-r-- DebugJpaMetaData false</div>
<div>-r-- DebugJpaProfile false</div>
<div>-r-- DebugJpaQuery false</div>
<div>-r-- DebugJpaRuntime false</div>
<div>-r-- DebugJpaTool false</div>
<div>-r-- DebugLeaderElection false</div>
<div>-r-- DebugLibraries false</div>
<div>-r-- DebugLoadBalancing false</div>
<div>-r-- DebugLoggingConfiguration false</div>
<div>-r-- DebugManagementServicesResource false</div>
<div>-r-- DebugMaskCriterias null</div>
<div>-r-- DebugMessaging false</div>
<div>-r-- DebugMessagingBridgeRuntime false</div>
<div>-r-- DebugMessagingBridgeRuntimeVerbose false</div>
<div>-r-- DebugMessagingBridgeStartup false</div>
<div>-r-- DebugMessagingKernel false</div>
<div>-r-- DebugMessagingKernelBoot false</div>
<div>-r-- DebugMuxer false</div>
<div>-r-- DebugMuxerConnection false</div>
<div>-r-- DebugMuxerDetail false</div>
<div>-r-- DebugMuxerException false</div>
<div>-r-- DebugMuxerTimeout false</div>
<div>-r-- DebugPathSvc false</div>
<div>-r-- DebugPathSvcVerbose false</div>
<div>-r-- DebugRA false</div>
<div>-r-- DebugRAClassloader false</div>
<div>-r-- DebugRAConnEvents false</div>
<div>-r-- DebugRAConnections false</div>
<div>-r-- DebugRADeployment false</div>
<div>-r-- DebugRALifecycle false</div>
<div>-r-- DebugRALocalOut false</div>
<div>-r-- DebugRAParsing false</div>
<div>-r-- DebugRAPoolVerbose false</div>
<div>-r-- DebugRAPooling false</div>
<div>-r-- DebugRASecurityCtx false</div>
<div>-r-- DebugRAWork false</div>
<div>-r-- DebugRAWorkEvents false</div>
<div>-r-- DebugRAXAin false</div>
<div>-r-- DebugRAXAout false</div>
<div>-r-- DebugRAXAwork false</div>
<div>-r-- DebugRC4 false</div>
<div>-r-- DebugRSA false</div>
<div>-r-- DebugReplication false</div>
<div>-r-- DebugReplicationDetails false</div>
<div>-r-- DebugRouting false</div>
<div>-r-- DebugSAFAdmin false</div>
<div>-r-- DebugSAFLifeCycle false</div>
<div>-r-- DebugSAFManager false</div>
<div>-r-- DebugSAFMessagePath false</div>
<div>-r-- DebugSAFReceivingAgent false</div>
<div>-r-- DebugSAFSendingAgent false</div>
<div>-r-- DebugSAFStore false</div>
<div>-r-- DebugSAFTransport false</div>
<div>-r-- DebugSAFVerbose false</div>
<div>-r-- DebugSNMPAgent false</div>
<div>-r-- DebugSNMPExtensionProvider false</div>
<div>-r-- DebugSNMPProtocolTCP false</div>
<div>-r-- DebugSNMPToolkit false</div>
<div>-r-- DebugSSL false</div>
<div>-r-- DebugScaContainer false</div>
<div>-r-- DebugSecurityAdjudicator false</div>
<div>-r-- DebugSecurityAtn false</div>
<div>-r-- DebugSecurityAtz false</div>
<div>-r-- DebugSecurityAuditor false</div>
<div>-r-- DebugSecurityCertPath false</div>
<div>-r-- DebugSecurityCredMap false</div>
<div>-r-- DebugSecurityEEngine false</div>
<div>-r-- DebugSecurityEncryptionService false</div>
<div>-r-- DebugSecurityJACC false</div>
<div>-r-- DebugSecurityJACCNonPolicy false</div>
<div>-r-- DebugSecurityJACCPolicy false</div>
<div>-r-- DebugSecurityKeyStore false</div>
<div>-r-- DebugSecurityPasswordPolicy false</div>
<div>-r-- DebugSecurityPredicate false</div>
<div>-r-- DebugSecurityRealm false</div>
<div>-r-- DebugSecurityRoleMap false</div>
<div>-r-- DebugSecuritySAML2Atn false</div>
<div>-r-- DebugSecuritySAML2CredMap false</div>
<div>-r-- DebugSecuritySAML2Lib false</div>
<div>-r-- DebugSecuritySAML2Service false</div>
<div>-r-- DebugSecuritySAMLAtn false</div>
<div>-r-- DebugSecuritySAMLCredMap false</div>
<div>-r-- DebugSecuritySAMLLib false</div>
<div>-r-- DebugSecuritySAMLService false</div>
<div>-r-- DebugSecuritySSL false</div>
<div>-r-- DebugSecuritySSLEaten false</div>
<div>-r-- DebugSecurityService false</div>
<div>-r-- DebugSecurityUserLockout false</div>
<div>-r-- DebugSelfTuning false</div>
<div>-r-- DebugServerLifeCycle false</div>
<div>-r-- DebugServerMigration false</div>
<div>-r-- DebugServerStartStatistics false</div>
<div>-r-- DebugStoreAdmin false</div>
<div>-r-- DebugStoreIOLogical false</div>
<div>-r-- DebugStoreIOLogicalBoot false</div>
<div>-r-- DebugStoreIOPhysical false</div>
<div>-r-- DebugStoreIOPhysicalVerbose false</div>
<div>-r-- DebugStoreXA false</div>
<div>-r-- DebugStoreXAVerbose false</div>
<div>-r-- DebugTunnelingConnection false</div>
<div>-r-- DebugTunnelingConnectionTimeout false</div>
<div>-r-- DebugURLResolution false</div>
<div>-r-- DebugWANReplicationDetails false</div>
<div>-r-- DebugWTCConfig false</div>
<div>-r-- DebugWTCCorbaEx false</div>
<div>-r-- DebugWTCGwtEx false</div>
<div>-r-- DebugWTCJatmiEx false</div>
<div>-r-- DebugWTCTDomPdu false</div>
<div>-r-- DebugWTCUData false</div>
<div>-r-- DebugWTCtBridgeEx false</div>
<div>-r-- DebugWebAppIdentityAssertion false</div>
<div>-r-- DebugWebAppModule false</div>
<div>-r-- DebugWebAppSecurity false</div>
<div>-r-- DebugWorkContext false</div>
<div>-r-- DebugXMLEntityCacheDebugLevel 0</div>
<div>-r-- DebugXMLEntityCacheDebugName null</div>
<div>-r-- DebugXMLEntityCacheIncludeClass false</div>
<div>-r-- DebugXMLEntityCacheIncludeLocation false</div>
<div>-r-- DebugXMLEntityCacheIncludeName false</div>
<div>-r-- DebugXMLEntityCacheIncludeTime false</div>
<div>-r-- DebugXMLEntityCacheOutputStream null</div>
<div>-r-- DebugXMLEntityCacheUseShortClass false</div>
<div>-r-- DebugXMLRegistryDebugLevel 0</div>
<div>-r-- DebugXMLRegistryDebugName null</div>
<div>-r-- DebugXMLRegistryIncludeClass false</div>
<div>-r-- DebugXMLRegistryIncludeLocation false</div>
<div>-r-- DebugXMLRegistryIncludeName false</div>
<div>-r-- DebugXMLRegistryIncludeTime false</div>
<div>-r-- DebugXMLRegistryOutputStream null</div>
<div>-r-- DebugXMLRegistryUseShortClass false</div>
<div>-r-- DefaultStore false</div>
<div>-r-- DiagnosticContextDebugMode Off</div>
<div>-r-- ForceGCEachDGCPeriod false</div>
<div>-r-- ListenThreadDebug false</div>
<div>-r-- LogDGCStatistics false</div>
<div>-r-- MasterDeployer false</div>
<div>-r-- Name AdminServer</div>
<div>-r-- Notes null</div>
<div>-r-- RedefiningClassLoader false</div>
<div>-r-- Server null</div>
<div>-r-- SlaveDeployer false</div>
<div>-r-- Type ServerDebug</div>
<div>-r-- WebModule false</div>
<div><br /></div>
<div>-r-x freezeCurrentValue Void : String(attributeName)</div>
<div>-r-x isSet Boolean : String(propertyName)</div>
<div>-r-x unSet Void : String(propertyName)</div>
<div><br /></div>
<div>wls:/soa_domain/serverConfig/Servers/AdminServer/ServerDebug/AdminServer></div>
<div><br /></div>
<br />
<br />
Tags: Publish<br />
July 07, 2018 at 10:22AM<br />
<a href="https://www.evernote.com/shard/s111/sh/e9ce909a-06f9-48c3-b577-f6da9379458f/14c8d1e27f17fb149ef73265b4f0ff28" target="_blank">Open in Evernote</a>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8478734.post-74740712842072832272018-07-04T05:41:00.001-07:002018-07-04T05:41:17.093-07:00Selecting Tracing for a composite using wlst command's<b>Selecting Tracing for a composite using wlst command's</b><br />
<div>Selecting Tracing for a composite using wlst command's</div>
<div>======================================================</div>
<div><br /></div>
<div>From Admin Server do the following</div>
<div><br /></div>
<div><br /></div>
<div>Replace HelloWorld with your composite name i.e "HelloWorld" and traceId "HelloWorld-trace1"</div>
<div>with your values</div>
<div><br /></div>
<div>Start WLST with <MIDDLEWARE_HOME>/oracle_common/common/bin/wlst.cmd</div>
<div><br /></div>
<div>connect('weblogic','Welcome1','t3://localhost:7001')</div>
<div><br /></div>
<div>startTracing(attrName="composite_name",attrValue="HelloWorld",level="TRACE:32",traceId="HelloWorld-trace1")</div>
<div><br /></div>
<div>After testing the composites , stop the tracing , by issuing the command</div>
<div><br /></div>
<div><br /></div>
<div>stopTracing(traceId="HelloWorld-trace1")</div>
<div><br /></div>
<div><br /></div>
<div>Reference :</div>
<div><a href="https://docs.oracle.com/cd/E15586_01/web.1111/e13813/custom_logging.htm#CEGIJECA">https://docs.oracle.com/cd/E15586_01/web.1111/e13813/custom_logging.htm#CEGIJECA</a></div>
<div>How to Use Selective Tracing for SOA (Doc ID 1367174.1)</div>
<div><br /></div>
<br />
<br />
Tags: Publish<br />
July 04, 2018 at 04:34PM<br />
<a href="https://www.evernote.com/shard/s111/sh/46c24685-43e5-422e-9653-d1d624392463/ecf365794ed253fc51a2c251484c7500" target="_blank">Open in Evernote</a>
Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-8478734.post-43039532398542027012018-06-04T04:42:00.001-07:002018-06-04T04:42:11.711-07:00How to recreate the purge scripts in SOA using instantclient sql<b>How to recreate the purge scripts in SOA using instantclient sql</b><br />
<div>Purge scripts should be available in the directory ,</div>
<div>$ORACLE_HOME/soa/common/sql/soainfra/sql/oracle/122100/soa_purge12/soa_purge_scripts.sql</div>
<div><br /></div>
<div>Download the folloiwng files</div>
<div><a href="http://download.oracle.com/otn/linux/instantclient/122010/instantclient-basic-linux.x64-12.2.0.1.0.zip" style="vertical-align: top;" title="Click (or CTRL+Click if using Firefox) to view">http://download.oracle.com/otn/linux/instantclient/122010/instantclient-basic-linux.x64-12.2.0.1.0.zip</a></div>
<div><a href="http://download.oracle.com/otn/linux/instantclient/122010/instantclient-sqlplus-linux.x64-12.2.0.1.0.zip" style="vertical-align: top;" title="Click (or CTRL+Click if using Firefox) to view">http://download.oracle.com/otn/linux/instantclient/122010/instantclient-sqlplus-linux.x64-12.2.0.1.0.zip</a></div>
<div><br /></div>
<div>extract them</div>
<div><br /></div>
<div>unzip -d . instantclient-basic-linux.x64-12.2.0.1.0.zip</div>
<div>unzip -d . instantclient-sqlplus-linux.x64-12.2.0.1.0.zip</div>
<div><br /></div>
<div>cd /home/oracle/instantclient_12_2</div>
<div><br /></div>
<div>export PATH=/home/oracle/instantclient_12_2:$PATH</div>
<div>export LD_LIBRARY_PATH=/home/oracle/instantclient_12_2</div>
<div><br /></div>
<div>now test the connectivity , for example</div>
<div><br /></div>
<div>sqlplus DEV_SOAINFRA/Welcome1@host-name:1521/orcl</div>
<div><br /></div>
<div>after this</div>
<div><br /></div>
<div>cd $ORACLE_HOME/soa/common/sql/soainfra/sql/oracle/122100/soa_purge12/soa_purge_scripts.sql</div>
<div>run the script</div>
<div><br /></div>
<div>@soa_purge_scripts.sql</div>
<div><br /></div>
<div><br /></div>
<div>Then try with the following ,</div>
<div><br /></div>
<div>begin</div>
<div>soa.DELETE_INSTANCES_IN_PARALLEL(</div>
<div>MIN_CREATION_DATE=> to_timestamp('2016-01-01','YYYY-MM-DD'),</div>
<div>MAX_CREATION_DATE=> to_timestamp('2016-01-01','YYYY-MM-DD'),</div>
<div>BATCH_SIZE=>1000,</div>
<div>MAX_RUNTIME=>20,</div>
<div>RETENTION_PERIOD=>to_timestamp('2016-01-01','YYYY-MM-DD'),</div>
<div>DOP=>4,</div>
<div>MAX_COUNT=>1000,</div>
<div>PURGE_PARTITIONED_COMPONENT=>false,</div>
<div>sql_trace=>false);</div>
<div>end;</div>
<div><br /></div>
<div>and also</div>
<div><br /></div>
<div>begin</div>
<div>soa.DELETE_INSTANCES(</div>
<div>MIN_CREATION_DATE=> to_timestamp('2016-01-01','YYYY-MM-DD'),</div>
<div>MAX_CREATION_DATE=> to_timestamp('2016-01-01','YYYY-MM-DD'),</div>
<div>BATCH_SIZE=>1000,</div>
<div>MAX_RUNTIME=>20,</div>
<div>RETENTION_PERIOD=>to_timestamp('2016-01-01','YYYY-MM-DD'),</div>
<div>PURGE_PARTITIONED_COMPONENT=>false,</div>
<div>sql_trace=>false);</div>
<div>end;</div>
<div><br /></div>
<div>Check the Note </div>
<div><br /></div>
<div>Steps to compile SOA Purge 12.2.1.1 with an explanation (Doc ID 2171885.1)</div>
<br />
<br />
Tags: Publish<br />
June 04, 2018 at 04:22PM<br />
<a href="https://www.evernote.com/shard/s111/sh/5d873421-b53b-4a04-8c1c-16b6ed4a8201/b50d5c4c1c4e193fec724b473a480605" target="_blank">Open in Evernote</a>
Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-8478734.post-59476264819643445992018-05-16T00:47:00.001-07:002018-05-16T00:47:31.530-07:00How to Invoke "Refresh Alarm Table" from a Java Code<b>How to Invoke "Refresh Alarm Table" from a Java Code</b><br />
<div><span style="-en-paragraph:true;"><span style="font-size: 12pt;">In a BPEL process there are some use cases where a Wait activity or the onAlarm branch of a Pick activity is needed. An example for an onAlarm branch </span></span><span style="font-size: 12pt;">is a timeout mechanism for an asynchronous call. These activities save the instance in the dehydration store for a defined time. To wake up the waiting </span><span style="font-size: 12pt;">instances there is a quartz scheduler job running in the weblogic and check the expiration date in the dehydration store. For the case the dehydration store </span><span style="font-size: 12pt;"> is not available, the scheduler retry to call the database. The retry settings can be found in the advanced BPEL properties in the System MBean Browser. </span></div>
<div><span style="font-size: 12pt;"><br /></span></div>
<div><span style="-en-paragraph:true;"><span style="font-size: 12pt;">The properties are named ExpirationMaxRetry and ExpirationRetryDelay. </span></span><span style="font-size: 12pt;">When the retry failed the data sets won’t be cleaned from the dehydration store.</span></div>
<div><br /></div>
<div><span style="-en-paragraph:true;"><span style="font-size: 12pt;">The suggestion to clean this is to click on the Button “Refresh Alarm Table” in the Recovery console. But it is unpleasent to click the button periodically, so the wish appear to do this automated. There is a way for an automatically clean.</span></span></div>
<div><br /></div>
<div><span style="font-size: 12pt;">This Note explains how to achieve this functionality using DB Update stament</span></div>
<div><br /></div>
<div><a href="https://blogs.oracle.com/soacommunity/start-expired-instances-in-waiting-state-for-oracle-soa-suite-by-reinhold-becker">https://blogs.oracle.com/soacommunity/start-expired-instances-in-waiting-state-for-oracle-soa-suite-by-reinhold-becker</a></div>
<div><br /></div>
<div><a href="http://www.esentri.com/blog/2014/10/13/start-expired-instances-waiting-state-soa-suite/">http://www.esentri.com/blog/2014/10/13/start-expired-instances-waiting-state-soa-suite/</a></div>
<div><br /></div>
<div><font style="font-size: 12pt;">This also can be achieved using the following java code </font></div>
<div><font style="font-size: 12pt;"><br /></font></div>
<div><span style="font-size: 12pt;">++</span></div>
<div><span style="font-size: 12pt;">package hello2;</span></div>
<div><br style="font-size: 12pt;" /></div>
<div><span style="font-size: 12pt;">import java.util.Hashtable;</span></div>
<div><span style="font-size: 12pt;">import java.util.List;</span></div>
<div><span style="font-size: 12pt;">import javax.naming.Context;</span></div>
<div><span style="font-size: 12pt;">import</span> <a href="http://oracle.soa.management.facade.componentinstance/" style="font-size: 12pt;">oracle.soa.management.facade.ComponentInstance</a><span style="font-size: 12pt;">;</span></div>
<div><span style="font-size: 12pt;">import</span> <a href="http://oracle.soa.management.facade.compositeinstance/" style="font-size: 12pt;">oracle.soa.management.facade.CompositeInstance</a><span style="font-size: 12pt;">;</span></div>
<div><span style="font-size: 12pt;">import oracle.soa.management.facade.Locator;</span></div>
<div><span style="font-size: 12pt;">import oracle.soa.management.facade.LocatorFactory;</span></div>
<div><span style="font-size: 12pt;">import</span> <a href="http://oracle.soa.management.util.componentinstancefilter/" style="font-size: 12pt;">oracle.soa.management.util.ComponentInstanceFilter</a><span style="font-size: 12pt;">;</span></div>
<div><span style="font-size: 12pt;">import</span> <a href="http://oracle.soa.management.util.compositeinstancefilter/" style="font-size: 12pt;">oracle.soa.management.util.CompositeInstanceFilter</a><span style="font-size: 12pt;">;</span></div>
<div><br style="font-size: 12pt;" /></div>
<div><span style="font-size: 12pt;">import org.w3c.dom.Document;</span></div>
<div><span style="font-size: 12pt;">import org.w3c.dom.Node;</span></div>
<div><br style="font-size: 12pt;" /></div>
<div><br style="font-size: 12pt;" /></div>
<div><span style="font-size: 12pt;">public class Class1 {</span></div>
<div><span style="font-size: 12pt;"> public Class1() {</span></div>
<div><span style="font-size: 12pt;"> super();</span></div>
<div><span style="font-size: 12pt;"> }</span></div>
<div><br style="font-size: 12pt;" /></div>
<div><span style="font-size: 12pt;"> //Invoke this method with the composite instance id</span></div>
<div><span style="font-size: 12pt;"> public static void main(String[] args) {</span></div>
<div><span style="font-size: 12pt;"> String compositeName = "GetOpenCompositeInstances";</span></div>
<div><span style="font-size: 12pt;"> Hashtable jndiProps = new Hashtable();</span></div>
<div><span style="font-size: 12pt;"> String inputPayload = "";</span></div>
<div><span style="font-size: 12pt;"> try {</span></div>
<div><span style="font-size: 12pt;"> jndiProps.put(Context.PROVIDER_URL, "t3://xxxxx:7001");</span></div>
<div><span style="font-size: 12pt;"> jndiProps.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");</span></div>
<div><span style="font-size: 12pt;"> jndiProps.put(Context.SECURITY_PRINCIPAL, "weblogic");</span></div>
<div><span style="font-size: 12pt;"> jndiProps.put(Context.SECURITY_CREDENTIALS, "Welcome1");</span></div>
<div><span style="font-size: 12pt;"> jndiProps.put("dedicated.connection", "true");</span></div>
<div><span style="font-size: 12pt;"> Locator locator = LocatorFactory.createLocator(jndiProps);</span></div>
<div><span style="font-size: 12pt;"> </span></div>
<div><span style="font-size: 12pt;"> Object[] params = new Object[] {};</span></div>
<div><span style="font-size: 12pt;"> ((oracle.soa.management.internal.facade.Locator)locator).executeServiceEngineMethod("bpel", "refreshAlarmTable", params);</span></div>
<div><span style="font-size: 12pt;"> System.out.println(" Executed refreshAlarmTable");</span></div>
<div><span style="font-size: 12pt;"> } catch (Exception e) {</span></div>
<div><span style="font-size: 12pt;"> e.printStackTrace();</span></div>
<div><span style="font-size: 12pt;"> }</span></div>
<div><span style="font-size: 12pt;"> }</span></div>
<div><span style="font-size: 12pt;">}</span></div>
<div><br style="font-size: 12pt;" /></div>
<div><span style="font-size: 12pt;">+++</span></div>
<div><span style="font-size: 12pt;"><br /></span></div>
<div>Create a new project from JDev and add the following the libraries </div>
<div><br /></div>
<div>SOA Designtime</div>
<div>SOA Runtime</div>
<div>BPEL Runtime</div>
<div>Mediator Runtime</div>
<div>MDS Runtime</div>
<div>BC4J Service Runtime</div>
<div>WebLogic 12.1 Remote-Client</div>
<div>JRF Client</div>
<div><br /></div>
<div>to run the java code Use the classpath as ,</div>
<div><br /></div>
<div><br /></div>
<div>c:\jdk1.8.0_152\bin\java.exe -server -classpath C:\myjdevwork\jdev12212\mywork\Application1\.adf;C:\myjdevwork\jdev12212\mywork\Application1\Hello2\SOA\SCA-INF\classes;D:\bpm12212\soa\plugins\jdeveloper\extensions\oracle.sca.modeler.jar;D:\bpm12212\soa\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime.jar;D:\bpm12212\soa\soa\modules\oracle.soa.fabric_11.1.1\tracking-api.jar;D:\bpm12212\soa\soa\modules\oracle.soa.fabric_11.1.1\tracking-core.jar;D:\bpm12212\soa\soa\modules\oracle.soa.fabric_11.1.1\edn.jar;D:\bpm12212\soa\soa\modules\oracle.soa.mgmt_11.1.1\soa-infra-mgmt.jar;D:\bpm12212\oracle_common\modules\com.oracle.webservices.fabric-common-api.jar;D:\bpm12212\soa\soa\modules\oracle.soa.bpel_11.1.1\orabpel.jar;D:\bpm12212\soa\soa\modules\oracle.soa.mediator_11.1.1\mediator_client.jar;D:\bpm12212\oracle_common\modules\oracle.mds\mdsrt.jar;D:\bpm12212\oracle_common\modules\oracle.adf.model\adfbcsvc.jar;D:\bpm12212\oracle_common\modules\oracle.adf.model\adfbcsvc-share.jar;D:\bpm12212\oracle_common\modules\commonj.sdo.backward.jar;D:\bpm12212\oracle_common\modules\commonj.sdo.jar;D:\bpm12212\oracle_common\modules\oracle.toplink\eclipselink.jar;D:\bpm12212\oracle_common\modules\com.oracle.webservices.fmw.wsclient-impl.jar;D:\bpm12212\oracle_common\modules\com.oracle.webservices.fmw.jrf-ws-api.jar;D:\bpm12212\oracle_common\modules\com.oracle.webservices.fmw.web-common-schemas-impl.jar;D:\bpm12212\wlserver\server\lib\weblogic.jar;D:\bpm12212\oracle_common\modules\clients\com.oracle.webservices.fmw.client.jar hello2.Class1</div>
<div>Executed refreshAlarmTable</div>
<div><br /></div>
<div>To check the log entries enable the following logger , oracle.soa.bpel.engine.agents</div>
<div><br /></div>
<div>Log entries after enabling the oracle.soa.bpel.engine.agents to TRACE:32</div>
<div><br /></div>
<div>[2018-05-14T13:51:27.595+05:30] [AdminServer] [TRACE] [] [oracle.soa.bpel.engine.agents] [tid: [ACTIVE].ExecuteThread: '30' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: dfe28b74-fb6c-46fa-95cb-c692ece98681-03646479,0] [APP: soa-infra] [partition-name: DOMAIN] [tenant-name: GLOBAL] [SRC_CLASS: ExpirationAgent] [SRC_METHOD: recover] Attempting to find expirable work items</div>
<div>[2018-05-14T13:51:27.597+05:30] [AdminServer] [TRACE] [] [oracle.soa.bpel.engine.agents] [tid: [ACTIVE].ExecuteThread: '30' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: dfe28b74-fb6c-46fa-95cb-c692ece98681-03646479,0] [APP: soa-infra] [partition-name: DOMAIN] [tenant-name: GLOBAL] [SRC_CLASS: ExpirationAgent] [SRC_METHOD: recover] Cluster date time retrieved from DB is 2018-05-14 13:51:27.0</div>
<div>[2018-05-14T13:51:27.597+05:30] [AdminServer] [TRACE] [] [oracle.soa.bpel.engine.agents] [tid: [ACTIVE].ExecuteThread: '30' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: dfe28b74-fb6c-46fa-95cb-c692ece98681-03646479,0] [APP: soa-infra] [partition-name: DOMAIN] [tenant-name: GLOBAL] [SRC_CLASS: ExpirationAgent] [SRC_METHOD: recover] Found NO expirable work items for bpel engine.</div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<br />
<br />
Tags: Publish<br />
May 16, 2018 at 12:05PM<br />
<a href="https://www.evernote.com/shard/s111/sh/194b8f31-f0a9-42ca-a592-46407cfba549/82d1f4cf4635a237665e36ba85d7c4ef" target="_blank">Open in Evernote</a>
Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-8478734.post-6847748339972327212018-04-25T03:52:00.001-07:002018-04-25T03:52:18.756-07:00Change the MFT Source and Target Password's using WLST<b>Change the MFT Source and Target Password's using WLST</b><br />
<div><br /></div>
<div>Use the WLST command , exportDeployedArtifact</div>
<div><br /></div>
<div><br /></div>
<div><span style="-en-paragraph:true;">The following example exports a</span> <span style="-en-paragraph:true;">SOURCE</span> <span style="-en-paragraph:true;">artifact called</span> <span style="-en-paragraph:true;">order-file-src</span> <span style="-en-paragraph:true;">with the label</span> <span style="-en-paragraph:true;">soa_mft-2012-12-07 22:24:09.383</span> <span style="-en-paragraph:true;">to</span> <span style="-en-paragraph:true;">/export/order-file-src.zip</span><span style="-en-paragraph:true;">.</span></div>
<div>exportDeployedArtifact('SOURCE', 'order-file-src', 'soa_mft-2012-12-07 22:24:09.383', '/export/order-file-src.zip</div>
<div><br /></div>
<div><br /></div>
<div>To find out the label Go to MFT Console and click on monitoring TAB and select Source and Target check boxes and click on MFT Source</div>
<div><br /></div>
<div><br /></div>
<div><img src="https://locker.ifttt.com/v2/8734863/1524653536922-fb3852076c9b1dda/d0fb34a9-994d-4618-a4f9-347298d6bf7d?sharing_key=29764640d03b23176aa5167eaef18fbf" width="1641" height="604" /></div>
<div><br /></div>
<div><br /></div>
<div>and select the source and click on the button show details </div>
<div><br /></div>
<div><img src="https://locker.ifttt.com/v2/8734863/1524653537509-5f7fd7abf5f34176/1d96b496-e739-4c7a-a0b3-fbb42aee3605?sharing_key=b0cd3fb11b875fea985c09333b50809e" width="885" height="670" /></div>
<div><br /></div>
<div><br /></div>
<div>Make a note of the string soa_mft-2018-04-04 12:11:29.265 and use this to export the source file </div>
<div><br /></div>
<div>for example , </div>
<div><br /></div>
<div>cd $ORACLE_HOME/mft/common/bin</div>
<div>connect('weblogic', 'Welcome1', 't3://localhost:7001')</div>
<div>exportDeployedArtifact('SOURCE', 'source-name', 'soa_mft-2018-04-04 12:11:29.265', '/tmp/test1.zip')</div>
<div><br /></div>
<div>Open the file mft\source\so_e801f00a-a2d8-4ded-a4fa-36c657c2d61b.xml</div>
<div><br /></div>
<div><img src="https://locker.ifttt.com/v2/8734863/1524653538093-8081b4f253b94cc8/f5faae69-ede4-4ec3-a0fa-54851d555d42?sharing_key=cc581206100e6cba3df0ae886c23a7c0" width="1622" height="322" /></div>
<div><br /></div>
<div>Locate the password , make a note of it , for example in this case it is </div>
<div><br /></div>
<div>pw_key_dabf076a-306a-4cb2-85f5-d165df53bd84</div>
<div><br /></div>
<div>Now use the wlst command </div>
<div><br /></div>
<div>cd $ORACLE_HOME/oracle_common/common/bin</div>
<div><br /></div>
<div>connect('weblogic', 'Welcome1', 't3://localhost:7001')</div>
<div>updateCred(map="mftapp", key="pw_key_dabf076a-306a-4cb2-85f5-d165df53bd84", user="pw_key_dabf076a-306a-4cb2-85f5-d165df53bd84", password="password-new" , desc="Updated by ...")</div>
<div><br /></div>
<div><br /></div>
<br />
<br />
Tags: Publish<br />
April 25, 2018 at 02:13PM<br />
<a href="https://www.evernote.com/shard/s111/sh/54368491-44e8-4a80-a553-79b945d60260/8154ec515caed3235ea1c660a32a561a" target="_blank">Open in Evernote</a>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8478734.post-2868911938266084232018-04-24T05:52:00.001-07:002018-04-24T05:52:08.635-07:00Rhino Java Script Version in SOA<b>Rhino Java Script Version in SOA</b><br />
<div><span style='min-height: 10pt; font-family: "Courier New"; color: rgb(1, 1, 1); font-size: 10pt;'>org.mozilla.javascript.Context.class file </span></div>
<div><span style='min-height: 10pt; font-family: "Courier New"; color: rgb(1, 1, 1); font-size: 10pt;'><br /></span></div>
<div><span style='min-height: 10pt; font-family: "Courier New"; color: rgb(1, 1, 1); font-size: 10pt;'>and look for the method ,</span></div>
<div><span style='min-height: 10pt; font-family: "Courier New"; color: rgb(1, 1, 1); font-size: 10pt;'><br /></span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);">public String getImplementationVersion()</span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);"> {</span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);"> return "Rhino 1.5 release 2 2001 07 27";</span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);"> }</span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);"> </span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);">For other version run the command </span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);"><br /></span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);"><br /></span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);">java -jar d:\bpm12213\osb\lib\external\js.jar</span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);"><br /></span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);">This will give the o/p as </span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);"><br /></span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);">Rhino 1.7 release 4 2012 06 18</span></div>
<div><br /></div>
<div>Or open the file <span style="font-family: Courier New; color: rgb(1, 1, 1);">d:\bpm12213\osb\lib\external\js.jar</span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);">and check the manifest.mf file </span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);"><br /></span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);">This has the information as </span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);">++</span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);">Manifest-Version: 1.0</span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);">Ant-Version: Apache Ant 1.8.2</span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);">Created-By: 1.7.0_04-b20 (Oracle Corporation)</span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);">Main-Class: org.mozilla.javascript.tools.shell.Main</span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);">Implementation-Version: 1.7R4</span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);">Implementation-Title: Mozilla Rhino 1.7R4</span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);">Implementation-Vendor: Mozilla Foundation</span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);">Implementation-URL:</span> <a href="http://www.mozilla.org/rhino" style="font-family: Courier New; color: rgb(1, 1, 1);">http://www.mozilla.org/rhino</a></div>
<div>++</div>
<div><br /></div>
<div>In SOA 12.2.1.3 these are the places where the java script library is being used</div>
<div><br /></div>
<div>--> org/mozilla/javascript/ScriptRuntime.class in d:\bpm12213\osb\lib\external\js.jar</div>
<div><br /></div>
<div><br /></div>
<div>--> org/mozilla/javascript/ScriptRuntime.class in d:\bpm12213\soa\soa\applications\frevvo.ear\APP-INF\lib\hibernate-jpa-2.0-api-1.0.1.Final.jar\frevvo.war\WEB-INF\lib\rhino-1.7R4.jar</div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div>--> org/mozilla/javascript/ScriptRuntime.class in d:\bpm12213\soa\soa\connectors\SocketAdapter.rar\js-engine.jar\js.jar</div>
<div><br /></div>
<div><br /></div>
<div>--> org/mozilla/javascript/ScriptRuntime.class in d:\bpm12213\wlserver\modules\com.bea.javascript.jar</div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div><br style="font-family: Courier New; color: rgb(1, 1, 1);" /></div>
<div><br style="font-family: Courier New; color: rgb(1, 1, 1);" /></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);"><br /></span></div>
<div><span style="font-family: Courier New; color: rgb(1, 1, 1);"><br /></span></div>
<br />
<br />
Tags: Publish<br />
April 24, 2018 at 05:05PM<br />
<a href="https://www.evernote.com/shard/s111/sh/e9ecf7f8-b7dc-4407-887d-37ae1c220d59/eb9f4cd4e8b9c30fc63c8c212232af5b" target="_blank">Open in Evernote</a>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8478734.post-19112587449644105392018-04-13T01:04:00.001-07:002018-04-13T01:04:08.691-07:00How to a copy a file from MDS to the local file system and transferring the file Back to MDS using command line<b>How to a copy a file from MDS to the local file system and transferring the file Back to MDS using command line</b><br />
<div><b><font style="font-size: 14pt; color: rgb(229, 0, 255);">How to a copy a file from MDS to the local file system and transferring the file Back to MDS using command line</font></b></div>
<div><br /></div>
<div><span style="font-weight: bold;">For SOA 12.2.1.3 (on windows) , use this classpath</span></div>
<div><span style="font-weight: bold;"><br /></span></div>
<div><br /></div>
<div>java -cp d:\soa1213\oracle_common\modules\oracle.mds_12.1.3\mdsrt.jar;d:\soa1213\oracle_common\BC4J\jlib\commons-cli-1.0.jar;d:\soa1213\oracle_common\modules\clients\com.oracle.webservices.fmw.client_12.1.3.jar;d:\soa1213\oracle_common\modules\oracle.adf.share.ca_12.1.3\adf-share-base.jar;d:\soa1213\oracle_common\modules\oracle.adf.share_12.1.3\adflogginghandler.jar;d:\soa1213\oracle_common\modules\oracle.ucp_12.1.0.jar;d:\soa1213\oracle_common\modules\oracle.jdbc_12.1.0\ojdbc7dms.jar;d:\soa1213\oracle_common\modules\clients\com.oracle.webservices.fmw.client_12.1.3.jar;d:\soa1213\oracle_common\modules\oracle.xmlef_12.1.3\xmlef.jar;d:\soa1213\oracle_common\jlib\share.jar;d:\soa1213\oracle_common\modules\javax.management.j2ee_1.2.0.0.jar oracle.mds.tools.transfer.MDSTransferTool /soa/configuration/default/bpel-config.xml --paramfile param_from_mds.xml</div>
<div><br /></div>
<div>This copies the file /soa/configuration/default/bpel-config.xml from the "soa-infra" partion</div>
<div><br /></div>
<div><br /></div>
<div>Sample o/p</div>
<div><br /></div>
<div>Apr 13, 2018 10:09:20 AM oracle.mds</div>
<div>NOTIFICATION: MDS-10013: transfer operation started.</div>
<div>Apr 13, 2018 10:09:21 AM oracle.mds</div>
<div>NOTIFICATION: MDS-10014: transfer is completed. Total number of documents successfully processed : 1, total number of documents failed : 0.</div>
<div>Transfer completed.</div>
<div><br /></div>
<div><br /></div>
<div><b>cat param_from_mds.xml</b><br /></div>
<div><br /></div>
<div><br /></div>
<div>++</div>
<div><br /></div>
<div><!-- Transfer documents from DB MetadataStore to a directory --></div>
<div><br /></div>
<div><parameters version="11.1.1.000" xmlns="<a href="http://xmlns.oracle.com/mds/config">http://xmlns.oracle.com/mds/config</a>"></div>
<div><source-store></div>
<div><metadata-store class-name="oracle.mds.persistence.stores.db.DBMetadataStore"></div>
<div><property name="jdbc-userid" value="DEV1117_MDS"/></div>
<div><property name="jdbc-password" value="Welcome1"/></div>
<div><property name="jdbc-url" value="jdbc:oracle:thin:@localhost:1521:orcl"/></div>
<div><property name="partition-name" value="soa-infra"/></div>
<div></metadata-store></div>
<div></source-store></div>
<div><target-dir value="C:/temp"/></div>
<div></parameters></div>
<div><!-- Transfer documents from DB MetadataStore to a directory --></div>
<div><br /></div>
<div>++</div>
<div><br /></div>
<div><br /></div>
<div>This copies the file /soa/configuration/default/bpel-config.xml from MDS to the file system c:\temp</div>
<div><br /></div>
<div><b>cat param_to_mds.xml</b></div>
<div><br /></div>
<div><br /></div>
<div>++</div>
<div><br /></div>
<div><!-- Transfer documents from a directory to DB MetadataStore --></div>
<div><br /></div>
<div><parameters version="11.1.1.000" xmlns="<a href="http://xmlns.oracle.com/mds/config">http://xmlns.oracle.com/mds/config</a>"></div>
<div><source-dir value="C:/Temp"/></div>
<div><target-store></div>
<div><metadata-store class-name="oracle.mds.persistence.stores.db.DBMetadataStore"></div>
<div><property name="jdbc-userid" value="DEV1117_MDS"/></div>
<div><property name="jdbc-password" value="Welcome1"/></div>
<div><property name="jdbc-url" value="jdbc:oracle:thin:@localhost:1521:orcl"/></div>
<div><property name="partition-name" value="soa-infra"/></div>
<div></metadata-store></div>
<div></target-store> </parameters></div>
<div><br /></div>
<div>++</div>
<div><br /></div>
<div>This copies the file /soa/configuration/default/bpel-config.xml from c:\temp\ to the MDS.</div>
<div><br /></div>
<div><b>For SOA 12.2.1.3 (on linux) , use this classpath</b></div>
<div><br /></div>
<div>java -cp /fmw11g/soa12213/oracle_common/modules/oracle.mds/mdsrt.jar:/fmw11g/soa12213/oracle_common/modules/com.oracle.jrf.mt.tenant.api.jar:/fmw11g/soa12213/soa/soa/modules/commons-cli-1.1.jar:/fmw11g/soa12213/oracle_common/modules/clients/com.oracle.webservices.fmw.client.jar:/fmw11g/soa12213/oracle_common/modules/oracle.adf.share.ca/adf-share-base.jar:/fmw11g/soa12213/oracle_common/modules/oracle.adf.share/adflogginghandler.jar:/fmw11g/soa12213/oracle_common/modules/oracle.ucp.jar:/fmw11g/soa12213/oracle_common/modules/oracle.jdbc/ojdbc8.jar:/fmw11g/soa12213/oracle_common/modules/oracle.xmlef/xmlef.jar:/fmw11g/soa12213/oracle_common/modules/oracle.bali.share/share.jar:/fmw11g/soa12213/oracle_common/modules/javax.management.j2ee.jar oracle.mds.tools.transfer.MDSTransferTool /soa/configuration/default/bpel-config.xml --paramfile param_from_mds.xml</div>
<div><br /></div>
<div><b>on Windows use this </b><span style="font-weight: bold;">12.2.1.3</span></div>
<div><br /></div>
<div>c:\temp>java -cp D:\bpm12213\oracle_common\modules\oracle.mds\mdsrt.jar;D:\bpm12213\soa\soa\modules\commons-cli-1.1.jar;D:\bpm12213\oracle_common\modules\clients\com.oracle.webservices.fmw.client.jar;D:\bpm12213\oracle_common\modules\oracle.adf.share.ca\adf-share-base.jar;D:\bpm12213\oracle_common\modules\oracle.adf.share\adflogginghandler.jar;D:\bpm12213\oracle_common\modules\oracle.ucp.jar;D:\bpm12213\oracle_common\modules\oracle.jdbc\ojdbc8.jar;D:\bpm12213\oracle_common\modules\oracle.xmlef\xmlef.jar;D:\bpm12213\oracle_common\modules\oracle.bali.share\share.jar;D:\bpm12213\oracle_common\modules\javax.management.j2ee.jar oracle.mds.tools.transfer.MDSTransferTool /soa/configuration/default/bpel-config.xml --paramfile param_from_mds.xml</div>
<div><br /></div>
<div><br /></div>
<div><b>cat param_from_mds_oim.xml</b></div>
<div><br /></div>
<div>++</div>
<div><!-- Transfer documents from DB MetadataStore to a directory --></div>
<div><br /></div>
<div><parameters version="11.1.1.000" xmlns="<a href="http://xmlns.oracle.com/mds/config">http://xmlns.oracle.com/mds/config</a>"></div>
<div><source-store></div>
<div><metadata-store class-name="oracle.mds.persistence.stores.db.DBMetadataStore"></div>
<div><property name="jdbc-userid" value="OIM_MDS"/></div>
<div><property name="jdbc-password" value="Welcome1"/></div>
<div><property name="jdbc-url" value="jdbc:oracle:thin:@localhost:1521:orcl"/></div>
<div><property name="partition-name" value="oim"/></div>
<div></metadata-store></div>
<div></source-store></div>
<div><target-dir value="/tmp"/></div>
<div></parameters></div>
<div><br /></div>
<div>++</div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div><b>cat param_to_mds.xml</b></div>
<div><br /></div>
<div>++</div>
<div><!-- Transfer documents from a directory to DB MetadataStore --></div>
<div><br /></div>
<div><parameters version="11.1.1.000" xmlns="<a href="http://xmlns.oracle.com/mds/config">http://xmlns.oracle.com/mds/config</a>"></div>
<div><source-dir value="C:/Temp"/></div>
<div><target-store></div>
<div><metadata-store class-name="oracle.mds.persistence.stores.db.DBMetadataStore"></div>
<div><property name="jdbc-userid" value="DEV1117_MDS"/></div>
<div><property name="jdbc-password" value="Welcome1"/></div>
<div><property name="jdbc-url" value="jdbc:oracle:thin:@localhost:1521:orcl"/></div>
<div><property name="partition-name" value="soa-infra"/></div>
<div></metadata-store></div>
<div></target-store> </parameters></div>
<div>++</div>
<div><br /></div>
<div><br /></div>
<div><b>For Fmw 11.1.1.7 and 11.1.1.9 use this classpath (Windows)</b></div>
<div><br /></div>
<div>java -cp D:\fmw1117\oracle_common\modules\oracle.mds_11.1.1\mdsrt.jar;D:\fmw1117\oracle_common\soa\modules\commons-cli-1.1.jar;D:\fmw1117\oracle_common\modules\oracle.webservices_11.1.1\oracle.webservices.standalone.client.jar;D:\fmw1117\oracle_common\modules\oracle.adf.share.ca_11.1.1\adf-share-base.jar;D:\fmw1117\oracle_common\modules\oracle.adf.share_11.1.1\adflogginghandler.jar;D:\fmw1117\oracle_common\modules\oracle.ucp_11.1.0.jar;D:\fmw1117\oracle_common\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;D:\fmw1117\oracle_common\modules\oracle.xmlef_11.1.1\xmlef.jar;D:\fmw1117\Oracle_SOA1\jlib\share.jar;D:\fmw1117\oracle_common\modules\javax.management.j2ee.jar oracle.mds.tools.transfer.MDSTransferTool /soa/configuration/default/bpel-config.xml --paramfile param_from_mds.xml</div>
<div><br /></div>
<div><br /></div>
<div><span style="font-weight: bold;">For Fmw 11.1.1.7 and 11.1.1.9 use this classpath (Linux)</span></div>
<div><br /></div>
<div>java -cp /fmw11g/fmw1117/Middleware/oracle_common/modules/oracle.mds_11.1.1/mdsrt.jar:/fmw11g/fmw1117/Middleware/oracle_common/soa/modules/commons-cli-1.1.jar:/fmw11g/fmw1117/Middleware/oracle_common/modules/oracle.webservices_11.1.1/oracle.webservices.standalone.client.jar:/fmw11g/fmw1117/Middleware/oracle_common/modules/oracle.adf.share.ca_11.1.1/adf-share-base.jar:/fmw11g/fmw1117/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/adflogginghandler.jar:/fmw11g/fmw1117/Middleware/oracle_common/modules/oracle.ucp_11.1.0.jar:/fmw11g/fmw1117/Middleware/oracle_common/modules/oracle.jdbc_11.1.1/ojdbc6dms.jar:/fmw11g/fmw1117/Middleware/oracle_common/modules/oracle.xmlef_11.1.1/xmlef.jar:/fmw11g/fmw1117/Middleware/Oracle_SOA1/jlib/share.jar:/fmw11g/fmw1117/Middleware/oracle_common/modules/javax.management.j2ee.jar oracle.mds.tools.transfer.MDSTransferTool /soa/configuration/default/bpel-config.xml --paramfile param_from_mds.xml</div>
<div><br /></div>
<div><b>References : </b></div>
<div><b><br /></b></div>
<div><b>To Make Changes In oim-config.xml When OIM 11g Server(s) Are Unavailable (Doc ID 1378007.1)</b></div>
<div><br /></div>
<br />
<br />
Tags: Publish<br />
April 12, 2018 at 04:03PM<br />
<a href="https://www.evernote.com/shard/s111/sh/67378ed6-e5d0-4bf3-a51c-5cd76b758d68/e3f468d88e49baf72413be1638376b5a" target="_blank">Open in Evernote</a>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8478734.post-9314911189801606072018-03-26T00:07:00.001-07:002018-03-26T00:07:24.468-07:00How to edit war file rar or any other zip file<b>How to edit war file rar or any other zip file</b><br />
<div>Open 7-Zip , </div>
<div><br /></div>
<div><img src="https://locker.ifttt.com/v2/8734863/1522048043130-24a02f644abb857a/7a2b7fda-e847-46d3-be57-c2817d4e3f88?sharing_key=d3561107ee76340bed69ad8fca0ee131" width="430" height="547" /></div>
<div><br /></div>
<div>Remove the entries from the text box , View and Editor make them blank (BLANK , Otherwise it will not work)</div>
<div><br /></div>
<div><img src="https://locker.ifttt.com/v2/8734863/1522048043563-a28d425e841c79b0/aaaa0856-1a8f-45e8-a388-e5617a1965a6?sharing_key=431deb171b16ec5a18d4a77c30e0654c" width="453" height="537" /></div>
<div><br /></div>
<div>This will open the file in default notepad , edit the file and save it.</div>
<div><br /></div>
<div><img src="https://locker.ifttt.com/v2/8734863/1522048043952-c29d74e611b78b30/ca803074-bb5e-4fcd-a7d7-1bc65dfac579?sharing_key=451d22082cf4da770fd4176eb37e3a2f" width="349" height="178" /></div>
<div><br /></div>
<div>Click on OK here. This is far easier then extracting the file and modify the file and zip it again.</div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<br />
<br />
Tags: Publish<br />
March 26, 2018 at 08:59AM<br />
<a href="https://www.evernote.com/shard/s111/sh/cdbd5ea3-cd3e-4b34-98c8-41bbceeab39f/be2779da809b7cc8e3355bf16d640134" target="_blank">Open in Evernote</a>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8478734.post-68085898027415256882018-03-19T01:40:00.001-07:002018-03-19T01:40:16.201-07:00How to install Windows 10 & OEL 7 dual boot<b>How to install Windows 10 & OEL 7 dual boot</b><br />
<div>
<div>For me these steps were not working in UEFI mode. So I disabled UEFI mode on my Desktop.</div>
<div><br /></div>
<div>
<ol start="1">
<li>Performed Windows install normally.</li>
<li>Ensured that I have some space in one partition</li>
<li>After this installed OEL 7 normally </li>
<li>Unlike OEL6 , OEL 7 does not have the mechanisam to detect windoes partion and create a grub entry</li>
</ol>
<div><br /></div>
</div>
<div>For this you have to install ntfs packages first</div>
<div><br /></div>
<div>Step-1 (Enable EPEL Repository)<br /></div>
<div>wget <a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">https</a><a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">://</a><a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">dl</a><a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">.</a><a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">fedoraproject</a><a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">.</a><a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">org</a><a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">/</a><a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">pub</a><a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">/</a><a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">epel</a><a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">/</a><a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">epel</a><a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">-</a><a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">release</a><a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">-</a><a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">latest</a><a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">-</a><a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">7</a><a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">.</a><a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">noarch</a><a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">.</a><a href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm">rpm</a></div>
<div>rpm -ivh epel-release-latest-7.noarch.rpm</div>
<div><br /></div>
<h5>Step-2 (Install NTFS-3G packages for enabling support for NTFS file system)</h5>
<div>yum install ntfs-3g -y</div>
<div><br /></div>
<h5>Step-3 (Enable NTFS support for file managers)</h5>
<div><br /></div>
<div>yum install ntfsprogs -y</div>
<div><br /></div>
<div><br /></div>
<div>After installing the above packages </div>
<div>sudo grub2-mkconfig > /dev/null</div>
<div><span style="-en-paragraph:true;">... you should see the windows boot listed. If the other entry / entries are OK, go ahead and write it.</span></div>
<div><span style="-en-paragraph:true;"><br /></span></div>
<div>If Windows was listed in the previous step, go ahead and save the new configuration file. Make a backup first, just in case.</div>
<div><br /></div>
<div>sudo cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.old</div>
<div>sudo grub2-mkconfig -o /boot/grub2/grub.cfg</div>
<div><br /></div>
<div>Reboot the machine and you should see new Menu to reboot to windows</div>
<div><br /></div>
<div><br /></div>
<div>references : <a href="https://www.techbrown.com/mount-ntfs-file-system-centos-7-rhel-7.shtml">https://www.techbrown.com/mount-ntfs-file-system-centos-7-rhel-7.shtml</a></div>
<div><a href="https://unix.stackexchange.com/questions/169787/windows-boot-option-is-missing-after-installing-centos-7-how-can-i-get-it-back">https://unix.stackexchange.com/questions/169787/windows-boot-option-is-missing-after-installing-centos-7-how-can-i-get-it-back</a></div>
<div><br /></div>
</div>
<br />
<br />
Tags: Publish<br />
March 19, 2018 at 02:03PM<br />
<a href="https://www.evernote.com/shard/s111/sh/8e26642b-dc22-48d9-9a8e-c9adfea4fcd1/5ae7c26a3f6d909e5799c661e21fee63" target="_blank">Open in Evernote</a>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8478734.post-91472305645110560492018-03-14T01:53:00.001-07:002018-03-14T01:53:08.156-07:00Increasing the SYstem.img file<b>Increasing the SYstem.img file</b><br />
<div><br /></div>
<div>Attach the System.im file to Dom-0</div>
<div><br /></div>
<div><span style="font-weight: bold;">xm block-attach 0 file:///OVS/xxxx/System.img xvda w</span></div>
<div><br /></div>
<div><br /></div>
<div>Resize the file</div>
<div><br /></div>
<div><span style="font-weight: bold;">qemu-img resize xxxxx/System.img +40G</span></div>
<div><br /></div>
<div><br /></div>
<div><span style="font-weight: bold;">fidsk /dev/xvda</span></div>
<div><br /></div>
<div>Disk /dev/xvda: 55.8 GB, 55834574848 bytes</div>
<div>64 heads, 32 sectors/track, 53248 cylinders</div>
<div>Units = cylinders of 2048 * 512 = 1048576 bytes</div>
<div>Sector size (logical/physical): 512 bytes / 512 bytes</div>
<div>I/O size (minimum/optimal): 512 bytes / 512 bytes</div>
<div>Disk identifier: 0x0005f11b</div>
<div><br /></div>
<div> Device Boot Start End Blocks Id System</div>
<div>/dev/xvda1 * 2 503 514048 83 Linux</div>
<div>/dev/xvda2 504 51200 51913728 83 Linux</div>
<div>/dev/xvda3 51201 53248 2097152 83 Linux</div>
<div><br /></div>
<div>Detach the Block storage</div>
<div><br /></div>
<div><span style="font-weight: bold;">xm block-detach 0 xvda</span></div>
<div><br /></div>
<div><b>Delete the partion 3 and 2 using the fdisk commands and then create a partition 2 with the start and end size as 504 51200</b></div>
<div><b><br /></b></div>
<div><b>Similarly create a swap partition with he size 51201 53248 </b></div>
<div><br /></div>
<div><br /></div>
<div><b>Restart the Oracle VM after this </b></div>
<div><br /></div>
<div>Run the command </div>
<div><br /></div>
<div><span style="font-weight: bold;">df -h</span></div>
<div><br /></div>
<div>Filesystem Size Used Avail Use% Mounted on</div>
<div>/dev/xvda2 9.4G 3.1G 5.9G 34% /</div>
<div>tmpfs 3.0G 199M 2.8G 7% /dev/shm</div>
<div>/dev/xvda1 479M 49M 405M 11% /boot</div>
<div>/dev/xvdb 50G 6.6G 41G 15% /fmw11g</div>
<div><br /></div>
<div>You will see the size as still 9.4G instead of 50GB , </div>
<div><br /></div>
<div>Resize the file to occupy the space</div>
<div><br /></div>
<div><span style="font-weight: bold;"> resize2fs -f /dev/xvda2</span></div>
<div><br /></div>
<div>resize2fs 1.43-WIP (20-Jun-2013)</div>
<div>Filesystem at /dev/xvda2 is mounted on /; on-line resizing required</div>
<div>old_desc_blocks = 1, new_desc_blocks = 4</div>
<div>The filesystem on /dev/xvda2 is now 12978432 blocks long.</div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div> fdisk -l</div>
<div><br /></div>
<div>Disk /dev/xvda: 55.8 GB, 55834574848 bytes</div>
<div>64 heads, 32 sectors/track, 53248 cylinders</div>
<div>Units = cylinders of 2048 * 512 = 1048576 bytes</div>
<div>Sector size (logical/physical): 512 bytes / 512 bytes</div>
<div>I/O size (minimum/optimal): 512 bytes / 512 bytes</div>
<div>Disk identifier: 0x0005f11b</div>
<div><br /></div>
<div> Device Boot Start End Blocks Id System</div>
<div>/dev/xvda1 * 2 503 514048 83 Linux</div>
<div>/dev/xvda2 504 51200 51913728 83 Linux</div>
<div>/dev/xvda3 51201 53248 2097152 83 Linux</div>
<div><br /></div>
<div><br /></div>
<div><b>Enable the swap space</b></div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div>mkswap /dev/xvda3</div>
<div><br /></div>
<div>swapon /dev/xvda3</div>
<div><br /></div>
<div style="margin-top: 1em; margin-bottom: 1em;"><span style="-en-paragraph:true;">To make this swap space partition available even after the reboot, add the following line to the /etc/fstab file.</span></div>
<div># cat /etc/fstab</div>
<div>/dev/sdc1 swap swap defaults 0 0</div>
<div><br /></div>
<div>(Reference : <a href="https://www.thegeekstuff.com/2010/08/how-to-add-swap-space/?utm_source=feedburner">https://www.thegeekstuff.com/2010/08/how-to-add-swap-space/?utm_source=feedburner</a>)</div>
<div><br /></div>
<div>After this reboot the guest machine.</div>
<div><br /></div>
<div><br /></div>
<br />
<br />
Tags: Publish<br />
March 13, 2018 at 04:13PM<br />
<a href="https://www.evernote.com/shard/s111/sh/ee69c72f-de81-4d42-bddc-9360daafa818/a43080bab2c57f337cda4bb59307720d" target="_blank">Open in Evernote</a>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8478734.post-30062443288699896892018-02-20T00:09:00.001-08:002018-02-20T00:09:20.868-08:00How to use Oracle Linux 7 Oracle VM 3 Template on a Oracle VM without Oracle VM Manager installed<b>How to use Oracle Linux 7 Oracle VM 3 Template on a Oracle VM without Oracle VM Manager installed</b><br />
<div><br /></div>
<div>Download the file V971299-01.zip</div>
<div><br /></div>
<div>In the Oracle Software Delivery Cloud,</div>
<div>the Oracle VM 3 Template for Oracle Linux 7 is offered.</div>
<div><br /></div>
<div><br /></div>
<div>Extract the zip file</div>
<div>unzip -d . V971299-01.zip</div>
<div><br /></div>
<div>tar xvf OVM_OL7U4_x86_64_PVHVM.ova</div>
<div><br /></div>
<div>using the qemu-img utility convert this file</div>
<div>(Reference <a href="https://wiki.xenproject.org/wiki/Migration_from_VMware">https://wiki.xenproject.org/wiki/Migration_from_VMware</a>)</div>
<div><br /></div>
<div>to install qemu , use the command </div>
<div><br /></div>
<div>yum install qemu-img.x86_64</div>
<div><br /></div>
<div>qemu-img info System.vmdk image: System.vmdk</div>
<div>file format: vmdk</div>
<div>virtual size: 15G (16106127360 bytes)</div>
<div>disk size: 1.4G</div>
<div><br /></div>
<div><br /></div>
<div>This file is in vmdk format , so use this command to convert the file</div>
<div><br /></div>
<div>qemu-img convert System.vmdk -O raw System.img</div>
<div><br /></div>
<div>Now run this command to checked the converted file</div>
<div><br /></div>
<div><br /></div>
<div>qemu-img info System.img</div>
<div>image: System.img</div>
<div>file format: raw</div>
<div>virtual size: 15G (16106127360 bytes)</div>
<div>disk size: 1.3G</div>
<div><br /></div>
<div>Transfer this file Oracle VM server machine</div>
<div><br /></div>
<div>Create a vm.cfg file with the following contents , main importantly</div>
<div>kernel = "/usr/lib/xen/boot/hvmloader"</div>
<div>builder='hvm'</div>
<div><br /></div>
<div>(Reference )</div>
<div><a href="http://www.virtuatopia.com/index.php/Configuring_and_Installing_a_Xen_Hardware_Virtual_Machine_(HVM)_domainU_Guest">http://www.virtuatopia.com/index.php/Configuring_and_Installing_a_Xen_Hardware_Virtual_Machine_(HVM)_domainU_Guest</a></div>
<div>cat vm.cfg</div>
<div>===========</div>
<div><br /></div>
<div>kernel = "/usr/lib/xen/boot/hvmloader"</div>
<div>builder='hvm'</div>
<div>disk = ['file:/OVS/xxxx/System.img,xvda,w']</div>
<div>memory = '6144'</div>
<div>name = 'xxxx'</div>
<div>vcpus = 2</div>
<div>on_crash = 'restart'</div>
<div>on_reboot = 'restart'</div>
<div>vfb = ['type=vnc,vncunused=1,vnclisten=0.0.0.0']</div>
<div>vif = ['type=netfront']</div>
<div>timer_mode = 0</div>
<div><br /></div>
<div><br /></div>
<div>After this start the vm using</div>
<div><br /></div>
<div>xm create vm.cfg</div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<br />
<br />
Tags: Publish<br />
February 20, 2018 at 12:29PM<br />
<a href="https://www.evernote.com/shard/s111/sh/941dc556-239c-4b6a-bf45-044481bc7d0e/cbef872105a99d1da4c66c637ed35a35" target="_blank">Open in Evernote</a>
Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-8478734.post-256232414914861272018-02-19T20:17:00.001-08:002018-02-19T20:17:08.777-08:00How to find SOA , OSB amd MFT versions details<b>How to find SOA , OSB amd MFT versions details</b><br />
<div>How to find SOA , OSB amd MFT versions details</div>
<div><br /></div>
<div><br /></div>
<div>Assuming you have installed SOA and OSB in the directory</div>
<div><br /></div>
<div>/fmw11g/soa12212</div>
<div><br /></div>
<div>export ORACLE_HOME=/fmw11g/soa12212</div>
<div><br /></div>
<div><span style="color: rgb(186, 0, 255); font-weight: bold; text-decoration: underline;">SOA Version</span></div>
<div><br /></div>
<div>/fmw11g/soa12212/soa/bin/soaversion.sh</div>
<div><br /></div>
<div>or $ORACLE_HOME/soa/bin/soaversion.sh</div>
<div><br /></div>
<div>**************************************************************</div>
<div>INFO: Detected a WebLogic Installation.</div>
<div>**************************************************************</div>
<div>Oracle SOA Suite Version Information:</div>
<div>-------------------------------------</div>
<div><br /></div>
<div>Product Version : 12.2.1.2.0-161003.0739.0018</div>
<div>Label Version : PCBPEL_12.2.1.2.0_GENERIC_161003.0739.0018</div>
<div>Compile JDK : 1.8.0_40-ea</div>
<div>Java Home : /home/oracle/jdk1.8.0_66</div>
<div><br /></div>
<div>Runtime JDK Version</div>
<div>java version "1.8.0_66"</div>
<div>Java(TM) SE Runtime Environment (build 1.8.0_66-b17)</div>
<div>Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)</div>
<div>**************************************************************</div>
<div><br /></div>
<div><br /></div>
<div><span style="color: rgb(229, 0, 255); font-weight: bold; text-decoration: underline;">OSB Version</span></div>
<div><br /></div>
<div>unzip -p /fmw11g/soa12212/osb/lib/version.jar META-INF/MANIFEST.MF</div>
<div><br /></div>
<div>unzip -p $ORACLE_HOME/osb/lib/version.jar META-INF/MANIFEST.MF</div>
<div><br /></div>
<div><br /></div>
<div>Implementation-Title: Oracle Service Bus 12.2.1.2.0-161003.0737 Mon Oct 3 08:37:30 PDT 2016 XBUS_12.2.1.2.0_GENERIC_161003.0737</div>
<div>Implementation-Version: 12.2.1.2.0-161003.0737</div>
<div>Implementation-Vendor: Oracle Corporation</div>
<div>Implementation-Division: Framework Development Division</div>
<div>Implementation-URL: <a href="http://www.oracle.com/">http://www.oracle.com/</a></div>
<div>Specification-Title: Oracle Service Bus 12.2.1.2.0</div>
<div>Specification-Version: 12.2.1.2.0</div>
<div>Specification-Vendor: Oracle Corporation</div>
<div>Specification-URL: <a href="http://www.oracle.com/">http://www.oracle.com/</a></div>
<div><br /></div>
<div><span style="color: rgb(229, 0, 255); font-weight: bold; text-decoration: underline;">MFT Version</span></div>
<div><br /></div>
<div>export ORACLE_HOME=/fmw11g/soa12212</div>
<div><br /></div>
<div>/fmw11g/soa12212/mft/bin/mftversion.sh</div>
<div>**************************************************************</div>
<div>INFO: Detected a WebLogic Installation.</div>
<div>**************************************************************</div>
<div>Oracle MFT Version Information:</div>
<div>-------------------------------------</div>
<div><br /></div>
<div>Product Version : 12.2.1.2.0-161003.0739.0018</div>
<div>Label Version : PCBPEL_12.2.1.2.0_GENERIC_161003.0739.0018</div>
<div>Compile JDK : 1.8.0_40-ea</div>
<div>Java Home : /home/oracle/jdk1.8.0_66</div>
<div><br /></div>
<div>Runtime JDK Version</div>
<div>java version "1.8.0_66"</div>
<div>Java(TM) SE Runtime Environment (build 1.8.0_66-b17)</div>
<div>Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)</div>
<div>**************************************************************</div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<br />
<br />
Tags: Publish<br />
February 20, 2018 at 09:46AM<br />
<a href="https://www.evernote.com/shard/s111/sh/f6a023c0-7632-4813-8a88-a4e249b8f02b/2cc2226c5ea32067bd2a669758153fab" target="_blank">Open in Evernote</a>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8478734.post-23617064337292596292018-02-19T19:40:00.001-08:002018-02-19T19:40:22.156-08:00Starting WLS Server when the machine starts<b>Starting WLS Server when the machine starts</b><br />
<div>Add the following lines in the file /etc/rc.local</div>
<div><br /></div>
<div>su - oracle -c "nohup /fmw11g/ohs12213/user_projects/domains/base_domain/bin/startNodeManager.sh > /tmp/ohs_start.log 2>&1 &"</div>
<div><br /></div>
<div>su - oracle -c "nohup /fmw11g/ohs12213/user_projects/domains/base_domain/bin/startComponent.sh ohs1 >> /tmp/ohs_start.log 2>&1 &"</div>
<div><br /></div>
<div>su - oracle -c "nohup /fmw11g/wls12213/user_projects/domains/base_domain/bin/startWebLogic.sh > /tmp/wls12c.out 2>&1 &"</div>
<div><br /></div>
<div>and restart the machine.</div>
<div><br /></div>
<div>to start the DB enter the following </div>
<div><br /></div>
<div>su - oracle -c "nohup /fmw11g/dbhome/db112/bin/dbstart &"</div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<br />
<br />
Tags: Publish<br />
February 07, 2018 at 09:34AM<br />
<a href="https://www.evernote.com/shard/s111/sh/0b77aee0-d5c8-45c8-92c7-dbd93d3b4f04/06d642d23cbe9a997c1b1fc8865d8a46" target="_blank">Open in Evernote</a>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8478734.post-52242755637180023042018-02-19T19:38:00.001-08:002018-02-19T19:38:03.446-08:00My experinces with SSD and SOA on Oracle VM hosted machine<b>My experinces with SSD and SOA on Oracle VM hosted machine</b><br />
<div>We have SOA servers's for testing that contains a compact domain , with SOA,B2b,OSB,MFT,ESS,UMS are installed in single domain.</div>
<div><br /></div>
<div>Recently we purchased 500GB Samsung 860 EVO SSD to move these Oracle VM images from HDD to SSD </div>
<div><br /></div>
<div>And these are the startup times with SSD and HDD , SSD are almost more then 200% faster , we captured the start time</div>
<div>and endTime when the soa server completely comes up</div>
<div><br /></div>
<div><br /></div>
<div><b>SOA 12.2.1.3 ON SSD</b></div>
<div><br /></div>
<div>start time : 12:34:24 , End Time : 12:38:04 (4 minutes)</div>
<div><br /></div>
<div>second test</div>
<div><br /></div>
<div>start time : 12:59:22 end time :13:04:34 (5 minutes)</div>
<div><br /></div>
<div>with HDD </div>
<div><br /></div>
<div>start time : 12:42:20 end time : 12:52:07 <font style="color: rgb(209, 0, 255);">(10 minutes)</font></div>
<div><br /></div>
<div><b>SOA 12.2.1.2 version</b></div>
<div><br /></div>
<div>start time : 13:09:10 endTime 13:13:12 (4 minutes)</div>
<div><br /></div>
<div>start time : 14:14:47 endTime 14:18:52 (4 minutes)</div>
<div><br /></div>
<div>HDD</div>
<div><br /></div>
<div>start time : 13:52:50 <span style='color: rgb(0, 0, 0); font-family: "Segoe UI"; font-size: medium; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;'> endTime : </span>14:08:10 <font style="color: rgb(188, 0, 88);"><font>(16 minutes)</font></font></div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<br />
<br />
Tags: Publish<br />
February 13, 2018 at 02:22PM<br />
<a href="https://www.evernote.com/shard/s111/sh/598d4137-c034-46f1-a853-778487b39b40/545a9662544a322bbd3f8dfe01df4661" target="_blank">Open in Evernote</a>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8478734.post-68644540184793737362017-09-01T23:14:00.001-07:002017-09-01T23:14:28.334-07:00How to set loggers in SOA/OSB using WLST<b>How to set loggers in SOA/OSB using WLST</b><br />
<div align="left" style="min-height: 10pt;">
<div><b><span style="color: rgb(118, 0, 216);">Change the following lines in the script with your variables</span></b></div>
<div><br /></div>
<div align="left" style="min-height: 10pt;">
<div><span style="font-family: 'Courier New';">## change username , password and AdminServer URL</span></div>
<div><font face="Courier New" size="2"><span style="font-size:10pt">username =</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'</i></span><span style="font-size:10pt"><i><u>weblogic</u></i></span><span style="font-size:10pt"><i>'</i></span></font></div>
</div>
<div align="left" style="min-height: 10pt;">
<div><font face="Courier New" size="2"><span style="font-size:10pt">password =</span></font> <font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'Welcome1'</i></span></font></div>
</div>
<div align="left" style="min-height: 10pt;">
<div><font face="Courier New" size="2"><span style="font-size:10pt">url=</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'t3://localhost:7001'</i></span></font></div>
</div>
<div align="left" style="min-height: 10pt;"><font color="#C0C0C0" face="Courier New" size="2"><span style="font-size:10pt">## Change this String with the list of the loggers you want</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt">loggers_list = [</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'oracle.as.scheduler'</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">,</span></font> <font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'oracle.as.scheduler.metedata'</i></span></font> <font face="Courier New" size="2"><span style="font-size:10pt">,</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'oracle.as.ess'</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">]</span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#C0C0C0" face="Courier New" size="2"><span style="font-size:10pt">## Change this String with the list of the servers you want to set the loggers</span></font></div>
<div align="left" style="min-height: 10pt;">
<div><font face="Courier New" size="2"><span style="font-size:10pt">servers_list = [</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'AdminServer'</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">,</span></font> <font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'soa_server1'</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">]</span></font></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="color: rgb(118, 0, 216);"><b>1. <span style="font-family: 'Courier New';">Script For setting runtime logger to TRACE:32</span></b></span></div>
</div>
</div>
<div align="left" style="min-height: 10pt;">
<div><br /></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">+++ Script For setting runtime logger to TRACE:32 +++</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">def setRuntimerLogger(serverName,loggerName,loggerLevel):</span></div>
<div><span style="font-family: 'Courier New';"> Mbean1 = ObjectName('oracle.logging:Location='+serverName +',name='+serverName+',type=LogRuntime')</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> mbs.invoke(Mbean1,'setLoggerLevel',[loggerName,loggerLevel], ["java.lang.String","java.lang.String"])</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">def setPersistentLogger(serverName,loggerName,loggerLevel):</span></div>
<div><span style="font-family: 'Courier New';"> Mbean2 = ObjectName("oracle.logging:type=LogConfig,ServerName=" + serverName)</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> mbs.invoke(Mbean2,'setLoggerLevel',[loggerName,loggerLevel], ["java.lang.String","java.lang.String"])</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">def printPersistentlogeer(serverName,loggerName):</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> Mbean1 = ObjectName("oracle.logging:type=LogConfig,ServerName=" + serverName)</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> l2 = mbs.invoke(Mbean1,'getLoggerLevel',[loggerName], ["java.lang.String"])</span></div>
<div><span style="font-family: 'Courier New';"> if l2 == None:</span></div>
<div><span style="font-family: 'Courier New';"> print serverName + ' --> Logging Level for : ' + loggerName + ' --> None'</span></div>
<div><span style="font-family: 'Courier New';"> else:</span></div>
<div><span style="font-family: 'Courier New';"> print serverName + ' --> Logging Level for : ' + loggerName + ' --> ' +l2</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">def printRuntimelogeer(serverName,loggerName):</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> Mbean1 = ObjectName('oracle.logging:Location='+serverName +',name='+serverName+',type=LogRuntime')</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> l2 = mbs.invoke(Mbean1,'getLoggerLevel',[loggerName], ["java.lang.String"])</span></div>
<div><span style="font-family: 'Courier New';"> if l2 == None:</span></div>
<div><span style="font-family: 'Courier New';"> print serverName + ' --> Logging Level for : ' + loggerName + ' --> None'</span></div>
<div><span style="font-family: 'Courier New';"> else:</span></div>
<div><span style="font-family: 'Courier New';"> print serverName + ' --> Logging Level for : ' + loggerName + ' --> ' +l2</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">if __name__ == '__main__':</span></div>
<div><span style="font-family: 'Courier New';"> from wlstModule import *#@UnusedWildImport</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">print 'Starting the script to set the loggers ....'</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"># Change these properties as per your environment</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">username = 'weblogic'</span></div>
<div><span style="font-family: 'Courier New';">password = 'Welcome1'</span></div>
<div><span style="font-family: 'Courier New';">url='t3://localhost:7001'</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">## Change this String with the list of the loggers you want</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">loggers_list = ['oracle.as.scheduler', 'oracle.as.scheduler.metedata' ,'oracle.as.ess']</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">## Change this String with the list of the servers you want to set the loggers</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">servers_list = ['AdminServer', 'soa_server1']</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">trace_32 = 'TRACE:32'</span></div>
<div><span style="font-family: 'Courier New';">notification_1 = 'NOTIFICATION:1'</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">connect(username,password,url)</span></div>
<div><span style="font-family: 'Courier New';">servers = cmo.getServers()</span></div>
<div><span style="font-family: 'Courier New';">domainRuntime()</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"># for setting the runtime loggers</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">for logeerlist in loggers_list:</span></div>
<div><span style="font-family: 'Courier New';"> for serverlist in servers_list:</span></div>
<div><span style="font-family: 'Courier New';"> print 'Setting loggers for ' + serverlist +' --> ' + logeerlist</span></div>
<div><span style="font-family: 'Courier New';"> setRuntimerLogger(serverlist,logeerlist,"TRACE:32")</span></div>
<div><span style="font-family: 'Courier New';"> printRuntimelogeer(serverlist,logeerlist)</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">print 'End of the script'</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">+++ Script Ends ++++ </span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><b><span style="color: rgb(118, 0, 216);"><span style="font-family: 'Courier New';">2. </span></span></b><span style="font-family: 'Courier New';"><b><span style="color: rgb(118, 0, 216);">Script For setting runtime logger to NOTIFICATION:1 (For disabling the loggers you have set previously)</span></b> </span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">+++ Script For setting runtime logger to NOTIFICATION:1 (For disabling the loggers you have set previously) +++</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">def setRuntimerLogger(serverName,loggerName,loggerLevel):</span></div>
<div><span style="font-family: 'Courier New';"> Mbean1 = ObjectName('oracle.logging:Location='+serverName +',name='+serverName+',type=LogRuntime')</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> mbs.invoke(Mbean1,'setLoggerLevel',[loggerName,loggerLevel], ["java.lang.String","java.lang.String"])</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">def setPersistentLogger(serverName,loggerName,loggerLevel):</span></div>
<div><span style="font-family: 'Courier New';"> Mbean2 = ObjectName("oracle.logging:type=LogConfig,ServerName=" + serverName)</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> mbs.invoke(Mbean2,'setLoggerLevel',[loggerName,loggerLevel], ["java.lang.String","java.lang.String"])</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">def printPersistentlogeer(serverName,loggerName):</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> Mbean1 = ObjectName("oracle.logging:type=LogConfig,ServerName=" + serverName)</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> l2 = mbs.invoke(Mbean1,'getLoggerLevel',[loggerName], ["java.lang.String"])</span></div>
<div><span style="font-family: 'Courier New';"> if l2 == None:</span></div>
<div><span style="font-family: 'Courier New';"> print serverName + ' --> Logging Level for : ' + loggerName + ' --> None'</span></div>
<div><span style="font-family: 'Courier New';"> else:</span></div>
<div><span style="font-family: 'Courier New';"> print serverName + ' --> Logging Level for : ' + loggerName + ' --> ' +l2</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">def printRuntimelogeer(serverName,loggerName):</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> Mbean1 = ObjectName('oracle.logging:Location='+serverName +',name='+serverName+',type=LogRuntime')</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> l2 = mbs.invoke(Mbean1,'getLoggerLevel',[loggerName], ["java.lang.String"])</span></div>
<div><span style="font-family: 'Courier New';"> if l2 == None:</span></div>
<div><span style="font-family: 'Courier New';"> print serverName + ' --> Logging Level for : ' + loggerName + ' --> None'</span></div>
<div><span style="font-family: 'Courier New';"> else:</span></div>
<div><span style="font-family: 'Courier New';"> print serverName + ' --> Logging Level for : ' + loggerName + ' --> ' +l2</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">if __name__ == '__main__':</span></div>
<div><span style="font-family: 'Courier New';"> from wlstModule import *#@UnusedWildImport</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">print 'Starting the script to set the loggers ....'</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"># Change these properties as per your environment</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">username = 'weblogic'</span></div>
<div><span style="font-family: 'Courier New';">password = 'Welcome1'</span></div>
<div><span style="font-family: 'Courier New';">url='</span>t3://localhost:7001<span style="font-family: 'Courier New';">'</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">## Change this String with the list of the loggers you want</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">loggers_list = ['oracle.as.scheduler', 'oracle.as.scheduler.metedata' ,'oracle.as.ess']</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">## Change this String with the list of the servers you want to set the loggers</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">servers_list = ['AdminServer', 'soa_server1']</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">trace_32 = 'TRACE:32'</span></div>
<div><span style="font-family: 'Courier New';">notification_1 = 'NOTIFICATION:1'</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">connect(username,password,url)</span></div>
<div><span style="font-family: 'Courier New';">servers = cmo.getServers()</span></div>
<div><span style="font-family: 'Courier New';">domainRuntime()</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"># for setting the runtime loggers</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">for logeerlist in loggers_list:</span></div>
<div><span style="font-family: 'Courier New';"> for serverlist in servers_list:</span></div>
<div><span style="font-family: 'Courier New';"> print 'Setting loggers for ' + serverlist +' --> ' + logeerlist</span></div>
<div><span style="font-family: 'Courier New';"> setRuntimerLogger(serverlist,logeerlist,"NOTIFICATION:1")</span></div>
<div><span style="font-family: 'Courier New';"> printRuntimelogeer(serverlist,logeerlist)</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">print 'End of the script'</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">+++ Script Ends ++++ </span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="color: rgb(118, 0, 216);"><b><span style="font-family: 'Courier New';">3. </span><span style="font-family: 'Courier New';">Script For setting Persistent logger to TRACE:32</span></b></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">+++ Script For setting Persistent logger to TRACE:32 +++</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">def setRuntimerLogger(serverName,loggerName,loggerLevel):</span></div>
<div><span style="font-family: 'Courier New';"> Mbean1 = ObjectName('oracle.logging:Location='+serverName +',name='+serverName+',type=LogRuntime')</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> mbs.invoke(Mbean1,'setLoggerLevel',[loggerName,loggerLevel], ["java.lang.String","java.lang.String"])</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">def setPersistentLogger(serverName,loggerName,loggerLevel):</span></div>
<div><span style="font-family: 'Courier New';"> Mbean2 = ObjectName("oracle.logging:type=LogConfig,ServerName=" + serverName)</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> mbs.invoke(Mbean2,'setLoggerLevel',[loggerName,loggerLevel], ["java.lang.String","java.lang.String"])</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">def printPersistentlogeer(serverName,loggerName):</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> Mbean1 = ObjectName("oracle.logging:type=LogConfig,ServerName=" + serverName)</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> l2 = mbs.invoke(Mbean1,'getLoggerLevel',[loggerName], ["java.lang.String"])</span></div>
<div><span style="font-family: 'Courier New';"> if l2 == None:</span></div>
<div><span style="font-family: 'Courier New';"> print serverName + ' --> Logging Level for : ' + loggerName + ' --> None'</span></div>
<div><span style="font-family: 'Courier New';"> else:</span></div>
<div><span style="font-family: 'Courier New';"> print serverName + ' --> Logging Level for : ' + loggerName + ' --> ' +l2</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">def printRuntimelogeer(serverName,loggerName):</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> Mbean1 = ObjectName('oracle.logging:Location='+serverName +',name='+serverName+',type=LogRuntime')</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> l2 = mbs.invoke(Mbean1,'getLoggerLevel',[loggerName], ["java.lang.String"])</span></div>
<div><span style="font-family: 'Courier New';"> if l2 == None:</span></div>
<div><span style="font-family: 'Courier New';"> print serverName + ' --> Logging Level for : ' + loggerName + ' --> None'</span></div>
<div><span style="font-family: 'Courier New';"> else:</span></div>
<div><span style="font-family: 'Courier New';"> print serverName + ' --> Logging Level for : ' + loggerName + ' --> ' +l2</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">if __name__ == '__main__':</span></div>
<div><span style="font-family: 'Courier New';"> from wlstModule import *#@UnusedWildImport</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">print 'Starting the script to set the loggers ....'</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"># Change these properties as per your environment</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">username = 'weblogic'</span></div>
<div><span style="font-family: 'Courier New';">password = 'Welcome1'</span></div>
<div><span style="font-family: 'Courier New';">url='</span>t3://localhost:7001<span style="font-family: 'Courier New';">'</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">## Change this String with the list of the loggers you want</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">loggers_list = ['oracle.as.scheduler', 'oracle.as.scheduler.metedata' ,'oracle.as.ess']</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">## Change this String with the list of the servers you want to set the loggers</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">servers_list = ['AdminServer', 'soa_server1']</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">trace_32 = 'TRACE:32'</span></div>
<div><span style="font-family: 'Courier New';">notification_1 = 'NOTIFICATION:1'</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">connect(username,password,url)</span></div>
<div><span style="font-family: 'Courier New';">servers = cmo.getServers()</span></div>
<div><span style="font-family: 'Courier New';">domainRuntime()</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"># for setting the runtime loggers</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">for logeerlist in loggers_list:</span></div>
<div><span style="font-family: 'Courier New';"> for serverlist in servers_list:</span></div>
<div><span style="font-family: 'Courier New';"> print 'Setting loggers for ' + serverlist +' --> ' + logeerlist</span></div>
<div><span style="font-family: 'Courier New';"> setPersistentLogger(serverlist,logeerlist,"TRACE:32")</span></div>
<div><span style="font-family: 'Courier New';"> printPersistentlogeer(serverlist,logeerlist)</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">print 'End of the script'</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">+++ Script Ends ++++ </span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="color: rgb(118, 0, 216);"><b><span style="font-family: 'Courier New';">4. </span><span style="font-family: 'Courier New';">Script For setting Persistent logger to NOTIFICATION:1 (For disabling the loggers you have set previously) </span></b></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">+++ Script For setting Persistent logger to NOTIFICATION:1 (For disabling the loggers you have set previously) +++</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">def setRuntimerLogger(serverName,loggerName,loggerLevel):</span></div>
<div><span style="font-family: 'Courier New';"> Mbean1 = ObjectName('oracle.logging:Location='+serverName +',name='+serverName+',type=LogRuntime')</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> mbs.invoke(Mbean1,'setLoggerLevel',[loggerName,loggerLevel], ["java.lang.String","java.lang.String"])</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">def setPersistentLogger(serverName,loggerName,loggerLevel):</span></div>
<div><span style="font-family: 'Courier New';"> Mbean2 = ObjectName("oracle.logging:type=LogConfig,ServerName=" + serverName)</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> mbs.invoke(Mbean2,'setLoggerLevel',[loggerName,loggerLevel], ["java.lang.String","java.lang.String"])</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">def printPersistentlogeer(serverName,loggerName):</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> Mbean1 = ObjectName("oracle.logging:type=LogConfig,ServerName=" + serverName)</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> l2 = mbs.invoke(Mbean1,'getLoggerLevel',[loggerName], ["java.lang.String"])</span></div>
<div><span style="font-family: 'Courier New';"> if l2 == None:</span></div>
<div><span style="font-family: 'Courier New';"> print serverName + ' --> Logging Level for : ' + loggerName + ' --> None'</span></div>
<div><span style="font-family: 'Courier New';"> else:</span></div>
<div><span style="font-family: 'Courier New';"> print serverName + ' --> Logging Level for : ' + loggerName + ' --> ' +l2</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">def printRuntimelogeer(serverName,loggerName):</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> Mbean1 = ObjectName('oracle.logging:Location='+serverName +',name='+serverName+',type=LogRuntime')</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"> l2 = mbs.invoke(Mbean1,'getLoggerLevel',[loggerName], ["java.lang.String"])</span></div>
<div><span style="font-family: 'Courier New';"> if l2 == None:</span></div>
<div><span style="font-family: 'Courier New';"> print serverName + ' --> Logging Level for : ' + loggerName + ' --> None'</span></div>
<div><span style="font-family: 'Courier New';"> else:</span></div>
<div><span style="font-family: 'Courier New';"> print serverName + ' --> Logging Level for : ' + loggerName + ' --> ' +l2</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">if __name__ == '__main__':</span></div>
<div><span style="font-family: 'Courier New';"> from wlstModule import *#@UnusedWildImport</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">print 'Starting the script to set the loggers ....'</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"># Change these properties as per your environment</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">username = 'weblogic'</span></div>
<div><span style="font-family: 'Courier New';">password = 'Welcome1'</span></div>
<div><span style="font-family: 'Courier New';">url='</span>t3://localhost:7001<span style="font-family: 'Courier New';">'</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">## Change this String with the list of the loggers you want</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">loggers_list = ['oracle.as.scheduler', 'oracle.as.scheduler.metedata' ,'oracle.as.ess']</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">## Change this String with the list of the servers you want to set the loggers</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">servers_list = ['AdminServer', 'soa_server1']</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">trace_32 = 'TRACE:32'</span></div>
<div><span style="font-family: 'Courier New';">notification_1 = 'NOTIFICATION:1'</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">connect(username,password,url)</span></div>
<div><span style="font-family: 'Courier New';">servers = cmo.getServers()</span></div>
<div><span style="font-family: 'Courier New';">domainRuntime()</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"># for setting the runtime loggers</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">for logeerlist in loggers_list:</span></div>
<div><span style="font-family: 'Courier New';"> for serverlist in servers_list:</span></div>
<div><span style="font-family: 'Courier New';"> print 'Setting loggers for ' + serverlist +' --> ' + logeerlist</span></div>
<div><span style="font-family: 'Courier New';"> setPersistentLogger(serverlist,logeerlist,"NOTIFICATION:1")</span></div>
<div><span style="font-family: 'Courier New';"> printPersistentlogeer(serverlist,logeerlist)</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">print 'End of the script'</span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><span style="font-family: 'Courier New';">+++ Script Ends ++++ </span></div>
</div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font></div>
<div align="left" style="min-height: 10pt;">
<div><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font></div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
<div><b><span style="color: rgb(118, 0, 216);"><span style="font-family: 'Courier New';">Generic Script contains all four operations</span></span></b></div>
<div><b><span style="font-family: 'Courier New';"><span style="color: rgb(118, 0, 216);"><br /></span></span></b></div>
<div align="left" style="min-height: 10pt;">
<div>+++ Script Start's ++++</div>
</div>
<div align="left" style="min-height: 10pt;"><font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">def</span></font> <font face="Courier New" size="2"><span style="font-size:10pt"><b>setRuntimerLogger</b></span><span style="font-size:10pt">(serverName,loggerName,loggerLevel):</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> Mbean1 = ObjectName(</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'oracle.logging:Location='</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">+serverName +</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>',name='</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">+serverName+</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>',type=LogRuntime'</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">)</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> mbs.invoke(Mbean1,</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'setLoggerLevel'</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">,[loggerName,loggerLevel], [</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>"java.lang.String"</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">,</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>"java.lang.String"</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">])</span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">def</span></font> <font face="Courier New" size="2"><span style="font-size:10pt"><b>setPersistentLogger</b></span><span style="font-size:10pt">(serverName,loggerName,loggerLevel):</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> Mbean2 = ObjectName(</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>"oracle.logging:type=LogConfig,ServerName="</i></span></font> <font face="Courier New" size="2"><span style="font-size:10pt">+ serverName)</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> mbs.invoke(Mbean2,</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'setLoggerLevel'</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">,[loggerName,loggerLevel], [</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>"java.lang.String"</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">,</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>"java.lang.String"</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">])</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">def</span></font> <font face="Courier New" size="2"><span style="font-size:10pt"><b>printPersistentlogeer</b></span><span style="font-size:10pt">(serverName,loggerName):</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> Mbean1 = ObjectName(</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>"oracle.logging:type=LogConfig,ServerName="</i></span></font> <font face="Courier New" size="2"><span style="font-size:10pt">+ serverName)</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> l2 = mbs.invoke(Mbean1,</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'getLoggerLevel'</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">,[loggerName], [</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>"java.lang.String"</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">])</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font> <font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">if</span></font> <font face="Courier New" size="2"><span style="font-size:10pt">l2 ==</span></font> <font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">None</span></font><font face="Courier New" size="2"><span style="font-size:10pt">:</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font> <font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">print</span></font> <font face="Courier New" size="2"><span style="font-size:10pt">serverName + </span></font> <font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>' --> Logging Level for : '</i></span></font> <font face="Courier New" size="2"><span style="font-size:10pt">+ loggerName +</span></font> <font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>' --> None'</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font> <font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">else</span></font><font face="Courier New" size="2"><span style="font-size:10pt">:</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font> <font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">print</span></font><font face="Courier New" size="2"><span style="font-size:10pt"> serverName + </span></font> <font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>' --> Logging Level for : '</i></span></font> <font face="Courier New" size="2"><span style="font-size:10pt">+ loggerName +</span></font> <font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>' --> '</i></span></font> <font face="Courier New" size="2"><span style="font-size:10pt">+l2</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">def</span></font> <font face="Courier New" size="2"><span style="font-size:10pt"><b>printRuntimelogeer</b></span><span style="font-size:10pt">(serverName,loggerName):</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> Mbean1 = ObjectName(</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'oracle.logging:Location='</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">+serverName +</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>',name='</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">+serverName+</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>',type=LogRuntime'</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">)</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> l2 = mbs.invoke(Mbean1,</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'getLoggerLevel'</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">,[loggerName], [</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>"java.lang.String"</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">])</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font> <font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">if</span></font> <font face="Courier New" size="2"><span style="font-size:10pt">l2 ==</span></font> <font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">None</span></font><font face="Courier New" size="2"><span style="font-size:10pt">:</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font> <font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">print</span></font> <font face="Courier New" size="2"><span style="font-size:10pt">serverName + </span></font> <font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>' --> Logging Level for : '</i></span></font> <font face="Courier New" size="2"><span style="font-size:10pt">+ loggerName +</span></font> <font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>' --> None'</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font> <font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">else</span></font><font face="Courier New" size="2"><span style="font-size:10pt">:</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font> <font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">print</span></font><font face="Courier New" size="2"><span style="font-size:10pt"> serverName + </span></font> <font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>' --> Logging Level for : '</i></span></font> <font face="Courier New" size="2"><span style="font-size:10pt">+ loggerName +</span></font> <font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>' --> '</i></span></font> <font face="Courier New" size="2"><span style="font-size:10pt">+l2</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">if</span></font> <font face="Courier New" size="2"><span style="font-size:10pt">__name__ ==</span></font> <font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'__main__'</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">:</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font> <font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">from</span></font> <font face="Courier New" size="2"><span style="font-size:10pt">wlstModule</span></font> <font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">import</span></font> <font face="Courier New" size="2"><span style="font-size:10pt">*</span></font><font color="#C0C0C0" face="Courier New" size="2"><span style="font-size:10pt">#@UnusedWildImport</span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">print</span></font> <font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'Starting the script to set the loggers ....'</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#C0C0C0" face="Courier New" size="2"><span style="font-size:10pt"># Change these properties as per your environment</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt">username =</span></font> <font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'</i></span><span style="font-size:10pt"><i><u>weblogic</u></i></span><span style="font-size:10pt"><i>'</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt">password =</span></font> <font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'Welcome1'</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt">url=</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'</i></span></font>t3://localhost:7001<font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#C0C0C0" face="Courier New" size="2"><span style="font-size:10pt">## Change this String with the list of the loggers you want</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt">loggers_list = [</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'oracle.as.scheduler'</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">,</span></font> <font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'oracle.as.scheduler.metedata'</i></span></font> <font face="Courier New" size="2"><span style="font-size:10pt">,</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'oracle.as.ess'</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">]</span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#C0C0C0" face="Courier New" size="2"><span style="font-size:10pt">## Change this String with the list of the servers you want to set the loggers</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt">servers_list = [</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'AdminServer'</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">,</span></font> <font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'soa_server1'</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">]</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt">trace_32 =</span></font> <font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'TRACE:32'</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt">notification_1 =</span></font> <font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'NOTIFICATION:1'</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt">connect(username,password,url)</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt">servers = cmo.getServers()</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt">domainRuntime()</span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#C0C0C0" face="Courier New" size="2"><span style="font-size:10pt"># for setting the runtime loggers</span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">for</span></font> <font face="Courier New" size="2"><span style="font-size:10pt">logeerlist</span></font> <font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">in</span></font> <font face="Courier New" size="2"><span style="font-size:10pt">loggers_list:</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font> <font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">for</span></font> <font face="Courier New" size="2"><span style="font-size:10pt">serverlist</span></font> <font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">in</span></font> <font face="Courier New" size="2"><span style="font-size:10pt">servers_list:</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font> <font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">print</span></font> <font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'Setting loggers for '</i></span></font> <font face="Courier New" size="2"><span style="font-size:10pt">+ serverlist +</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>' --> '</i></span></font> <font face="Courier New" size="2"><span style="font-size:10pt">+ logeerlist</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> setRuntimerLogger(serverlist,logeerlist,</span></font><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>"TRACE:32"</i></span></font><font face="Courier New" size="2"><span style="font-size:10pt">)</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> printRuntimelogeer(serverlist,logeerlist)</span></font></div>
<div align="left" style="min-height: 10pt;"><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>"""</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i># for setting the runtime loggers</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>for</i></span> <span style="font-size:10pt"><i><u>logeerlist</u></i></span> <span style="font-size:10pt"><i>in loggers_list:</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i> for</i></span> <span style="font-size:10pt"><i><u>serverlist</u></i></span> <span style="font-size:10pt"><i>in servers_list:</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i> print 'Setting loggers for ' +</i></span> <span style="font-size:10pt"><i><u>serverlist</u></i></span> <span style="font-size:10pt"><i>+' --> ' +</i></span> <span style="font-size:10pt"><i><u>logeerlist</u></i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i> setRuntimerLogger(</i></span><span style="font-size:10pt"><i><u>serverlist</u></i></span><span style="font-size:10pt"><i>,</i></span><span style="font-size:10pt"><i><u>logeerlist</u></i></span><span style="font-size:10pt"><i>,"TRACE:32")</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i> printRuntimelogeer(</i></span><span style="font-size:10pt"><i><u>serverlist</u></i></span><span style="font-size:10pt"><i>,</i></span><span style="font-size:10pt"><i><u>logeerlist</u></i></span><span style="font-size:10pt"><i>)</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i># for</i></span> <span style="font-size:10pt"><i><u>unsetting</u></i></span> <span style="font-size:10pt"><i>the runtime loggers you have set in the</i></span> <span style="font-size:10pt"><i><u>previos</u></i></span> <span style="font-size:10pt"><i>session</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>for</i></span> <span style="font-size:10pt"><i><u>logeerlist</u></i></span> <span style="font-size:10pt"><i>in loggers_list:</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i> for</i></span> <span style="font-size:10pt"><i><u>serverlist</u></i></span> <span style="font-size:10pt"><i>in servers_list:</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i> print 'Setting loggers for ' +</i></span> <span style="font-size:10pt"><i><u>serverlist</u></i></span> <span style="font-size:10pt"><i>+' --> ' +</i></span> <span style="font-size:10pt"><i><u>logeerlist</u></i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i> setRuntimerLogger(</i></span><span style="font-size:10pt"><i><u>serverlist</u></i></span><span style="font-size:10pt"><i>,</i></span><span style="font-size:10pt"><i><u>logeerlist</u></i></span><span style="font-size:10pt"><i>,"NOTIFICATION:1")</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i> printRuntimelogeer(</i></span><span style="font-size:10pt"><i><u>serverlist</u></i></span><span style="font-size:10pt"><i>,</i></span><span style="font-size:10pt"><i><u>logeerlist</u></i></span><span style="font-size:10pt"><i>)</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i># Set Persistent loggers</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>for</i></span> <span style="font-size:10pt"><i><u>logeerlist</u></i></span> <span style="font-size:10pt"><i>in loggers_list:</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i> for</i></span> <span style="font-size:10pt"><i><u>serverlist</u></i></span> <span style="font-size:10pt"><i>in servers_list:</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i> print 'Setting loggers for ' +</i></span> <span style="font-size:10pt"><i><u>serverlist</u></i></span> <span style="font-size:10pt"><i>+' --> ' +</i></span> <span style="font-size:10pt"><i><u>logeerlist</u></i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i> setPersistentLogger(</i></span><span style="font-size:10pt"><i><u>serverlist</u></i></span><span style="font-size:10pt"><i>,</i></span><span style="font-size:10pt"><i><u>logeerlist</u></i></span><span style="font-size:10pt"><i>,"TRACE:32")</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i> printPersistentlogeer(</i></span><span style="font-size:10pt"><i><u>serverlist</u></i></span><span style="font-size:10pt"><i>,</i></span><span style="font-size:10pt"><i><u>logeerlist</u></i></span><span style="font-size:10pt"><i>)</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i> </i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i># for</i></span> <span style="font-size:10pt"><i><u>unsetting</u></i></span> <span style="font-size:10pt"><i>the previous</i></span> <span style="font-size:10pt"><i><u>presistent</u></i></span> <span style="font-size:10pt"><i>loggers</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>for</i></span> <span style="font-size:10pt"><i><u>logeerlist</u></i></span> <span style="font-size:10pt"><i>in loggers_list:</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i> for</i></span> <span style="font-size:10pt"><i><u>serverlist</u></i></span> <span style="font-size:10pt"><i>in servers_list:</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i> print 'Setting loggers for ' +</i></span> <span style="font-size:10pt"><i><u>serverlist</u></i></span> <span style="font-size:10pt"><i>+' --> ' +</i></span> <span style="font-size:10pt"><i><u>logeerlist</u></i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i> setPersistentLogger(</i></span><span style="font-size:10pt"><i><u>serverlist</u></i></span><span style="font-size:10pt"><i>,</i></span><span style="font-size:10pt"><i><u>logeerlist</u></i></span><span style="font-size:10pt"><i>,"NOTIFICATION:1")</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i> printPersistentlogeer(</i></span><span style="font-size:10pt"><i><u>serverlist</u></i></span><span style="font-size:10pt"><i>,</i></span><span style="font-size:10pt"><i><u>logeerlist</u></i></span><span style="font-size:10pt"><i>)</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>"""</i></span></font></div>
<div align="left" style="min-height: 10pt;"><font color="#0000FF" face="Courier New" size="2"><span style="font-size:10pt">print</span></font> <font color="#00AA00" face="Courier New" size="2"><span style="font-size:10pt"><i>'End of the script'</i></span></font></div>
<div align="left" style="min-height: 10pt;">
<div><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font></div>
</div>
<div align="left" style="min-height: 10pt;">
<div>+++ Script End's ++++</div>
</div>
<div align="left" style="min-height: 10pt;">
<div><font face="Courier New" size="2"><span style="font-size:10pt"> </span></font></div>
</div>
<div><span style="font-family: 'Courier New';"><br /></span></div>
</div>
<br />
<br />
Tags: Publish<br />
September 02, 2017 at 11:26AM<br />
<a href="http://ift.tt/2erTobv" target="_blank">Open in Evernote</a>
Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-8478734.post-31600283247172834402017-08-16T05:28:00.001-07:002017-08-16T05:28:13.524-07:00Java Code to Parse SOA Adapter's Plan.xml file<b>Java Code to Parse SOA Adapter's Plan.xml file</b><br />
<div>import java.io.File;</div>
<div><br /></div>
<div>import java.util.ArrayList;</div>
<div>import java.util.HashMap;</div>
<div><br /></div>
<div>import java.util.Map;</div>
<div><br /></div>
<div>import javax.xml.parsers.DocumentBuilderFactory;</div>
<div>import javax.xml.parsers.DocumentBuilder;</div>
<div><br /></div>
<div>import org.w3c.dom.Document;</div>
<div>import org.w3c.dom.NodeList;</div>
<div>import org.w3c.dom.Node;</div>
<div>import org.w3c.dom.Element;</div>
<div><br /></div>
<div>import java.util.regex.Matcher;</div>
<div>import java.util.regex.Pattern;</div>
<div><br /></div>
<div>public class ParsePlan_XML {</div>
<div><br /></div>
<div>public static void main(String[] args) {</div>
<div>ArrayList<String> jndi_names = new ArrayList<String>();</div>
<div>HashMap<String, String> hm1 = new HashMap<String, String>();</div>
<div><br /></div>
<div>HashMap<String, String> hm = new HashMap<String, String>();</div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div>File inputFile = new File(args[0]);</div>
<div><br /></div>
<div>try {</div>
<div><br /></div>
<div>DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();</div>
<div>DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();</div>
<div>Document doc = dBuilder.parse(inputFile);</div>
<div>doc.getDocumentElement().normalize();</div>
<div>// System.out.println("Root element :" + doc.getDocumentElement().getNodeName());</div>
<div>NodeList nList = doc.getElementsByTagName("variable");</div>
<div><br /></div>
<div>for (int temp = 0; temp < nList.getLength(); temp++) {</div>
<div>Node nNode = nList.item(temp);</div>
<div><br /></div>
<div>if (nNode.getNodeType() == Node.ELEMENT_NODE) {</div>
<div>Element eElement = (Element) nNode;</div>
<div><br /></div>
<div>hm.put(eElement.getElementsByTagName("name")</div>
<div>.item(0)</div>
<div>.getTextContent(), eElement.getElementsByTagName("value")</div>
<div>.item(0)</div>
<div>.getTextContent());</div>
<div><br /></div>
<div>}</div>
<div>}</div>
<div>for (Map.Entry m : hm.entrySet()) {</div>
<div>// System.out.println(m.getKey() + " " + m.getValue());</div>
<div>}</div>
<div>} catch (Exception e) {</div>
<div>e.printStackTrace();</div>
<div>}</div>
<div><br /></div>
<div>try {</div>
<div><br /></div>
<div>final String regex_name = "(.*jndi-name=\"eis\\/yum\\/sftpAdapter\"](.*)name=)(.*)]\\/name";</div>
<div><br /></div>
<div>final String regex = ".*jndi-name=(.*)]\\/jndi-name";</div>
<div>//final String string = "/weblogic-connector/outbound-resource-adapter/connection-definition-group/[connection-factory-interface=\"javax.resource.cci.ConnectionFactory\"]/connection-instance/[jndi-name=\"eis/yum/sftpAdapter\"]/jndi-name";</div>
<div><br /></div>
<div>// File inputFile = new File("E:\\tars-download\\3-14734264081\\Plan.xml");</div>
<div>DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();</div>
<div>DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();</div>
<div>Document doc = dBuilder.parse(inputFile);</div>
<div>doc.getDocumentElement().normalize();</div>
<div>// System.out.println("Root element :" + doc.getDocumentElement().getNodeName());</div>
<div>NodeList nList = doc.getElementsByTagName("variable-assignment");</div>
<div><br /></div>
<div>for (int temp = 0; temp < nList.getLength(); temp++) {</div>
<div>Node nNode = nList.item(temp);</div>
<div>// System.out.println("\nCurrent Element :"</div>
<div>// + nNode.getNodeName());</div>
<div>if (nNode.getNodeType() == Node.ELEMENT_NODE) {</div>
<div>Element eElement = (Element) nNode;</div>
<div><br /></div>
<div>hm1.put(eElement.getElementsByTagName("name")</div>
<div>.item(0)</div>
<div>.getTextContent(), eElement.getElementsByTagName("xpath")</div>
<div>.item(0)</div>
<div>.getTextContent());</div>
<div><br /></div>
<div>final String string = eElement.getElementsByTagName("xpath")</div>
<div>.item(0)</div>
<div>.getTextContent();</div>
<div><br /></div>
<div>for (Map.Entry m : hm1.entrySet()) {</div>
<div>// System.out.println(m.getKey()+" "+m.getValue());</div>
<div><br /></div>
<div>}</div>
<div>final Pattern pattern = Pattern.compile(regex);</div>
<div>final Matcher matcher = pattern.matcher(string);</div>
<div><br /></div>
<div>while (matcher.find()) {</div>
<div><br /></div>
<div>for (int i = 1; i <= matcher.groupCount(); i++) {</div>
<div>jndi_names.add(matcher.group(i));</div>
<div>// System.out.println("Group " + i + ": " + matcher.group(i));</div>
<div><br /></div>
<div>}</div>
<div>}</div>
<div><br /></div>
<div>}</div>
<div><br /></div>
<div>}</div>
<div><br /></div>
<div>for (int i = 0; i < jndi_names.size(); i++) {</div>
<div><br /></div>
<div>System.out.println();</div>
<div><br /></div>
<div>for (Map.Entry m : hm1.entrySet()) {</div>
<div><br /></div>
<div>String s1 = jndi_names.get(i).replaceAll("/", "\\\\/");</div>
<div>// System.out.println(s1);</div>
<div>String regex_value1 = "(.*jndi-name=" + s1 + "](.*)name=)(.*)]\\/value";</div>
<div>// regex_value= regex_value.replaceAll("/", "\\/");</div>
<div>// System.out.println(regex_value1);</div>
<div>String string = m.getValue().toString();</div>
<div>// System.out.println(string);</div>
<div>final Pattern pattern = Pattern.compile(regex_value1);</div>
<div>final Matcher matcher = pattern.matcher(string);</div>
<div><br /></div>
<div>while (matcher.find()) {</div>
<div>System.out.println(jndi_names.get(i) + " " + matcher.group(3) + " " + hm.get(m.getKey()));</div>
<div>// System.out.println(hm.get(m.getKey()));</div>
<div><br /></div>
<div>}</div>
<div><br /></div>
<div>}</div>
<div>// System.out.println(jndi_names.size());</div>
<div>// System.out.println(jndi_names.get(i));</div>
<div>// System.out.println(string1);</div>
<div><br /></div>
<div>}</div>
<div>} catch (Exception e) {</div>
<div>e.printStackTrace();</div>
<div>}</div>
<div>}</div>
<div><br /></div>
<div>}</div>
<br />
<br />
Tags: Publish<br />
August 16, 2017 at 04:57PM<br />
<a href="http://ift.tt/2uIv27Q" target="_blank">Open in Evernote</a>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8478734.post-17080040338037687922017-07-19T01:37:00.001-07:002017-07-20T20:46:13.296-07:00Script for getting JVM Import Parameters like threadudmp , java flags , command line arguments etc<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Script for getting JVM Important Parameters like threadudmp , java flags , command line arguments etc</b><br />
<div>
jcmd -l | grep weblogic.Server | awk '{print $1}' | while read pid; do</div>
<div>
echo 'Java Properties and Thread Dump for pid ' "$pid" 'Start time' `date`</div>
<div>
echo "$pid" Thread.print</div>
<div>
jcmd "$pid" Thread.print</div>
<div>
echo "$pid" VM.system_properties</div>
<div>
jcmd "$pid" VM.system_properties</div>
<div>
echo "$pid" VM.flags</div>
<div>
jcmd "$pid" VM.flags</div>
<div>
echo "$pid" VM.command_line</div>
<div>
jcmd "$pid" VM.command_line</div>
<div>
echo "$pid" VM.version</div>
<div>
jcmd "$pid" VM.version</div>
<div>
echo "$pid" VM.uptime</div>
<div>
jcmd "$pid" VM.uptime</div>
<div>
done</div>
<div>
<br /></div>
<div>
<br /></div>
<br />
<br />
Tags: Publish<br />
July 19, 2017 at 12:08PM<br />
<a href="http://ift.tt/2uySVh8" target="_blank">Open in Evernote</a>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8478734.post-25971824351141773792017-04-12T00:48:00.001-07:002017-04-12T02:01:42.962-07:00Read File As attachment from a File Adapter in SOA<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Read File As attachment from a File Adapter in SOA</b><br />
<div>
<img src="http://ift.tt/2p6Lrwg" height="493" width="586" /></div>
<div>
<br /></div>
<div>
<img src="http://ift.tt/2oxTu7o" height="493" width="586" /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<img src="http://ift.tt/2p6EtYk" height="493" width="586" /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<img src="http://ift.tt/2oxWbWR" height="493" width="586" /></div>
<div>
<br /></div>
<div>
<img src="http://ift.tt/2p6HFTD" height="493" width="586" /></div>
<div>
<br /></div>
<div>
<img src="http://ift.tt/2oxXyVi" height="493" width="586" /></div>
<div>
<br /></div>
<div>
Attach a BPEL process to it with the BPEL code as</div>
<div>
<br /></div>
<div>
<assign name="Assign1"></div>
<div>
<copy></div>
<div>
<from expression="ora:getAttachmentContent('Receive1_Read_InputVariable','attach','/ns2:attachmentElement')"/></div>
<div>
<to variable="Variable1"/></div>
<div>
</copy></div>
<div>
</assign></div>
<div>
<br /></div>
<div>
++</div>
<div>
<br /></div>
<div>
Copy the file test1.xml to the directory /tmp/readattach1.<br />
<br />
Open EM and go to the flow trace<br />
<br />
for variable1 you should see the data as<br />
<br />
<Variable1><br />
<Variable1 xsi:type="ns:string">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiID8+Cjxwcm9jZXNzIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiCiAgICAgICAgIHhzaTpzY2hlbWFMb2NhdGlvbj0iaHR0cDovL3htbG5zLm9yYWNsZS5jb20vQXBwbGljYXRpb24yL1Byb2plY3QzL0JQRUxQcm9jZXNzMSB4c2QvQlBFTFByb2Nlc3MxLnhzZCIKICAgICAgICAgICAgICAgICAgeG1sbnM9Imh0dHA6Ly94bWxucy5vcmFjbGUuY29tL0FwcGxpY2F0aW9uMi9Qcm9qZWN0My9CUEVMUHJvY2VzczEiPgogICAgICAgICAgICAgICAgICAgIDxpbnB1dD5SQVZJPC9pbnB1dD4KICAgICAgICAgICAgICAgICAgICA8L3Byb2Nlc3M+Cgo=</Variable1><br />
</Variable1><br />
<br /></div>
<div>
This is in base64 encoded format</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<a href="https://drive.google.com/file/d/0B8Ydu5vNfLs2bGJlbFk4NEEzYzQ/view">https://drive.google.com/file/d/0B8Ydu5vNfLs2bGJlbFk4NEEzYzQ/view</a></div>
<div>
<br /></div>
<div>
<br /></div>
<br />
<br />
Tags: Publish<br />
April 12, 2017 at 01:09PM<br />
<a href="http://ift.tt/2p6Mf4d" target="_blank">Open in Evernote</a>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8478734.post-32150390657113140252017-04-06T01:10:00.001-07:002017-04-06T01:10:15.496-07:00How to debug OSB server remotely from Jdeveloper<b>How to debug OSB server remotely from Jdeveloper</b><br />
<div>For this you need to have a domain created in Development Mode and also if possible create a compact domain.</div>
<div><br /></div>
<div>once this is done identify the DEBUG Port for OSB ,</div>
<div><br /></div>
<div>cd /fmw11g/soa12212/user_projects/domains/osb_domain_cd/bin</div>
<div><br /></div>
<div>find . -name "*" -print | xargs grep -i -l ALSB_DEBUG</div>
<div>./setStartupEnv.sh</div>
<div><br /></div>
<div>find . -name "*" -print | xargs grep -i -l ALSB_DEBUG | xargs cat | grep ALSB_DEBUG</div>
<div><br /></div>
<div>This shows the port as 7453. This is the remote port for the OSB.</div>
<div><br /></div>
<div>Not down the machine name and the above port number.</div>
<div><br /></div>
<div>Open the OSB project in jDeveloper and deploy this project.</div>
<div><br /></div>
<div>Open the pipe line in OSB and set a break point</div>
<div><br /></div>
<div>Right Click on the Project -> Project Properties</div>
<div>Click on Run/Debug </div>
<div><br /></div>
<div>Create a new Configuration with the name as OSB </div>
<div><br /></div>
<div><img style="height: auto;" src="http://ift.tt/2o5SxCH" width="686" height="493" /></div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div>Ensure that remote debugging is set </div>
<div><br /></div>
<div><img style="height: auto;" src="http://ift.tt/2oLMzFo" width="686" height="493" /></div>
<div><br /></div>
<div>Specify the hostname and port</div>
<div><br /></div>
<div><img style="height: auto;" src="http://ift.tt/2o5Sgjr" width="686" height="493" /></div>
<div><br /></div>
<div>Click on OK and close the dialog boxes.</div>
<div><br /></div>
<div><br /></div>
<div>Click on OSB project </div>
<div><img style="height: auto;" src="http://ift.tt/2oM8BYD" width="451" height="481" /></div>
<div><br /></div>
<div>Now this show's a dialog with debug port and hostname </div>
<div><br /></div>
<div><img style="height: auto;" src="http://ift.tt/2o5NH8t" width="337" height="230" /></div>
<div><br /></div>
<div>Click on OK and invoke the OSB Flow from SOAP UI or from the SB Console.</div>
<div><br /></div>
<div>Now you can do single stepping and watch the variables etc.</div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<br />
<br />
Tags: Publish<br />
April 06, 2017 at 12:57PM<br />
<a href="http://ift.tt/2oM2MKU" target="_blank">Open in Evernote</a>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8478734.post-33439515890865473642017-04-03T03:49:00.001-07:002017-04-03T03:49:25.493-07:00OSB result Caching support in 11g with external coherence<b>OSB result Caching support in 11g with external coherence</b><br />
<div>OSB result Caching support in 11g</div>
<div><br /></div>
<div><br /></div>
<div><a href="http://ift.tt/1AEYlV6">http://ift.tt/1AEYlV6</a></div>
<div><br /></div>
<div><br /></div>
<div>Created a simple SOA project with the simple helloworld that displays time+the input parameter you have passed.</div>
<div><br /></div>
<div><br /></div>
<div>for example</div>
<div><br /></div>
<div>concat(xp20:current-dateTime(),bpws:getVariableData('inputVariable','payload','/client:process/client:input'))</div>
<div><br /></div>
<div><br /></div>
<div>Create a OSB project that calls this web service and enable the result cahcing for the business service.</div>
<div>Take this WSDL and import this to OSB and create a business service with this WSDL.</div>
<div><br /></div>
<div>OSB Project </div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div>Create a proxy service based on the business service.</div>
<div><br /></div>
<div>Modify the file</div>
<div><br /></div>
<div>\fmw11g\fmw1117\Middleware\user_projects\domains\soa_domain\config\osb\coherence\osb-coherence-override.xml</div>
<div>======================================================================================================================</div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div><!DOCTYPE coherence SYSTEM "coherence.dtd"></div>
<div><coherence></div>
<div> <cluster-config></div>
<div> <!--</div>
<div> By specifying a well-known-address we disable the mutlicast listener.</div>
<div> This ensures that the Coherence cluster for OSB will be isolated to this machine only.</div>
<div> --></div>
<div> <unicast-listener></div>
<div> <well-known-addresses></div>
<div> <socket-address id="1"></div>
<div> <address system-property="OSB.coherence.wka1">xxx.xxx.oracle.com</address></div>
<div> <port system-property="OSB.coherence.wka1.port">7890</port></div>
<div> </socket-address></div>
<div> <socket-address id="2"></div>
<div> <address system-property="OSB.coherence.wka2">xxx.xxx.oracle.com</address></div>
<div> <port system-property="OSB.coherence.wka2.port">7898</port></div>
<div> </socket-address></div>
<div> </well-known-addresses></div>
<div> <address system-property="OSB.coherence.localhost">xxx.xxx.oracle.com</address></div>
<div> <port system-property="OSB.coherence.localport">7890</port></div>
<div> </unicast-listener></div>
<div> <multicast-listener></div>
<div> <time-to-live system-property="OSB.coherence.ttl">0</time-to-live></div>
<div> </multicast-listener></div>
<div> </cluster-config></div>
<div></coherence></div>
<div><br /></div>
<div>+++++++++++++</div>
<div><br /></div>
<div>Where</div>
<div> <socket-address id="1"></div>
<div> <address system-property="OSB.coherence.wka1">xxx.xxx.oracle.com</address></div>
<div> <port system-property="OSB.coherence.wka1.port">7890</port></div>
<div> </socket-address></div>
<div><br /></div>
<div>Is for the stand alone Coherence server</div>
<div><br /></div>
<div><socket-address id="2"></div>
<div> <address system-property="OSB.coherence.wka2">xxx.xxx.oracle.com</address></div>
<div> <port system-property="OSB.coherence.wka2.port">7898</port></div>
<div> </socket-address></div>
<div><br /></div>
<div>Is for the OSB Server</div>
<div><br /></div>
<div>No need to change the file</div>
<div>\\soabde11\fmw11g\fmw1117\Middleware\user_projects\domains\soa_domain\config\osb\coherence\osb-coherence-cache-config.xml</div>
<div><br /></div>
<div>Once it is done , open the setDomainEnv.sh file</div>
<div><br /></div>
<div>EXTRA_JAVA_PROPERTIES="${EXTRA_JAVA_PROPERTIES} -Dsoa.archives.dir=${SOA_ORACLE_HOME}/soa -Dsoa.oracle.home=${SOA_ORACLE_HOME} -Dsoa.instance.home=${DOMAIN_HOME} -Dtangosol.coherence.distributed.localstorage=false -DOSB.coherence.localhost=xxx.xxx.oracle.com -DOSB.coherence.localport=7898 -Dtangosol.coherence.wka1=xxx.xxx.oracle.com -Dtangosol.coherence.wka2=xxx.xxx.oracle.com -Dtangosol.coherence.wka1.port=7898 -Dtangosol.coherence.wka2.port=7890 -Dtangosol.coherence.log=jdk -Djavax.xml.soap.MessageFactory=oracle.j2ee.ws.saaj.soap.MessageFactoryImpl -Dweblogic.transaction.blocking.commit=true -Dweblogic.transaction.blocking.rollback=true -Djavax.net.ssl.trustStore=${WL_HOME}/server/lib/DemoTrust.jks"</div>
<div><br /></div>
<div>The default entries are</div>
<div><br /></div>
<div>#EXTRA_JAVA_PROPERTIES="${EXTRA_JAVA_PROPERTIES} -Dsoa.archives.dir=${SOA_ORACLE_HOME}/soa -Dsoa.oracle.home=${SOA_ORACLE_HOME} -Dsoa.instance.home=${DOMAIN_HOME} -Dtangosol.coherence.clusteraddress=227.7.7.9 -Dtangosol.coherence.clusterport=9778 -Dtangosol.coherence.log=jdk -Djavax.xml.soap.MessageFactory=oracle.j2ee.ws.saaj.soap.MessageFactoryImpl -Dweblogic.transaction.blocking.commit=true -Dweblogic.transaction.blocking.rollback=true -Djavax.net.ssl.trustStore=${WL_HOME}/server/lib/DemoTrust.jks"</div>
<div><br /></div>
<div>basically you need to remove</div>
<div>-Dtangosol.coherence.clusteraddress=227.7.7.9 -Dtangosol.coherence.clusterport=9778</div>
<div>and replace this with</div>
<div>-Dtangosol.coherence.distributed.localstorage=false -DOSB.coherence.localhost=xxx.xxx.oracle.com -DOSB.coherence.localport=7898 -Dtangosol.coherence.wka1=xxx.xxx.oracle.com -Dtangosol.coherence.wka2=xxx.xxx.oracle.com -Dtangosol.coherence.wka1.port=7898 -Dtangosol.coherence.wka2.port=7890</div>
<div><br /></div>
<div><br /></div>
<div>Create a shell script to start the Coherence server</div>
<div><br /></div>
<div>+++++</div>
<div><br /></div>
<div>#!/bin/sh</div>
<div><br /></div>
<div># Change below to appropriate location</div>
<div>JAVA_HOME="/home/oracle/jdk1.7.0_67"</div>
<div>WLS_HOME="/fmw11g/fmw1117/Middleware"</div>
<div>COHERENCE_HOME="${WLS_HOME}/coherence_3.7/"</div>
<div>OSB_ORACLE_HOME="${WLS_HOME}/Oracle_OSB1"</div>
<div>OSB_COHERENCE_CONFIG="${WLS_HOME}/user_projects/domains/soa_domain/config/osb/coherence"</div>
<div><br /></div>
<div>NEW_SIZE=2048m</div>
<div>HEAP_SIZE=4096m</div>
<div><br /></div>
<div>NODE_NAME="CacheServer"</div>
<div><br /></div>
<div># Change below to appropriate ip address and port</div>
<div>LOCAL_HOST="xxx.xxx.oracle.com"</div>
<div>LOCAL_PORT="9094"</div>
<div><br /></div>
<div>JAVA_OPTS="-Xloggc:gc_${NODE_NAME}.log -server -XX:NewSize=${NEW_SIZE} -XX:MaxNewSize=${NEW_SIZE} -Xms${HEAP_SIZE} -Xmx${HEAP_SIZE} -XX:PermSize=128m -XX:MaxPermSize=128m -verbose:gc -XX:+PrintGCDateStamps -XX:+PrintGCDetails"</div>
<div><br /></div>
<div>JMXPROPERTIES="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dtangosol.coherence.management=all -Dtangosol.coherence.management.remote=true "</div>
<div><br /></div>
<div>COHERENCE_OPTS="-Dtangosol.coherence.distributed.localstorage=true -Dtangosol.coherence.override=${OSB_COHERENCE_CONFIG}/osb-coherence-override.xml -Dtangosol.coherence.cacheconfig=${OSB_COHERENCE_CONFIG}/osb-coherence-cache-config.xml -Dtangosol.coherence.log.level=9 -Dtangosol.coherence.cluster=OSB-cluster -Dtangosol.coherence.localhost=${LOCAL_HOST} -Dtangosol.coherence.localport=${LOCAL_PORT}"</div>
<div><br /></div>
<div>CLASSPATH="$COHERENCE_HOME/lib/coherence.jar:$OSB_ORACLE_HOME/lib/osb-coherence-client.jar"</div>
<div><br /></div>
<div>$JAVA_HOME/bin/java -server -showversion $JAVA_OPTS $COHERENCE_OPTS $JMXPROPERTIES -cp "$CLASSPATH" com.tangosol.net.DefaultCacheServer $1</div>
<div><br /></div>
<div>+++++</div>
<div><br /></div>
<div>First start the coherence server using the script</div>
<div>c1.sh</div>
<div><br /></div>
<div>and after this start the OSB Server.</div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<br />
<br />
Tags: Publish<br />
April 03, 2017 at 02:22PM<br />
<a href="http://ift.tt/2o1DVoi" target="_blank">Open in Evernote</a>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8478734.post-12912541948870668012016-12-03T00:47:00.001-08:002016-12-03T00:47:14.472-08:00How to run a linux command from java code<b>How to run a linux command from java code</b><br />
<div>Download opensource java ssh client from </div>
<div><a href="http://ift.tt/2fVObXE">http://ift.tt/2fVObXE</a></div>
<div><br /></div>
<div>Use the following java docs , to review the API</div>
<div><br /></div>
<div><a href="http://ift.tt/2gR53TO">http://ift.tt/2gR53TO</a></div>
<div><br /></div>
<div><br /></div>
<div>package client;</div>
<div><br /></div>
<div>import java.io.BufferedReader;</div>
<div>import java.io.FileInputStream;</div>
<div>import java.io.InputStream;</div>
<div>import java.io.InputStreamReader;</div>
<div><br /></div>
<div>import com.sshtools.net.SocketTransport;</div>
<div>import com.sshtools.ssh.PasswordAuthentication;</div>
<div>import com.sshtools.ssh.SshAuthentication;</div>
<div>import com.sshtools.ssh.SshClient;</div>
<div>import com.sshtools.ssh.SshConnector;</div>
<div><br /></div>
<div>import com.sshtools.ssh.SshSession;</div>
<div><br /></div>
<div><br /></div>
<div>public class Class1 {</div>
<div> public Class1() {</div>
<div> super();</div>
<div> }</div>
<div><br /></div>
<div> public static void main(String[] args) throws Exception {</div>
<div> Class1 class1 = new Class1();</div>
<div><br /></div>
<div><br /></div>
<div> SshConnector con = SshConnector.createInstance();</div>
<div> SshClient ssh = con.connect(new SocketTransport("localhost", 22),</div>
<div> "root");</div>
<div><br /></div>
<div> PasswordAuthentication pwd = new PasswordAuthentication();</div>
<div> pwd.setPassword("Welcome1");</div>
<div><br /></div>
<div> if (ssh.authenticate(pwd) == SshAuthentication.COMPLETE) {</div>
<div> System.out.println("Authentication succeeded");</div>
<div> SshSession sesison = ssh.openSessionChannel();</div>
<div> } else {</div>
<div> System.out.println("Authentication failed");</div>
<div> }</div>
<div><br /></div>
<div> if (ssh.isAuthenticated()) {</div>
<div><br /></div>
<div> SshSession session = ssh.openSessionChannel();</div>
<div> session.executeCommand("xm list");</div>
<div> </div>
<div><br /></div>
<div> InputStream stdout = session.getInputStream();</div>
<div><br /></div>
<div> BufferedReader br = new BufferedReader(new InputStreamReader(stdout));</div>
<div> System.out.println("the output of the command is");</div>
<div> while (true)</div>
<div> {</div>
<div> String line = br.readLine();</div>
<div> if (line == null)</div>
<div> break;</div>
<div> System.out.println(line);</div>
<div> }</div>
<div><br /></div>
<div><br /></div>
<div> session.close();</div>
<div> ssh.disconnect();</div>
<div><br /></div>
<div><br /></div>
<div> }</div>
<div><br /></div>
<div><br /></div>
<div> }</div>
<div>}</div>
<div><br /></div>
<br />
<br />
Tags: Publish<br />
December 03, 2016 at 12:38PM<br />
<a href="http://ift.tt/2fVLJR1" target="_blank">Open in Evernote</a>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8478734.post-50091353282253543112016-11-25T20:54:00.001-08:002016-11-25T20:54:28.446-08:00Unable to Play Flash Content on Windows 10<b>Unable to Play Flash Content on Windows 10</b><br />
<div>Right click on Flash Content you have</div>
<div><br /></div>
<div><img src="http://ift.tt/2gqlUcw" width="434" height="402" /></div>
<div><br /></div>
<div>Click to Global Settings -> Advanced TAB</div>
<div><br /></div>
<div><br /></div>
<div><img src="http://ift.tt/2fiORuO" width="457" height="559" /></div>
<div><br /></div>
<div>Click on Trusted Location Settings Butoon and and Add your directory where the flash content is there for all the files add say C:\ D:\ E:\ etc</div>
<div><br /></div>
<div><img src="http://ift.tt/2gqieHC" width="920" height="576" /></div>
<br />
<br />
Tags: Publish<br />
November 26, 2016 at 10:17AM<br />
<a href="http://ift.tt/2fiLlk8" target="_blank">Open in Evernote</a>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8478734.post-58643966232183904352016-11-17T22:05:00.001-08:002016-11-17T22:05:15.345-08:00PL/SQL Debugger Port Settings McaFee Firewall Disable<b>PL/SQL Debugger Port Settings McaFee Firewall Disable</b><br />
<div>Open Mcafee , Right Click and Click on Quick Settings -> Click on Firewall , this disables the firewall</div>
<div><br /></div>
<div>Connecting to the database xxx-xxx</div>
<div>Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE</div>
<div>Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( 'xxxxx', '4000' )</div>
<div>ORA-30683: failure establishing connection to debugger</div>
<div>ORA-12535: TNS:operation timed out</div>
<div>ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68</div>
<div>ORA-06512: at line 1</div>
<div>Process exited.</div>
<div>Disconnecting from the database xxxx.</div>
<div><br /></div>
<div><br /></div>
<div>If you are using mcafee host intrusion prevention firewall , please follow this procedure to disable the firewall.</div>
<div><br /></div>
<div><img src="http://ift.tt/2f6m73b" width="712" height="314" /></div>
<div><br /></div>
<div>Firewall should be in the off status ,</div>
<div><br /></div>
<div><br /></div>
<div><img src="http://ift.tt/2gmdUxb" width="715" height="331" /></div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<br />
<br />
Tags: Publish<br />
November 18, 2016 at 11:07AM<br />
<a href="http://ift.tt/2f6m7QJ" target="_blank">Open in Evernote</a>
Unknownnoreply@blogger.com0