db2dart 工具使用

db2dart 在数据库正常停止后执行,否则会出现database状态不一致

 

[db2inst1@tserver ~]$ db2stop
SQL1064N  DB2STOP processing was successful.
[db2inst1@tserver ~]$ db2start
SQL1063N  DB2START processing was successful.
[db2inst1@tserver ~]$ db2 connect to i1_db1

   Database Connection Information

Database server        = DB2/LINUX 9.1.0
SQL authorization ID   = DB2INST1
Local database alias   = I1_DB1

[db2inst1@tserver ~]$ db2dart i1_db1 /DHWM

[db2inst1@tserver ~]$ cat I1_DB1.RPT

______________________________________________________________________________



        _______                    DART                   _______

   D a t a b a s e   A n a l y s i s   a n d   R e p o r t i n g   T o o l

                           IBM    DB2    6000





______________________________________________________________________________

DART (V9.1)  Report:
2007-05-10-08.39.32.686387

            Database Name: I1_DB1
            Report name: I1_DB1.RPT
            Old report back-up: I1_DB1.BAK
            Database Subdirectory: /IBM/db2inst1/db1/db2inst1/NODE0000/SQL00001
            Operational Mode: Database Inspection Only (INSPECT)

______________________________________________________________________________
------------------------------------------------------------------------------


Action option: DHWM
Tablespace-ID: 5

Connecting to Buffer Pool Services...

Highwater mark processing - phase start.


NOTES:  All highwater mark values and/or object sizes listed below are
        given in extents and not pages (unless explicitly stated).

        The object ID and object type are shown for each extent listed.

        Extents marked with an asterisk (*) hold the first page of an
        object and these extents can only be moved by dropping and
        recreating that object.

        Extents marked as belonging to objects with ID equal to 65534 or
        65535 are SMP extents or object table extents and they are not
        movable.

        After following a step and before continuing on to the next one,
        disconnect and reconnect to the database.


Highwater Mark:  160 pages, 5 extents (extents #0 - 4)


[0000] 65534 0x0e   [0001] 65534 0x0e   [0002] 65535 0x00   [0003]     4 0x40*
[0004]     4 0x00*


Dump highwater mark processing - phase start.

Number of free extents below highwater mark: 0
Number of used extents below highwater mark: 5

Object holding highwater mark:

Object ID: 4
Type:      Table Data Extent
      Note: Extent contains page #0 for object.


Dump highwater mark processing - phase end.

Highwater mark processing - phase end.

                     ______________________________________

         The requested DB2DART processing has completed successfully!
                     All operation completed without error;
                   no problems were detected in the database.
                     ______________________________________

                  Complete DB2DART report found in: I1_DB1.RPT

    _______    D A R T    P R O C E S S I N G    C O M P L E T E    _______


[db2inst1@tserver ~]$ db2dart i1_db1 /db 

检查下数据

 

 

 

 


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/13165828/viewspace-607730/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/13165828/viewspace-607730/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值