Solved

The provider attribute is not provided  - ORACLE

Posted on 2014-10-03
2
219 Views
Last Modified: 2014-10-08
I had the following connection string

<add name="somename"  connectionString="Data Source=somename;
         USER ID = somename;
         PASSWORD = somename" providerName="Oracle.DataAccess.Client" />

Open in new window


After running program I got an error stating OLEDB connection needs a provider string, Then  I modified the string as

<add name="somename"  provider="OraOLEDB.Oracle" connectionString="Data Source=somename;
         USER ID = somename;
         PASSWORD = somename" providerName="Oracle.DataAccess.Client" />

Open in new window

Then got the error : The provider attribute is not allowed?

Can anyone please help me in resolving the issue?

Thanks,
D.
0
Comment
Question by:developer2012
  • 2
2 Comments
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 40359829
I believe Oracle.DataAccess.Client is strictly for ODP.Net and .Net applications.

OLEDB is a different data access provider.

Which one is the application using?

Have you taken a look here:
https://www.connectionstrings.com/oracle/


If you are using ODP.Net, it typically comes with several samples that show you everything you need.
0
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 40369083
Can I ask why to "B" grade?

It appears you just closed this so you can ask a new question and avoid the new question lock.

If so,
That isn't the proper way to use the site.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question