日期:2014-05-16  浏览次数:20382 次

DB2备份命令

C:\Program Files\IBM\SQLLIB\BIN>db2

db2 =>force applications all



db2 =>drop database dbname

db2 =>create database dbname

C:\Program Files\IBM\SQLLIB\BIN>db2 connect to dbname

D:\Development\dbback>db2 -tvf dbname.sql

D:\Development\dbback>db2move dbname load -u username -p password

db2 =>connect to dbname

db2 =>grant DBADM on database to user db2admin

db2 =>set integrity for TABLE_NAME immediate checked

------------------------------------------------------------------------------------------------------------------------------
select tabname from syscat.tables where TABschema='DB2ADMIN'