|
|
|
|
Re: Username length limitation in Oracle [message #680647 is a reply to message #680449] |
Fri, 29 May 2020 06:41   |
Bill B
Messages: 1971 Registered: December 2004
|
Senior Member |
|
|
pepperB wrote on Thu, 14 May 2020 19:06As of Oracle Database 12cR2 (12.2.0.1+), the maximum length of most identifiers is now 128 characters -- including USERNAME.
but ONLY if you
ALTER SYSTEM SET max_string_size=extended;
Please note that once you do that, you can never go back to the old sizes
.. yes, why reopen such an old thread.
|
|
|
Re: Username length limitation in Oracle [message #680657 is a reply to message #680647] |
Sat, 30 May 2020 06:06   |
Solomon Yakobson
Messages: 3305 Registered: January 2010 Location: Connecticut, USA
|
Senior Member |
|
|
Bill B wrote on Fri, 29 May 2020 07:41pepperB wrote on Thu, 14 May 2020 19:06As of Oracle Database 12cR2 (12.2.0.1+), the maximum length of most identifiers is now 128 characters -- including USERNAME.
but ONLY if you
ALTER SYSTEM SET max_string_size=extended;
Please note that once you do that, you can never go back to the old sizes
.. yes, why reopen such an old thread.
You are confusing data and metadata. Parameter max_string_size=extended controls max VARCHAR2/NVARCHAR2/RAW data size limit and has nothing to do with identifiers which are metadata. As pepperB correctly noted (see 2.8.1 Database Object Naming Rules):
The maximum length of identifier names depends on the value of the COMPATIBLE initialization parameter.
Quote:
If COMPATIBLE is set to a value of 12.2 or higher, then names must be from 1 to 128 bytes long with these exceptions:
Names of databases are limited to 8 bytes.
Names of disk groups, pluggable databases (PDBs), rollback segments, tablespaces, and tablespace sets are limited to 30 bytes.
SQL> show parameter max_string_size
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
max_string_size string STANDARD
SQL> create table t12345678901234567890123456789012345678901234567890(id number);
Table created.
SQL>
SY.
|
|
|
|