[Oracle][Partition][Controlfile]Partition 操作是否和 Controlfile有關?

來源:互聯網
上載者:User

標籤:dump   art   oracle   pid   efi   實驗   cat   case   stc   

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

[Oracle][Partition][Controlfile]Partition 操作是否和 Controlfile有關?

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.