Oracle資料泵樣本

來源:互聯網
上載者:User

Oracle資料泵樣本

Oracle資料泵樣本,主要的匯出樣本:

1.匯出指定資料表空間:

expdp system/xxx DIRECTORY=dump_dir tableapace=xxx dumpfile=xxx_%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%".dmp logfile=xxx.log

貌似只能匯出表,索引和觸發器,所以還是用指定schema的方式比較好

2.匯出指定schema:

expdp system/xxx DIRECTORY=dump_dir schemas=xxx dumpfile=xxx_%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%".dmp logfile=xxx.log

此方式可以匯出schema下所有的對象

3.匯出指定的表:

expdp user/xxx DIRECTORY=dump_dir DUMPFILE=dept.dmpTABLES=T1,T2 logfile=xxx.log;

4.並行匯出:

expdp system/xxx schemas=xxx DIRECTORY=dump_dir PARALLEL=3 dumpfile=KDJM2008-11-28_%U.dmp logfile=xxx.log

5.匯出中繼資料的選項:

content=metadata_only

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.