DB2数据库的在线备份步骤

DB2数据库的在线备份步骤。

如果要做在线的备份,要对两个参数作修改: USEREXIT和LOGRETAIN,将其修改为on,他们默认是off的,默认使用循环日志模式,修改完参数后,可以变为归档日志模式,启用了userexit做数据库日志的归档。

get db cfg   #查看数据库当前的属性。

db2=> get db cfg

 

      数据库  的数据库配置

 

 数据库配置发行版级别                                    = 0x0d00

 数据库发行版级别                                        = 0x0d00

 

 数据库地域                                              =CN

 数据库代码页                                            =1208

 数据库代码集                                            =UTF-8

 数据库国家/地区代码                                    = 86

 数据库整理顺序                                          =SYSTEM_1386

 备用整理顺序                              (ALT_COLLATE) =

 数字兼容性                                              =OFF

 Varchar2 兼容性                                         = OFF

 日期兼容性                                              = OFF

 数据库页大小                                            =4096

 

 动态 SQL 查询管理                      (DYN_QUERY_MGMT) =DISABLE

 

 语句集中器                                  (STMT_CONC) =OFF

 

 对此数据库的发现支持                      (DISCOVER_DB) = ENABLE

 

 限制访问                                               = NO

 缺省查询优化类                           (DFT_QUERYOPT) = 5

 并行度                                    (DFT_DEGREE) = 1

 在算术异常时继续                      (DFT_SQLMATHWARN) = NO

 缺省刷新有效期                        (DFT_REFRESH_AGE) = 0

 缺省维护的选项(DFT_MTTB_TYPES)的表类型                = SYSTEM

 保留的高频值的数目                     (NUM_FREQVALUES) = 10

 保留的分位点数目                        (NUM_QUANTILES) = 20

 

 十进制浮点舍入方式                    (DECFLT_ROUNDING) = ROUND_HALF_EVEN

 

 备份暂挂                                               = NO

 

 已将所有已落实的事务写入磁盘                            = YES

 前滚暂挂                                               = NO

 复原暂挂                                               = NO

 

 启用的多页文件分配                                      = YES

 

 恢复状态的日志保留                                      = NO

 日志记录状态的用户出口                                  = NO

 

 自调整内存                            (SELF_TUNING_MEM) =ON

 数据库共享内存大小(4KB)             (DATABASE_MEMORY) = AUTOMATIC(145360)

 数据库内存阈值                          (DB_MEM_THRESH) = 10

 锁定列表的最大存储量(4KB)                   (LOCKLIST) = AUTOMATIC(6200)

 每个应用程序的锁定百分比列表                 (MAXLOCKS) = AUTOMATIC(60)

 程序包高速缓存大小(4KB)                  (PCKCACHESZ) =AUTOMATIC(1533)

 共享排序的排序堆域值(4KB)            (SHEAPTHRES_SHR) = AUTOMATIC(12218)

 排序列表堆(4KB)                            (SORTHEAP) =AUTOMATIC(610)

 

 数据库堆(4KB)                                (DBHEAP) =AUTOMATIC(1218)

 目录高速缓存大小(4KB)               (CATALOGCACHE_SZ) = 300

 日志缓冲区大小(4KB)                         (LOGBUFSZ) = 256

 实用程序堆大小(4KB)                    (UTIL_HEAP_SZ) = 20865

 缓冲池大小(页)                             (BUFFPAGE) = 250

 SQL 语句堆(4KB)                            (STMTHEAP) =AUTOMATIC(8192)

 缺省应用程序堆(4KB)                      (APPLHEAPSZ) = AUTOMATIC(256)

 应用程序内存大小(4KB)                (APPL_MEMORY) =AUTOMATIC(40000)

 统计信息堆大小(4KB)                    (STAT_HEAP_SZ) =AUTOMATIC(4384)

 

 检查死锁的时间间隔(毫秒)                  (DLCHKTIME) = 10000

 锁定超时(秒)                             (LOCKTIMEOUT) = -1

 

 更改的页阈值                           (CHNGPGS_THRESH) =80

 异步页清除程序的数目                   (NUM_IOCLEANERS) =AUTOMATIC(3)

 I/O 服务器的数目                        (NUM_IOSERVERS) =AUTOMATIC(3)

 索引排序标志                                 (INDEXSORT) =YES

 顺序检测标志                                (SEQDETECT) =YES

 缺省预取大小(页)                    (DFT_PREFETCH_SZ) =AUTOMATIC

 

 跟踪修改的页数                               (TRACKMOD) = OFF

 

 容器的缺省数目                                          = 1

 缺省表空间扩展数据块大小(页)           (DFT_EXTENT_SZ) = 32

 

 最大活动应用程序数                           (MAXAPPLS) =AUTOMATIC(40)

 活动应用程序的平均数目       (AVG_APPLS) = AUTOMATIC(1)

 每个应用程序的最大打开数据库文件数           (MAXFILOP) = 65535

 

 日志文件大小(4KB)                         (LOGFILSIZ) = 1024

 主日志文件的数目                           (LOGPRIMARY) = 13

 辅助日志文件的数目                          (LOGSECOND) = 4

 已更改的至日志文件的路径                   (NEWLOGPATH) =

 日志文件路径                                            =D:\DB2\NODE0000\SQL00005\SQLOGDIR\

 溢出日志路径                          (OVERFLOWLOGPATH) =

 镜像日志路径                            (MIRRORLOGPATH) =

 首个活动日志文件                                        =

 磁盘上已满的块日志                    (BLK_LOG_DSK_FUL) = NO

 非记录块操作                          (BLOCKNONLOGGED) = NO

 事务使用的最大主日志空间的百分比        (MAX_LOG)= 0

 1 个活动 UOW 的活动日志文件的数目        (NUM_LOG_SPAN) = 0

 

 组落实计数                                  (MINCOMMIT) =1

 软检查点前回收的日志文件的百分比              (SOFTMAX) = 520

 启用的恢复的日志保留                        (LOGRETAIN) = OFF

 启用的日志记录的用户出口                     (USEREXIT) = OFF

 

 HADR数据库角色                                          =STANDARD

 HADR本地主机名                        (HADR_LOCAL_HOST) =

 HADR本地服务名称                       (HADR_LOCAL_SVC) =

 HADR远程主机名                       (HADR_REMOTE_HOST) =

 HADR远程服务名称                      (HADR_REMOTE_SVC) =

 远程服务器的 HADR 实例名              (HADR_REMOTE_INST) =

 HADR超时值                               (HADR_TIMEOUT) =120

 HADR日志写同步方式                      (HADR_SYNCMODE) =NEARSYNC

 HADR对等窗口持续时间(秒)       (HADR_PEER_WINDOW) = 0

 

 第一个日志归档方法                        (LOGARCHMETH1) = OFF

 logarchmeth1 的选项                       (LOGARCHOPT1) =

 第二个日志归档方法                        (LOGARCHMETH2) = OFF

 logarchmeth2 的选项                       (LOGARCHOPT2) =

 故障转移日志归档路径                     (FAILARCHPATH) =

 错误时重试日志归档次数                   (NUMARCHRETRY) = 5

 日志归档重试延迟(秒)                 (ARCHRETRYDELAY) = 20

 供应商选项                                  (VENDOROPT) =

 

 启用的自动重新启动                        (AUTORESTART) = ON

 索引重新创建时间和重做索引构建               (INDEXREC) = SYSTEM (RESTART)

 在索引构建期间记录页                    (LOGINDEXBUILD) = OFF

 loadrec 会话的缺省数目               (DFT_LOADREC_SES) = 1

 要保留的数据库备份的数目               (NUM_DB_BACKUPS) = 12

 恢复历史记录保留时间(天数)          (REC_HIS_RETENTN) = 366

 自动删除恢复对象                     (AUTO_DEL_REC_OBJ) = OFF

 

 TSM 管理类                              (TSM_MGMTCLASS) =

 TSM 节点名                               (TSM_NODENAME) =

 TSM 所有者                                  (TSM_OWNER) =

 TSM 密码                                 (TSM_PASSWORD) =

 

 自动维护                                   (AUTO_MAINT)= ON

   自动数据库备份                       (AUTO_DB_BACKUP) = OFF

   自动表维护                           (AUTO_TBL_MAINT) =ON

     自动 runstats                       (AUTO_RUNSTATS) = ON

       自动语句统计信息                 (AUTO_STMT_STATS) = ON

     自动统计信息概要分析              (AUTO_STATS_PROF) = OFF

      自动概要文件更新                  (AUTO_PROF_UPD) = OFF

     自动重组                       (AUTO_REORG) = OFF

 

 自动重新验证                               (AUTO_REVAL) =DEFERRED

 当前已落实                                   (CUR_COMMIT)= ON

 带有 DECIMAL 输入的 CHAR 输出         (DEC_TO_CHAR_FMT) = NEW

 启用 XML 字符操作                      (ENABLE_XMLCHAR) = YES

 WLM 收集时间间隔(分钟)              (WLM_COLLECT_INT) = 0

 监视器收集设置

 请求度量值                            (MON_REQ_METRICS) =BASE

 活动度量值                            (MON_ACT_METRICS) =BASE

 对象度量值                            (MON_OBJ_METRICS) =BASE

 工作单元事件数                           (MON_UOW_DATA) =NONE

 锁定超时事件数                        (MON_LOCKTIMEOUT) = NONE

 死锁事件数                               (MON_DEADLOCK) =WITHOUT_HIST

 锁定等待事件数                           (MON_LOCKWAIT) =NONE

 锁定等待事件阈值                        (MON_LW_THRESH) =5000000

 软件包列表条目数目         (MON_PKGLIST_SZ) = 32

 锁定事件通知级别          (MON_LCK_MSG_LVL) = 1

 

 SMTP服务器                               (SMTP_SERVER) =

 SQL 条件编译标志                          (SQL_CCFLAGS) =

 部分实际值设置             SECTION_ACTUALS) = NONE

 连接过程                                 (CONNECT_PROC)=

 

