PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET Connection to ORACLE: Need some explanations

Reply

Connection to ORACLE: Need some explanations

 
Thread Tools Rate Thread
Old 21-06-2006, 01:16 PM   #1
tommaso.gastaldi@uniroma1.it
Guest
 
Posts: n/a
Default Connection to ORACLE: Need some explanations


Hi I have a question:

I have been connecting to oracle on my own machine successfully by
using either one of the 2 following:
Me.ConnectionString = _
"Provider=OraOLEDB.Oracle" & _
";User ID=" & Me.UserId & _
";Password=" & Me.Password & _
";Data Source=" & Me.ServiceName

Me.ConnectionString = _
"Provider=MSDAORA" & _
";User ID=" & Me.UserId &
_
";Password=" & Me.Password
& _
";Data Source=" &
Me.ServiceName & _
";Persist Security
Info=False"

Now it occurs to me that I have installed (as administrator) the Client
Oracle on a machine which is used in a university class and there are
some restrictions for the users (students).

There happens that if I use Provider=OraOLEDB.Oracle" & ... I receive
an error message that says that "the Oracle Client is not registered
on the local machine".
This happens in any case, regardless whether I log as admnistrator or
as user.

If I use "Provider=MSDAORA" ... the connection works fine.

I cannot explain this behaviour and I would like to have some light
from you. Actually I am not even clear on what is the essential
difference between the 2 ways of connecting, as both need the oracle
client.

Any explanation is much apprecciate.

-tom

  Reply With Quote
Old 21-06-2006, 01:54 PM   #2
Paul Clement
Guest
 
Posts: n/a
Default Re: Connection to ORACLE: Need some explanations

On 21 Jun 2006 05:16:29 -0700, tommaso.gastaldi@uniroma1.it wrote:

¤ Hi I have a question:
¤
¤ I have been connecting to oracle on my own machine successfully by
¤ using either one of the 2 following:
¤ Me.ConnectionString = _
¤ "Provider=OraOLEDB.Oracle" & _
¤ ";User ID=" & Me.UserId & _
¤ ";Password=" & Me.Password & _
¤ ";Data Source=" & Me.ServiceName
¤
¤ Me.ConnectionString = _
¤ "Provider=MSDAORA" & _
¤ ";User ID=" & Me.UserId &
¤ _
¤ ";Password=" & Me.Password
¤ & _
¤ ";Data Source=" &
¤ Me.ServiceName & _
¤ ";Persist Security
¤ Info=False"
¤
¤ Now it occurs to me that I have installed (as administrator) the Client
¤ Oracle on a machine which is used in a university class and there are
¤ some restrictions for the users (students).
¤
¤ There happens that if I use Provider=OraOLEDB.Oracle" & ... I receive
¤ an error message that says that "the Oracle Client is not registered
¤ on the local machine".
¤ This happens in any case, regardless whether I log as admnistrator or
¤ as user.
¤
¤ If I use "Provider=MSDAORA" ... the connection works fine.
¤
¤ I cannot explain this behaviour and I would like to have some light
¤ from you. Actually I am not even clear on what is the essential
¤ difference between the 2 ways of connecting, as both need the oracle
¤ client.
¤
¤ Any explanation is much apprecciate.

If you can connect with SQL Plus then it's very likely a security issue with respect to .NET. Are
you connecting from a standard Windows application or an ASP.NET app?


Paul
~~~~
Microsoft MVP (Visual Basic)
  Reply With Quote
Old 21-06-2006, 02:34 PM   #3
tommaso.gastaldi@uniroma1.it
Guest
 
Posts: n/a
Default Re: Connection to ORACLE: Need some explanations

Hi Paul,

It's a standard VB.NET client application.
It just does the connection and allows sending SQL commands.
SQL plus can connect.

If it's a security issue I am not clear why msdaora is not affected
(??)

Any ideas?

-tom

> If you can connect with SQL Plus then it's very likely a security issue with respect to .NET. Are
> you connecting from a standard Windows application or an ASP.NET app?
>
>
> Paul
> ~~~~
> Microsoft MVP (Visual Basic)


  Reply With Quote
Old 21-06-2006, 04:09 PM   #4
Paul Clement
Guest
 
Posts: n/a
Default Re: Connection to ORACLE: Need some explanations

On 21 Jun 2006 06:34:23 -0700, tommaso.gastaldi@uniroma1.it wrote:

