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 ...
随机推荐
- Android.mk简单分析
LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := optional LOCAL_SRC_FILES := $ ...
- 如何在MFC中启动其它的(.exe)可执行文件
ShellExecute(NULL, "open", "http://www.sina.com.cn", NULL, NULL, SW_SH ...
- Asp.net中,点击GridView表头实现数据的排序
一.实现该功能的基本工作. 1. 先添加一个GridView,取名为gvData. 2. 设置该控件的属性: 操作步骤如下 设置属性: 这4个属性,还要设置该控件AllowSorting=&quo ...
- hdu_3804_Query on a tree(树链剖分)
题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=3804 题意:给你一棵树,然后给出树上边的价值,然后给出x,y,问从1到x的边上不超过y的最大值为多少 ...
- Infix to postfix conversion 中缀表达式转换为后缀表达式
Conversion Algorithm 1.操作符栈压入"#": 2.依次读入表达式的每个单词: 3.如果是操作数则压入操作数栈: 4.如果是操作符,则将操作符栈顶元素与要读入的 ...
- LeetCode OJ 66. Plus One
Given a non-negative number represented as an array of digits, plus one to the number. The digits ar ...
- 如何使用 AngularJS 的 ngShow 和 ngHide
今天我们来看看怎样使用Angular的ngShow 和ngHide 指令来完成它们听起来应该完成的,显示和隐藏! 它们应该做的事 ngShow 和ngHide 允许我们显示或隐藏不同的元素.这有助于创 ...
- 今天遇到了隐藏顶部菜单栏(top bar)的菜鸟问题,解决了。
self.navigationController.navigationBarHidden = YES; http://stackoverflow.com/questions/3397381/hide ...
- php过滤提交数据 防止sql注入攻击
规则 1:绝不要信任外部数据或输入 关于 Web 应用程序安全性,必须认识到的第一件事是不应该信任外部数据.外部数据(outside data) 包括不是由程序员在 PHP 代码中直接输入的任何数据. ...
- Android Studio 如何使用jni
在project视图下,main文件夹下,创建jniLibs文件夹,然后把so文件放入即可: