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

testing tools?

1920


What are the Standard Reports and Forms in HRMS?

1910


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

2060


What is the concept of soa governance?

943


what are the balancing segments in AR?

1799






please send me forms, xml pulisher questions,answers

1836


can we use look up type instead of a pofile option?or valueset?is it possible how?

1924


How do you register report in oracle apps?

792


what are the prerequisites for costing transactions?

2816


What do you understand by a set of books?

780


tell my any difficult situtation you solved in your experience in your company?

2028


In which tables receopt application form Appliy to field Value will come. I know one table i.e, ra_customer_trx.trx_number. Could U please any one tell me other than this except(ra_customer_trx and ar_payment_schedules_all tables). plz mentioned tables_name.Column_name.

2696


What is oracle soa suite?

914


Pls tel me the best text book for Oracle Apps 11i Tech? & I want D2K Text book also?

1834


Hi, Anybody please send me the Oracle APPS 1i technical interview questions (Real time) as wel as sample resume also?

2313