Oracle Common Errors about java. SQL. SQLException

Source: Internet
Author: User

When using Oracle, you always encounter java. SQL. the SQLException error caused me to be exhausted on the Internet, so I checked several common ones in one breath and listed them here. english is from the official website. I have simply translated it in Chinese. Some people do not know how to translate it or try to reproduce it. So I will list the original English text for anyone who needs it!
ORA-00904: invalid column name
ORA-00942: table or view does not exist
ORA-01400: cannot insert NULL into () cannot insert NULL values
ORA-00936: expression missing
ORA-00933: SQL command ended incorrectly
ORA-01722: Invalid Number :( generally it is caused by an attempt to enter a string type value in the numeric type)
ORA-06530: access_1__null
Your program attempts to assign values to the attributes of an uninitialized (atomically null) object.
An attempt to write a value to an attribute of an uninitialized object
ORA-06592: CASE_NOT_FOUND
None of the choices in the WHEN clses of a CASE statement is selected, and there is no ELSE clause.
Case statement format error, no branch statement
ORA-06531: COLLECTION_IS_NULL
Your program attempts to apply collection methods other than EXISTS to an uninitialized (atomically null)
Nested table or varray, or the program attempts to assign values to the elements of an uninitialized nested
Table or varray.
An attempt is made to enter the set in an uninitialized nested table.
ORA-06511: CURSOR_ALREADY_OPEN.
Your program attempts to open an already open cursor. A cursor must be closed before it can be reopened.
Cursor FOR loop automatically opens the cursor to which it refers. So, your program cannot open that cursor
Inside the loop.
Attempt to open the opened pointer. the pointer has been opened. To open it again, you must first close it.
ORA-00001: DUP_VAL_ON_INDEX
Your program attempts to store duplicate values in a database column that is constrained by a unique index.
Duplicate database field storage, unique primary key value conflict
ORA-01001: INVALID_CURSOR Invalid Pointer
Your program attempts an illegal cursor operation such as closing an unopened cursor.
Invalid Pointer operation, for example, disabling unopened pointers
ORA-01722: INVALID_NUMBER Invalid Number
In a SQL statement, the conversion of a character string into a number fails because the string does not
Represent a valid number. (In procedural statements, VALUE_ERROR is raised.) This exception is also raised
When the LIMIT-clause expression in a bulk FETCH statement does not evaluate to a positive number.
In an SQL statement, the character numeric type conversion error occurs, and the string cannot be converted to a valid number. This error may also occur because the fetch statement in the limit clause expression cannot correspond to a specified number.
ORA-01017: LOGIN_DENIED access
Your program attempts to log on to Oracle with an invalid username and/or password.
Attempt to log on to oracle with an invalid user name or password
ORA-01403: NO_DATA_FOUND no data discovery
A select into statement returns no rows, or your program references a deleted element in a nested table or
An uninitialized element in an index-by table. SQL aggregate functions such as AVG and SUM always return
Value or a null. So, a select into statement that Callan aggregate function never raises NO_DATA_FOUND.
The FETCH statement is expected to return no rows eventually, so when that happens, no exception is raised.

ORA-01012: NOT_LOGGED_ON not logged on
Your program issues a database call without being connected to Oracle.
The program sends database commands, but does not establish a connection with oracle

ORA-06501: PROGRAM_ERROR program error
PL/SQL has an internal problem.
Pl/SQL System Problems

ORA-06504: ROWTYPE_MISMATCH Row Type Mismatch
The host cursor variable and PL/SQL cursor variable involved in an assignment have incompatible return types.
For example, when an open host cursor variable is passed to a stored subprogram, the return types of
Actual and formal parameters must be compatible.

ORA-30625: SELF_IS_NULL
Your program attempts to call a MEMBER method on a null instance. That is, the built-in parameter SELF
(Which is always the first parameter passed to a MEMBER method) is null.

ORA-06500: STORAGE_ERROR storage Error
PL/SQL runs out of memory or memory has been upted.
PL/SQL running memory overflow or memory conflict

ORA-06533: SUBSCRIPT_BEYOND_COUNT clause exceeds count
Your program references a nested table or varray element using an index number larger than the number
Elements in the collection.

ORA-06532: The SUBSCRIPT_OUTSIDE_LIMIT clause is invalid.
Your program references a nested table or varray element using an index number (-1 for example) that is
Outside the legal range.

ORA-01410: SYS_INVALID_ROWID Invalid Field name
The conversion of a character string into a universal rowid fails because the character string does not
Represent a valid rowid.

ORA-00051: TIMEOUT_ON_RESOURCE resource wait timeout
A time-out occurs while Oracle is waiting for a resource.

ORA-01422: TOO_MANY_ROWS returns more than one row
A select into statement returns more than one row.

Error in ORA-06502: VALUE_ERROR Value
An arithmetic, conversion, truncation, or size-constraint error occurs. For example, when your program selects
A column value into a character variable, if the value is longer than the declared length of the variable,
PL/SQL aborts the assignment and raises VALUE_ERROR. In procedural statements, VALUE_ERROR is raised if
Conversion of a character string into a number fails. (In SQL statements, INVALID_NUMBER is raised .)

ORA-01476: ZERO_DIVIDE Division 0 Error

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.