c# - Oracle ManagedDataAccess and special characters when logging in -
i've encountered issue oracle.manageddataaccess
seems impossible use non-ascii connectionstring (non-ascii empirical guess).
this fine , dandy:
var cs = string.format("data source={2};password={1};user id={0}", "user", "pwd", "mydb"); var connection = new oracleconnection(cs); connection.open();
but not work (å, ä , ö swedish letters):
var cs = string.format("data source={2};password={1};user id={0}", "åäö", "lösenord", "mydb"); var connection = new oracleconnection(cs); connection.open();
and throws
oracle.manageddataaccess.client.oracleexception: ora-01017: invalid username/password; logon denied
both users capable of logging on via sqldeveloper.
does know of way around this? or known limitation manageddataaccess
(well, dataaccess
) libraries oracle?
ninja stuff, ie using chr(int)
, hard when signing in..
db info:
nls_language american nls_territory america nls_currency $ nls_iso_currency america nls_numeric_characters ., nls_characterset we8mswin1252 nls_calendar gregorian nls_date_format dd-mon-rr nls_date_language american nls_sort binary nls_time_format hh.mi.ssxff nls_timestamp_format dd-mon-rr hh.mi.ssxff nls_time_tz_format hh.mi.ssxff tzr nls_timestamp_tz_format dd-mon-rr hh.mi.ssxff tzr nls_dual_currency $ nls_comp binary nls_length_semantics byte nls_nchar_conv_excp false nls_nchar_characterset al16utf16 nls_rdbms_version 11.2.0.1.0
edit:
also tested (ie adding quotes, oracleconnectionstringbuilder
"="):
var cs = string.format("data source={2};password={1};user id={0}", "\"åäö\"", "\"lösenord\"", "mydb"); var connection = new oracleconnection(cs); connection.open();
i ran same problem , issue got fixed latest odp managed driver version september 16, 2016 (4.121.2.20150926).
be careful download 32bit section of oracle website (http://www.oracle.com/technetwork/database/windows/downloads/utilsoft-087491.html) oracle seems have missed add 64 bit section, latest version still october 2015. more information see question on oracle forums: https://community.oracle.com/message/14037653#14037653
makes kinda wonder though oracle to, since did not support language specific characters 3 years in managed driver...
Comments
Post a Comment