WSLT Notes

Submitted by code_admin on Wed, 07/25/2018 - 10:36

Make sure enviroment is setup:

  1. cd /export/home/awlsdev/middleware/Oracle_SOA1/common/bin
  2. ./wlst.sh

Exit

  1. exit()

Connect to admin server

  1. connect('weblogic','weblogic1','t3://devsoavip1.ad.ic.ac.uk:7001')

Export Metadata

  1. exportMetadata(application='soa-infra', server='WLS_SOA1',toLocation='/export/home/awlsdev/rjmtmp/soainfra', docs='/**')

Create detailed thread dump

  1. cd /export/home/awlsdev/middleware/Oracle_SOA1/common/bin
  2. ./wlst.sh
  3. connect('weblogic','weblogic1','t3://devsoavip1.ad.ic.ac.uk:7001')
  4. executeDump(name="jvm.threads", outputFile="/export/home/awlsdev/rjmthreaddumps/001_WLS_SOA2.txt", args={'context' : 'true', 'timing' : 'true'},server="WLS_SOA2")
  5. exit()

Un deploying composite when SOA-INFRA is down

Deploy https://storage.googleapis.com/google-code-archive-downloads/v2/code.go… to the SOA cluster.

Make tmp directory

  1. mkdir /export/home/awlsdev/rjmtmp

Launch wlst

  1. cd /export/home/awlsdev/middleware/oracle_common/bin
  2. ./wlst.sh

Connect to SOA Server:

  1. connect('weblogic','weblogic1','t3://devsoavip2.ad.ic.ac.uk:8001')

Export meta data

  1. exportMetadata(application='ShareSoaInfraPartition',server='AdminServer',toLocation='/export/home/awlsdev/rjmtmp',docs='/deployed-composites/deployed-composites.xml')

Change output deployed-composites file to remove composite.

Import meta data

  1. importMetadata(application='ShareSoaInfraPartition',server='AdminServer',fromLocation='/export/home/awlsdev/rjmtmp',docs='/deployed-composites/deployed-composites.xml')

Restart (and remove tmp directories)

Locations of wlst in enviroments

(find | grep wlst.sh helps)
Oracle Taining SOA_12.1.3.0.1_OTN VM

  1. /u01/fmw/soa/mft/common/bin/wlst.sh
  2. /u01/fmw/soa/soa/common/bin/wlst.sh
  3. /u01/fmw/soa/wlserver/common/bin/wlst.sh
  4. /u01/fmw/soa/osb/tools/configjar/wlst.sh
  5. /u01/fmw/soa/oracle_common/common/bin/wlst.sh
  6. /u01/fmw/apim/wlserver/common/bin/wlst.sh
  7. /u01/fmw/apim/osb/common/bin/wlst.sh
  8. /u01/fmw/apim/osb/tools/configjar/wlst.sh
  9. /u01/fmw/apim/oracle_common/common/bin/wlst.sh

Run using sh

Importing policy to integrated server

https://docs.oracle.com/middleware/1212/core/FCCCR/custom_webservices.h…

  1. connect(url='t3://localhost:7101')
  2. importWSMArchive('OutboundSecurityPolicy.zip')

Command Resourses

https://docs.oracle.com/cd/E17904_01/web.1111/e13813/custom_soa.htm#WLS…

Google Juice

Weblogic scripting tool
metadata

RJM Article Type
Quick Reference