Solved

OracleConnection is absolute, where is the replacement

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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to recover a database from a user managed backup

860 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