0% found this document useful (0 votes)
10 views1 page

PLSQL Predefined Exceptions

The document lists predefined exceptions in Oracle PL/SQL along with their corresponding error codes and descriptions. Each exception indicates a specific error condition that may occur during PL/SQL execution, such as 'NO_DATA_FOUND' for queries returning no rows or 'DUP_VAL_ON_INDEX' for duplicate values. This reference is useful for developers to handle errors effectively in their PL/SQL programs.

Uploaded by

vijaydhayalandev
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views1 page

PLSQL Predefined Exceptions

The document lists predefined exceptions in Oracle PL/SQL along with their corresponding error codes and descriptions. Each exception indicates a specific error condition that may occur during PL/SQL execution, such as 'NO_DATA_FOUND' for queries returning no rows or 'DUP_VAL_ON_INDEX' for duplicate values. This reference is useful for developers to handle errors effectively in their PL/SQL programs.

Uploaded by

vijaydhayalandev
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Oracle PL/SQL Predefined Exceptions

Exception Name Error Code Description

NO_DATA_FOUND ORA-01403 Query returned no rows

TOO_MANY_ROWS ORA-01422 Query returned more than one row

ZERO_DIVIDE ORA-01476 Attempt to divide by zero

DUP_VAL_ON_INDEX ORA-00001 Duplicate value violates unique constraint

INVALID_CURSOR ORA-01001 Illegal cursor operation

CURSOR_ALREADY_OPEN ORA-06511 Cursor already open

INVALID_NUMBER ORA-01722 Invalid number conversion

LOGIN_DENIED ORA-01017 Invalid username/password

STORAGE_ERROR ORA-06500 PL/SQL ran out of memory

PROGRAM_ERROR ORA-06501 Internal PL/SQL error

VALUE_ERROR ORA-06502 Arithmetic/character conversion error

ACCESS_INTO_NULL ORA-06530 Object or record is null

CASE_NOT_FOUND ORA-06592 No matching WHEN clause in CASE

COLLECTION_IS_NULL ORA-06531 Collection is null

SUBSCRIPT_BEYOND_COUNT ORA-06533 Subscript exceeds collection size

SUBSCRIPT_OUTSIDE_LIMIT ORA-06532 Subscript is out of legal range

SYS_INVALID_ROWID ORA-01410 Invalid ROWID

TIMEOUT_ON_RESOURCE ORA-00051 Timeout while waiting for a resource

You might also like