互联网服务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 个回答bigworld0128的回答

bigworld0128bigworld0128技术经理深圳市赢时胜信息技术股份有限公司
v97还有这个细节,不过为了安全起见,还是建议显式的加上include logs
互联网服务 · 2013-01-29
浏览2172

回答者

bigworld0128
技术经理深圳市赢时胜信息技术股份有限公司

bigworld0128 最近回答过的问题

回答状态

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