if i have a procedure with 1000 line.when i run this in 61 line i got the error but i want to continue the programe without error.can anyone tell me how to handle that error.

Answer Posted / ana

Enclose the 61th line in a begin-exception-end block and in exception block have
when others then null;

so that when exception is raised in 61th line it will do nothing and continue with other lines of the 1000 line procedure.

eg:

Begin

Select * from emp ;

Exception

when others then
null;

End;

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data block in Oracle?

626


How to load excel data sheet to oracle database

596


In XIR2 if we lost the administration password .How can we regain the password?thanks in advance.

1477


How to list all tables in your schema?

619


What is a proxy class?

568






How to fetch the row which has the max value for a column?

546


How can I combine multiple rows into a comma-delimited list in oracle?

587


What is the use of file param in imp command?

650


Explain the use of grant option in exp command.

590


What is an anonymous block?

633


What are the original export and import utilities?

578


Explain the importance of .pll extension in oracle?

561


What is the difference between hot backup and cold backup in oracle?

528


How to see the table columns used in an index?

606


Explain the difference between a procedure and a function? What do you understand by those terms?

631