db2 =>

 

 

更改参数:

db2=> update db cfg for mydb using userexit on

DB20000I UPDATE DATABASE CONFIGURATION 命令成功完成。

SQL1363W 未动态更改为立即修改而提交的一个或多个参数。对于这些配置参数,必须在所

 

有应用程序都与此数据库断开连接之后,更改才会生效。

db2=> update db cfg for mydb using logretain on

DB20000I UPDATE DATABASE CONFIGURATION 命令成功完成。

SQL1363W 未动态更改为立即修改而提交的一个或多个参数。对于这些配置参数,必须在所

 

有应用程序都与此数据库断开连接之后,更改才会生效。

重新连接使参数生效。

db2=> force application all  #停掉所有应用并重新连接

DB20000I FORCE APPLICATION 命令成功完成。

DB21024I 此命令为异步的,可能未能立即生效。

 

db2=> connect to mydb

SQL1116N 因为 BACKUP PENDING,所以不能连接或激活数据库 "MYDB"。

SQLSTATE=57019

##提示我们要在此时做一次离线的全备。否则是backup pending状态的。

db2=> backup database mydb to d:\backup

 

备份成功。此备份映像的时间戳记是:20110925091144

 

db2=> connect to mydb

 

   数据库连接信息

 

 数据库服务器         = DB2/NT64 9.7.4

 SQL 授权标识         = DB2ADMIN

 本地数据库别名       = MYDB

