5

I've changed my driver for connection to Oracle and got error

Connection string is not well-formed

I had unofficial Oracle driver dotNetCore.Data.OracleClient Version=1.0.0

Now I use Oracle.ManagedDataAccess.Core Version=2.18.3

My connection string looks like there

Data Source = ORACLE.HOSTS:1521/pdb_prod;PERSIST SECURITY INFO=True;USER ID=xxxx; Password=xxxx;Pooling=false;

And it works well before

Whats wrong with my connection string?

11
  • @mason That string worked well with previous driver Commented Feb 6, 2019 at 18:38
  • Connection strings.com : connectionstrings.com/oracle Commented Feb 6, 2019 at 19:28
  • 1
    @Badda_Bing my connection string looks same like in this site Commented Feb 6, 2019 at 19:32
  • Does using capitals matter? PERSIST SECURITY INFO; USER ID...? Commented Feb 6, 2019 at 19:38
  • @Badda_Bing I didn't try it, do you think it may help to me? Commented Feb 6, 2019 at 19:44

2 Answers 2

1

Don't put space between equalities Data Source = ...

Data Source=ORACLE.HOSTS:1521/pdb_prod;PERSIST SECURITY INFO=True;USER ID=xxxx; Password=xxxx;Pooling=false;

you can also try

Data Source=//host:[port]/[service_name]

Btw, I dont have experience with Pooling=true you may try without it and if it succeeds you can add it

Sign up to request clarification or add additional context in comments.

1 Comment

Problem was detected - connection string is reading from ENV and there it was newline character in the end of the connection string. =) My admins are the best, but even they sometimes make mistakes
1

Problem detected - the connection string is read from ENV, and at the end of the connection string there was a newline character.

My admins are the best, but even they sometimes make mistakes

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.