expdp&impdp For Oracle 10G
匯出與匯入表資料 For Oracel
-----------------------------------------------------
1.建立匯出目錄
SQL> create directory dmpdir as '/archivelog/dmpdir';
Directory created.
2.查詢目錄是否建立
SQL> select * from dba_directories;
OWNER DIRECTORY_NAME
------------------------------ ------------------------------
DIRECTORY_PATH
--------------------------------------------------------------------------------
SYS ORACLE_OCM_CONFIG_DIR
/orahome/10.2/ccr/state
SYS DMPDIR
/archivelog/dmpdir
SYS DATA_PUMP_DIR
/orahome/10.2/rdbms/log/[@more@]
3.匯出表資料
SQL> host expdp system/xxx directory=dmpdir tables=xxxx_SN_SITE_STATISTICS dumpfile=xxxx_sn_site_statistics.dmp logfile=xxxx_sn_site_statistics.log job_name=expdp;
4.啟動到非歸檔模式,不讓其產生ARCHIVELOG
SQL> shutdown immeidate;
SQL> startup mount;
SQL> alter database noarchivelog;
SQL> alter database open;
5.進行資料的匯入
SQL> host impdp system/xxxxx directory=dmpdir dumpfile=xxxx_sn_site_statistics.dmp logfile=impdp_xxxx_sn_site_statistics.log job_name=impdp full=y;
6.開啟資料歸檔
SQL> shutdown immeidate;
SQL> startup mount;
SQL> alter database archivelog;
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /archivelog/STCSMES
Oldest online log sequence 26560
Next log sequence to archive 26565
Current log sequence 26565
SQL> alter database open;
--------------------------
匯出、匯入使用者下所有資料
--------------------------
SQL> host expdp system/xxxx directory=dmpdir dumpfile=xxx.dmp logfile=expdp_xxx.log schemas=xxx job_name=expdp;
SQL> drop user smp cascade;
SQL> host impdp system/xxx directory=dmpdir dumpfile=xxx.dmp logfile=impdp_xxx.log job_name=impdp full=y;
-------------------------------------------------------------------
從一個匯出schema dmp檔案中,匯入一個table到另一個schema
-------------------------------------------------------------------
impdp system/system schemas=xxx directo
ry=xxx_dir remap_schema=xxx:xxxx dumpfile=xxx.dmp include = TABLE:" in ('EMP') " logfile=xxxx.log;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/789833/viewspace-1037361/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 透過expdp&impdp把11g的資料遷移到10g平臺的要點
- 通過expdp&impdp把11g的資料遷移到10g平臺的要點
- ORACLE 10g下載|ORACLE 10g下載地址|ORACLE 10g官網下載地址Oracle 10g
- oracle 10g patchOracle 10g
- ORACLE 10G AUTOTRACEOracle 10g
- oracle asm 10gOracleASM
- recyclebin for oracle 10gOracle 10g
- Oracle 10g flashbackOracle 10g
- Glossary Oracle 10gOracle 10g
- oracle 10g flashback databaseOracle 10gDatabase
- Oracle 10g RAC NFSOracle 10gNFS
- oracle 10g em建立Oracle 10g
- ORACLE 10G 升級Oracle 10g
- Oracle 10g RAC TAFOracle 10g
- oracle 10g RMAN管理Oracle 10g
- ORACLE 10G AWR 速查!Oracle 10g
- Oracle AS 10g 10.1.2.0.2Oracle
- Oracle 10G 跟蹤Oracle 10g
- oracle 10g的程式Oracle 10g
- oracle 10g em patchOracle 10g
- Oracle 10g Scheduler 特性Oracle 10g
- Oracle 10g AS基本管理Oracle 10g
- oracle 10g logmnrOracle 10g
- oracle 10g downloadOracle 10g
- ORACLE 10G expdp/impdpOracle 10g
- oracle 10g logminerOracle 10g
- oracle 10g ADDMOracle 10g
- oracle 10g table streamOracle 10g
- oracle 10g user streamOracle 10g
- oracle 10g stream weihuOracle 10g
- Oracle 10G V$ViewsOracle 10gView
- Oracle 10g installationOracle 10g
- 【ORACLE】relink oracle 10g 資料庫Oracle 10g資料庫
- Oracle Linux 5.5 安裝Oracle 10gLinuxOracle 10g
- Oracle 10g 下載地址Oracle 10g
- Scheduler in Oracle Database 10g(轉)OracleDatabase
- oracle 10G特性之awrOracle 10g
- oracle 10g rac升級Oracle 10g