DB2 10.5 for Linux, UNIX, and Windows

db2checkCOL - Check database for table accessibility in a prior fix pack command

Scans a database and determines whether any tables cannot be accessed in a fix pack before DB2® Cancun Release 10.5.0.4. If you want to revert to a previous fix pack after applying DB2 Cancun Release 10.5.0.4, run this command before you revert to the previous fix pack.

Authorization

The authorization ID requires one of the following authorities to run the command:
  • SYSADM
  • SYSCTRL
  • SYSMAINT
  • SYSMON
Also, the authorization ID must hold one of the following authorizations:
  • DATAACCESS authority
  • SELECT privilege on the system catalog tables and all column-organized tables in the database
The authorization ID requires write access to the current directory.

Required connection

This command establishes a database connection.

Command syntax

Read syntax diagramSkip visual syntax diagram
>>-db2checkCOL--database_alias-- -checkFP----------------------->

>--+------------------+----------------------------------------><
   '-userid--password-'   

Command parameters

database_alias
Specifies the alias of the database to scan. The specified database must be a local database.
-checkFP
Returns a list of all tables that cannot be accessed in a fix pack before DB2 Cancun Release 10.5.0.4. If an attempt is made to access such tables in a fix pack before DB2 Cancun Release 10.5.0.4, SQL0901N ("Table dictionary version mismatch") is returned.
userid
Specifies the user ID to use to connect to the database.
password
Specifies the password for the user ID.

Example

db2checkCOL testdb -checkFP

Starting Phase 1 of 3: Query Catalog Tables
Starting Phase 2 of 3: Loading Table Descriptors
Starting Phase 3 of 3: Analyzing Table Descriptors
ERROR: Table "MYSCM7 "."MYTB7" is affected.
ERROR: Table "NEWTON "."MYTB8" is affected.
DBT7112E The database has been completely tested, and one or more tables
  were found that require additional action.
Exiting with return code "-800".

Usage notes