Overview of Temporary Tables

temporary table holds data that exists only for the duration of a transaction or session.

cisco certification malaysia

Data in a temporary table is private to the session. Each session can only see and modify its own data.

checkpoint certification malaysia

You can create either a global temporary table or a private temporary table. The following table shows the essential differences between them.

aws certification malaysia

Table 2-5 Temporary Table Characteristics

CharacteristicGlobalPrivate
Naming rulesSame as for permanent tablesMust be prefixed with ORA$PTT_
Visibility of table definitionAll sessionsOnly the session that created the table
Storage of table definitionDiskMemory only
TypesTransaction-specific (ON COMMIT DELETE ROWS) or session-specific (ON COMMIT PRESERVE ROWS)Transaction-specific (ON COMMIT DROP DEFINITION) or session-specific (ON COMMIT PRESERVE DEFINITION)

A third type of temporary table, known as a cursor-duration temporary table, is created by the database automatically for certain types of queries.

virtualization training courses malaysia

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *