IBM DB2 Manual page 353

Table of Contents

Advertisement

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
length is 22 bytes. A Java empty string ("") is valid for this parameter
value, but a Java null value is not valid.
Important: setDB2ClientAccountingInformation is deprecated in the JDBC 4.0
implementation of the IBM Data Server Driver for JDBC and SQLJ. Use
java.sql.Connection.setClientInfo instead.
setDB2ClientApplicationInformation
Format:
public String setDB2ClientApplicationInformation(String info)
throws java.sql.SQLException
Specifies application information for the current client.
Important: setDB2ClientApplicationInformation is deprecated in the JDBC 4.0
implementation of the IBM Data Server Driver for JDBC and SQLJ. Use
java.sql.Connection.setClientInfo instead.
Parameter description:
info
User-specified application information. The maximum length depends on
the server. For a DB2 Database for Linux, UNIX, and Windows server, the
maximum length is 255 bytes. For a DB2 for z/OS server, the maximum
length is 32 bytes. A Java empty string ("") is valid for this parameter
value, but a Java null value is not valid.
setDB2ClientDebugInfo
Formats:
public void setDB2ClientDebugInformation(String debugInfo)
throws java.sql.SQLException
public void setDB2ClientDebugInformation(String mgrInfo,
String traceInfo)
throws java.sql.SQLException
Sets a value for the CLIENT DEBUGINFO connection attribute, to notify the
database system that stored procedures and user-defined functions that are
using the connection are running in debug mode. CLIENT DEBUGINFO is
used by the DB2 Unified Debugger. Use the first form to set the entire CLIENT
DEBUGINFO string. Use the second form to modify only the session manager
and trace information in the CLIENT DEBUGINFO string.
The setDB2ClientDebugInfo method applies only to connections to DB2 for
z/OS database systems.
Setting the CLIENT DEBUGINFO attribute to a string of length greater than
zero requires one of the following privileges:
v The DEBUGSESSION privilege
v SYSADM authority
Parameter description:
debugInfo
A string of up to 254 bytes, in the following form:
Mip:port,Iip,Ppid,Ttid,Cid,Llvl
The parts of the string are:
Mip:port
Session manager IP address and port number
Iip
Client IP address
Chapter 7. JDBC and SQLJ reference information
337

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents