Nonstop Database, HiRDB Version 9 Installation and Design Guide
A temporary table is a base table that exists only during a transaction or an SQL session. A temporary table that exists only during a transaction is called a transaction-specific temporary table, and a table that exists only during an SQL session is called a SQL session-specific temporary table.
Temporary tables are not created when the table is defined. A temporary table is created when the first INSERT statement for the table is executed. This is called instantiating a temporary table.
A temporary table is created for each connection that is established for a single table definition (by executing the CONNECT statement). Therefore, a temporary table is not affected by data operations (SELECT, INSERT, UPDATE, and DELETE statements) by another user even when multiple users use temporary tables at the same time. A temporary table and the indexes defined for the temporary table (temporary table index) are stored in a temporary table RDAREA and are deleted automatically when the transaction is completed or the SQL session is terminated. For details about temporary table RDAREAs, see 14.7 Temporary table RDAREAs.
The following figure provides an overview of temporary tables.
Figure 12-46 Overview of temporary tables
All Rights Reserved. Copyright (C) 2012, 2015, Hitachi, Ltd.