¤ Hi Paul,
¤
¤ It's a standard VB.NET client application.
¤ It just does the connection and allows sending SQL commands.
¤ SQL plus can connect.
¤
¤ If it's a security issue I am not clear why msdaora is not affected
¤ (??)
¤
¤ Any ideas?

Does the error indicate the Oracle client is not registered or is it referring to the Oracle OLEDB
Provider?

If I remember correctly the Oracle OLEDB Provider is a separate install:

http://www.oracle.com/technology/te...e_db/index.html


Paul
~~~~
Microsoft MVP (Visual Basic)
  Reply With Quote
Old 21-06-2006, 05:09 PM   #5
tommaso.gastaldi@uniroma1.it
Guest
 
Posts: n/a
Default Re: Connection to ORACLE: Need some explanations

The PC's are for students. There is a copy of the oracle client
installed on each pc.
Clearly there is also a remote machine (SERVER) which has Oracle
server.

Right! Oracle OLEDB Provider is a separate install and it is the one to
which the message is referring to. The msg say thta the OleDb provider
is not registered on the current machine. But actually it is. In fact
we can get connected by using msdaora.

-tom

Paul Clement ha scritto:

> On 21 Jun 2006 06:34:23 -0700, tommaso.gastaldi@uniroma1.it wrote:
>
> ¤ Hi Paul,
> ¤
> ¤ It's a standard VB.NET client application.
> ¤ It just does the connection and allows sending SQL commands.
> ¤ SQL plus can connect.
> ¤
> ¤ If it's a security issue I am not clear why msdaora is not affected
> ¤ (??)
> ¤
> ¤ Any ideas?
>
> Does the error indicate the Oracle client is not registered or is it referring to the Oracle OLEDB
> Provider?
>
> If I remember correctly the Oracle OLEDB Provider is a separate install:
>
> http://www.oracle.com/technology/te...e_db/index.html
>
>
> Paul
> ~~~~
> Microsoft MVP (Visual Basic)


  Reply With Quote
Old 21-06-2006, 07:08 PM   #6
Paul Clement
Guest
 
Posts: n/a
Default Re: Connection to ORACLE: Need some explanations

On 21 Jun 2006 09:09:58 -0700, tommaso.gastaldi@uniroma1.it wrote:

¤ The PC's are for students. There is a copy of the oracle client
¤ installed on each pc.
¤ Clearly there is also a remote machine (SERVER) which has Oracle
¤ server.
¤
¤ Right! Oracle OLEDB Provider is a separate install and it is the one to
¤ which the message is referring to. The msg say thta the OleDb provider
¤ is not registered on the current machine. But actually it is. In fact
¤ we can get connected by using msdaora.
¤

But those are two different OLEDB providers, each from a different vendor. The MSDAORA OleDb
provider is from Microsoft and is usually already installed. The OraOLEDB.Oracle OleDb provider is
from Oracle and is not installed unless someone explicitly installed it.

Try checking the bin subfolder in your Oracle client installation folder. There should be a file
called OraOLEDB.dll in addition to some other OraOLEDB files. If these files are not present then
this provider needs to be installed.


Paul
~~~~
Microsoft MVP (Visual Basic)
  Reply With Quote
Old 21-06-2006, 07:35 PM   #7
tommaso.gastaldi@uniroma1.it
Guest
 
Posts: n/a
Default Re: Connection to ORACLE: Need some explanations

Hi Paul.

The Oracle client is installed because it has been installed on purpose
for the connection and I have seen it being installed by the
administrator.

Note that the msdaora does not behave like if it were a full client,
infact it does *NOT* work at all if the Oracle Client is not installed.
It just appears to be as a layer of software which talks with the
Oracle client (which is installed).

I dont' really get what the connection string containing msdaora does
different with respect to the other one.

-tom

Paul Clement ha scritto:

> On 21 Jun 2006 09:09:58 -0700, tommaso.gastaldi@uniroma1.it wrote:
>
> ¤ The PC's are for students. There is a copy of the oracle client
> ¤ installed on each pc.
> ¤ Clearly there is also a remote machine (SERVER) which has Oracle
> ¤ server.
> ¤
> ¤ Right! Oracle OLEDB Provider is a separate install and it is the one to
> ¤ which the message is referring to. The msg say thta the OleDb provider
> ¤ is not registered on the current machine. But actually it is. In fact
> ¤ we can get connected by using msdaora.
> ¤
>
> But those are two different OLEDB providers, each from a different vendor.. The MSDAORA OleDb
> provider is from Microsoft and is usually already installed. The OraOLEDB..Oracle OleDb provider is
> from Oracle and is not installed unless someone explicitly installed it.
>
> Try checking the bin subfolder in your Oracle client installation folder.There should be a file
> called OraOLEDB.dll in addition to some other OraOLEDB files. If these files are not present then
> this provider needs to be installed.
>
>
> Paul
> ~~~~
> Microsoft MVP (Visual Basic)


  Reply With Quote
