scope of exception handling in plsql

Answers were Sorted based on User's Feedback



scope of exception handling in plsql..

Answer / suresh kumar somayajula

Raising an error in PL/SQL execution block is nothing
but "Execption". These are of 2 types.
1.Predefined Exception 2. User defined Exception

Total 19+1 predefined exceptions are there.
19+1 means 19+When Others.
"When others" is the last one.After "When Others" no
exception will be raised.
Eg. for Predefined Exceptions:
No_data_found,Dup_val_on_index,Invalid_cursor,Invalid_number
,Zero_Divide,.......,'When Others'..

Thank you,
Suresh.

Is This Answer Correct ?    8 Yes 2 No

scope of exception handling in plsql..

Answer / bala

Scope of exception in plsql is handled by Exception Block..
this is depends on the code you had written.
suppose u have created one more plsql block inside a plssql
block,if the inner block is not handled any exception then
the outer block will handle the exception by defining the
situation/even like "when others then / when value_error
then... etc "

Note.. when u r using "when Others then" all the exceptions
will handle by this exception.. Even there is no error the
plsql will return 0 for this exception that is executed by
default in a plsql block. So. be carefull while writting
this kind of exception ("When others then")

Is This Answer Correct ?    4 Yes 4 No

scope of exception handling in plsql..

Answer / guest

to throw errors even when we wrongly tped

Is This Answer Correct ?    1 Yes 1 No

scope of exception handling in plsql..

Answer / shanmukha srinivas

scope of exception (importance of exception)
exceptions r run time errors
in real time every procedures,functions used exception section at the end of program
because its gives which line get error comes, which error is coming by using error log table.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

Why do we use set serveroutput on?

0 Answers  


i have a table like this. cityno cityname mails 1 BANGALORE 8KM 2 HSR LAYOUT 20KM 3 MEJISTIC 30KM 4 JAYADEVA 55KM 5 ITPL 80KM 6 HEBBAL 115KM I HAVE DATA LIKE THIS I WANT O/P LIKE THIS DISTANCE NO.OFCITY 0-50KM 3 51-100KM 2 101-150KM 4 AND SO ON pls give me answer. i want urgent

6 Answers  


which types of join is used in sql widely? : Sql dba

0 Answers  


What is the difference between sql and t sql?

0 Answers  


What does plvtab enables you to do when you showthe contents of pl/sql tables?

0 Answers  






Do view contain data?

6 Answers   Ramco,


suppose we have values like 1 5 7 in a colum.Now we want numbers like(2 3 4 6) that exists between 1 5 7.How can we do this using sql query??

5 Answers   Keane India Ltd,


How do you determine the current isolation level? : Transact sql

0 Answers  


Fetch an entire row from the employees table for a specific employee ID:

2 Answers  


What are different types of refreshment techniques of materialised view

2 Answers  


How you improve the performance of sql*loader? : aql loader

0 Answers  


How to perform a loop through all tables in pl/sql?

4 Answers   Evosys, MBT,


Categories