The value's length for key 'data source' exceeds it's limit of '128'

后端 未结 2 805
心在旅途
心在旅途 2021-01-22 11:59

I know that a very similar question has been asked here, but the answer didn\'t help me.

I am using Entity Framework 6 with the Oracle.ManagerDataAccess.Client.

2条回答
  •  清歌不尽
    2021-01-22 12:36

    You don't need any Oracle Client to use the tnsnames.ora file.

    Just see this answer (last paragraph) in which folder ODP.NET Managed Driver expects the tnsnames.ora, resp. sqlnet.ora file.

    You can define the alias also in .config file, see Configuring Oracle Data Provider for .NET

提交回复
热议问题