db2=> list applications  #查看应用

 

授权标识  应用程序名    应用程序    应用程序标识                  数据库  代理

程序

                        句柄                                      名称     序号

-------- -------------- -------------------------------------------------------

----------------- -------- -----

DB2ADMIN db2bp.exe      853       *LOCAL.DB2.110925011154

                  MYDB     1

 

db2=>  backup database mydb to d:\backup

 

备份成功。此备份映像的时间戳记是:20110925091341

 

db2=> list applications

SQL1611W “数据库系统监视器”没有返回任何数据。

db2=> backup database mydb online to d:\backup #在线的备份

 

备份成功。此备份映像的时间戳记是:20110925091445

 

 

 

做增量备份

修改参数,使数据库能够做到增量备份。必须要修改trackmod为 on 状态,并有一次完全备份。

db2=> update db cfg for mydb using trackmod yes

DB20000I UPDATE DATABASE CONFIGURATION 命令成功完成。

db2=> force application all

DB20000I FORCE APPLICATION 命令成功完成。

DB21024I 此命令为异步的,可能未能立即生效。

 

db2=> backup database mydb to d:\backup

 

备份成功。此备份映像的时间戳记是:20110925091736

 

db2=> backup database mydb online incremental delta to d:\backup  #增量备份命令

 

