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!

Scaffold-DbContext Can't find a database from tnsnames.ora?

TridusDec 10 2019 — edited Dec 10 2019

Hi. I'm just getting into Core now, and one of the first things I'm trying to do is reverse engineer a database for Entity Framework Core. All my hosts are in a tnsnames.ora file, so I'm trying to set OracleConfiguration.TnsAdmin.

This works fine when running the application itself, and I can connect no problem. But Scaffold-DbContext comes back with ORA-12154: TNS:could not resolve the connect identifier specified, suggesting to me that it doesn't know where to look. I haven't been able to find anything on how to tell it where to find tnsnames.ora.

Any tips?

Thanks!

This post has been answered by Alex Keh-Oracle on Dec 10 2019
Jump to Answer
Comments
Post Details
Added on Dec 10 2019
2 comments
2,183 views