Oracle暫存資料表(Temporary Table)

來源:互聯網
上載者:User

標籤:

GLOBAL TEMPORARY代表全域暫存資料表
暫存資料表的中繼資料存放區在資料字典裡面

只當第一條DML命令發生的時候才為這張表的段分配空間

暫存資料表資料的可見範圍應該是會話層級或是事務層級的

會話或者事務層級又建表時的ON COMMIT關鍵字決定,ON COMMIT DELETE ROWS代表事務層級,ON COMMIT PERSERVE ROWS代表會話層級

DDL命令只在暫存資料表與會話斷開綁定之後才可以運行

對於會話層級,當TRUNCATE命令發生時會話與暫存資料表間的綁定也就斷開了;而對於事務層級,在ROLLBACK或者COMMIT

Oracle暫存資料表的一些限制:
■ Temporary tables cannot be partitioned, clustered, or index organized.
■ You cannot specify any foreign key constraints on temporary tables.
■ Temporary tables cannot contain columns of nested table.
■ You cannot specify the following clauses of the LOB_storage_clause:
TABLESPACE, storage_clause, or logging_clause.
■ Parallel UPDATE, DELETE and MERGE are not supported for temporary tables.
■ You cannot specify the nested_table_col_properties or parallel_
clause.
■ The only part of the segment_attributes_clause you can specify for a
temporary table is TABLESPACE.
■ Distributed transactions are not supported for temporary tables.

Oracle暫存資料表(Temporary Table)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.