dbTalk Databases Forums  

Oracle Snapshot

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Oracle Snapshot in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
enigma
 
Posts: n/a

Default Oracle Snapshot - 11-08-2006 , 05:27 AM






Hi,

I'm trying to test the oracle snapshot but failing to do so. I have a
test database with a table called RT_MANUFACTURER. I created a
materialized view using:

CREATE MATERIALIZED VIEW LOG ON RT_MANUFACTURER;

Then i tried to create a snapshot of that table using:

create materialized view snpp refresh fast start with sysdate
next sysdate + 1/14400 as select * from RT_MANUFACTURER;

to check if it worked, i entered this element in my table:

INSERT INTO RT_MANUFACTURER (ID,NAME) VALUES (8888, 'please work');

waited alot of time, then tried

select * from snpp where ID = 8888;
nothing returns...

could anyone tell me what else should i do?

Thanks


Reply With Quote
  #2  
Old   
What's in a namespace
 
Posts: n/a

Default Re: Oracle Snapshot - 11-08-2006 , 09:56 AM







"enigma" <mabounajm (AT) gmail (DOT) com> schreef in bericht
news:1162985275.056327.259900 (AT) f16g2000cwb (DOT) googlegroups.com...
Quote:
Hi,

I'm trying to test the oracle snapshot but failing to do so. I have a
test database with a table called RT_MANUFACTURER. I created a
materialized view using:

CREATE MATERIALIZED VIEW LOG ON RT_MANUFACTURER;

Then i tried to create a snapshot of that table using:

create materialized view snpp refresh fast start with sysdate
next sysdate + 1/14400 as select * from RT_MANUFACTURER;

to check if it worked, i entered this element in my table:

INSERT INTO RT_MANUFACTURER (ID,NAME) VALUES (8888, 'please work');

waited alot of time, then tried

select * from snpp where ID = 8888;
nothing returns...

could anyone tell me what else should i do?

Thanks

Did you commit?




Reply With Quote
  #3  
Old   
enigma
 
Posts: n/a

Default Re: Oracle Snapshot - 11-08-2006 , 10:55 AM



lol No!
Thanks alot
That was it.

What's in a namespace wrote:
Quote:
"enigma" <mabounajm (AT) gmail (DOT) com> schreef in bericht
news:1162985275.056327.259900 (AT) f16g2000cwb (DOT) googlegroups.com...
Hi,

I'm trying to test the oracle snapshot but failing to do so. I have a
test database with a table called RT_MANUFACTURER. I created a
materialized view using:

CREATE MATERIALIZED VIEW LOG ON RT_MANUFACTURER;

Then i tried to create a snapshot of that table using:

create materialized view snpp refresh fast start with sysdate
next sysdate + 1/14400 as select * from RT_MANUFACTURER;

to check if it worked, i entered this element in my table:

INSERT INTO RT_MANUFACTURER (ID,NAME) VALUES (8888, 'please work');

waited alot of time, then tried

select * from snpp where ID = 8888;
nothing returns...

could anyone tell me what else should i do?

Thanks


Did you commit?


Reply With Quote
  #4  
Old   
DA Morgan
 
Posts: n/a

Default Re: Oracle Snapshot - 11-08-2006 , 11:04 AM



enigma wrote:
Quote:
Hi,

I'm trying to test the oracle snapshot but failing to do so. I have a
test database with a table called RT_MANUFACTURER. I created a
materialized view using:

CREATE MATERIALIZED VIEW LOG ON RT_MANUFACTURER;

Then i tried to create a snapshot of that table using:

create materialized view snpp refresh fast start with sysdate
next sysdate + 1/14400 as select * from RT_MANUFACTURER;

to check if it worked, i entered this element in my table:

INSERT INTO RT_MANUFACTURER (ID,NAME) VALUES (8888, 'please work');

waited alot of time, then tried

select * from snpp where ID = 8888;
nothing returns...

could anyone tell me what else should i do?

Thanks

Look at the demos in Morgan's Library at www.psoug.org under
Materialized Views. A little cutting and pasting will give you working
demos you can then modify for your use.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #5  
Old   
What's in a namespace
 
Posts: n/a

Default Re: Oracle Snapshot - 11-08-2006 , 02:58 PM




"DA Morgan" <damorgan (AT) psoug (DOT) org> schreef in bericht
news:1163005466.280658 (AT) bubbleator (DOT) drizzle.com...
Quote:
enigma wrote:
Hi,

I'm trying to test the oracle snapshot but failing to do so. I have a
test database with a table called RT_MANUFACTURER. I created a
materialized view using:

CREATE MATERIALIZED VIEW LOG ON RT_MANUFACTURER;

Then i tried to create a snapshot of that table using:

create materialized view snpp refresh fast start with sysdate
next sysdate + 1/14400 as select * from RT_MANUFACTURER;

to check if it worked, i entered this element in my table:

INSERT INTO RT_MANUFACTURER (ID,NAME) VALUES (8888, 'please work');

waited alot of time, then tried

select * from snpp where ID = 8888;
nothing returns...

could anyone tell me what else should i do?

Thanks


Look at the demos in Morgan's Library at www.psoug.org under
Materialized Views. A little cutting and pasting will give you working
demos you can then modify for your use.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Or a simple commit will do too.....

