You can lock a table
After mode you can put an additional clause of NOWAIT depending upon your need, like LOCK TABLE table IN EXCLUSIVE MODE NOWAIT
After you issue a commit on this table, the lock would be released.
Hope this helps.
With Warm Regards Siddharth Haldankar Cisco Systems Inc. ODC Zensar Technologies Ltd. # : 4128374 [EMAIL PROTECTED] [EMAIL PROTECTED] -----Original Message-----
Dear List:
How can I lock and then unlock a table? A SP only runs about 2 sec, but during its execution, sometimes there are more records saved to the table the SP is working on, then the SP confused. I want to be able to lock a table while the SP is executing, and then by the end, release the lock. Is there a way to do this? How? Can any one give me an example?
Thanks
Steven Do you Yahoo!? |
- How to Lock and unlock a table until SP completes WLSH
- Re: How to Lock and unlock a table until SP compl... Peter . McLarty
- Re: How to Lock and unlock a table until SP compl... rgaffuri
- Re: How to Lock and unlock a table until SP compl... Siddharth Haldankar
- Re: How to Lock and unlock a table until SP compl... Tanel Poder
- Re: Re: How to Lock and unlock a table until SP c... rgaffuri
- Re: How to Lock and unlock a table until SP compl... Joe Testa
- RE: Re: How to Lock and unlock a table until SP c... Farnsworth, Dave
- Re: Re: How to Lock and unlock a table until SP c... WLSH
- Re: How to Lock and unlock a table until SP compl... WLSH