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:Strangeness with PL/SQL and ProC

Re:Strangeness with PL/SQL and ProC

From: <dgoulet_at_vicr.com>
Date: Wed, 13 Mar 2002 00:13:30 -0800
Message-ID: <F001.00426920.20020313001330@fatcity.com>


Lee,

    Stop a minute and take a look at what your doing. I assume that when the process was pure PRO*C there must have been a pile of communication between the database and the program. This communication, even if done by IPC takes time. Now when you re-code it in PL/SQL there is no reason for process to database communication, hence it takes less time. Allow me to provide an illustration:

    We had a OCI program that would load tester data from NT shares every morning into our Unix based database. Normally this process took around 8 to 10 hours to run. When MicroSoft OS/2 died several years ago yours truly ported the program from OS/2 to NT in the process re-coding it in PRO*C. Now since paramaterization of SQL was not the original authors forte, the program started running a little faster, but still 6 to 8 hours. Now comes Y2K, a new server & database evrsion & some normalization takes place resulting in a new database design. When I reviewed the program I note that there were a number of back and forth communication requirements that were in the original. It took something like 5 round trips to the database for queries to decide if we were going to insert a new record or update an existing one. Well, I took all of that code out of PRO*C, re-coded it as a PL/SQL package and today that same program runs in a little over 1 hour with one round trip from the client to the database.

Dick Goulet

____________________Reply Separator____________________
Author: Robertson Lee - lerobe <lerobe_at_acxiom.co.uk>
Date:       3/8/02 2:03 AM

> Oracle 8.0.5.0.0
> Tru64 4.0f
>
> We have a process running here and without going into the detail of it we
> have a Pro C program that is taking ages to run updates and selects (2
> hours to do 10000 records). The program was changed to PL/SQL and we
> suddenly were seeing 5 million records processed in 1 hour.
>
> Is PL/SQL that much faster than Pro C. Can somone more in the know give
> me some hints ??
>
> TIA
>
> Lee
>
>

The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please re-send this communication to the sender and delete the original message or any copy of it from your computer system.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Robertson Lee - lerobe
  INET: lerobe_at_acxiom.co.uk

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: dgoulet_at_vicr.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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).


Content-Type: text/plain; name="ReadMe.txt"; charset="us-ascii" Content-Transfer-Encoding: 7bit The previous attachment was filtered out by the ListGuru mailing software at fatcity.com because binary attachments are not appropriate for mailing lists. If you want a copy of the attachment which was removed, contact the sender directly and ask for it to be sent to you by private E-mail. This warning is inserted into all messages containing binary attachments which have been removed by ListGuru. If you have questions about this message, contact Postmaster_at_fatcity.com for clarification. ------_=_NextPart_001_01C1C75E.30A41F00-- -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: dgoulet_at_vicr.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- 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 Wed Mar 13 2002 - 02:13:30 CST

Original text of this message

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