zoukankan      html  css  js  c++  java
  • 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 来导入
  • 相关阅读:
    ZJOI2018]历史 做题心得 Flandre
    Codeforces 1495F 搞了一上午的心得 Flandre
    关于JS的跨域通信的几种解决方案 (转)
    我对php框架的理解和看法
    ob_get_contents();ob_end_clean();ob_start();的具体用法
    MySQL性能优化 (转载)
    遇到过的一些php笔试题
    php memcached 安装 install(转载)
    [转]mysql_fetch_row,mysql_fetch_array,mysql_fetch_object,mysql_fetch_assoc的区别
    深度探讨PHP之性能(看到的好文章,就转载啦)
  • 原文地址:https://www.cnblogs.com/chendian0/p/14430455.html
Copyright © 2011-2022 走看看