A global temporary table defined with ON COMMIT PRESERVE ROWS retains its rows for the session, but its data is visible only to the session that inserted it. The first insert binds the session to the table; a bound session cannot perform DDL such as DROP TABLE or ALTER TABLE. A TRUNCATE unbinds a session-specific temporary table, allowing it to be dropped afterward. Oracle Database does not permit foreign key constraints on temporary tables, and it truncates the session-specific rows when the session terminates.
Community Discussion