Oracle Weblogic Server (MOSC)

MOSC Banner

Test data source is not working using wlst script

edited Jun 14, 2018 2:21PM in Oracle Weblogic Server (MOSC) 5 commentsAnswered ✓

I tried testing the Data source using below script (testds.py) in one of our weblogic non-prod env(12C):

connect('uname', 'pwd', 'adminurl')

serverRuntime()

dsMBeans = cmo.getJDBCServiceRuntime().getJDBCDataSourceRuntimeMBeans()

ds_name = "DemXADataSrc"

for ds in dsMBeans:

        if (ds_name == ds.getName()):

print 'DS name is: '+ds.getName()

print 'State is ' +ds.getState()

print ds.testPool()

[adfmwdv3@usws1adfdv3ap01 rakesh]$ /u01/adfmwdv3/Oracle/Middleware/wlserver/common/bin/wlst.sh testds.py 'rakeshb-a' 'Herb@123' 't3://herbalife-admadfdv3ws.hrbl.net:4001'

WARNING: This is a deprecated script. Please invoke the wlst.sh script under oracle_common/common/bin.

Initializing WebLogic Scripting Tool (WLST) ...

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center