Ingres Community Forums Login Register Ingres.com  

Ingres Community Forum


Go Back   Ingres Community Forums > Ingres Forums > Migration Forum
 

Reply
 
LinkBack Thread Tools Display Modes
Old 2010-03-08   #1 (permalink)
Junior Member
 
Join Date: Aug 2009
Posts: 3
Default Any oracle equivalent to Lockmode readlock ?

I need to create an oracle database to store off some ingress table archive log information. So in my duplication between the two database systems...

Ingres allows an exclusive lock on tables, set lockmode on tablename where readlock = exclusive which means the users can't access the same
rows that are being modified by another query.

Is there anything in oracle that does the same thing ? All of Oracle's locking seesm to be that you can still read data. And that is what my user is afraid of. He doesn't want to read old data, when it's being changed.

How do you work around this in oracle ?
steffg is offline   Reply With Quote
Old 2010-03-08   #2 (permalink)
Ingres Community
 
kschendel's Avatar
 
Join Date: Mar 2007
Location: Pittsburgh, PA
Posts: 1,230
Send a message via Skype™ to kschendel
Default

I don't pretend to know oracle, but I would look for some sort of "select .. for update" statement.
kschendel is offline   Reply With Quote
Old 2010-03-09   #3 (permalink)
Ingres Community
 
rhann's Avatar
 
Join Date: Mar 2007
Location: roy.hann@rationalcommerce.com
Posts: 434
Blog Entries: 15
Default

Your question isn't very clear and your understanding of READLOCK=EXCLUSIVE isn't quite right, but I think you are asking about how to make sure your Oracle user doesn't do dirty reads on the data you are importing.

You my have better luck asking an Oracle forum, but I believe Oracle works exactly as you would expect. The Oracle user won't see uncommitted data unless they've deliberately relaxed the isolation level to READ UNCOMMITTED.

In a nutshell, it's just not your problem. Just do your update and commit when you're finished (and not before).
__________________
Roy Hann

UK Ingres User Association Conference 2011 will be on Tuesday June 7, 2011. Mark the date in your diary.
rhann is offline   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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


© 2009 Ingres Corporation. All Rights Reserved