How will you debug your procedure? If your procedure is
around 2000 lines and the expected output is 10 and we get
only output 5.So how will you debug it?
Somebody pls give the correct answer?
Answers were Sorted based on User's Feedback
Answer / ravi
You can debug your procedure in various ways:
1: If you are using tools like Toad, PL/SQL or SQL Developer, you can place the breakpoints in the procedure and then debug the same by using step into steps.
2: If you are using SQ*Plus, you need to place DBMS_OUTPUT for messaging and trace the same.
3: You can put the trace log on in the database server and can check the trace files.
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / arthi
use the following code to debug the huge line of code
DBMS_OUTPUT.PUT_LINE
(dbms_utility.format_error_backtrace||' : '||sqlerrm);
Is This Answer Correct ? | 6 Yes | 1 No |
Can we join more than 2 tables in sql?
What does count (*) mean?
Why we use stored procedure instead of query?
What is the meaning of disabling a trigger?
What is a clob in sql?
How does a trigger work?
what are the advantages of using stored procedures? : Sql dba
what is sql profiler? : Sql dba
What is the least restrictive isolation level? : Transact sql
How can use stored procedures in sql?
What is a sql instance vs database?
Can you selectively load only those records that you need? : aql loader