备份成功。此备份映像的时间戳记是:20110925091815

 

db2=> connect to mydb

 

   数据库连接信息

 

 数据库服务器         = DB2/NT64 9.7.4

 SQL 授权标识         = DB2ADMIN

 本地数据库别名       = MYDB

 

db2=> get db cfg  #显示数据库当前的状态

 

      数据库  的数据库配置

 

 数据库配置发行版级别                                    = 0x0d00

 数据库发行版级别                                        =0x0d00

 

 数据库地域                                              =CN

 数据库代码页                                            =1208

 数据库代码集                                            =UTF-8

 数据库国家/地区代码                                     = 86

 数据库整理顺序                                          =SYSTEM_1386

 备用整理顺序                              (ALT_COLLATE) =

 数字兼容性                                              =OFF

 Varchar2 兼容性                                         = OFF

 日期兼容性                                              =OFF

 数据库页大小                                            =4096

 

 动态 SQL 查询管理                      (DYN_QUERY_MGMT) =DISABLE

 

 语句集中器                                  (STMT_CONC) =OFF

 

 对此数据库的发现支持                      (DISCOVER_DB) = ENABLE

 

 限制访问                                               = NO

 缺省查询优化类                           (DFT_QUERYOPT) = 5

 并行度                                    (DFT_DEGREE) = 1

 在算术异常时继续                      (DFT_SQLMATHWARN) = NO

 缺省刷新有效期                        (DFT_REFRESH_AGE) = 0

 缺省维护的选项(DFT_MTTB_TYPES)的表类型                = SYSTEM

 保留的高频值的数目                     (NUM_FREQVALUES) = 10

 保留的分位点数目                        (NUM_QUANTILES) = 20

 

 十进制浮点舍入方式                    (DECFLT_ROUNDING) =ROUND_HALF_EVEN

 

 备份暂挂                                               = NO

 

 已将所有已落实的事务写入磁盘                            = YES

 前滚暂挂                                               = NO

 复原暂挂                                               = NO

 

 启用的多页文件分配                                      = YES

 

 恢复状态的日志保留                                      =RECOVERY

 日志记录状态的用户出口                                  = YES

 

 自调整内存                            (SELF_TUNING_MEM) =ON

 数据库共享内存大小(4KB)             (DATABASE_MEMORY) = AUTOMATIC(139264)

 数据库内存阈值                          (DB_MEM_THRESH) = 10

 锁定列表的最大存储量(4KB)                   (LOCKLIST) = AUTOMATIC(6200)

 每个应用程序的锁定百分比列表                 (MAXLOCKS) = AUTOMATIC(60)

 程序包高速缓存大小(4KB)                  (PCKCACHESZ) =AUTOMATIC(1533)

 共享排序的排序堆域值(4KB)            (SHEAPTHRES_SHR) = AUTOMATIC(12218)

 排序列表堆(4KB)                            (SORTHEAP) =AUTOMATIC(610)

 

 数据库堆(4KB)                                (DBHEAP) =AUTOMATIC(1218)

 目录高速缓存大小(4KB)               (CATALOGCACHE_SZ) = 300

 日志缓冲区大小(4KB)                         (LOGBUFSZ) = 256

 实用程序堆大小(4KB)                    (UTIL_HEAP_SZ) = 20865

 缓冲池大小(页)                             (BUFFPAGE) = 250

 SQL 语句堆(4KB)                            (STMTHEAP) =AUTOMATIC(8192)

 缺省应用程序堆(4KB)                      (APPLHEAPSZ) =AUTOMATIC(256)

 应用程序内存大小(4KB)                (APPL_MEMORY) =AUTOMATIC(40000)

 统计信息堆大小(4KB)                    (STAT_HEAP_SZ) =AUTOMATIC(4384)

 

 检查死锁的时间间隔(毫秒)                  (DLCHKTIME) = 10000

 锁定超时(秒)                             (LOCKTIMEOUT) = -1

 

 更改的页阈值                           (CHNGPGS_THRESH) =80

 异步页清除程序的数目                   (NUM_IOCLEANERS) =AUTOMATIC(3)

 I/O 服务器的数目                        (NUM_IOSERVERS) =AUTOMATIC(3)

 索引排序标志                                 (INDEXSORT) = YES

 顺序检测标志                                (SEQDETECT) =YES

 缺省预取大小(页)                    (DFT_PREFETCH_SZ) =AUTOMATIC

 

 跟踪修改的页数                               (TRACKMOD) = ON

 

 容器的缺省数目                                          = 1

 缺省表空间扩展数据块大小(页)            (DFT_EXTENT_SZ) = 32

 

 最大活动应用程序数                           (MAXAPPLS) =AUTOMATIC(40)

 活动应用程序的平均数目       (AVG_APPLS) = AUTOMATIC(1)

 每个应用程序的最大打开数据库文件数           (MAXFILOP) = 65535

 

 日志文件大小(4KB)                         (LOGFILSIZ) = 1024

 主日志文件的数目                           (LOGPRIMARY) = 13

 辅助日志文件的数目                          (LOGSECOND) = 4

 已更改的至日志文件的路径                   (NEWLOGPATH) =

 日志文件路径                                            =D:\DB2\NODE0000\SQL00

