expdp/impdp的使用總結 (供查詢使用)
expdp/impdp的使用總結
expdp/impdp的使用總結
1.使用expdp要先在資料庫中建立directory,並給相應的使用者read,write許可權.
SQL>create directory expdpdir as 'd:';
SQL>grant read,write on directory expdpdir to helios;
2.常用的匯出倒入用法
a) 匯出匯出表:
expdp helios/helios directory=expdpdir dumpfile=11.dmp tables=dep,em,cat
expdp scott/timer DUMPFILE=tmp_200703.dmp DIRECTORY=dmpdir TABLES=tmp QUERY='where status is not null'
impdp helios/helios directory=expdpdir dumpfile=11.dmp tables=dep,em,cat
impdp system/oracle directory=expdpdir dumpfile=11.dmp tables=helios.dep,helios.em,helios.cat
remap_schema=helios:system //倒入到system下面
b) 匯出匯出schema
expdp helios/helios directory=expdpdir dumpfile=11.dmp schemas=helios
impdp system/oracle directory=expdpdir dumpfile=11.dmp schemas=helios remap_schema=helios:system
c) 匯出匯出表空間
expdp helios/helios directory=expdpdir dumpfile=11.dmp tablespaces=system,rep_ts
imppdp helios/helios directory=expdpdir dumpfile=11.dmp tablespaces=system,rep_ts
d) 匯出匯出資料庫(匯出使用者需要dba角色)
expdp helios/helios directory=expdpdir dumpfile=11.dmp full=y
impdp helios/helios directory=expdpdir dumpfile=11.dmp full=y
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/701141/viewspace-366151/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 使用資料泵(expdp、impdp)遷移資料庫流程資料庫
- oracle dblink用法總結和expdp和impdp利用dblink倒入匯出到本地Oracle
- 使用impdp,expdp資料泵進入海量資料遷移
- oracle資料庫的impdp,expdpOracle資料庫
- Oracle使用資料泵expdp,impdp進行資料匯出匯入Oracle
- [20200620]expdp impdp exclude引數.txt
- expdp/impdp變慢 (Doc ID 2469587.1)
- 【Data Pump】expdp/impdp Job基本管理
- SQL查詢總結SQL
- MongoDB查詢總結MongoDB
- expdp/impdp 詳細引數解釋
- 使用sed 命令查詢和替換檔案中的字串的方法總結字串
- 使用sql語句查詢平均值,使用sql語句查詢資料總條數, not in 篩選語句的使用SQL
- ORACLE EXPDP IMPDP 的停止和啟動及監控Oracle
- impdp和expdp用法及引數介紹
- Mysql資料庫使用from與join兩表查詢的方法區別總結MySql資料庫
- Oracle資料泵匯出匯入(expdp/impdp)Oracle
- V$sql查詢未使用繫結變數的語句SQL變數
- mysql查詢效能優化總結MySql優化
- 資料泵datapump(expdp/impdp)的parfile用法,避免跳脫字元字元
- MySQL查詢結果匯出方式總結MySql
- Mybatis 查詢語句結果集總結MyBatis
- EXP、IMP、SQLLOADER、EXPDP、IMPDP、DBMS_METADATA、SQLPLUS等方面SQL
- iconfonts使用的總結
- ListenalbeFuture的使用總結
- cmake的使用總結
- JXCategoryView的使用總結GoView
- MySQL進階篇(03):合理的使用索引結構和查詢MySql索引
- 使用strace來查詢php的坑PHP
- Laravel使用MongoDB複雜的查詢LaravelMongoDB
- Oracle總結【SQL細節、多表查詢、分組查詢、分頁】OracleSQL
- SQL單表查詢語句總結SQL
- MySQL 索引及查詢優化總結MySql索引優化
- 基礎二分查詢總結
- 教你使用SQLite 子查詢SQLite
- mybatis-plus 使用In查詢MyBatis
- 【總結】二分查詢 —— 一種減而治之的查詢方法(1)
- Oracle 12c expdp和impdp匯出匯入表Oracle
- Oracle中如何查詢未使用繫結變數的SQL語句?Oracle變數SQL