Shakespeare
(ns.oracle.com is still down...;-)




Reply With Quote
  #6  
Old   
What's in a namespace
 
Posts: n/a

Default Re: Oracle Snapshot - 11-08-2006 , 02:59 PM



Grinn ;-)
You're not the first at will definitely not be the last.....


"enigma" <mabounajm (AT) gmail (DOT) com> schreef in bericht
news:1163004919.180586.114160 (AT) e3g2000cwe (DOT) googlegroups.com...
Quote:
lol No!
Thanks alot
That was it.

What's in a namespace wrote:
"enigma" <mabounajm (AT) gmail (DOT) com> schreef in bericht
news:1162985275.056327.259900 (AT) f16g2000cwb (DOT) googlegroups.com...
Hi,

I'm trying to test the oracle snapshot but failing to do so. I have a
test database with a table called RT_MANUFACTURER. I created a
materialized view using:

CREATE MATERIALIZED VIEW LOG ON RT_MANUFACTURER;

Then i tried to create a snapshot of that table using:

create materialized view snpp refresh fast start with sysdate
next sysdate + 1/14400 as select * from RT_MANUFACTURER;

to check if it worked, i entered this element in my table:

INSERT INTO RT_MANUFACTURER (ID,NAME) VALUES (8888, 'please work');

waited alot of time, then tried

select * from snpp where ID = 8888;
nothing returns...

could anyone tell me what else should i do?

Thanks


Did you commit?




Reply With Quote
  #7  
Old   
enigma
 
Posts: n/a

Default Re: Oracle Snapshot - 11-09-2006 , 03:36 AM



So after being able to create a 'working' snapshot, i became curious to
know more about commit.

Why is it that when i insert into the master table, I can see my
results (before doing the commit), but the snapshot can't.. Put in
another way, why is the date available to my session before it is
available to everyone?

just for convenience? so that i see what my statements produce? or is
there another technical reason i'm unaware of?

Thanks again!

Mazen

What's in a namespace wrote:
Quote:
Grinn ;-)
You're not the first at will definitely not be the last.....


"enigma" <mabounajm (AT) gmail (DOT) com> schreef in bericht
news:1163004919.180586.114160 (AT) e3g2000cwe (DOT) googlegroups.com...
lol No!
Thanks alot
That was it.

What's in a namespace wrote:
"enigma" <mabounajm (AT) gmail (DOT) com> schreef in bericht
news:1162985275.056327.259900 (AT) f16g2000cwb (DOT) googlegroups.com...
Hi,

I'm trying to test the oracle snapshot but failing to do so. I have a
test database with a table called RT_MANUFACTURER. I created a
materialized view using:

CREATE MATERIALIZED VIEW LOG ON RT_MANUFACTURER;

Then i tried to create a snapshot of that table using:

create materialized view snpp refresh fast start with sysdate
next sysdate + 1/14400 as select * from RT_MANUFACTURER;

to check if it worked, i entered this element in my table:

INSERT INTO RT_MANUFACTURER (ID,NAME) VALUES (8888, 'please work');

waited alot of time, then tried

select * from snpp where ID = 8888;
nothing returns...

could anyone tell me what else should i do?

Thanks


Did you commit?



Reply With Quote
  #8  
Old   
DA Morgan
 
Posts: n/a

Default Re: Oracle Snapshot - 11-09-2006 , 10:30 AM



enigma wrote:
Quote:
So after being able to create a 'working' snapshot, i became curious to
know more about commit.

Why is it that when i insert into the master table, I can see my
results (before doing the commit), but the snapshot can't.. Put in
another way, why is the date available to my session before it is
available to everyone?

just for convenience? so that i see what my statements produce? or is
there another technical reason i'm unaware of?

Thanks again!

Mazen

What's in a namespace wrote:
Grinn ;-)
You're not the first at will definitely not be the last.....


"enigma" <mabounajm (AT) gmail (DOT) com> schreef in bericht
news:1163004919.180586.114160 (AT) e3g2000cwe (DOT) googlegroups.com...
lol No!
Thanks alot
That was it.

What's in a namespace wrote:
"enigma" <mabounajm (AT) gmail (DOT) com> schreef in bericht
news:1162985275.056327.259900 (AT) f16g2000cwb (DOT) googlegroups.com...
Hi,

I'm trying to test the oracle snapshot but failing to do so. I have a
test database with a table called RT_MANUFACTURER. I created a
materialized view using:

CREATE MATERIALIZED VIEW LOG ON RT_MANUFACTURER;

Then i tried to create a snapshot of that table using:

create materialized view snpp refresh fast start with sysdate
next sysdate + 1/14400 as select * from RT_MANUFACTURER;

to check if it worked, i entered this element in my table:

INSERT INTO RT_MANUFACTURER (ID,NAME) VALUES (8888, 'please work');

waited alot of time, then tried

select * from snpp where ID = 8888;
nothing returns...

could anyone tell me what else should i do?

Thanks

Did you commit?

1. Please do not top post in this group. Scroll to the bottom
to reply.

2. Because until there is a committed transaction ... for purposes of a
materialized view ... nothing has happened. If you want the other
behaviour than you just want a regular view.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.