OracleConnection is absolute, where is the replacement

Posted on 2014-04-03
Medium Priority
Last Modified: 2014-04-08
I have the code below for reading from an oracle database for VB.NET.

It works fine, but says OracleConnection is absolute. I have tried to look for its replacement and I am not getting

Thank you


Dim oradb As String = "Data Source=(DESCRIPTION=" _
               + "(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=pp)(PORT=1521)))" _
               + "User Id=uid;Password=pw;"

            Dim conn As New OracleConnection(oradb)

            Dim i As Integer = 0
            Dim cmd As New OracleCommand
Question by:Anthony Matovu
LVL 38

Expert Comment

by:Geert G
ID: 39974394
absolute ???

are you getting connected to oracle ?
is there an oracle client installed ?

Author Comment

by:Anthony Matovu
ID: 39974409
Connection is okay,
I successfully read the data. but there is a warning:

"'System.Data.OracleClient.OracleConnection' is obsolete: 'OracleConnection has been deprecated"
LVL 16

Assisted Solution

by:Wasim Akram Shaik
Wasim Akram Shaik earned 1000 total points
ID: 39974517
LVL 40

Accepted Solution

Jacques Bourgeois (James Burger) earned 1000 total points
ID: 39975960
You will find the replacement provided by oracle at http://www.oracle.com/technetwork/topics/dotnet/index-085163.html

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
SingleRun is a tool that ensures that only one instance of an application is started, running it again brings the application to focus.
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 video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…

588 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