Using JDBC Data Sources
- Last Updated: August 24, 2026
- 1 minute read
- DataDirect Connectors
- JDBC
- Documentation
You can use DataDirect Spy to track JDBC calls made by a running application with either of these features:
- JNDI for Naming Databases
- Connection Pooling
The com.ddtek.jdbcx.oracleservicecloud.OracleServiceCloudDataSource class supports
setting a semi-colon separated list of DataDirect Spy attributes.
Windows Example
OracleServiceCloudDataSource sds = new OracleServiceCloudDataSource();
sds.setDescription("My Oracle Service Cloud Datasource");
sds.setServerName("mysite.custhelp.com");
sds.setUser("test");
sds.setPassword("secret");
sds.setSpyAttributes("log=(file)C:\\temp\\spy.log;logIS=yes;logTName=yes");
Connection conn=sds.getConnection;
...
log=(file)C:\\temp\\spy.log;logIS=yes;logTName=yes.DataDirect Spy loads the Oracle Service Cloud driver and logs all JDBC
activity to the spy.log file located in the C:\temp directory (log=(file)C:\\temp\\spy.log). In addition to regular JDBC activity, the
spy.log file also logs activity on InputStream and Reader objects
(logIS=yes). It also includes the name of the current
thread (logTName=yes).
UNIX Example
OracleServiceCloudDataSource mds = new OracleServiceCloudDataSource();
mds.setDescription("My Oracle Service Cloud Datasource");
mds.setServerName("mysite.custhelp.com");
mds.setUser("test");
mds.setPassword("secret");
mds.setSpyAttributes("log=(file)/tmp/spy.log;logIS=yes;logTName=yes");
Connection conn=mds.getConnection;
...
DataDirect Spy loads the Oracle Service Cloud driver and logs all JDBC
activity to the spy.log file located in the /tmp directory (log=(file)/tmp/spy.log). In addition to regular JDBC activity, the spy.log file also logs activity on InputStream and Reader objects (logIS=yes). It also includes the name of the current thread
(logTName=yes).