作者·2011-12-20 11:32
·

离线备份sample的脚本

字数 420阅读 797评论 0赞 0
sample_backup.sh
=============
#!/bin/bash

db2 connect to sample
db2 quiesce database immediate force connections
db2 connect reset
db2 backup db sample to /tmp
db2 connect to sample
db2 unquiesce database
db2 connect reset

QUIESCE DATABASE results in all objects in the database being in the quiesced mode. Only the allowed user or group and SYSADM, SYSMAINT, DBADM, or SYSCTRL will be able to access the database or its objects.

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

0

添加新评论0 条评论

Ctrl+Enter 发表

作者其他文章

  • 事务日志
    评论 0 · 赞 0
  • 维护笔记(一)
    评论 0 · 赞 0
  • DB2 CODEPAGE和OS CODEPAGE
    评论 0 · 赞 0
  • db2trc的相关测试
    评论 0 · 赞 0
  • db2trace分析问题案例
    评论 0 · 赞 0
  • 相关资料

    X社区推广