오라클 PL/SQL 사전정의 예외
Posted 2010/04/13 04:04Predefined PL/SQL Exceptions
An internal exception is raised implicitly whenever your
PL/SQL program violates an Oracle rule or exceeds a system-dependent
limit. Every Oracle error has a number, but exceptions must be handled
by name. So, PL/SQL predefines some common Oracle errors as exceptions.
For example, PL/SQL raises the predefined exception NO_DATA_FOUND
if a SELECT INTO statement returns no rows.
To handle other Oracle errors, you can use the OTHERS
handler. The functions SQLCODE and SQLERRM
are especially useful in the OTHERS handler because they
return the Oracle error code and message text. Alternatively, you can
use the pragma EXCEPTION_INIT to associate exception names
with Oracle error codes.
PL/SQL declares predefined exceptions globally in package STANDARD,
which defines the PL/SQL environment. So, you need not declare them
yourself. You can write handlers for predefined exceptions using the
names in the following list:
Brief descriptions of the predefined exceptions follow:
원문 : http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96624/07_errs.htm
북일
| 2010/04/23 13:31 | PERMALINK | EDIT | REPLY |에러하고 싸움하고 있나보군. 적절한 한글 문서가 있다면 개발이 몇배는 편해질텐데.. ㅇㅅㅇ
MegaWave
| 2010/04/26 02:57 | PERMALINK | EDIT |싸움하고 있진 않지만... 가끔 필요할때가 있어서 펌질을... ㅡ.ㅡ;