exp/imp是oracle自帶的匯入匯出命令,運用它,即使不需要那結ui工具也能輕易的完成資料匯出匯入工作,下面是它們的引數:
exp引數詳解
使用的格式是:exp keyword=value 或 keyword=(value1,value2,...,valuen)
其中userid是必須的且為第乙個引數
關鍵字
備註
userid
使用者名稱/口令
full
匯出整個檔案 (n)
buffer
資料緩衝區的大小
owner
所有者使用者名稱列表
file
輸出檔案 (expdat.dmp)
tables
表名列表
compress
匯入乙個範圍 (y)
recordlength
io 記錄的長度
grants
匯出許可權 (y)
inctype
增量匯出型別
indexes
匯出索引 (y)
record
跟蹤增量匯出 (y)
rows
匯出資料行 (y)
parfile
引數檔名
constraints
匯出限制 (y)
consistent
交叉表一致性
log螢幕輸出的日誌檔案
statistics
分析物件 (estimate)
direct
直接路徑 (n)
triggers
匯出觸發器 (y)
feedback
顯示每 x 行 (0) 的進度
filesize
各轉儲檔案的最大尺寸
query
選定匯出表子集的子句
下列關鍵字僅用於可傳輸的表空間
transport_tablespace
匯出可傳輸的表空間元資料 (n)
tablespaces
將傳輸的表空間列表
imp引數詳解
使用的格式是:imp keyword=value 或 keyword=(value1,value2,...,valuen)
其中userid是必須的且為第乙個引數
關鍵字
備註
userid
使用者名稱/口令
full
匯入整個檔案(n)
buffer
資料緩衝區大小
fromuser
所有者使用者名稱列表
touser
使用者名稱列表
file
輸入檔案 (expdat.dmp)
show
只列出檔案內容(n)
tables
表名列表
ignore
忽略建立錯誤 (n)
recordlength
io 記錄的長度
grants
匯入許可權 (y)
inctype
增量匯入型別
indexes
匯入索引 (y)
commit
提交陣列插入 (n)
rows
匯入資料行 (y)
parfile
引數檔名
log螢幕輸出的日誌檔案
constraints
匯入限制 (y)
destroy
覆蓋表空間資料檔案 (n)
indexfile
將表/索引資訊寫入指定的檔案
skip_unusable_indexes
跳過不可用索引的維護 (n)
feedback
每 x 行顯示進度 (0)
toid_novalidate
跳過指定型別 id 的驗證
filesize
每個轉儲檔案的最大大小
statistics
始終匯入預計算的統計資訊
resumable
在遇到有關空間的錯誤時掛起 (n)
resumable_name
用來標識可恢復語句的文字字串
resumable_timeout
resumable 的等待時間
compile
編譯過程, 程式包和函式 (y)
streams_configuration
匯入流的一般元資料 (y)
streams_instantiation
匯入流例項化元資料 (n)
下列關鍵字僅用於可傳輸的表空間
transport_tablespace
匯入可傳輸的表空間元資料 (n)
tablespaces
將要傳輸到資料庫的表空間
datafiles
將要傳輸到資料庫的資料檔案
tts_owners
擁有可傳輸表空間集中資料的使用者
匯出表:
exp scott/tiger@mycon tables=(dept,emp) file=tab1.dmp
匯出使用者:
exp system/manager@mycon owner=scott file=usr1.dmp
匯出資料庫:
1.完全匯出
exp system/manager@mycon full=y inctype=complete file=full1.dmp
2.增量匯出
exp system/manager@mycon full=y inctype=incremental file=inc1.dmp
3.累積匯出
exp system/manager@mycon full=y inctype=cumulative file=cum1.dmp
imp example:
匯入表:
imp system/manager@mycon file=c:/tab1.dmp tables=(dept,emp) touser=scott
匯入使用者:
imp system/manager@mycon file=usr1.dmp fromuser=scott touser=scott
匯入資料庫:
1.全庫匯入
imp system/manager@mycon file=full1.dmp full=y
2.增量匯入
1)匯入資料庫最新資訊
imp system/manager@mycon inctype=system full=y file=inc7.dmp
2)匯入最近完全匯出檔案
imp system/manager@mycon inctype=restore full=y file=full1.dmp
3)匯入所有累積匯出檔案
imp system/manager@mycon inctype=restore full=y file=cum1.dmp
4)匯入最近一次增量匯出的檔案
imp system/manager@mycon inctype=restore full=y file=inc1.dmp
hda verb引數詳表
hda verb引數詳表 hda verb的由來 hda verb是linux下面的alsa project的一條命令,它的作用是傳送hd audio命令。命令格式 linux hda verb dev snd hwc0d0 0x12 0x701 2 mac hda verb 0x12 0x701 ...
oracle exp imp 資料備份
1 oracle11g預設對空表不分配segment,故使用exp匯出oracle11g資料庫時,空表不會匯出。解決辦法 設定deferred segment creation 引數為false後,無論是空表還是非空表,都分配segment。在sqlplus中,執行如下命令 sql alter sy...
Oracle(exp imp)匯入匯出
直接進入系統命令行執行即可。exp命令 1 exp username psw test file d test.dmp full y 2 exp username psw test file d test.dmp owner ly 3 exp username psw test file d tes...