-->
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: Using Hibernate with oracke 11G using UTF-8
PostPosted: Fri Aug 22, 2008 9:49 am 
Newbie

Joined: Fri Aug 22, 2008 9:09 am
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

[b]Hibernate version:[/b] 3.2

[b]Mapping documents:[/b]

[b]Code between sessionFactory.openSession() and session.close():[/b]

[b]Full stack trace of any exception that occurs:[/b]

[b]Name and version of the database you are using:[/b]

[b]The generated SQL (show_sql=true):[/b]

[b]Debug level Hibernate log excerpt:[/b]


Problems with Session and transaction handling?

Read this: http://hibernate.org/42.html

Hi,

We have a program that using Hibernate 3.2 and it takes some data from and Oracle database and updates another Oracle database

The source database used to be 10g and everything worked fine.
Now the source database is going 11G and Unicode and the program now behaves in a strange way. It pulls over some data twice and can not write it because of the constraints, if I disable keys on receiving database, I get some of the records twice.

I have tried to add on the end of url UTF-8 properties:

configuration.setProperty("hibernate.connection.url", "jdbc:oracle:thin:@servername:1521/dbname?useUnicode=true;characterEncoding=UTF-8");

I have to use slash after port as it is a proxy

and I get an Io exception: NL exception was generated

Can somebody pelase tell me

1) What is the correct way of specifying Encoding for oracle jdbc driver in either the url string, or by setting hibernate properties?
2) What else I might need to do in order to upgrade my program to use the unicode change?

Many thanks

Elena


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.