Solved

OracleConnection is absolute, where is the replacement

Posted on 2014-04-03
4
5,984 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
[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
4 Comments
 
LVL 38

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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and theā€¦
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
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.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
Suggested Courses

623 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