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!

OracleConnectionStringBuilder bug

I'm using the OracleConnectionStringBuilder, from Oracle.ManagedDataAccess.Core 23.6.0, to create a connection string with the following code:

OracleConnectionStringBuilder stringBuilder = new OracleConnectionStringBuilder();
stringBuilder.Add("Data Source", "test");
stringBuilder.Add("User Id", "user");
stringBuilder.Add("Password", "ABCDefgh1234+_");

The stringBuilder will put the password value in curly braces, which the OracleConnection doesn't like, it always will return a bad credentials error. If I manually modify the created connection string to replace the curly braces around the password to be double quotes, it works fine.

This post has been answered by Justin Sommercorn on Oct 9 2024
Jump to Answer
Comments
Post Details
Added on Oct 9 2024
5 comments
457 views