Unable to find the requested .Net Framework Data Provider in Oracle

前端 未结 4 1566
谎友^
谎友^ 2021-01-12 13:51

string constr = \"Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=spp01)(PORT=1521))(CONNECT_DATA=(SID=Global)));User

Id=SYSMAN;Password=testman3\";

4条回答
  •  感情败类
    2021-01-12 14:17

    The error shows that the Oracle client is not installed on your system. To validate it you can run the line of code below:

    System.Data.Common.DbProviderFactories.GetFactoryClasses()

    You will get a DataTable of all the installed data providers. If Oracle.DataAccess.Client invarient is not listed in the DataTable then it means it is not installed.

    I was also facing the same issue on one of our clients machine and on debugging i found that the Oracle client was installed from the Admin user and they were trying to access it from some other user.

    On installing the Oracle client from current user resolves the problem.

    Please don't forget to restart your application after installing the Oracle client.

提交回复
热议问题