互联网服务backuponline

online backup不管加不加include logs都有日志在里面?

[db2inst1@localhost /]$ db2 backup db sample online to /dbbak Backup successful. The timestamp for this backup image is : 20120523114710 [db2inst1@localhost /]$ db2 backup db sample online to /dbbak include logs Backup successful. The timestamp for this...显示全部
[db2inst1@localhost /]$ db2 backup db sample online to /dbbak

Backup successful. The timestamp for this backup image is : 20120523114710

[db2inst1@localhost /]$ db2 backup db sample online to /dbbak include logs

Backup successful. The timestamp for this backup image is : 20120523115500

看下面的include logs

[db2inst1@localhost dbbak]$ db2ckbkp -h SAMPLE.0.db2inst1.NODE0000.CATN0000.20120523114710.001


=====================
MEDIA HEADER REACHED:
=====================
        Server Database Name           -- SAMPLE
        Server Database Alias          -- SAMPLE
        Client Database Alias          -- SAMPLE
        Timestamp                      -- 20120523114710
        Database Partition Number      -- 0
        Instance                       -- db2inst1
        Sequence Number                -- 1
        Release ID                     -- D00
        Database Seed                  -- 8937DB46
        DB Comment's Codepage (Volume) -- 0
        DB Comment (Volume)            --                              
        DB Comment's Codepage (System) -- 0
        DB Comment (System)            --                              
        Authentication Value           -- -1
        Backup Mode                    -- 1
        Includes Logs                  -- 1
        Compression                    -- 0
        Backup Type                    -- 0
        Backup Gran.                   -- 0
        Status Flags                   -- 21
        System Cats inc                -- 1
        Catalog Partition Number       -- 0
        DB Codeset                     -- UTF-8
        DB Territory                   --
        LogID                          -- 1337153185
        LogPath                        -- /home/db2inst1/db2inst1/NODE0000/SQL00001/SQLOGDIR/
        Backup Buffer Size             -- 2363392
        Number of Sessions             -- 1
        Platform                       -- 1E

The proper image file name would be:
SAMPLE.0.db2inst1.NODE0000.CATN0000.20120523114710.001


[1] Buffers processed:  ###################################################################################

Image Verification Complete - successful.


[db2inst1@localhost dbbak]$ db2ckbkp -h SAMPLE.0.db2inst1.NODE0000.CATN0000.20120523115500.001


=====================
MEDIA HEADER REACHED:
=====================
        Server Database Name           -- SAMPLE
        Server Database Alias          -- SAMPLE
        Client Database Alias          -- SAMPLE
        Timestamp                      -- 20120523115500
        Database Partition Number      -- 0
        Instance                       -- db2inst1
        Sequence Number                -- 1
        Release ID                     -- D00
        Database Seed                  -- 8937DB46
        DB Comment's Codepage (Volume) -- 0
        DB Comment (Volume)            --                              
        DB Comment's Codepage (System) -- 0
        DB Comment (System)            --                              
        Authentication Value           -- -1
        Backup Mode                    -- 1
        Includes Logs                  -- 1
        Compression                    -- 0
        Backup Type                    -- 0
        Backup Gran.                   -- 0
        Status Flags                   -- 20
        System Cats inc                -- 1
        Catalog Partition Number       -- 0
        DB Codeset                     -- UTF-8
        DB Territory                   --
        LogID                          -- 1337153185
        LogPath                        -- /home/db2inst1/db2inst1/NODE0000/SQL00001/SQLOGDIR/
        Backup Buffer Size             -- 2363392
        Number of Sessions             -- 1
        Platform                       -- 1E

The proper image file name would be:
SAMPLE.0.db2inst1.NODE0000.CATN0000.20120523115500.001


[1] Buffers processed:  ###################################################################################

Image Verification Complete - successful.


这里面的log有什么区别?收起
参与23

查看其它 21 个回答tiantom的回答

tiantomtiantom技术经理****有限公司
学习了,收藏起来。
互联网服务 · 2013-01-24
浏览2105

回答者

tiantom
技术经理****有限公司
擅长领域: 主机云计算私有云

tiantom 最近回答过的问题

回答状态

  • 发布时间:2013-01-24
  • 关注会员:1 人
  • 回答浏览:2105
  • X社区推广