Informix命令之二--dbexport (轉帖)

sunmoontao發表於2007-09-10
Usage:
dbexport [-X] [-c] [-q] [-d] [-ss]
[{ -o | -t -b -s [-f ] }]
NOTE: arguments to dbexport are order independent.

引數詳解:
-X 如果某個字串欄位中包含二進位制資料,加上該引數後,dbexport將重新組織這些資料。
-c 除非很嚴重的錯誤dbexport才中斷,這些錯誤如下:
不能開啟你指定的磁帶裝置;
不能寫磁帶裝置或檔案;
不正確的命令列引數;
不能開啟資料庫或沒有連線資料庫的許可權;
-q 不用將匯出過程輸出到螢幕上
-d 讓dbexport只匯出BLOB欄位的描述符,而不匯出BLOB資料
-ss 能夠生成更詳細的資訊,比如:
初始和附加extent的尺寸;
表的分片資訊;
對錶的鎖的模式(行鎖或頁鎖);
表所在的dbspace或BLOB資料所在的space;
-o


可以將資料庫匯入到你指定的目錄下
-t -b -s
將資料匯入到磁帶
-f
dbexport在匯出資料的同時會產生一個DDL的檔案,你可以指定一個絕對路徑的檔案


例:
1) 將資料庫stores匯出到當前目錄下
$>dbexport stores
2) 將資料庫stores匯出到當前目錄下,不將過程輸出到螢幕,並且忽略小錯
$>dbexport stores -q -c
3) 將資料庫stores匯出到指定目錄下
$>dbexport stores -q -c -o /tmp
4)將資料庫stores匯出到磁帶上
$>dbexport stores -t /dev/tape -b 2048 -s 2000000 -f /tmp
5)將資料庫stores匯出前目錄下,並且加上額外的資訊
$>dbexport stores -ss

[@more@]Informix命令之二--dbexport

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/565747/viewspace-968819/,如需轉載,請註明出處,否則將追究法律責任。

相關文章