Oracle Sqlcode Error Message
Contents |
Churchill Run-time errors arise from design faults, coding mistakes, hardware failures, and many other sources. Although you cannot anticipate all possible errors, you can plan to oracle error codes list with description handle certain kinds of errors meaningful to your PL/SQL program. With many
Oracle Sqlcode List
programming languages, unless you disable error checking, a run-time error such as stack overflow or division by zero stops oracle error handling normal processing and returns control to the operating system. With PL/SQL, a mechanism called exception handling lets you "bulletproof" your program so that it can continue operating in the presence of oracle error codes table errors. This chapter discusses the following topics: Overview of PL/SQL Error Handling Advantages of PL/SQL Exceptions Predefined PL/SQL Exceptions Defining Your Own PL/SQL Exceptions How PL/SQL Exceptions Are Raised How PL/SQL Exceptions Propagate Reraising a PL/SQL Exception Handling Raised PL/SQL Exceptions Tips for Handling PL/SQL Errors Overview of PL/SQL Error Handling In PL/SQL, a warning or error condition is called an exception. Exceptions
Oracle Sqlcode Values
can be internally defined (by the run-time system) or user defined. Examples of internally defined exceptions include division by zero and out of memory. Some common internal exceptions have predefined names, such as ZERO_DIVIDE and STORAGE_ERROR. The other internal exceptions can be given names. You can define exceptions of your own in the declarative part of any PL/SQL block, subprogram, or package. For example, you might define an exception named insufficient_funds to flag overdrawn bank accounts. Unlike internal exceptions, user-defined exceptions must be given names. When an error occurs, an exception is raised. That is, normal execution stops and control transfers to the exception-handling part of your PL/SQL block or subprogram. Internal exceptions are raised implicitly (automatically) by the run-time system. User-defined exceptions must be raised explicitly by RAISE statements, which can also raise predefined exceptions. To handle raised exceptions, you write separate routines called exception handlers. After an exception handler runs, the current block stops executing and the enclosing block resumes with the next statement. If there is no enclosing block, control returns to the host environment. In the example below, you calculate and s
MySQL MariaDB PostgreSQL SQLite MS Office Excel Access Word Web Development HTML CSS Color Picker Languages C Language More ASCII Table https://www.techonthenet.com/oracle/errors/ Linux UNIX Java Clipart Techie Humor Advertisement Oracle Basics Oracle Advanced Alter Table Alter Tablespace Change Password Check Constraints Comments in SQL Create Schema Create Schema Statement http://www.java2s.com/Tutorial/Oracle/0480__PL-SQL-Programming/Errormessagecodeandtext.htm Create Table Create Table As Create Tablespace Create User Data Types Declare Variables Drop Table Drop Tablespace Drop User Error Messages Find Default Tablespace Find Users oracle error Find Users Logged In Find Version Information Functions Global Temporary Grant/Revoke Privileges Indexes Literals Local Temporary Primary Keys Procedures Roles Sequences Set Default Tablespace Synonyms System Tables Unique Constraints Views Oracle Cursors Oracle Exception Handling Oracle Foreign Keys Oracle Loops/Conditionals Oracle Transactions Oracle Triggers String/Char Functions Numeric/Math Functions Date/Time Functions Conversion Functions Analytic Functions oracle error codes Advanced Functions NEXT: TUTORIAL COMPLETE Oracle / PLSQL: Oracle Error Messages The following is a listing of Oracle Error Messages: 00001-00899 ORA-00001 ORA-00018 ORA-00020 ORA-00023 ORA-00028 ORA-00034 ORA-00051 ORA-00054 ORA-00057 ORA-00058 ORA-00060 ORA-00063 ORA-00068 ORA-00071 ORA-00078 ORA-00100 ORA-00107 ORA-00201 ORA-00257 ORA-00301 ORA-00304 ORA-00361 ORA-00401 00900-00999 ORA-00900 ORA-00902 ORA-00903 ORA-00904 ORA-00905 ORA-00906 ORA-00907 ORA-00908 ORA-00909 ORA-00910 ORA-00911 ORA-00913 ORA-00917 ORA-00918 ORA-00919 ORA-00920 ORA-00923 ORA-00924 ORA-00925 ORA-00926 ORA-00927 ORA-00928 ORA-00931 ORA-00932 ORA-00933 ORA-00934 ORA-00935 ORA-00936 ORA-00937 ORA-00938 ORA-00939 ORA-00942 ORA-00946 ORA-00947 ORA-00948 ORA-00955 ORA-00957 ORA-00960 ORA-00962 ORA-00971 ORA-00972 ORA-00975 ORA-00979 ORA-00980 ORA-00984 ORA-00985 ORA-00995 01000-01399 ORA-01000 ORA-01001 ORA-01002 ORA-01004 ORA-01005 ORA-01006 ORA-01007 ORA-01008 ORA-01012 ORA-01013 ORA-01014 ORA-01017 ORA-01023 ORA-01031 ORA-01033 ORA-01034 ORA-01035 ORA-01037 ORA-01039 ORA-01040 ORA-01042 ORA-01045 ORA-01052 ORA-01074 ORA-01089 ORA-01109 ORA-01113 ORA-01114 ORA-01133 ORA-01200 ORA-01234 01400-01499 ORA-01400 ORA-01401 ORA-01402 ORA-01403 ORA-01404 ORA-01405 ORA-01406 ORA-01407 ORA-01408 ORA-01416 ORA-01417 ORA-01418 ORA-01422 ORA-01423 ORA-01424 ORA-01425 ORA-01426 ORA-01427 ORA-01428 ORA-01429 ORA-01430 ORA-01432 ORA-01433 ORA-01434 ORA-01435 ORA-01436 ORA-01437 ORA-01438 ORA-01439 ORA-01440 ORA-01441 ORA-01442 ORA-01446 ORA-01448 ORA-0144
FunctionsRegular Expressions FunctionsStatistical FunctionsLinear Regression FunctionsPL SQL Data TypesPL SQL StatementsPL SQL OperatorsPL SQL ProgrammingCursorCollectionsFunction Procedure PackagesTriggerSQL PLUS Session EnvironmentSystem Tables Data DictionarySystem PackagesObject OrientedXMLLarge ObjectsTransactionUser PrivilegeError message code and text : Handle Exception«PL SQL Programming«Oracle PL/SQL TutorialOracle PL/SQL TutorialPL SQL ProgrammingHandle ExceptionSQL> DECLARE 2 e_TooManyEmployee EXCEPTION; -- Exception to indicate an error condition 3 v_ErrorCode NUMBER; -- Variable to hold the error message code 4 v_ErrorText VARCHAR2(200); -- Variable to hold the error message text 5 6 BEGIN 7 RAISE e_TooManyEmployee; 8 EXCEPTION 9 WHEN e_TooManyEmployee THEN 10 DBMS_OUTPUT.put_line('e_TooManyEmployee'); 11 v_ErrorText := SUBSTR(SQLERRM, 1, 200); -- Note the use of SUBSTR here. 12 DBMS_OUTPUT.put_line(v_ErrorText); 13 /* SQLERRM(0) */ 14 v_ErrorText := SUBSTR(SQLERRM(0), 1, 200); 15 DBMS_OUTPUT.put_line(v_ErrorText); 16 17 /* SQLERRM(100) */ 18 v_ErrorText := SUBSTR(SQLERRM(100), 1, 200); 19 DBMS_OUTPUT.put_line(v_ErrorText); 20 21 /* SQLERRM(10) */ 22 v_ErrorText := SUBSTR(SQLERRM(10), 1, 200); 23 DBMS_OUTPUT.put_line(v_ErrorText); 24 25 /* SQLERRM with no argument */ 26 v_ErrorText := SUBSTR(SQLERRM, 1, 200); 27 DBMS_OUTPUT.put_line(v_ErrorText); 28 29 /* SQLERRM(-1) */ 30 v_ErrorText := SUBSTR(SQLERRM(-1), 1, 200); 31 DBMS_OUTPUT.put_line(v_ErrorText); 32 33 /* SQLERRM(-54) */ 34 v_ErrorText := SUBSTR(SQLERRM(-54), 1, 200); 35 DBMS_OUTPUT.put_line(v_ErrorText); 36 37 38 WHEN OTHERS THEN 39 v_ErrorCode := SQLCODE; 40 END; 41 / e_TooManyEmployee User-Defined Exception ORA-0000: normal, successful completion ORA-01403: no data found -10: non-ORACLE exception User-Defined Exception ORA-00001: unique constraint (.) violated ORA-00054: resource busy and acquire with NOWAIT specified PL/SQL procedure successfully completed. SQL> 24.15.Handle Exception24.15.1.Code with No Exception Handler24.15.2.Code with Conditional Control to Avoid an Exception24.15.3.Code with Explicit Handler for Predefined Exception24.15.4.Handling an Unnamed Exception24.15.5.Handling a custom except