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: SQL in PL/SQL Loop

RE: SQL in PL/SQL Loop

From: Polarski, Bernard <Bernard.Polarski_at_atosorigin.com>
Date: Thu, 19 Oct 2006 15:09:30 +0200
Message-ID: <25D4919915CCF742A88EE3366D6D913D0FB9F9C4@mailserver1>


The only 'small' problem is that you need to modify the PL/SQL code to profile. On production system it is just be a problem and unhapilly this is the place where there is the most load, so the more uses for a profiler.  

I would like that Oracle implements something like the set trace in session for DBMS_PROFILER, based on username or SID and package name:  

DBMS_PROFILER.set_profile_in_session(SID , <PACKAGE_NAME>)
DBMS_PROFILER.set_profile_for_username(<USERNAME> , <PACKAGE_NAME>)
DBMS_PROFILER.set_profile_for_MODULE(<MODULE_NAME> , <PACKAGE_NAME>)
 

Retrieve trace in UDUMP.  

Maybe next version.  

bp


From: Ric Van Dyke [mailto:ric.van.dyke_at_hotsos.com] Sent: Thursday, 19 October, 2006 12:45 PM To: arvind.kumar2_at_siemens.com
Cc: oracle-l_at_freelists.org
Subject: RE: SQL in PL/SQL Loop

You may want to try to profile the run on the block with DBMS_PROFILER to see where the time is going.  

Check the PL/SQL Packages and Types Reference and the PL/SQL User's Guide and Reference guides for details on the package, also see Metalink Support Note 243755.1 for a nifty little report script.  

Ric Van Dyke

Hotsos Enterprises


--

http://www.freelists.org/webpage/oracle-l Received on Thu Oct 19 2006 - 08:09:30 CDT

Original text of this message

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