What is the difference between a Local temporary table and a
Global temporary table? How is each one used?
Answer Posted / tarun kumnar basak
A Local Temporary table is almost the same as the Temporary
table in oracle. The main difference is that in oracle
you've to specify the keyword local in your query and also
Local Temporary table exists only for the user who is
created the table. So no other session can use/see the
temporary table.
Where as GTT is another kind of temporary table in oracle
which is by default the temporary table(if you don't
specify the keyword local). GTT can be used by every
user/schema which is connected to the DB irrespective of
each others session and without knowing what data resides
for a particular user. As soon as you log off from the
server the GTT also deleted. It is more kind of session
specific where the structure of the table is shared among
all users but not the data. Data remains private for each
users session and no Lock can be aquired on the table.
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
What are the default system databases in sql server 2000?
How to define and use table alias names in ms sql server?
what are the steps you will take, if you are tasked with securing an sql server? : Sql server database administration
Explain magic tables in sql server?
What is difference statement and preparedstatement?
What is dbcc updateusage?
Do you know the different ddl commands in sql?
What are the various Operating system files that every SQL server 2005 database has and what is the purpose.
What is change tracking in sql server?
Do you know what is a linked server in sql server?
What is a mutating table error and how can you get around it?
Does union all remove duplicates?
What is the maximum number of instances in 32 bit and 64 bit sql server 2012?
What is the ‘fillfactor’?
How to connect sql server management studio express to sql server 2005 express?