set echo on time on timing on spool 01_merge_partition.log

@/testdb/change/env/env_test.sql connect &V_testDATA_UN/&V_testDATA_PW

show user

select index_name from user_indexes where status='UNUSABLE'; select index_name , partition_name from user_ind_partitions where status !='USABLE';

set echo on termout on feedback 1 set timing on time on

alter session set sort_area_size=300000000;

whenever sqlerror exit;

------------------------------     TABLE: test_MOVEMENT     ------------------------------

alter table test_MOVEMENT merge partitions  part144, part145 into partition part145 tablespace TSP_L;

alter table test_MOVEMENT deallocate unused;

alter index test_MOVE_PK1 rebuild online tablespace IDX_L;

alter index test_MOVE_IDX1 rebuild PARTITION part145 TABLESPACE IDX_L;

alter index test_MOVE_IDX2 rebuild PARTITION part145 TABLESPACE IDX_L;

alter index test_MOVE_IDX3 rebuild PARTITION part145 TABLESPACE IDX_L;

alter index test_MOVE_IDX4 rebuild PARTITION part145 TABLESPACE IDX_L;

alter index test_MOVE_IDX5 rebuild PARTITION part145 TABLESPACE IDX_L;

------------------------------     TABLE: test_CONT_AUDIT_LOG     ------------------------------

alter table test_CONT_AUDIT_LOG merge partitions  part147, part148 into partition part148 tablespace TSP_L;

alter table test_CONT_AUDIT_LOG deallocate unused;

alter index test_CONT_AUDIT_LOG_PK rebuild online tablespace IDX_L;

------------------------------     TABLE: test_test     ------------------------------

alter table test_test merge partitions part144, part145 into partition part145 tablespace TSP_L;

alter table test_test deallocate unused;

alter index test_test_PK rebuild tablespace IDX_L;

alter index test_test_IDX5 rebuild tablespace IDX_L;

alter index test_test_IDX7 rebuild tablespace IDX_L;

alter index test_test_IDX1 rebuild partition part145 tablespace IDX_L;

alter index test_test_IDX2 rebuild partition part145 tablespace IDX_L;

alter index test_test_IDX3 rebuild partition part145 tablespace IDX_L;

alter index test_test_IDX4 rebuild partition part145 tablespace IDX_L;

alter index test_test_IDX6 rebuild partition part145 tablespace IDX_L;

------------------------------     TABLE: test_test     ------------------------------

alter table test_test merge partitions part150, part151 into partition part151 tablespace TSP_L;

alter table test_test deallocate unused;

alter index test_test_IDX1 rebuild partition part151 tablespace IDX_L;

alter index test_test_PK rebuild tablespace IDX_L;

------------------------------     TABLE: test_test     ------------------------------

alter table test_test merge partitions part144, part145 into partition part145 tablespace TSP_L;

alter table test_test deallocate unused;

alter index test_test_PK rebuild tablespace IDX_L;

alter index test_test_IDX1 rebuild partition part145 tablespace IDX_L;

alter index test_test_IDX2 rebuild partition part145 tablespace IDX_L;

alter index test_test_IDX3 rebuild partition part145 tablespace IDX_L;

----------------------------------------------------------------------------------------------

select index_name , partition_name from user_ind_partitions where status !='USABLE';

select index_name from user_indexes where status='UNUSABLE';

select distinct status from user_indexes; select distinct status from user_ind_partitions;

spool off

merge_partition的更多相关文章

  1. 探讨Oracle分区表

    一年又一年,又到年底了,对于数据库的分区表需要检查一下,有无最大分区,次分区是否需要追加分区,如果程序不是自动追加分区的话,那么年中结算的时候,就会报错. 1.oracle分区主要有五种类型 (1)R ...

随机推荐

  1. HDU 4381 Grid

    背包变形. 将操作分为了两类,可以分开处理. 可以dp处理出L[i]:L[i]=-1代表从左到右 i 长度不能被拼凑出来,L[i]!=-1表示从左到右 i 长度能被拼凑出,并且最小费用为L[i]. 反 ...

  2. ZOJ 1967 POJ 2570 Fiber Network

    枚举起点和公司,每次用DFS跑一遍图,预处理出所有的答案.询问的时候很快就能得到答案. #include<cstdio> #include<cmath> #include< ...

  3. iOS自定制tabbar与系统的tabbar冲突,造成第一次点击各个item图片更换选中,第二次选中部分item图片不改变

    可以选择是使用自定制的还是系统的,如果使用自定制的,就使用以下方法即可隐藏系统的uitabbarButton,从而使item恢复正确 //隐藏UITabBarButton -(void)viewWil ...

  4. undefine refrence to "*******"

    windows mingw gcc  编译出现莫名的错误  wsaaddresstostringa, 理解起来,应该是link的时候,出现的问题 (在console的日志栏也能看出来) 然后,在ECL ...

  5. js 系统时间对象

    alert(new Date()); 年是多少,月,日 var year=new Date(); var m=year.Getfullmonth; alert(m);月份特殊,必须加个数字1 数据类型 ...

  6. Servlet基础知识

    基本知识一.Web结构1.两种应用程序 ①桌面应用程序:QQ.CS.MyEclipse.Office.DW.360.浏览器等必须下载.安装.桌面快捷方式.注册表信息.操作系统后台服务.占用操作系统端口 ...

  7. 新建web project不自动生成web.xml解决方案

    一步一步建立Web Project ,第3步会有 “Generate Web.xml deployment descriptor”,默认没勾选,勾上就行了

  8. KMP算法类习题——字符串匹配

    Description For each prefix with length P of a given string S,if S[i]=S[i+P] for i in [0..SIZE(S)-p- ...

  9. lldp中与snmp相关内容agentx

    struct lldpd { int    g_snmp; struct event  *g_snmp_timeout; void   *g_snmp_fds; char   *g_snmp_agen ...

  10. Java程序输出打字

    代码: 效果: