Threading in Pl/SQL [message #271885] |
Wed, 03 October 2007 05:07 |
saravanan_nitt
Messages: 31 Registered: October 2007 Location: Bangalore
|
Member |
|
|
hi all,
I am a new to this forum.
any one help me in using multi threaded programming in pl/sql block. First is that possible to do threading in plsql,
if so then explain me how to achieve that.
Thanks in advance.
[mod-edit] illiterate IM speak removed.
[Updated on: Wed, 03 October 2007 08:03] by Moderator Report message to a moderator
|
|
|
|
|
|
|
Re: Threading in Pl/SQL [message #272618 is a reply to message #272616] |
Fri, 05 October 2007 13:42 |
Frank
Messages: 7901 Registered: March 2000
|
Senior Member |
|
|
Running processes in parallel might cause locking problems, although the splitting mechanism should take this into account.
Deadlocking however, should NEVER happen. It is the result of a poor locking strategy.
|
|
|
|
Re: Threading in Pl/SQL [message #272631 is a reply to message #272624] |
Fri, 05 October 2007 14:35 |
Frank
Messages: 7901 Registered: March 2000
|
Senior Member |
|
|
Deadlocks are a result of poor locking strategy and nothing else.
You should always lock tables in a certain order, starting at a given level.
If every process applies to that rule, you will not see any deadlocks ever.
It is not a coincidence that a deadlock is logged in the alert-log, that is because it is something that is a critical error and should never occur.
|
|
|
|
Re: Threading in Pl/SQL [message #273173 is a reply to message #272638] |
Tue, 09 October 2007 06:06 |
saravanan_nitt
Messages: 31 Registered: October 2007 Location: Bangalore
|
Member |
|
|
hi....
i little busy, with my job...
thanks for the response.
actually one of my friend in TCS
worked on threading concept for pl/sql block.
, provide sample code or tutorial for the above specified one.
Thanks...
[mod-edit] removed illiterate IM speak.
[Updated on: Tue, 09 October 2007 12:27] by Moderator Report message to a moderator
|
|
|
|
|
Re: Threading in Pl/SQL [message #274114 is a reply to message #273333] |
Sat, 13 October 2007 23:32 |
ravichandran_123
Messages: 13 Registered: October 2007 Location: Bangalore
|
Junior Member |
|
|
If you are planning to process the data in multi-threading, you can divide the transactions in to different sets and run the sets parallely from Unix in different threads using "nohup".
Ravi
|
|
|
|
Re: Threading in Pl/SQL [message #274118 is a reply to message #274114] |
Sun, 14 October 2007 01:14 |
Frank
Messages: 7901 Registered: March 2000
|
Senior Member |
|
|
What would be the benefit of using the OS to do parallel processing, when
- your database code needs to be aware of the fact that it is run in parallel
- you have to use the database to be able to divide the load
- it is very possible/plausible that nothing in the application is started directly from the unix prompt
- the database is very capable of doing it
|
|
|
|