Title: RE: Temporary table

Harvinder, I'm a little confused.  The requirements you describe (up to the last sentence) are a classic example of what Global Temporary Tables are suited for.  The last sentence puzzles me since you would only be creating one GTT before deploying the code, not each time the code runs.  Sessions just create their own private data segments upon the first Insert operation.  These segments are visible only to that session (regardless of the schema used to connect to the database) just like if each one had it's own distinctively-named table.  If you could I'd like to see a follow-up post with more information that shed light on your thought process.

Tony Aponte

-----Original Message-----
From: Harvinder Singh [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 6:35 PM
To: Multiple recipients of list ORACLE-L
Subject: Temporary table


Hi,

In our application we need to create temporary table for life of a session
and drop it after the session.
we need this table to be session specific ...2 sessions connected as same
schema user should be able to create
table with the same name......
for example user1. connected as scott  create table with name tab1..then
user2 connected as scott should also be
able to create table with name tab1...and we want table tab1 to be dropped
as soon as user1 and user2 will discconnect....
We need to populate this temporary table in particular session and use it to
join with other tables and then drop after the session.....
How can we implement this.......
global temporary table does not allow to be created twice in 1 schema..they
r schema specific.......

Thanks
-Harvinder
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Harvinder Singh
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to