005\SQLOGDIR\

 溢出日志路径                          (OVERFLOWLOGPATH) =

 镜像日志路径                            (MIRRORLOGPATH) =

 首个活动日志文件                                        =S0000002.LOG

 磁盘上已满的块日志                    (BLK_LOG_DSK_FUL) = NO

 非记录块操作                          (BLOCKNONLOGGED) = NO

 事务使用的最大主日志空间的百分比        (MAX_LOG)= 0

 1 个活动 UOW 的活动日志文件的数目        (NUM_LOG_SPAN) = 0

 

 组落实计数                                  (MINCOMMIT) =1

 软检查点前回收的日志文件的百分比              (SOFTMAX) = 520

 启用的恢复的日志保留                        (LOGRETAIN) = RECOVERY

 启用的日志记录的用户出口                     (USEREXIT) = ON

 

 HADR数据库角色                                          =STANDARD

 HADR本地主机名                        (HADR_LOCAL_HOST) =

 HADR本地服务名称                       (HADR_LOCAL_SVC) =

 HADR远程主机名                       (HADR_REMOTE_HOST) =

 HADR远程服务名称                      (HADR_REMOTE_SVC) =

 远程服务器的 HADR 实例名              (HADR_REMOTE_INST) =

 HADR超时值                               (HADR_TIMEOUT) =120

 HADR日志写同步方式                      (HADR_SYNCMODE) =NEARSYNC

 HADR对等窗口持续时间(秒)       (HADR_PEER_WINDOW) = 0

 

 第一个日志归档方法                        (LOGARCHMETH1) =USEREXIT

 logarchmeth1 的选项                       (LOGARCHOPT1) =

 第二个日志归档方法                        (LOGARCHMETH2) = OFF

 logarchmeth2 的选项                        (LOGARCHOPT2) =

 故障转移日志归档路径                     (FAILARCHPATH) =

 错误时重试日志归档次数                   (NUMARCHRETRY) = 5

 日志归档重试延迟(秒)                 (ARCHRETRYDELAY) = 20

 供应商选项                                  (VENDOROPT) =

 

 启用的自动重新启动                        (AUTORESTART) = ON

 索引重新创建时间和重做索引构建               (INDEXREC) = SYSTEM (RESTART)

 在索引构建期间记录页                    (LOGINDEXBUILD) = OFF

 loadrec 会话的缺省数目               (DFT_LOADREC_SES) = 1

 要保留的数据库备份的数目               (NUM_DB_BACKUPS) = 12

 恢复历史记录保留时间(天数)          (REC_HIS_RETENTN) = 366

 自动删除恢复对象                     (AUTO_DEL_REC_OBJ) = OFF

 

 TSM 管理类                              (TSM_MGMTCLASS) =

 TSM 节点名                               (TSM_NODENAME) =

 TSM 所有者                                  (TSM_OWNER) =

 TSM 密码                                 (TSM_PASSWORD)=

 

 自动维护                                   (AUTO_MAINT)= ON

   自动数据库备份                       (AUTO_DB_BACKUP) = OFF

   自动表维护                           (AUTO_TBL_MAINT) =ON

     自动 runstats                       (AUTO_RUNSTATS) = ON

      自动语句统计信息                  (AUTO_STMT_STATS) = ON

     自动统计信息概要分析              (AUTO_STATS_PROF) = OFF

      自动概要文件更新                  (AUTO_PROF_UPD) = OFF

     自动重组                       (AUTO_REORG) = OFF

 

 自动重新验证                               (AUTO_REVAL) =DEFERRED

 当前已落实                                   (CUR_COMMIT)= ON

 带有 DECIMAL 输入的 CHAR 输出         (DEC_TO_CHAR_FMT) = NEW

 启用 XML 字符操作                      (ENABLE_XMLCHAR) = YES

 WLM 收集时间间隔(分钟)              (WLM_COLLECT_INT) = 0

 监视器收集设置

 请求度量值                            (MON_REQ_METRICS) =BASE

 活动度量值                            (MON_ACT_METRICS) =BASE

 对象度量值                            (MON_OBJ_METRICS) =BASE

 工作单元事件数                           (MON_UOW_DATA) = NONE

 锁定超时事件数                        (MON_LOCKTIMEOUT) =NONE

 死锁事件数                               (MON_DEADLOCK) =WITHOUT_HIST

 锁定等待事件数                           (MON_LOCKWAIT) =NONE

 锁定等待事件阈值                        (MON_LW_THRESH) =5000000

 软件包列表条目数目         (MON_PKGLIST_SZ) = 32

 锁定事件通知级别          (MON_LCK_MSG_LVL) = 1

 

 SMTP服务器                               (SMTP_SERVER) =

 SQL 条件编译标志                          (SQL_CCFLAGS) =

 部分实际值设置             SECTION_ACTUALS) = NONE

 连接过程                                 (CONNECT_PROC) =

 

