473,387 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Oracle connector

I want to get a connection to a Oracle database in myPage.aspx
I used the VS control and the wizard report succesfull connecting test.

The connection is defined
Conn1 As System.Data.OleDb.OleDbConnection

the connectionString property is
Provider=OraOLEDB.Oracle.1;Persist Security Info=False;User
ID=user;Password=pass; Data Source=dbInst_IP;Extended Properties=""

when I need to get some data from database context is like this

Private Sub btnSeek_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSeek.Click
If Conn1.State <> ConnectionState.Open Then
Conn1.Open()
End If

OleDbDataAdapter1.Fill(DataSet11)
txtNrInreg.Text = DataSet11.Tables(0).Rows(0).Item(0)
End Sub

At runtime the application stop at line
Conn1.Open()
with error
System.Data.OleDb.OleDbException: No error information available:
REGDB_E_CLASSNOTREG(0x80040154).
Any ideeas?, please!!

Nicolae Braduceanu


Apr 12 '06 #1
2 2387
> I want to get a connection to a Oracle database in myPage.aspx
I used the VS control and the wizard report succesfull connecting test.

The connection is defined
Conn1 As System.Data.OleDb.OleDbConnection

the connectionString property is
Provider=OraOLEDB.Oracle.1;Persist Security Info=False;User
ID=user;Password=pass; Data Source=dbInst_IP;Extended Properties=""

when I need to get some data from database context is like this

Private Sub btnSeek_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSeek.Click
If Conn1.State <> ConnectionState.Open Then
Conn1.Open()
End If

OleDbDataAdapter1.Fill(DataSet11)
txtNrInreg.Text = DataSet11.Tables(0).Rows(0).Item(0)
End Sub

At runtime the application stop at line
Conn1.Open()
with error
System.Data.OleDb.OleDbException: No error information available:
REGDB_E_CLASSNOTREG(0x80040154).
Any ideeas?, please!!

Nicolae Braduceanu


a) there is also System.Data.OracleClient with classes specifically for
Oracle. You might need an extra reference to the assembly to be able to
access that namespace.

b) the classes in that OracleClient namespace need a local Oracle
client installation (including a correct tnsnames.ora), maybe that's
also the case for the OleDb classes?

Hans Kesting
Apr 12 '06 #2
Sorry,
I forgot to tell you that I'm using VS 2002 version.
I couldn't find in it a reference to System.Data.OracleClient to add in
Project->Add Reference... section.
Oracle Client is already installed on this computer.

The funny thing is that I put on my aspx page an OleDBDataAdapter and test
it with Preview Data tool.
I get the correct data in that form.
Nicolae Braduceanu

"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:mn***********************@spamgourmet.com...
I want to get a connection to a Oracle database in myPage.aspx
I used the VS control and the wizard report succesfull connecting test.

The connection is defined
Conn1 As System.Data.OleDb.OleDbConnection

the connectionString property is
Provider=OraOLEDB.Oracle.1;Persist Security Info=False;User
ID=user;Password=pass; Data Source=dbInst_IP;Extended Properties=""

when I need to get some data from database context is like this

Private Sub btnSeek_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSeek.Click
If Conn1.State <> ConnectionState.Open Then
Conn1.Open()
End If

OleDbDataAdapter1.Fill(DataSet11)
txtNrInreg.Text = DataSet11.Tables(0).Rows(0).Item(0)
End Sub

At runtime the application stop at line
Conn1.Open()
with error
System.Data.OleDb.OleDbException: No error information available:
REGDB_E_CLASSNOTREG(0x80040154).
Any ideeas?, please!!

Nicolae Braduceanu


a) there is also System.Data.OracleClient with classes specifically for
Oracle. You might need an extra reference to the assembly to be able to
access that namespace.

b) the classes in that OracleClient namespace need a local Oracle client
installation (including a correct tnsnames.ora), maybe that's also the
case for the OleDb classes?

Hans Kesting

Apr 12 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ruud vd Velden | last post by:
Hello, We're using Office XP on Windows 2000 SP4. After installing the Oracle Connector for Outlook the following problem occurs: Emails sent by Outlook, in HTML format, do have a strange...
0
by: MS | last post by:
Hi, My application uses J Connector's 'mysql-connector-java-3.1.6-bin.jar' file with jdk 1.5 on my Win 2000 system to connect to MySQL running on a Linux machine on my LAN and it works fine from...
3
by: Jonathan Woods | last post by:
I could not find Oracle .NET data provider for version 1.1. Do I have to use ODBC .NET data provider for instead? Which provider can offer best access to Oracle Database? I'm using Oracle 8i....
1
by: Robin | last post by:
Are the some sample VB.Net code for using the Oracle.Net data connector?
4
by: RLN | last post by:
I have an Access2002 database that needs to connect to an Oracle Database. I connected to my Oracle DB in a simple VB6 app using no ODBC data source. How do I do the same thing using VBA in...
1
by: Facundo Batista | last post by:
Hi! I need to connect to Oracle. I found this binding, http://www.zope.org/Members/matt/dco2 that is the recommended in the Python page. But that page seems a bit confuse to me. In the...
19
by: Gregor =?UTF-8?B?S292YcSN?= | last post by:
Hi! I'm using DB2 database on one server and ORACLE database on the second one. I want to move some data from ORACLE database to DB2 database and update some columns on ORACLE database so I know...
1
by: stmfc | last post by:
hi, is there any place where i can download oracle jdbc connector for free other than official oracle site (in oracle.com sign-up procedure takes too much time )
6
by: shivapadma | last post by:
i want to access mysql database server from jsp program for this i downloaded mysql-connector-java-3.1.14.zip mysql-connector-java-3.1.14 folder contains mysql-connector-java-3.1.14-bin.jar...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.