dbTalk Databases Forums  

OLEDB and Oracle XE ?

comp.databases.oracle comp.databases.oracle


Discuss OLEDB and Oracle XE ? in the comp.databases.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ove
 
Posts: n/a

Default OLEDB and Oracle XE ? - 05-16-2006 , 09:37 AM






Hi,

I'm a newbie when it comes to Oracle, but I was asked to check if an
application could run with Oracle, so I installed Oracle XE.
The application is an older VB6 app.

I installed Oracle XE and Client XE on the same XP machine as my application
and checked that the database engine is running.

I fail to point out the database with the PromptNew dialog in
MSDASC.DataLinks. VB code:
Dim dataLink As New MSDASC.DataLinks
sDBConnection = dataLink.PromptNew 'Prompt for connection string

The only Oracle related providers in the list are
Microsoft OLE DB Provider for Oracle
and
Oracle Provider for OLE DB

The first one requires a Server Name in the next tab. I enter XE as it is
the name of my database, user system and it's password and test the
connection.
It says ORA-12154: TNS could not resolve the connect identifier.

The second one asks for Datasource. I enter XE again (perhaps wrong?)
Again ORA-12154.

I don't want to require that the user sets up a DSN.
Please help me - What is wrong here?

Regards,
Ove



Reply With Quote
  #2  
Old   
Viktor Zacek
 
Posts: n/a

Default Re: OLEDB and Oracle XE ? - 05-22-2006 , 07:20 AM






Greetings!

I have already worked with ADODB and do not know MSDASC...
but I also had some problems.
Solution was simple... VB6 only reads the first ORACLE_HOME out of the
registry.
I set up a new string ("TNS_ADMIN") which pointed to one central
tnsnames.ora/sqlnet.ora.
Now every database in this tnsnames.ora is accessible.

Regards,
Viktor Zacek

Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.