Home » SQL & PL/SQL » SQL & PL/SQL » Oracle Lock (Oracle 10g)
Oracle Lock [message #650645] Thu, 28 April 2016 11:26 Go to next message
prashant_ora
Messages: 196
Registered: July 2010
Senior Member
Hi,

I have a one job which where insert and update in the table "A" through loop and after every dml commit executes and the same time other jobs run which is required the same data from table "A" When we select data from table A and insert the record in table B
it hangs and after 60 minute the insertion complete.

How to get the data from table A and insert into B in the running process. Please suggest.

Thanks
Prashant
Re: Oracle Lock [message #650646 is a reply to message #650645] Thu, 28 April 2016 11:42 Go to previous messageGo to next message
Michel Cadot
Messages: 68645
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Your analyze is wrong. Reads never block writes; writes never block reads.
Your design is also wrong.

Re: Oracle Lock [message #650647 is a reply to message #650645] Thu, 28 April 2016 11:43 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
You have tables. We don't
You have data. We don't
You have code. We don't

Why do you expect us to solve your problem when you provide ZERO useful details?

Please read and follow the forum guidelines, to enable us to help you:
OraFAQ Forum Guide
How to use {code} tags and make your code easier to read
Re: Oracle Lock [message #650649 is a reply to message #650646] Thu, 28 April 2016 11:52 Go to previous messageGo to next message
prashant_ora
Messages: 196
Registered: July 2010
Senior Member
Yes It does not block,but in our case it hangs. Table A has a clob column where we insert record and in the same time we run this dml
"insert into table B SELECT * FROM A" and it hangs.
Re: Oracle Lock [message #650650 is a reply to message #650649] Thu, 28 April 2016 11:55 Go to previous messageGo to next message
Michel Cadot
Messages: 68645
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Quote:
Table A has a clob column


Ah ah, you hide important information.
Post what BlackSwan asked: complete DDL for tables, indexes and so on, complete set of involved SQL statements.

Re: Oracle Lock [message #650651 is a reply to message #650649] Thu, 28 April 2016 12:02 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
prashant_ora wrote on Thu, 28 April 2016 09:52
Yes It does not block,but in our case it hangs. Table A has a clob column where we insert record and in the same time we run this dml
"insert into table B SELECT * FROM A" and it hangs.


How can we reproduce what you report?
do NOT tell us what you think you see.
SHOW US using COPY & PASTE!
Re: Oracle Lock [message #650652 is a reply to message #650651] Thu, 28 April 2016 12:28 Go to previous message
Bill B
Messages: 1971
Registered: December 2004
Senior Member
If table A and table B have to have the same data, is there a reason you can't make B a synonym for A and then you actually only have one table that both applications will use. We need more information.
Previous Topic: Dynamic selection of data in query
Next Topic: Update Query
Goto Forum:
  


Current Time: Wed Apr 24 11:02:14 CDT 2024