What is GLOBAL TEMPORARY TABLE and It's significance ?
Answers were Sorted based on User's Feedback
Answer / 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 |
how can we return morethan one parameters in procedure?
In a Standard form a DFF is disable?How we can Enable it?
What r the validation types?
what is meant by lexical parameter
A file has both header and corresponding lines. Explain design to load this data into respective interface tables.
explain registration steps of a concurrent program.
what is back order in OM
i have 3 parameters like p1,p2,p3.In p1 i have 2 parameters like a,b.if pass parameter 'a' p2 should be enable and p3 should be disable then if pass parameter 'b' the vice versa.
1 Answers IBM, Sierra Atlantica,
Do you know what are user profiles in apps. Any examples you can give?
Is it is necessary to create P_CONC_REQUEST_ID parameter in the development of oracle apps reports
what are stock locators and how to define them? name the tables where the stock locator information is stored. at least two.
how to move the one file from one instance to another instance?and ur scripts also?