|
|
Re: Why is identifier names limited to 30 characters? [message #120300 is a reply to message #120283] |
Wed, 18 May 2005 19:22 |
andrew again
Messages: 2577 Registered: March 2000
|
Senior Member |
|
|
Object names like Java are already longer than 30, but that's because the name was pre-defined by Java.
SQL> descr user_objects
Name Null? Type
----------------------------------------- -------- ----------------------------
OBJECT_NAME VARCHAR2(128)
SUBOBJECT_NAME VARCHAR2(30)
OBJECT_ID NUMBER
DATA_OBJECT_ID NUMBER
OBJECT_TYPE VARCHAR2(18)
CREATED DATE
LAST_DDL_TIME DATE
TIMESTAMP VARCHAR2(19)
STATUS VARCHAR2(7)
TEMPORARY VARCHAR2(1)
GENERATED VARCHAR2(1)
SECONDARY VARCHAR2(1)
|
|
|
|
|
|
|
Re: Why is identifier names limited to 30 characters? [message #449230 is a reply to message #120225] |
Sun, 28 March 2010 07:11 |
|
Kevin Meade
Messages: 2103 Registered: December 1999 Location: Connecticut USA
|
Senior Member |
|
|
Maybe it has to do with multi-byte languages in which a single character can require multiple bytes. Thus you set your database such that it is defined as a multi-character database, when you create it. This is just a guess.
As to the original question, why is it 30 bytes? Who really knows. But consider these observations. Oracle has been around for 30 years. Larry left IBM to build it. 30 years ago, COBOL was the language of choice. Indeed, here is an interesting factoid which I read a few years back and which I presume to still be true:
Quote:COBOL accounts for more lines of code actually in use in the world today than any other programming language. Some consider it the most successful language ever created. I remember meeting the lady who invented COBOL, Commodore Grace Hopper (she retired a Rear Admiral (rip 1992)) at a DPMA meeting in my youth. Wish I still had that NANO-SECOND she gave us all.
So why would this all be relevant? Well as I remember it, the maximum size of a token in IBM COBOL was and still is 30 bytes so an IBM guy building a database would naturally gravitate to something he was familiar with.
Kevin
[Updated on: Sun, 28 March 2010 07:20] Report message to a moderator
|
|
|