Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: MAX Length of Name for Table / Index ?
All object names are stored in the data dictionary, which are tables (just
like the table you are creating). As such, each column has size
characteristics. Looking at the USER_TABLES view (or USER_INDEX), the NAME
column is defined as VARCHAR2(30). If we look at the views, the table/index
name is derived from sys.obj$.name, which is stored as a VARCHAR2(30). Since
all table/index names must be stored in the data dictionary and only 30
characters are allocated for the storage, the maximum name size is 30
characters.
-----Original Message-----
Sent: Friday, January 17, 2003 7:59 AM
To: Multiple recipients of list ORACLE-L
The why is related to the data dictionary...
-----Original Message-----
Sent: Friday, January 17, 2003 7:04 AM
To: Multiple recipients of list ORACLE-L
1)
SVRMGR> create table A2345678901234567890123456789012345 (c number);
create table A234567890123456789012345678901234567890 (c number)
*
ORA-00972: identifier is too long
SVRMGR> !oerr ora 972
00972, 00000, "identifier is too long"
// *Cause: An identifier with more than 30 characters was specified.
// *Action: Specify at most 30 characters.
SVRMGR>
You can try this test for an Index ;)
2)
Larry & the gang decided that ;)
-----Original Message-----
Sent: Friday, January 17, 2003 5:59 AM
To: Multiple recipients of list ORACLE-L
What is the MAX possible Length of of Name for Table / Index ?
Why ?
Thanks
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: VIVEK_SHARMA
INET: VIVEK_SHARMA_at_infosys.com
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Deshpande, Kirti
INET: kirti.deshpande_at_verizon.com
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Tue Jan 21 2003 - 09:45:03 CST
![]() |
![]() |