The Content of a Global Temporary Table is Deleted When Another Table is Truncated From the Same Session (Doc ID 1334454.1)

Last updated on DECEMBER 06, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 8.0.3.0 and later
Information in this document applies to any platform.

Goal

This document describes what happens to a Global Temporary Table when a DDL command is used in the same session.

It explains, for instance, why a Global Temporary Table is emptied when a table - even though it is another - is truncated within the same session.

Please note that this is standard behavior as also documented in
  Oracle® Database Administrator's Guide
  11g Release 2 (11.2)
  Part Number E17120-11
  http://download.oracle.com/docs/cd/E11882_01/server.112/e17120/tables003.htm#ADMIN11633

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms