Unix Technical Forum

Get the line numbers parsed

This is a discussion on Get the line numbers parsed within the Oracle Miscellaneous forums, part of the Oracle Database category; --> HI I have a plsql program that spans 1000 lines. it executes successfully but is working wrong. As it ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 10:14 AM
Junkone
 
Posts: n/a
Default Get the line numbers parsed

HI
I have a plsql program that spans 1000 lines. it executes successfully
but is working wrong. As it has a few dozen conditinal statements. how
do i cache the parsing of the program so that i can know the path the
program took
for eg.
i need to know that the program moved from
Line 1
Line 2
Line 3
Jumped to Line 10
LIne 11
Line 12
Jumped to Line 15

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 10:14 AM
Brian Peasland
 
Posts: n/a
Default Re: Get the line numbers parsed

Junkone wrote:
> HI
> I have a plsql program that spans 1000 lines. it executes successfully
> but is working wrong. As it has a few dozen conditinal statements. how
> do i cache the parsing of the program so that i can know the path the
> program took
> for eg.
> i need to know that the program moved from
> Line 1
> Line 2
> Line 3
> Jumped to Line 10
> LIne 11
> Line 12
> Jumped to Line 15
>


The DBMS_TRACE package lets you trace execution of a PL/SQL program.
This package is kind of clunky, so I prefer to use SQL Developer
(available for free from http://technet.oracle.com) to do this type of
PL/SQL debugging.

HTH,
Brian

--
================================================== =================

Brian Peasland
dba@nospam.peasland.net
http://www.peasland.net

Remove the "nospam." from the email address to email me.


"I can give it to you cheap, quick, and good.
Now pick two out of the three" - Unknown
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 10:14 AM
DA Morgan
 
Posts: n/a
Default Re: Get the line numbers parsed

Junkone wrote:
> HI
> I have a plsql program that spans 1000 lines. it executes successfully
> but is working wrong. As it has a few dozen conditinal statements. how
> do i cache the parsing of the program so that i can know the path the
> program took
> for eg.
> i need to know that the program moved from
> Line 1
> Line 2
> Line 3
> Jumped to Line 10
> LIne 11
> Line 12
> Jumped to Line 15


There is a demo of DBMS_TRACE in Morgan's Library at www.psoug.org.
Alternatively you can use Locator Variables such as those demonstrated
on the Exception Handling page. Scroll down to the "Locator Variables."

--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:24 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com