zoukankan      html  css  js  c++  java
  • [Oracle][Partition][Controlfile]Partition 操作是否和 Controlfile有关?

    Partition 操作是否和 Controlfile有关?

    通过实验来判断:

    对比 Partition 前后的操作,看看controlfile 的dump 信息中是否有记录,
    结果发现没有记录在 controlfile 中的信息。

    #### Testcase-0810-1

    Operations related to partition are not recorded in the control file

    It is connected.
    SQL> CREATE TABLE book1 (id NUMBER, val01 integer, val02 integer, val03 integer)
    PARTITION BY RANGE (val 01)
    (PARTITION book 1 p 1 VALUES LESS THAN (100),
    PARTITION book 1 p 2 VALUES LESS THAN (200),
    PARTITION book 1 p 3 VALUES LESS THAN (300)); 2 3 4 5

    SQL> oradebug setmypid
    The statement has been processed.

    SQL> oradebug tracefile_name
    /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_32505.trc
    SQL>
    SQL> oradebug dump controlf 5
    The statement has been processed.
    SQL>

    [oracle @ dhcp - cn - 10 - 182 - 210 - 9 ~] $ cat / u 01 /app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_32505.trc | grep partition
    [oracle @ dhcp - cn - 10 - 182 - 210 - 9 ~] $
    [oracle @ dhcp - cn - 10 - 182 - 210 - 9 ~] $
    grep "PARTITION"
    [oracle @ dhcp - cn - 10 - 182 - 210 - 9 ~] $

    SQL> alter table book1 add partition p4 values ​​less than (400);

    The table has been changed.

    SQL> alter table book 1 drop partition book 1 p 1;

    The table has been changed.

    SQL> oradebug dump controlf 5
    The statement has been processed.
    SQL>

    grep "PARTITION"
    [oracle @ dhcp - cn - 10 - 182 - 210 - 9 ~] $
    [oracle @ dhcp - cn - 10 - 182 - 210 - 9 ~] $
    [oracle @ dhcp - cn - 10 - 182 - 210 - 9 ~] $ cat / u 01 /app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_32505.trc | grep partition

  • 相关阅读:
    紫书 例题 9-2 UVa 437 ( DAG的动态规划)
    紫书 例题 9-1 UVa 1025 ( DAG的动态规划)
    紫书 习题 10-44 UVa 11246 ( 容斥原理)
    2018 NOIP备战计划
    紫书 习题 10-32 UVa 1414 ( 迷之规律)
    HBase简介(很好的梳理资料)
    几种必知的oracle结构图
    hadoop之eclipse环境的配置
    ant&mvn的使用总结
    hadoop2.2.0安装
  • 原文地址:https://www.cnblogs.com/gaojian/p/7625489.html
Copyright © 2011-2022 走看看