Old 22-06-2006, 02:02 PM   #8
Paul Clement
Guest
 
Posts: n/a
Default Re: Connection to ORACLE: Need some explanations

On 21 Jun 2006 09:09:58 -0700, tommaso.gastaldi@uniroma1.it wrote:

¤ The PC's are for students. There is a copy of the oracle client
¤ installed on each pc.
¤ Clearly there is also a remote machine (SERVER) which has Oracle
¤ server.
¤
¤ Right! Oracle OLEDB Provider is a separate install and it is the one to
¤ which the message is referring to. The msg say thta the OleDb provider
¤ is not registered on the current machine. But actually it is. In fact
¤ we can get connected by using msdaora.
¤

But those are two different OLEDB providers, each from a different vendor. The MSDAORA OleDb
provider is from Microsoft and is usually already installed. The OraOLEDB.Oracle OleDb provider is
from Oracle and is not installed unless someone explicitly installed it.

Try checking the bin subfolder in your Oracle client installation folder. There should be a file
called OraOLEDB.dll in addition to some other OraOLEDB files. If these files are not present then
this provider needs to be installed.


Paul
~~~~
Microsoft MVP (Visual Basic)
  Reply With Quote
Old 22-06-2006, 07:44 PM   #9
Paul Clement
Guest
 
Posts: n/a
Default Re: Connection to ORACLE: Need some explanations

On 21 Jun 2006 11:35:37 -0700, tommaso.gastaldi@uniroma1.it wrote:

¤ Hi Paul.
¤
¤ The Oracle client is installed because it has been installed on purpose
¤ for the connection and I have seen it being installed by the
¤ administrator.
¤
¤ Note that the msdaora does not behave like if it were a full client,
¤ infact it does *NOT* work at all if the Oracle Client is not installed.
¤ It just appears to be as a layer of software which talks with the
¤ Oracle client (which is installed).
¤
¤ I dont' really get what the connection string containing msdaora does
¤ different with respect to the other one.

Maybe I wasn't clear. They are different drivers. MSDAORA is from Microsoft and the other one, which
isn't working for you, is from Oracle. When you use a DSN-less connection string you specify which
provider (or driver) to use.

I would recommend installing (or reinstalling) the Oracle provider (not the client software) because
it doesn't appear to be installed (or installed properly).


Paul
~~~~
Microsoft MVP (Visual Basic)
  Reply With Quote
Old 22-06-2006, 09:14 PM   #10
tommaso.gastaldi@uniroma1.it
Guest
 
Posts: n/a
Default Re: Connection to ORACLE: Need some explanations

Hi Paul,

Ok I think I see now what you mean. You are sayng that the installation
of the Oracle Client does not install by default the OleDb provider. So
when the Administrator installed the client probably he did not select
to install the OleDb drivers too. Is that what you mean?

In such a case I guess that one should reinstall the Oracle client
making sure that also the OleDb providers is selected for installation.
Right?

Thank you very much for your help.

-Tom

Paul Clement ha scritto:

> On 21 Jun 2006 11:35:37 -0700, tommaso.gastaldi@uniroma1.it wrote:
>
> ¤ Hi Paul.
> ¤
> ¤ The Oracle client is installed because it has been installed on purpose
> ¤ for the connection and I have seen it being installed by the
> ¤ administrator.
> ¤
> ¤ Note that the msdaora does not behave like if it were a full client,
> ¤ infact it does *NOT* work at all if the Oracle Client is not installed.
> ¤ It just appears to be as a layer of software which talks with the
> ¤ Oracle client (which is installed).
> ¤
> ¤ I dont' really get what the connection string containing msdaora does
> ¤ different with respect to the other one.
>
> Maybe I wasn't clear. They are different drivers. MSDAORA is from Microsoft and the other one, which
> isn't working for you, is from Oracle. When you use a DSN-less connectionstring you specify which
> provider (or driver) to use.
>
> I would recommend installing (or reinstalling) the Oracle provider (not the client software) because
> it doesn't appear to be installed (or installed properly).
>
>
> Paul
> ~~~~
> Microsoft MVP (Visual Basic)


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off