導(dǎo)出數(shù)據(jù):
db2move dbname export -sn test -u db2inst1 -p password
schema是test
導(dǎo)入數(shù)據(jù):
db2move dbname import -u db2inst1 -p password
如果要更換導(dǎo)入數(shù)據(jù)的schema,只要將db2move.lst文件中的test替換成你要導(dǎo)入的schema,schema名稱要大寫。
通過這個命令可以在同一個數(shù)據(jù)庫內(nèi)復(fù)制相同的schema內(nèi)容(只有表格),用兩個schema模擬兩個數(shù)據(jù)庫。