国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
oracle11g數(shù)據(jù)庫邏輯備份與恢復(fù)

oracle11g數(shù)據(jù)庫邏輯備份與恢復(fù)

用戶需要角色exp_full_database和imp_full_database

一、邏輯備份expdp
1.創(chuàng)建目錄對(duì)象
create directory dump_dir as ‘/oracle/datapump/dumps’;

 

2.授權(quán)目錄對(duì)象
授權(quán)為所有用戶可讀寫
grant read,write on directory dump_dir to public;

授權(quán)為hugwww用戶可讀寫
grant read,write on directory dump_dir to hugwww;

 

3.查看授權(quán)對(duì)象
select * from dba_directories;

 

4.導(dǎo)出整個(gè)數(shù)據(jù)庫
expdp system/passwd directory=dump_dir dumpfile=alldb.dmp full=y

expdp system/passwd full=y dumpfile=dump_dir:full%U.dmp filesize=2G parallel=2 logfile=dump_dir:full.log job_name=alldb_export

 

5.對(duì)象模式導(dǎo)出
expdp system/passwd dumpfile=dump_dir:hugwww.dmp logfile=dump_dir:hugwww.log schemas=hugwww

 

6.表方式導(dǎo)出
expdp system/passwd dumpfile=dump_dir:hugwww_tables.dmp nologfile=y content=metadata_only tables=hugwww.info,hugwww.dept

 

7.表空間方式導(dǎo)出
expdp system/passwd dumpfile=dump_dir:hugwww_tbs.dmp logfile=dump_dir:hugwww_tbs.log tablespaces=hugwww,hugwww2

 

 

二、邏輯恢復(fù)impdp
1.導(dǎo)入表
impdp scott/tiger directory=dump_dir dumpfile=tab.dmp tables=dept,emp
impdp system/manage directory=dump_dir dumpfile=tab.dmp tables=scott.dept,scott.emp remap_schema=SCOTT:SYSTEM

第一種方法表示將DEPT和EMP表導(dǎo)入到SCOTT方案中,第二種方法表示將DEPT和EMP表導(dǎo)入的SYSTEM方案中。
注意,如果要將表導(dǎo)入到其他方案中,必須指定REMAP SCHEMA選項(xiàng)。

 

2.導(dǎo)入方案
impdp scott/tiger directory=dump_dir dumpfile=schema.dmp schemas=scott
impdp system/manager directory=dump_dir dumpfile=schema.dmp schemas=scott remap_schema=scott:system

 

3.導(dǎo)入表空間
impdp system/manager directory=dump_dir dumpfile=tablespace.dmp tablespaces=hugwww

 

4.導(dǎo)入數(shù)據(jù)庫
impdp system/manager directory=dump_dir dumpfile=full.dmp full=y

 

 

三、監(jiān)控作業(yè)進(jìn)度
1.命令行操作
數(shù)據(jù)泵導(dǎo)入/導(dǎo)出執(zhí)行后,按ctrl+c進(jìn)入交互模式,輸入:
status

 

2.查詢dba_datapump_jobs
select owner_name,job_name,operation,state from dba_datapump_jobs;

 

3.EXPDP/IMPDP的停止與重啟動(dòng)
1)停止任務(wù)
按ctrl+c進(jìn)入交互模式
status
stop_job

 

2)重新啟動(dòng)任務(wù)
expdp hugwww/passwd attach=alldb_export
start_job

 

完成!

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
Oracle數(shù)據(jù)庫expdp用法以及注意事項(xiàng)
Oracle expdp impdp dump參數(shù)介紹
Oracle備份與恢復(fù)介紹(物理備份與邏輯備份)
expdp\impdp及exp\imp
Oracle使用expdb、impdb解決導(dǎo)出、導(dǎo)入時(shí)的用戶修改、表空間修改變更問題
expdp/impdp 數(shù)據(jù)泵導(dǎo)入導(dǎo)出
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服