Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change table/column/index names size in oracle 11g or 12c

I use oracle 11g and need name that size is greater than 30 characters, I know the maximum size in 11g is 30 characters.

Can I change the this maximum size?

What is the maximum size of table/column/index names in Oracle 12c?

like image 593
Sajad Bahmani Avatar asked Aug 15 '13 07:08

Sajad Bahmani


People also ask

What is difference between 11g and 12c in Oracle?

The main difference between Oracle 11g and 12c is that the Oracle 11g is an older version of Oracle RDBMS and has no pluggable databases while Oracle 12c is a newer version designed for the cloud and has pluggable databases.

What is the maximum size of column name in Oracle?

You're absolutely right: Table names are 30 characters maximum same as column names.

What is the maximum length of a table name in Oracle 11g?

Hi all, I think the maximum length of table and column name in oracle 11g is 30 characters.

How do I find the size of a database in Oracle 12c?

The size of the database is the space the files physically consume on disk. You can find this with: select sum(bytes)/1024/1024 size_in_mb from dba_data_files; But not all this space is necessarily allocated.


2 Answers

Database object names in 11g as well as in 12cR1 are limited to 30 bytes (in a single-byte character set it will be equivalent to 30 characters).

Can it be changed? No, you cannot make any changes to allow Oracle to use object names that are greater than 30 bytes.

The 30 bytes object names restriction has been lifted in second release of Oracle Database 12c ( 12cR2) and if the value of the COMPATIBLE initialization parameter is set to 12.2 or higher then object names' length can be up to 128 bytes.

like image 182
Nick Krasnov Avatar answered Sep 21 '22 13:09

Nick Krasnov


I know of no way to change the maximum size of fields to more than 30 characters in 11g.

I've seen nothing to suggest this is changing in 12c.

like image 31
cagcowboy Avatar answered Sep 18 '22 13:09

cagcowboy