merge_partition
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的更多相关文章
- 探讨Oracle分区表
一年又一年,又到年底了,对于数据库的分区表需要检查一下,有无最大分区,次分区是否需要追加分区,如果程序不是自动追加分区的话,那么年中结算的时候,就会报错. 1.oracle分区主要有五种类型 (1)R ...
随机推荐
- hadoop 及hbase zookeeper 经常出现问题
往往是以下几个 1/ 各节点时间不统一(写shell文件统一时间) 2/配置文件 /etc/hosts文件中ip地址配置错误(更新ip) 3/断网后重启机器 ip地址被修改(更新配置文件中的ip)
- CodeForces 753C Interactive Bulls and Cows (Hard)
题意:... 析:随机判断就即可,每次把不正确的删除,经过几次后就基本剩不下了. 代码如下: #pragma comment(linker, "/STACK:1024000000,10240 ...
- jquery操作HTML5 的data-*的用法实例分享
.mm{width:256px; height:200px;} .mm[data-name='张含韵']{background:url(http://image.zhangxinxu.com/imag ...
- leetcode21
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing t ...
- JS操作select标签
主要利用这个来实现省市区三级联动的 我利用的是ajax,每一次onchange事件都改变相对应的select中的option,数据全是ajax请求服务器查询数据库而来的,效果还可以,在本地测试的时候速 ...
- 句柄C++
C++中的句柄 这个句柄只是从英文handle翻译过来的,只问句是什么意思难以解释,这个是我从别人的空间收集的信息, 功能上的理解: 什么是"句柄"(handle),handle的 ...
- Office Web Apps 错误
owa安装完后,在sharepoint网站上打开word,excel,报错,Sorry, something went wrong, 通过correlation id找到错误信息(如何在sharepo ...
- php过滤函数
addcslashes — 以 C 语言风格使用反斜线转义字符串中的字符 addslashes — 使用反斜线引用字符串 strip_tags — 从字符串中去除 HTML 和 PHP 标记 stri ...
- cornerstone 怎么使用
Cornerstone的逻辑很清晰,界面打开后,左边栏上下分开,上面是working copies的列表,下面是REPOSITORIES的列表.常见的功能基本上跟windows一样,在上下文中可以得到 ...
- Androidndk开发打包时我们应该如何注意平台的兼容(x86,arm,arm-v7a)
很多朋友在开发Android JNI的的时候,会遇到findlibrary returned null的错误,因为某种原因,so没有打包到apk中.下面浅析下引起该错误的原因以及平台兼容性问题. 一. ...