Solved

tables in memory ram oracle 10gr2

Posted on 2007-12-06
4
1,847 Views
Last Modified: 2013-12-18
i would like to know it's possible have a table in memory ram
0
Comment
Question by:yerai
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 74

Accepted Solution

by:
sdstuber earned 250 total points
ID: 20419414
yes, they are called "global temporary tables"


create global temporary table my_temp_table
(
    n  number,
    d  date,
    v  varchar2(20)
)
on commit preserve rows;
0
 
LVL 74

Expert Comment

by:sdstuber
ID: 20419445
you can also declare them "on commit delete rows"

the "on commit" settings do just what they sound like and the same action is taken on a rollback.
So,  on commit delete rows,  will also delete the rows when you rollback.

In both cases, the data is lost when the session ends.  Also note,  the data is only visible to the session that creates it.

So, if you insert into the above temp table and I insert into the above temp table,  you only see your data and I only see my data.  Even if we both commit.
0

Featured Post

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question