Solved

OracleConnection is absolute, where is the replacement

Posted on 2014-04-03
4
5,150 Views
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

Anthony



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

            Dim conn As New OracleConnection(oradb)

            conn.Open()
            Dim i As Integer = 0
            Dim cmd As New OracleCommand
0
Comment
Question by:Anthony Matovu
4 Comments
 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 39974394
absolute ???

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

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"
0
 
LVL 16

Assisted Solution

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

Accepted Solution

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

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
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…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

929 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now