Why and when to perform this task
The AdminControl object of wsadmin has a testConnection operation that tests the configuration properties of a data source object. It takes a configuration ID as an argument.Steps for this task
set myds [$AdminConfig getid /JDBCProvider:mydriver/DataSource:mydatasrc/]where /JDBCProvider:mydriver/DataSource:mydatasrc/ is the data source you want to test. After you have the configuration ID of the data source, you can test the connection to the database.
$AdminControl testConnection $myds
Related concepts
Test connection service
Related tasks
Testing a connection with the administrative console
Related reference
Example: Test a connection using testConnection(ConfigID)