You are logged on as the operating system user who started (or will start) the JDBC application.
Note
You always activate the JDBC trace for all JDBC applications that the current operating system user has started.
Enter the following command on the command line:
java -jar <independent_program_path>\runtime\jar\sapdbc.jar
Select Trace Enabled.
Enter the following command on the command line:
java -jar <independent_program_path>\runtime\jar\sapdbc.jar TRACE ON
Specify the following option in the connection URL:
trace=<file_name>
More information: Connection URL
The system writes the results of the JDBC trace to files in the configured trace directory.