SQLERRM function. : SQLERRM « PL SQL « Oracle PL / SQL

Home
Oracle PL / SQL
1.Aggregate Functions
2.Analytical Functions
3.Char Functions
4.Constraints
5.Conversion Functions
6.Cursor
7.Data Type
8.Date Timezone
9.Hierarchical Query
10.Index
11.Insert Delete Update
12.Large Objects
13.Numeric Math Functions
14.Object Oriented Database
15.PL SQL
16.Regular Expressions
17.Report Column Page
18.Result Set
19.Select Query
20.Sequence
21.SQL Plus
22.Stored Procedure Function
23.Subquery
24.System Packages
25.System Tables Views
26.Table
27.Table Joins
28.Trigger
29.User Previliege
30.View
31.XML
Oracle PL / SQL » PL SQL » SQLERRM 
SQLERRM function.
    
SQL>
SQL> set serveroutput on
SQL>
SQL> BEGIN
  2    DBMS_OUTPUT.PUT_LINE('SQLERRM(0)' || SQLERRM(0));
  3    DBMS_OUTPUT.PUT_LINE('SQLERRM(100)' || SQLERRM(100));
  4    DBMS_OUTPUT.PUT_LINE('SQLERRM(10)' || SQLERRM(10));
  5    DBMS_OUTPUT.PUT_LINE('SQLERRM: ' || SQLERRM);
  6    DBMS_OUTPUT.PUT_LINE('SQLERRM(-1)' || SQLERRM(-1));
  7    DBMS_OUTPUT.PUT_LINE('SQLERRM(-54)' || SQLERRM(-54));
  8  END;
  9  /
SQLERRM(0): ORA-0000: normal, successful completion
SQLERRM(100): ORA-01403: no data found
SQLERRM(10):  -10: non-ORACLE exception
SQLERRM: ORA-0000: normal, successful completion
SQLERRM(-1): ORA-00001: unique constraint (.violated
SQLERRM(-54): ORA-00054: resource busy and acquire with NOWAIT specified

PL/SQL procedure successfully completed.

SQL>
SQL>

   
    
    
  
Related examples in the same category
1.SQLERRM function returns the error message associated with the most recently raised error exception
2.sqlerrm(sql%bulk_exceptions(i).error_code)
3.Error code and message
4.Error code: sql%bulk_exceptions(i).error_code
5.Trim the error message and then output
6.SQLERRM has the error message
7.Reference sql%bulk_exceptions(i).error_index
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.