types of exceptions and what is meant by pragma
autonomous_transaction ?what is the use.

Answer Posted / madhav

Exceptions are 3 types
.Predefined
.by default oracle provide error handlers and error
numbers.user can handle that.
data_not_found,too_many_rows,cursor_already_open
.Non predefined exceptions
.Error handlers are not available
.Only Error numbers are avalable
.By using pragma user can handle that
example:- child_record exception;
pragma exception_init(child_record,-2292);
.User defined exceptions
.Error handlers are not available
.Error numbers are also not available
.user can raise and handle that based on business
logic
example:-no_data exception(declaration section)
raise no_data(execution section)
when no_data then(exception sectiion)
dbms_output.put_line('data is not
available');
end;

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What problem one might face while writing log information to a data-base table in pl/sql?

760


What is the purpose of using pl/sql?

825


How do you optimize a query?

725


How do I run sql profiler?

760


Explain correlated query work?

789






Compare sql & pl/sql

770


what is subquery? : Sql dba

772


What is the maximum database size for sql express?

710


Can we use loop in sql?

725


What does the acronym acid stand for in database management?

774


What is the difference between numeric and autonumber?

692


What are the different schemas objects that can be created using pl/sql?

720


What are triggers in sql?

749


How many sql statements are used?

742


what are date and time intervals? : Sql dba

757