dbTalk Databases Forums  

Updating while joining

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


Discuss Updating while joining in the comp.databases.oracle.misc forum.



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

Default Updating while joining - 08-17-2009 , 06:02 AM






Hi
I am joining three tables a,b,c of which b and c are really large
( 20 million+ records). The join is running and in the mean time I am
updating some rows in the table b and c. Will my join reflect the
newly updated data in b and c?
Will the join complete successfully?

Thanks
Saravanan

Reply With Quote
  #2  
Old   
Ed Prochak
 
Posts: n/a

Default Re: Updating while joining - 08-17-2009 , 08:00 AM






On Aug 17, 7:02*am, Saravanan <vsr.sarava... (AT) gmail (DOT) com> wrote:
Quote:
Hi
* *I am joining three tables a,b,c of which b and c are really large
( 20 million+ records). The join is running and in the mean time I am
updating some rows in the table b and c. Will my join reflect the
newly updated data in b and c?
Will the join complete successfully?

Thanks
Saravanan
Two sessions, so two views of the data. If the join started before the
update is committed, then it will NOT see the update.

Do you understand the relational database concept of transactions?
Oracle is not a file system. It is a Relational Database management
System (RDBMS).
Ed

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

Default Re: Updating while joining - 08-17-2009 , 08:41 AM



On Aug 17, 6:00*pm, Ed Prochak <edproc... (AT) gmail (DOT) com> wrote:
Quote:
On Aug 17, 7:02*am, Saravanan <vsr.sarava... (AT) gmail (DOT) com> wrote:

Hi
* *I am joining three tables a,b,c of which b and c are really large
( 20 million+ records). The join is running and in the mean time I am
updating some rows in the table b and c. Will my join reflect the
newly updated data in b and c?
Will the join complete successfully?

Thanks
Saravanan

Two sessions, so two views of the data. If the join started before the
update is committed, then it will NOT see the update.

Do you understand the relational database concept of transactions?
Oracle is not a file system. It is a Relational Database management
System (RDBMS).
* Ed
Thanks Ed.

Reply With Quote
  #4  
Old   
Tim X
 
Posts: n/a

Default Re: Updating while joining - 08-18-2009 , 05:15 AM



Saravanan <vsr.saravanan (AT) gmail (DOT) com> writes:

Quote:
Hi
I am joining three tables a,b,c of which b and c are really large
( 20 million+ records). The join is running and in the mean time I am
updating some rows in the table b and c. Will my join reflect the
newly updated data in b and c?
Will the join complete successfully?

Thanks
Saravanan
The join should complete, but it will not show the updated data if the
join started prior to the updates being committed.

Have a look at the oracle concepts manual on Oracle's read consistency
model.
--
tcross (at) rapttech dot com dot au

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.