此文章主要讲述的是正确使用DB2 dart恢复数据的实际操作步骤,为了对其更加详细的进行说明我们主要是以列举实例的方式对其进行讲解,以下就是文章的主要内容的详细描述,望大家对其会有所收获。
首先,DB2 "select creator,name,tid,fid from sysibm.systables where name = tablename" 查到tid和fid;
然后
- D:\>DB2dart SAMPLE /DDEL
- Table object data formatting start.
- Please enter
- Table ID or name, tablespace ID, first page, num of pages:
- (suffic page number with 'p' for pool relative)
- 2,2,0,999
- 5 of 5 columns in the table will be dumped.
- Column numbers and datatypes of the columns dumped:
- 0 SMALLINT
- 1 VARCHAR() -VARIABLE LENGTH CHARACTER STRING
- 2 SMALLINT
- 3 VARCHAR() -VARIABLE LENGTH CHARACTER STRING
- 4 VARCHAR() -VARIABLE LENGTH CHARACTER STRING
- Default filename for output data file is TS2T2.DEL,
- do you wish to change filename used? y/n
- N
- Filename used for output data file is TS2T2.DEL. If existing file, data will
- be appended to it.
- Formatted data being dumped ...
- Dumping Page 0 ....
- Table object data formatting end.
- The requested DB2DART processing has completed successfully!
- Complete DB2DART report found in:
- C:\PROGRA~1\IBM\SQLLIB\DB2\DART0000\SAMPLE.RPT
- D:\>
- Table ID or name, tablespace ID, first page, num of pages:
- (suffic page number with 'p' for pool relative)
- 2,2,0,999=
- FID,TID,first page为0,num of pages
注:尽量往大了估算。
以上的相关内容就是对实例讲解使用DB2 dart恢复数据的具体步骤的介绍,望你能有所收获。
【编辑推荐】
- DB2无限活动日志策略,从介绍到实际的操作技巧
- DB2数据库迁移的导出步骤在Linux操作系统下
- 实现DB2数据库迁移之导入步骤在Linux下
- IBM DB2跨平台数据库迁移操作步骤与注意点!
- DB2取得当前时间如何正确操作?