A global temporary table’s definition is visible to multiple sessions with appropriate privileges, whereas its rows are visible only to the session that inserted them. A TRUNCATE in a session removes that session’s rows, and temporary-table rows are removed when the session ends. Oracle allocates temporary-table segment space on the first DML operation rather than at session start; DELETE remains transactional and can be rolled back.
Community Discussion