db2 =>

 

 

db2=> list history backup all for mydb 

 

                    列示 mydb 的历史记录文件匹配的文件条目数 = 7

 

 

 OpObj 时间戳记+序列     类型设备 最早日志    当前日志     备份标识

 ----- ------------------ ---- --- ------------ ------------ --------------

 B  D  20110925085106001   F    D  S0000000.LOG S0000000.LOG

 ----------------------------------------------------------------------------

  包含 3 表空间:

 

 00001 SYSCATSPACE

 00002 USERSPACE1

 00003 SYSTOOLSPACE

 ----------------------------------------------------------------------------

    注释:DB2 BACKUP MYDB OFFLINE

 开始时间:20110925085106

   结束时间:20110925085109

     状态:A

 ----------------------------------------------------------------------------

  EID:2 位置:d:\backup

 

 

 OpObj 时间戳记+序列     类型设备 最早日志    当前日志     备份标识

 ----- ------------------ ---- --- ------------ ------------ --------------

 R  D  20110925090226001   F      S0000000.LOG S0000000.LOG 20110925085106

 ----------------------------------------------------------------------------

  包含 3 表空间:

 

 00001 SYSCATSPACE

 00002 USERSPACE1

 00003 SYSTOOLSPACE

 ----------------------------------------------------------------------------

    注释:RESTORE MYDB NO RF

 开始时间:20110925090226

   结束时间:20110925090232

     状态:A

 ----------------------------------------------------------------------------

  EID:3 位置:

 

 

 OpObj 时间戳记+序列     类型设备 最早日志    当前日志     备份标识

 ----- ------------------ ---- --- ------------ ------------ --------------

 B  D  20110925091144001   F    D  S0000000.LOG S0000000.LOG

 ----------------------------------------------------------------------------

  包含 3 表空间:

 

 00001 SYSCATSPACE

 00002 USERSPACE1

 00003 SYSTOOLSPACE

 ----------------------------------------------------------------------------

    注释:DB2 BACKUP MYDB OFFLINE

 开始时间:20110925091144

   结束时间:20110925091147

     状态:A

 ----------------------------------------------------------------------------

  EID:4 位置:d:\backup

 

 

 OpObj 时间戳记+序列     类型设备 最早日志    当前日志     备份标识

 ----- ------------------ ---- --- ------------ ------------ --------------

 B  D  20110925091341001   F    D  S0000000.LOG S0000000.LOG

 ----------------------------------------------------------------------------

  包含 3 表空间:

 

 00001 SYSCATSPACE

 00002 USERSPACE1

 00003 SYSTOOLSPACE

 ----------------------------------------------------------------------------

    注释:DB2 BACKUP MYDB OFFLINE

 开始时间:20110925091341

   结束时间:20110925091343

     状态:A

 ----------------------------------------------------------------------------

  EID:5 位置:d:\backup

 

 

 OpObj 时间戳记+序列     类型设备 最早日志    当前日志     备份标识

 ----- ------------------ ---- --- ------------ ------------ --------------

 B  D  20110925091445001   N    D  S0000000.LOG S0000000.LOG

 ----------------------------------------------------------------------------

  包含 3 表空间:

 

 00001 SYSCATSPACE

 00002 USERSPACE1

 00003 SYSTOOLSPACE

 ----------------------------------------------------------------------------

    注释:DB2 BACKUP MYDB ONLINE

 开始时间:20110925091445

   结束时间:20110925091448

     状态:A

 ----------------------------------------------------------------------------

  EID:7 位置:d:\backup

 

 

 OpObj 时间戳记+序列     类型设备 最早日志    当前日志     备份标识

 ----- ------------------ ---- --- ------------ ------------ --------------

 B  D  20110925091736001   F    D  S0000001.LOG S0000001.LOG

 ----------------------------------------------------------------------------

  包含 3 表空间:

 

 00001 SYSCATSPACE

 00002 USERSPACE1

 00003 SYSTOOLSPACE

 ----------------------------------------------------------------------------

    注释:DB2 BACKUP MYDB OFFLINE

 开始时间:20110925091736

   结束时间:20110925091738

     状态:A

 ----------------------------------------------------------------------------

  EID:8 位置:d:\backup

 

 

 OpObj 时间戳记+序列     类型设备 最早日志    当前日志     备份标识

 ----- ------------------ ---- --- ------------ ------------ --------------

 B  D  20110925091815001   E    D  S0000001.LOG S0000001.LOG

 ----------------------------------------------------------------------------

  包含 3 表空间:

 

 00001 SYSCATSPACE

 00002 USERSPACE1

 00003 SYSTOOLSPACE

 ----------------------------------------------------------------------------

    注释:DB2 BACKUP MYDB ONLINE

 开始时间:20110925091815

   结束时间:20110925091816

     状态:A

 ----------------------------------------------------------------------------

  EID:10 位置:d:\backup

 

db2 =>


你可能感兴趣的:(数据库,数据库,db2,database,sql,application,活动)