• X expdp 导出分区表的分区


    1.查看分区表分区字段
    
    select * from dba_part_key_columns where name='LOAN_UN_APP_INFO_CLOB' and owner ='OLS'; 
      
     OWNER                 NAME                          OBJECT_TYPE      COLUMN_NAME 
    -------------------- ------------------------------ ----------        ----------  
    OLS                   LOAN_UN_APP_INFO_CLOB           TABLE           OLS_DATA_DATE
    
    
    2.查看分区信息
    select PARTITION_NAME,HIGH_VALUE from dba_tab_partitions where TABLE_OWNER = 'OLS' and TABLE_NAME = 'LOAN_UN_APP_INFO_CLOB' ;
    
    PARTITION_NAME                                                             HIGH_VALUE 
    ----------------------------------------------------------------  ---------------------------------------------------------------- -------------------------------------------------------------------------------- 
    P1_LUAICLOB_01                                                         TO_DATE(' 2020-09-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN') 
    SYS_P14044                                                             TO_DATE(' 2021-01-08 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN') 
    SYS_P14082                                                             TO_DATE(' 2021-01-09 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN') 
    SYS_P14119                                                             TO_DATE(' 2021-01-10 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN') 
    
    省略
    3.导出分区 可以采用query方式,也可以导出具体分区,本次采用导出具体分区 select TABLE_OWNER||'.'||TABLE_NAME||':'||PARTITION_NAME from dba_tab_partitions where TABLE_OWNER = 'OLS' and TABLE_NAME = 'LOAN_UN_APP_INFO_CLOB';
    OLS.LOAN_UN_APP_INFO_CLOB:P1_LUAICLOB_01 OLS.LOAN_UN_APP_INFO_CLOB:SYS_P14044 OLS.LOAN_UN_APP_INFO_CLOB:SYS_P14082 OLS.LOAN_UN_APP_INFO_CLOB:SYS_P14119 省略 nohup expdp "
    / as sysdba " dumpfile=ols_LOAN_UN_APP_INFO_CLOB_BAK20210108.dmp directory=yearend logfile=ols_LOAN_UN_APP_INFO_CLOB_BAK20210108.log logtime=all cluster=no COMPRESSION=all tables=OLS.LOAN_UN_APP_INFO_CLOB:SYS_P14044 exclude=statistics,index & nohup expdp " / as sysdba " dumpfile=ols_LOAN_UN_APP_INFO_CLOB_BAK20210109.dmp directory=yearend logfile=ols_LOAN_UN_APP_INFO_CLOB_BAK20210109.log logtime=all cluster=no COMPRESSION=all tables=OLS.LOAN_UN_APP_INFO_CLOB:SYS_P14082 exclude=statistics,index &
    省略

    当插入的时候,第一个正常插入,后面的增加参数 table_exists_action=append 来导入
  • 相关阅读:
    Android Bitmap 载入与像素操作
    java poi读取excel公式,返回计算值(转)
    模块化Java简介
    java模式
    java—三大框架详解,其发展过程及掌握的Java技术慨括
    java设计模式、框架、架构、平台之间的关系
    POI 怎么设置Excel整列的CellStyle啊
    POI设置EXCEL单元格格式为文本、小数、百分比、货币、日期、科学计数法和中文大写
    POI对EXCEL的操作【重点:如何设置CELL格式为文本格式】
    ActiveX插件的Z-Index属性无效问题解决
  • 原文地址:https://www.cnblogs.com/chendian0/p/14430455.html
Copyright © 2020-2023  润新知