
138 DB2 Recovery Expert for Multiplatforms
6.14.1 Determine table and table space IDs
First we need to determine the ID of the NAME table and the table space it
resides in. Example 6-3 shows the command we use to do this, and its output.
Example 6-3 Determining the table and table space ID
C:\PROGRA~1\SQLLIB\BIN>db2 "select tableid,tbspace,tbspaceid from
syscat.tables where tabname='NAME'"
TABLEID TBSPACE TBSPACEID
------- ------------------ ---------
13 USERSPACE1 2
1 record(s) selected.
We now know that the NAME table is table ID 13 in the USERSPACE1 table
space (which has a table space ID of 2).
6.14.2 Recover the table image from a backup using ...