Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to set NLS parameter on connection?

gezieferJan 4 2011 — edited Jan 5 2011
Hello,

I'm looking for a way to set NLS parameters on an Oracle Thin JDBC connection.
More precisely, I need to set NLS_NUMERIC_CHARACTERS so that it gives me numbers in German number format instead of English.
I guess I can do an alter session sql statement beforehand, but isn't there a way to set it on the connection itself?
I need to do it within the code since I have no influence on the Tomcat or Oracle installation where the application is running on.

Thanks and regards,
Geziefer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 2 2011
Added on Jan 4 2011
5 comments
1,990 views