GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle  >  PL/SQL
Go To First  |  Previous Question  |  Next Question 
 PL/SQL  |  Question 231 of 241    Print  
Debug PL/SQL Code
How will you debug PL/SQL Code?


  
Total Answers and Comments: 5 Last Update: April 17, 2009     Asked by: chinnuchaitu 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: aleemkh
 
Use "Show Errors" command on SQL Plus

Above answer was rated as good by the following members:
rajeshsingh9
August 10, 2008 05:15:23   #1  
aleemkh Member Since: July 2008   Contribution: 17    

RE: Debug PL/SQL Code
Use Show Errors command on SQL Plus
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
August 20, 2008 07:42:48   #2  
soujibb Member Since: August 2008   Contribution: 1    

RE: Debug PL/SQL Code
1. We can debug using toad pl/sql developer tools. Debug option will be there in these tools. before debugging the package or anything enable the dbms_output option.

or

2. Using DBMS_DEBUG Package also we can debug the pl/sql code.





 
Is this answer useful? Yes | No
November 04, 2008 18:01:53   #3  
Mad Hatter Member Since: November 2008   Contribution: 6    

RE: Debug PL/SQL Code
You can use variouse tools like Toad to debug PL/SQL package
Other way is to implement your own debug technic like printing bms_output during the code execution (cons - you will get output only when package finished)
You can create debug package with pragma autonomos_transaction to log all your steps.
Also if you need to check/tune your package performance there is Oracle DBMS_PROFILER package. It was introduced in Oracle8i to allow developers to profile the run-time behaviour of PL/SQL code making it easier to identify performance bottlenecks which can then be investigated more closely.

 
Is this answer useful? Yes | No
April 14, 2009 02:49:45   #4  
jeetuparida Member Since: April 2009   Contribution: 11    

RE: Debug PL/SQL Code
Write oracle PL/SQLprograming code on the work area then click execute button.
 
Is this answer useful? Yes | No
April 17, 2009 15:32:24   #5  
OraclePassport Member Since: April 2009   Contribution: 2    

RE: Debug PL/SQL Code
The Best way to debug is by using an AUTONOMOUS TRANSACTION. Create a dummy table and insert into the table using the AT. This wont affect the main code but one could know which part of the code the execution has reached while the program is running itself.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape