What is GLOBAL TEMPORARY TABLE and It's significance ?

Answer Posted / pradeep

Creation of Global Temporary Tables
The data in a global temporary table is private, such that
data inserted by a session can only be accessed by that
session. The session-specific rows in a global temporary
table can be preserved for the whole session, or just for
the current transaction. The ON COMMIT DELETE ROWS clause
indicates that the data should be deleted at the end of the
transaction.

CREATE GLOBAL TEMPORARY TABLE my_temp_table (
column1 NUMBER,
column2 NUMBER
) ON COMMIT DELETE ROWS;

In contrast, the ON COMMIT PRESERVE ROWS clause indicates
that rows should be preserved until the end of the session.

CREATE GLOBAL TEMPORARY TABLE my_temp_table (
column1 NUMBER,
column2 NUMBER
) ON COMMIT PRESERVE ROWS;

Miscellaneous Features

* If the TRUNCATE statement is issued against a
temporary table, only the session specific data is trucated.
There is no affect on the data of other sessions.
* Data in temporary tables is automatically delete at
the end of the database session, even if it ends abnormally.
* Indexes can be created on temporary tables. The
content of the index and the scope of the index is that same
as the database session.
* Views can be created against temporary tables and
combinations of temporary and permanent tables.
* Temporary tables can have triggers associated with them.
* Export and Import utilities can be used to transfer
the table definitions, but no data rows are processed.
* There are a number of restrictions related to
temporary tables but these are version specific.

Is This Answer Correct ?    19 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which oracle apps version you are very confident in?

695


What do you understand by concurrent programs?

613


What is the concept of soa governance?

760


List the types of flexfield?

596


Can you differentiate between mediator and osb?

621






List the various types of value set.

616


what is pay run id ?

1703


In sequence i want to 11 and 15th values how we will write?

1567


what are the different transaction clauses in AR?

1594


Can we create tables in apps schema?

610


What is count(*) from po_vendors(any table)?

634


How do you register report in oracle apps?

618


tell me the scenarios of the independent in reports

2037


What are do's and dont's of Interface?

1896


WHAT IS CUSTOM VIEW AND CUSTOM COMPONENT?

2585