>>-+-testconn20-+--+-+------------------------------------------+--conn-string-+->< '-testconn40-' | +- -dtc------------------------------------+ | | +- -ids------------------------------------+ | | +- -idsold---------------------------------+ | | +-+- -validateExtendedInsightWithConnect-+-+ | | | '- -validateEIWithConnect--------------' | | | +- -maxStep--step-number-------------------+ | | +- -specific-------------------------------+ | | '-+- -enumerateremotedbs-+-----------------' | | '- -enumremotedbs------' | +-+- -validateExtendedInsight-+-----------------------------+ | '- -validateEI--------------' | +- -asp-----------------------------------------------------+ +- -discover------------------------------------------------+ +-+- -enumeratedbs-+----------------------------------------+ | '- -enumdbs------' | '-+- -enumeratelocaldbs-+-----------------------------------' '- -enumlocaldbs------'
Tests the connection for distributed transaction.
Tests the connection with the Common Informix® .NET provider (IBM.Data.Informix.dll).
Tests the connection with Informix client SDK .NET provider. The -idsold option requires the Informix client SDK.
Validates the db2dsdriver.cfg file structure and OPM EI monitoring configuration for the database that is mentioned in the connection string.
Validates the db2dsdriver.cfg file structure and OPM EI monitoring configuration for the database that is mentioned in the connection string. Also, a connection is established to the database and reports the status of database monitoring.
Tests the connection with the fix pack specific provider that is present under the netfXX/specific directory.
Lists the available databases on the remote server that is specified in the connection string.
Tests the database connection for an ASP .NET application.
Specifies a connection string, which contains all information that is needed to connect to a target database.
C:\Program Files\IBM\IBM DATA SERVER DRIVER\bin>testconn20 -dtc
"database=sampledsn;uid=username;pwd=password"
adding MSDTC step
Step 1: Printing version info
.NET Framework version: 2.0.50727.3615
64-bit
DB2 .NET provider version: 9.0.0.2
DB2 .NET file version: 9.7.3.2
Capability bits: ALLDEFINED
Build: 20101113
Factory for invariant name IBM.Data.DB2 verified
Factory for invariant name IBM.Data.Informix verified
IDS.NET from DbFactory is Common IDS.NET
VSAI is not installed properly
Elapsed: 1.2969165
Step 2: Validating db2dsdriver.cfg against db2dsdriver.xsd schema file
C:\ProgramData\IBM\DB2\IBMDBCL1\cfg\db2dsdriver.cfg against
C:\ProgramData\IBM\DB2\IBMDBCL1\cfg\db2dsdriver.xsd
Elapsed: 0
Step 3: Connecting using "database=sampledsn;uid=username;pwd=password"
Server type and version: DB2/NT 09.07.0003
Elapsed: 2.8594665
Step 4: Selecting rows from SYSIBM.SYSTABLES to validate existence of packages
SELECT * FROM SYSIBM.SYSTABLES FETCH FIRST 5 rows only
Elapsed: 0.3281355
Step 5: Calling GetSchema for tables to validate existence of schema functions
Elapsed: 0.906279
Step 6: Creating XA connection
DB2TransactionScope: Connection Closed.
Elapsed: 3.2657295
Test passed.
You can also run only the first four validation
steps by specifying the -maxStep step-number option:C:\Program Files\IBM\IBM DATA SERVER DRIVER\bin>testconn20 -maxStep 4 -dtc
"database=sampledsn;uid=username;pwd=password"
max step 4
adding MSDTC step
Step 1: Printing version info
.NET Framework version: 2.0.50727.3615
64-bit
DB2 .NET provider version: 9.0.0.2
DB2 .NET file version: 9.7.3.2
Capability bits: ALLDEFINED
Build: 20101113
Factory for invariant name IBM.Data.DB2 verified
Factory for invariant name IBM.Data.Informix verified
IDS.NET from DbFactory is Common IDS.NET
VSAI is not installed properly
Elapsed: 1.2969165
Step 2: Validating db2dsdriver.cfg against db2dsdriver.xsd schema file
C:\ProgramData\IBM\DB2\IBMDBCL1\cfg\db2dsdriver.cfg against
C:\ProgramData\IBM\DB2\IBMDBCL1\cfg\db2dsdriver.xsd
Elapsed: 0
Step 3: Connecting using "database=sampledsn;uid=username;pwd=password"
Server type and version: DB2/NT 09.07.0003
Elapsed: 2.8594665
Step 4: Selecting rows from SYSIBM.SYSTABLES to validate existence of packages
SELECT * FROM SYSIBM.SYSTABLES FETCH FIRST 5 rows only
Elapsed: 0.1875024
Test passed.