- 獲取幫助
- exp help=y/imp help=y
-
工作方式
- 交互式 exp
- 命令行 exp user/pwd@dbname file=/oracle/test.dmp full=y
- 參數(shù)文件方式 exp parfile=username.par
參數(shù)文件內(nèi)容
userid=username/userpassword buffer=819200
compress=n grants=y
file=/oracle/test.dmp full=y
-
三種模式
- 表方式 將指定表的數(shù)據(jù)導(dǎo)入或?qū)С?
導(dǎo)出幾張表exp user/pwd file=/dir/test.dmp log=test.log tables=table1,table2
導(dǎo)出某表部分?jǐn)?shù)據(jù) exp user/pwd file=* log=* tables=table1 query=\"where col1=\'....\' and col2 \<..\"
導(dǎo)入一張或幾張表 imp??user/pwd??file=/dir/xxx.dmp??log=xxx.log??tables=table1,table2??fromuser=dbuser?touser=dbuser2?commit=y?ignore=y
-
- 用戶方式 將指定用戶的所有對象及數(shù)據(jù)導(dǎo)入/導(dǎo)出
導(dǎo)出: exp user/pwd file=/dir/*.dmp log=*.log owner=(xx,yy)
只導(dǎo)出數(shù)據(jù)對象,不導(dǎo)出數(shù)據(jù) rows=n exp user/pwd file=/dir/*.dmp log=*.log owner=user rows=n
導(dǎo)入: imp user/pwd file=/dir/*.dmp log=*.log fromuser=dbuser touser=dbuser2 commit=y ignore=y
-
-
全庫方式 將數(shù)據(jù)庫中所有的對象導(dǎo)出/導(dǎo)入
- 導(dǎo)出 exp user/pwd file=/dir/*.dmp log=*.log full=y commit=y ignore=y
- ?? 導(dǎo)入 imp uer/pwd file=/dir/*.dmp log=*.log fromuser=dbuser touser=dbuser2
-
全庫方式 將數(shù)據(jù)庫中所有的對象導(dǎo)出/導(dǎo)入
?
?
更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號聯(lián)系: 360901061
您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對您有幫助就好】元
