ORA-00904/ORA-00942 and Oracle case sensitive

Source: Internet
Author: User
Various objects (including tables, columns, and indexes) in Oracle databases are case-insensitive by default. All objects in the data dictionary are in uppercase. Assume that when you create a table (including an external table ),

Various objects (including tables, columns, and indexes) in Oracle databases are case-insensitive by default. All objects in the data dictionary are in uppercase. Assume that when you create a table (including an external table ),

Various objects (including tables, columns, and indexes) in Oracle databases are case-insensitive by default, and all objects in the data dictionary are in uppercase. If you enclose the column name or table name in double quotation marks when creating a table (including external tables), these are case-sensitive database objects. At this time, select needs to strictly follow the case when the table is created to succeed, otherwise return ORA-000904 or ORA-00942 error.

Some software can help users automatically generate the Create table statement. In this case, double quotation marks must be removed. Otherwise, the preceding error occurs.

Create table "t" ("a" int );
Table "t" created.

Select A from T;
ORA-00942: table or view does not exist
00942. 00000-"table or view does not exist"
* Cause:
* Action:
Error at Line: 16 Column: 15


Select A from "t ";
ORA-00904: "A": invalid identifier
00904. 00000-"% s: invalid identifier"
* Cause:
* Action:
Error at Line: 16 Column: 8

Related reading:

SPFILE error causing database startup failure (ORA-01565)

ORA-01172, ORA-01151 error handling

ORA-00600 [2662] troubleshooting

Troubleshooting for ORA-01078 and LRM-00109

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.