新聞中心
在Oracle數(shù)據(jù)庫備份中我們經(jīng)常會使用到以下的三種模式,分別是表方式、要將指定用戶中的所有對象以及數(shù)據(jù)導(dǎo)出/導(dǎo)入,以及全庫方式這三種模式的相關(guān)介紹,以下就是Oracle數(shù)據(jù)庫備份中的三種模式的實(shí)際應(yīng)用的介紹,望你會有所了解。

成都創(chuàng)新互聯(lián)公司長期為1000多家客戶提供的網(wǎng)站建設(shè)服務(wù),團(tuán)隊(duì)從業(yè)經(jīng)驗(yàn)10年,關(guān)注不同地域、不同群體,并針對不同對象提供差異化的產(chǎn)品和服務(wù);打造開放共贏平臺,與合作伙伴共同營造健康的互聯(lián)網(wǎng)生態(tài)環(huán)境。為西湖企業(yè)提供專業(yè)的網(wǎng)站建設(shè)、成都網(wǎng)站建設(shè),西湖網(wǎng)站改版等技術(shù)服務(wù)。擁有十載豐富建站經(jīng)驗(yàn)和眾多成功案例,為您定制開發(fā)。
(1)表方式,將指定表的數(shù)據(jù)導(dǎo)出/導(dǎo)入。
導(dǎo)出:導(dǎo)出一張或幾張表:
- $ exp user/pwd file=/dir/xxx.dmp log=
xxx.log tables=table1,table2
導(dǎo)出某張表的部分?jǐn)?shù)據(jù)
- $ exp user/pwd file=/dir/xxx.dmp log=
xxx.log tables=table1 query=\“where col1=
\‘…\’and col2 \<…\”
導(dǎo)入:導(dǎo)入一張或幾張表
- $ imp user/pwd file=/dir/xxx.dmp log=
xxx.log tables=table1,- table2 fromuser=dbuser touser=
dbuser2 commit=y ignore=y
(2)在Oracle數(shù)據(jù)庫備份中第二種模式用戶方式,要將指定用戶的所有對象及數(shù)據(jù)導(dǎo)出/導(dǎo)入。
導(dǎo)出:
- $ exp user/pwd file=/dir/xxx.dmp log=
xxx.log owner=(xx, yy)
只導(dǎo)出數(shù)據(jù)對象,不導(dǎo)出數(shù)據(jù) (rows=n )
- $ exp user/pwd file=/dir/xxx.dmp log=
xxx.log owner=user rows=n
導(dǎo)入:
- $ imp user/pwd file=/dir/xxx.dmp log=
xxx.log fromuser=dbuser touser=dbuser2- commit=y ignore=y
(3)全庫方式,將數(shù)據(jù)庫中的所有對象導(dǎo)出/導(dǎo)入導(dǎo)出:
- $ exp user/pwd file=/dir/xxx.dmp log=xxx.log full=
ycommit=y ignore=y
導(dǎo)入:
- $ imp user/pwd file=/dir/xxx.dmp log=xxx.log fromuser=
dbuser touser=dbuser2
以上就是對Oracle數(shù)據(jù)庫備份中三種模式相關(guān)的內(nèi)容的介紹,望你會有所收獲。
本文題目:Oracle數(shù)據(jù)庫備份中的三種模的實(shí)際應(yīng)用
轉(zhuǎn)載源于:http://m.fisionsoft.com.cn/article/dpohggd.html


咨詢
建站咨詢
