Solved

The provider attribute is not provided  - ORACLE

Posted on 2014-10-03
2
228 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

635 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