What is the maximum length supported by the Oracle database table name?

Source: Internet
Author: User
Tags comparison table sql error

What is the maximum length supported by the Oracle database table name?

This article describes the maximum length that can be used by a table name in the Oralce database. The length is also the maximum length of the Oracle identifier, which is 30 characters.

When creating an Oracle database table today, xiaobian prompts that the following table name length has exceeded the maximum value. The error is as follows:

Copy codeThe Code is as follows:
Error Report:
SQL error: ORA-00972: The identifier is too long
00972. 00000-"identifier is too long"
* Cause: An identifier with more than 30 characters was specified.
* Action: Specify at most 30 characters.

The error message is as follows:

1. The so-called identifier, that is, the User-Defined keywords, comparison table name, field name, view name, sequence name, primary key, etc. The table name also belongs to the identifier.

2. The identifier has a length limit.

3. the maximum length of the identifier is 30 characters in Oracle.

Therefore, when operating the Oracle database, do not set the table name length to more than 30 characters.


How many tables can be defined in the oracle database? Four questions

It may be based on the size of the defined database,
And table size

What type of string can be received by the oracle database?

Correction: varchar2 is a maximum of 4000 bytes, not a character.

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.