adspace


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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the advantages of sql ? : Sql dba

1154


what is bcp? When does it used? : Sql dba

1065


how to escape special characters in sql statements? : Sql dba

1124


Can we use distinct and group by together?

1147


What is the current version of postgresql?

1188


Is primary key always clustered index?

1101


Can delete statement be rollbacked?

1065


how to start mysql server? : Sql dba

1279


Is inner join faster than left join?

1287


define sql insert statement ? : Sql dba

1110


what is schema? : Sql dba

1163


If a cursor is open, how can we find in a pl/sql block?

1252


how many tables will create when we create table, what are they? : Sql dba

1156


Does group by remove duplicates?

1120


Do we need to rebuild index after truncate?

1154