Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB   


 

 

 


 

 

 

 
 

ORA-00972: identifier is too long tips

Oracle Error Tips by Burleson Consulting

 

Oracle docs note this about ORA-00972:

 

ORA-00972: identifier is too long
Cause: An identifier with more than 30 characters was specified.
Action: Specify at most 30 characters.

Many users find themselves encountering ORA-00972 when attempting to access a table that has a large column length. 

MOSC offers information regarding ORA-00972 in which trying to get data from DBMS tables with 31 or more characters in the column name, throws ORA-00972.  This can happen even if the ORA_OBJECT_NAME domain is defined as VARCHAR(30) as opposed to VARCHAR(31)  in  RDB_PREPARE_NATCONN.SQL, such as:

Domain name ORA_OBJECT_NAME is defined as VARCHAR(31) (default):
SQL> SELECT COLUMN_NAME FROM ALL_TAB_COLUMNS WHERE TABLE_NAME='JTAB';

COLUMN_NAME
------------------------------
ID
C123456789012345678901234567890 <--- 31 chars
SQL> SELECT * FROM JTAB;
SELECT * FROM JTAB
*
ERROR at line 1:
ORA-00972: identifier is too long

SQL> DESCRIBE JTAB
ERROR:
ORA-00972: identifier is too long

Here, though the domain name ORA_OBJECT_NAME is stated as VARCHAR(30), such as is commonly done in accordance with a common workaround, the queries still fail, even if the field does truncate to 10 character correctly. 

SQL> SELECT COLUMN_NAME FROM ALL_TABL_COLUMNS WHERE TABLE_NAME = 'JTAB';

COLUMN_NAME
------------------------------
ID
C12345678901234567890123456789 <--- 30 chars

SQL> SELECT * FROM JTAB;
SELECT * FROM JTAB
*
ERROR at line 1:
ORA-00972: identifier is too long

SQL> DESCRIBE JTAB
ERROR:
ORA-00972: identifier is too long

Keep in mind that the reason ORA-00972 has been occurring is that most clients do not support 31 character names. 

Furthermore, ORA-00972 can be caused by column, alias, or table names which are too long. 


 

 

  
 

 
 
 
 
Oracle performance tuning software
 
 

 

 
 
 
Oracle performance Tuning 10g reference poster
 
 
 
Oracle training in Linux commands
 
Oracle training Excel
 
Oracle training & performance tuning books
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2012 

All rights reserved.

Oracle © is the registered trademark of Oracle Corporation.


Hit Counter