-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: ORA-00972: identifier is too long
PostPosted: Thu Jul 26, 2012 4:02 am 
Newbie

Joined: Thu Jul 26, 2012 3:41 am
Posts: 1
I have a number of tables and /or columns within tables which have reasonably long names but do not exceed the Oracle 30 character limit. However when used in conjunction with hibernate which prepends certain characters to the beginning of the SQL e.g. credential4_. and businesspr6_.

credential4_.credentials_id as credenti1_47_4_,
businesspr6_.business_profile_id as business1_45_6_,

the sql identifiers exceed 30 characters and illicit the error shown in the subject field above.

Looking at the SQL generated it appears that hibernate has limited the string it uses as a unique qualifier e.g credential4_. and businesspr6_. to 13 characters. How can I control this and limit it to say five or eight characters.

I have set the dialect to org.hibernate.dialect.Oracle10gDialect. I would have expected this to influence the length of any qualified identifiers that hibernate generates and I would expect hibernate to ensure that they remained below the Oracle 30 character limit.

Is there some setting or configuration parameter that I could use to avoid the errors I am experiencing. Changing the table names etc. would be a last resort as the application is currently working with other databases.

Appreciate any help anybody can give.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.