Oracleオンライン再定義Online Redefinitionによる履歴データのクリーンアップ
2182 ワード
しかしOnline Redefinitionは、テーブル上の履歴データのクリーンアップ(データ更新updateでもサポート)をサポートしていないため、大量のデータが格納され、パーティションがない大きなテーブルにとって履歴データのクリーンアップは非常に頭が痛い作業であり、特に7*24がラインオフできない環境では、CTASまたはINSERT APPEND+NOLOGGINGを使用してテーブルを再構築することはできませんが、最も原始的なDELETE DMLしか使用できません.DELETEの動作が遅いことを知っています(前に述べた方法に比べて、実際の世界ではDELETEの効率はINDEX clustering_factor集計因子などの要因の影響を受けて遅く見えます.
create table order_history
(
order_id number primary key,
issue_date date ,
location varchar2(200),
amount number,
maclean varchar2(200),
QUANTITY_SOLD number,
PROMO_ID number,
CUST_ID number,
CHANNEL_ID number) tablespace users pctfree 0;
SQL> select count(*) from ORDER_HISTORY;