Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: has anyone used threads to parallelize bulk loads?

RE: has anyone used threads to parallelize bulk loads?

From: Jamadagni, Rajendra <Rajendra.Jamadagni_at_espn.com>
Date: Sun, 31 Aug 2003 06:39:27 -0800
Message-ID: <F001.005CE55B.20030831063927@fatcity.com>


Ryan,  

one word ... dbms_alert ... you'll love it.  

Raj
-----Original Message-----
Sent: Saturday, August 30, 2003 5:54 PM
To: Multiple recipients of list ORACLE-L

id like the wait, notify because when parts of a load end, I need to kick off other parts. you know any good sources on this? we are using 8i at work. So I cant use the recommendations that tim made.  

whenever i do a google search on pthreads, I get a ton of results and cant find good ones with examples. any suggestions?

Why dbms_job at all? Just create as many sqlplus sessions as you want using nohup in your database and execute your procedures from there. You can still use dbms_lock, dbms_alert and dbms_pipe that way. Pthreads or IPC & stuff is probably overkill if you don't need synchronization outside the database. If you still want to go that way, then you'd probably want to ask this question in some programming related forums instead of sysadmin's or Oracles.  

Tanel.

I find this useful when I have large loads with alot of small to medium sized DML statements. Instead of running them serially I use DBMS_JOB and break them up into pieces.  

DBMS_JOB is limiting in that it can only do 36 at once per instance. If I want to do more, Id have to do it outside the database. I have read about unix 'pthreads'. These appear to have the same wait,notify,synchronize interface that java has. Im also on Solaris.  

Has anyone done anything like this? Any features on Solaris that I can use? I know solaris has some built-in low level C functions to handle locking(such as a mutex script). Any idea of some sources I can use to look this up?  

I dont need this for work right now, but I may need it in the future, so I want to play around with it. Or do I have to take this to a unix sys admin forum? If so anyone know any good ones?  

Threading interfaces seem to be very similiar across platforms. In oracle you achieve the same thing with dbms_job,dbms_lock,and dbms_alert.  

anyone got any scripts or experience with this? This is not essential. Im just playing around.


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jamadagni, Rajendra
  INET: Rajendra.Jamadagni_at_espn.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Received on Sun Aug 31 2003 - 09:39:27 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US