A global temporary table has a definition visible to multiple appropriately privileged sessions, while its data is private to the session that inserted it. Its segment is allocated on the first DML operation, not when a session starts. A session-specific global temporary table is truncated when that session terminates, and issuing TRUNCATE in a session removes that session’s rows. DELETE remains transactional and can be rolled back.
Community Discussion