zoukankan      html  css  js  c++  java
  • 【练习】数据移动---导出(EXPDP)

    1.导出表:

    [oracle@host03 datadump]$ expdp scott/tiger directory=dir_dp dumpfile=emp.dmp tables=emp;
    
    Export: Release 11.2.0.4.0 - Production on Tue Dec 13 22:59:21 2016
    
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Starting "SCOTT"."SYS_EXPORT_TABLE_01":  scott/******** directory=dir_dp dumpfile=emp.dmp tables=emp 
    Estimate in progress using BLOCKS method...
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 64 KB
    Processing object type TABLE_EXPORT/TABLE/TABLE
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    . . exported "SCOTT"."EMP"                               8.562 KB      14 rows
    Master table "SCOTT"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
    ******************************************************************************
    Dump file set for SCOTT.SYS_EXPORT_TABLE_01 is:
      /home/oracle/datadump/emp.dmp
    Job "SCOTT"."SYS_EXPORT_TABLE_01" successfully completed at Tue Dec 13 22:59:37 2016 elapsed 0 00:00:14

    2.导出schema:

    [oracle@host03 datadump]$ expdp scott/tiger directory=dir_dp dumpfile=scott.emp schemas=scott;
    
    Export: Release 11.2.0.4.0 - Production on Tue Dec 13 23:03:35 2016
    
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Starting "SCOTT"."SYS_EXPORT_SCHEMA_01":  scott/******** directory=dir_dp dumpfile=scott.emp schemas=scott 
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 256 KB
    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    Processing object type SCHEMA_EXPORT/TABLE/COMMENT
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    . . exported "SCOTT"."DEPT"                              5.929 KB       4 rows
    . . exported "SCOTT"."EMP"                               8.562 KB      14 rows
    . . exported "SCOTT"."S1_BASE"                           5.914 KB       3 rows
    . . exported "SCOTT"."SALGRADE"                          5.859 KB       5 rows
    . . exported "SCOTT"."BONUS"                                 0 KB       0 rows
    Master table "SCOTT"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
    ******************************************************************************
    Dump file set for SCOTT.SYS_EXPORT_SCHEMA_01 is:
      /home/oracle/datadump/scott.emp
    Job "SCOTT"."SYS_EXPORT_SCHEMA_01" successfully completed at Tue Dec 13 23:04:20 2016 elapsed 0 00:00:43

    3.导出表空间:

    [oracle@host03 datadump]$ expdp system/oracle directory=dir_dp dumpfile=ts.dmp logfile=ts.log tablespaces=users;
    
    Export: Release 11.2.0.4.0 - Production on Tue Dec 13 23:10:44 2016
    
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Starting "SYSTEM"."SYS_EXPORT_TABLESPACE_01":  system/******** directory=dir_dp dumpfile=ts.dmp logfile=ts.log tablespaces=users 
    Estimate in progress using BLOCKS method...
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 1024 KB
    Processing object type TABLE_EXPORT/TABLE/TABLE
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    ORA-39181: Only partial table data may be exported due to fine grain access control on "OE"."PURCHASEORDER"
    . . exported "OE"."PURCHASEORDER"                        243.9 KB     132 rows
    . . exported "OE"."CATEGORIES_TAB"                       14.15 KB      22 rows
    . . exported "OE"."SUBCATEGORY_REF_LIST_NESTEDTAB"       6.585 KB      21 rows
    . . exported "OE"."PRODUCT_REF_LIST_NESTEDTAB"           12.50 KB     288 rows
    . . exported "SCOTT"."DEPT"                              5.929 KB       4 rows
    . . exported "SCOTT"."EMP"                               8.562 KB      14 rows
    . . exported "SCOTT"."S1_BASE"                           5.914 KB       3 rows
    . . exported "SCOTT"."SALGRADE"                          5.859 KB       5 rows
    . . exported "SCOTT"."BONUS"                                 0 KB       0 rows
    Master table "SYSTEM"."SYS_EXPORT_TABLESPACE_01" successfully loaded/unloaded
    ******************************************************************************
    Dump file set for SYSTEM.SYS_EXPORT_TABLESPACE_01 is:
      /home/oracle/datadump/ts.dmp
    Job "SYSTEM"."SYS_EXPORT_TABLESPACE_01" completed with 1 error(s) at Tue Dec 13 23:11:37 2016 elapsed 0 00:00:51

    4.导出数据库:

    expdp scott/tiger directory=dir_dp dumpfile=db.dmp logfile=db.log full=y;
  • 相关阅读:
    LaTeX技巧如何拆分源文件并且分别编译
    latex 批量注释
    解决 winedit 打开tex文件 reading error
    Latex beamer
    myeclipse项目上出现红色叹号
    个人简介
    Ubnt EdgeRouter ER-4 路由器的交换功能
    限制黑产尝试登陆WordPress后台
    查找汉字笔顺笔画
    WordPress主题:高级资源类博客主题RiPro主题V6.5
  • 原文地址:https://www.cnblogs.com/tomatoes-/p/6187156.html
Copyright © 2011-2022 走看看