Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 15th, 2005, 09:04 AM
Ach Ach is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 46 Ach User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 36 m 29 sec
Reputation Power: 5
Unhappy Unicode problem and ORA-12899 error!

Hi all,
we had a database which its nls_characterset was WE8MSWIN1252 so we could not save non-Latin data there so we reinstall it with AL32UTF8 characterset.
We run a script that creates all structures and procedures and ....But now when we try to do an insert in a varchar2(30) or char(18) column it raises ORA-12899 error and says the value is too long for this column! we haven't had this before with english data so I think it is because of greater storage for unicode characters.I tried to change NLS_LENGTH_SEMANTICS in system and session level but no chance! same error we see more and more!
I am running 10gR1 on win xp and my nls_languag AERICAN and territory is AMERICA. also ACP is 1252 and OEMCP is 720.
What should i change?
-Thanks very much

Reply With Quote
  #2  
Old September 15th, 2005, 09:31 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,917 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 15 h 51 m 39 sec
Reputation Power: 279
You need to read Oracle's Globalization Support Guide.
You have a varchar2(30) which allows insertion of 30 bytes, you can define it to hold 30 characters by adding the modifier to the DDL (i.e. define it as VARCHAR2(30 CHAR)) and remember that the maximum size for a VARCHAR2 field is 4000 bytes so you might declare it as VARCHAR2(4000 CHAR) but you'll be unable to insert strings longer than 1000 bytes.

Reply With Quote
  #3  
Old September 15th, 2005, 09:32 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,917 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 15 h 51 m 39 sec
Reputation Power: 279

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Unicode problem and ORA-12899 error!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT