Oracle common exception types

Oracle predefined 21 system exception types

 

 

 

 

ACCESS_INTO_NULL  undefined 
object 

CASE_NOT_FOUND  If the  corresponding 
WHEN is not included in CASE, and the  collection  element of COLLECTION_IS_NULL is not initialized  when

ELSE  is  not  set  Embedded SQL statement cannot convert characters to numbers  NO_DATA_FOUND  Using select into does not return rows, or  TOO_MANY_ROWS  When executing select into, the result set exceeds one row  ZERO_DIVIDE  divisor is 0  SUBSCRIPT_BEYOND_COUNT  element subscript exceeds nested table or The maximum value of VARRAY  SUBSCRIPT_OUTSIDE_LIMIT  When using nested tables or VARRAY, the subscript is specified as a negative number  VALUE_ERROR  When assigning a value, the variable length is not enough to hold the actual data  LOGIN_DENIED 

































PL/SQL application provided incorrect username or password when connecting to oracle database 

NOT_LOGGED_ON 
PL/SQL application accessing data without connecting to oralce database 

PROGRAM_ERROR 
PL/SQL internal problem, may need to reload data dictionary & pl./SQL system package 

ROWTYPE_MISMATCH 
host cursor variable is incompatible with the return type of PL/SQL cursor variable 

SELF_IS_NULL 
When using the object type, the object method 

STORAGE_ERROR  is called on the null object When
running PL/SQL, the memory space is exceeded 

SYS_INVALID_ID 
Invalid ROWID string 

TIMEOUT_ON_RESOURCE 
Oracle timed out waiting for resource

 

BEGIN

    --logging start execution

    EXECUTE IMMEDIATE V_SQL_ERR;

    COMMIT;

  EXCEPTION

    WHEN OTHERS THEN

      DBMS_OUTPUT.PUT_LINE('Logging started abnormally!');

      NULL;

  END;

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326710509&siteId=291194637