Pages

Test Connectivity with Weblogic to Database server

Weblogic server provides two very handy utilities to test/ping the connectivity.
1. Client to Weblogic server
2. Weblogic to Database server

And it proves to very helpful the time when you are facing lots of problem with the connectivity vice versa.
1. Test Client to Weblogic
Set the weblogic environment using setWLSEnv.cmd(windows) or setWLSenv.sh(Unix)

Run the below command
java weblogic.Admin -adminurl t3://localhost:6001 -username weblogic -password weblogic PING

OUTPUT
2. Test Weblogic to Database
Set the weblogic environment using setWLSEnv.cmd(windows) or setWLSenv.sh(Unix)

Run the below Command
java utils.dbping ORACLE_THIN DB_USER DB_PASSWORD 127.0.0.1:1521:MY_SID01



Courtesy:http://rocksolutions.wordpress.com/2010/03/31/test-connectivity-with-weblogic-and-wls-to-database/

3 comments: