?
Solved

tables in memory ram oracle 10gr2

Posted on 2007-12-06
4
Medium Priority
?
1,848 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 1000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…

719 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