Skip to Main Content

ODP.NET

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!

ODP.Net managed driver globalization

user11962855Aug 14 2014 — edited Aug 14 2014

Hi guys,

I'm replacing my oracle driver from the Microsoft Framework Data Provider for Oracle to the ODP.Net Managed driver but I'm facing some problems related to client globalization support.

I need to set my NLS settings according to a specific culture. With the old driver I could easily achieve that by setting the NLS_LANG key in the registry (HKEY_LOCAL_MACHINE\Software\Oracle).

I know that I can use the OracleConnection.GetSessionInfo and SetSessionInfo methods to change those settings but it requires me to change 16 settings (Calendar, DataFormat, Language, NumericCharacters, Timezone, ...).

Is there any way to change all these settings according to a specific culture (e.g. by providing some culture key) without changing the regional settings of the computer?

Regards

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 11 2014
Added on Aug 14 2014
1 comment
2,474 views