#資料參考--資料庫備份
exp 使用者名稱/密碼 file=檔案存放路徑
--資料庫恢復
imp 使用者名稱/密碼 file=檔案存放路徑
--1、完全:
exp system/manager buffer=64000 file=c:\full.dmp full=y
--如果要執行完全匯出,必須具有特殊的許可權
--2、使用者模式:
exp sonic/sonic buffer=64000 file=c:\sonic.dmp owner=sonic
--這樣使用者sonic的所有物件被輸出到檔案中。
--3、表模式:
exp sonic/sonic buffer=64000 file=c:\sonic.dmp owner=sonic tables=(sonic)
--這樣使用者sonic的表sonic就被匯出
----------------------------------------------
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 選定匯出表子集的子句
二、imp:
具有三種模式(完全、使用者、表)
--1、完全:
imp system/manager buffer=64000 file=c:\full.dmp full=y
--2、使用者模式:
imp sonic/sonic buffer=64000 file=c:\sonic.dmp fromuser=sonic touser=sonic
--這樣使用者sonic的所有物件被匯入到檔案中。必須指定fromuser、touser引數,這樣才能匯入資料。
--3、表模式:
exp sonic/sonic buffer=64000 file=c:\sonic.dmp owner=sonic tables=(sonic)
--這樣使用者sonic的表sonic就被匯入。
----------------------------------------------
userid 使用者名稱/口令
full 匯入整個檔案 (n)
buffer 資料緩衝區大小
fromuser 所有人使用者名稱列表
file 輸入檔案 (expdat.dmp)
touser 使用者名稱列表
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)
analyze 執行轉儲檔案中的 analyze 語句 (y)
feedback 顯示每 x 行 (0) 的進度
toid_novalidate 跳過指定型別 id 的校驗
filesize 各轉儲檔案的最大尺寸
recalculate_statistics 重新計算統計值 (n)
資料庫備份
匯出方案 匯出自己的方案exp scott tiger oracle owner scott file d scott.dmp 成功匯入方案 imp userid retest retest oracle file e rem.dmp full y 匯出表 兩百萬資料 exp userid scot...
資料庫備份
備份 使用 isql usa p ssybase 命令連線至資料庫,依次備份早教系統edu cfg和edu stat兩個使用者資料庫。前提條件是backup server服務要啟動 dump database edu cfg to home sybase edu cfg jiangsu 201405...
資料庫備份
sqlserver 作業 新建作業 1.常規中,填寫名字及說明 2.步驟中新建步驟,填寫步驟名稱,選擇型別 transact sql指令碼 t sql 填寫命令,內容如下 declare name varchar 250 set name d bakdb 備份檔案名稱 convert varchar...