備份一個或多個用戶
D:\>exp scott/tiger file=導出文件
D:\>exp system/manager owner=(用戶1,用戶2,…,用戶n) file=導出文件
備份一個或多個表
D:\>exp 用戶/密碼 tables=表
D:\>exp 用戶/密碼 tables=(表1,…,表2)
D:\>exp system/manager tables=(用戶.表)
D:\>exp system/manager tables=(用戶1.表1,用戶2.表2)
導入指定表
D:\>exp scott/tiger file=a.dmp
D:\>imp test/test fromuser=scott tables=emp file=a.dmp
D:\>imp test/test tables=dept file=a.dmp
說明:
如果導出用戶沒有DBA權限,則導入用戶可以不用指定fromuser、touser參數
如果導出用戶擁有DBA權限,則導入用戶也必須擁有DBA權限
記錄LOG信息
imp80 username/password@alias file=impfile.dmp log=mylog.log
exp80 username/password@alias file=expfile.dmp log=mylog.log
運行后,mylog.log里記錄著所有的LOG信息
posted on 2007-04-19 11:28
心隨我動 閱讀(556)
評論(0) 編輯 收藏 所屬分類:
Oracle