DB2“静默”状态与解除

来源:互联网 发布:老人打字软件 编辑:程序博客网 时间:2024/06/05 11:22
首先关闭所有到数据库的连接,将数据库置为“静默”状态:
$ db2 connect to testdb user db2inst1 using thepasswd
$ db2 quiesce database immediate force connections
$ db2 connect reset

现在可以开始备份了:
$ db2 backup database test to /home/backup” user db2inst1 using thepasswd

解除数据库的“静默”状态:
$ db2 connect to testdb user db2inst1 using thepasswd
$ db2 unquiesce database
$ db2 connect reset
0 0
原创粉丝点击