Welcome to Dream.In.Code
Become a VB Expert!

Join 150,041 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,596 people online right now. Registration is fast and FREE... Join Now!




Connection to oracle 10g

 
Reply to this topicStart new topic

Connection to oracle 10g, how do you connect vb application to oracle 10g

oluwaseun_odufuwa
14 Feb, 2008 - 10:54 AM
Post #1

New D.I.C Head
*

Joined: 14 Feb, 2008
Posts: 1

how do you connect vb application to oracle 10g
User is offlineProfile CardPM
+Quote Post

Jayman
RE: Connection To Oracle 10g
14 Feb, 2008 - 11:20 AM
Post #2

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 7,319



Thanked: 66 times
Dream Kudos: 500
Expert In: Everything

My Contributions
Do you know how to connect to SQL server?

It is the same process.
User is offlineProfile CardPM
+Quote Post

Jayman
RE: Connection To Oracle 10g
14 Feb, 2008 - 11:20 AM
Post #3

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 7,319



Thanked: 66 times
Dream Kudos: 500
Expert In: Everything

My Contributions
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: code.gif

Thanks.
User is offlineProfile CardPM
+Quote Post

RenatoCavs
RE: Connection To Oracle 10g
19 Jun, 2008 - 12:10 PM
Post #4

New D.I.C Head
*

Joined: 19 Jun, 2008
Posts: 1

QUOTE(jayman9 @ 14 Feb, 2008 - 12:20 PM) *

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: code.gif

Thanks.


Hi Folks, It's a cliché, I know, but I need help! I created a simple application that used to read some tables in an Oracle 8i database. The problem is that the database now is an Oracle 10g running in a Xeon machine... Since they changed the DB, I can't connect to Oracle... I'm in serious trouble... I use VB6 sp6 in a windows 2000 professional OS.
Look at how I used to connect to Oracle Db:
CODE

' In my .bas

Public Const glbCntStr_ORA As String = "Provider=MSDAORA.1;User ID=cmpsto;Password=cmpsto;Data Source=DELL;Persist Security Info=False"

'I've already tried to connect using:

Public Const glbCntStr_ORA As String = "Provider=OraOLEDB.1;User ID=cmpsto;Password=cmpsto;Data Source=DELL;Persist Security Info=False"


' then in my form...

'(general) (Declarations)
Private CnOracle As New ADODB.Connection

Private Sub Form_Load()
    If CnOracle.State <> 1 Then
        CnOracle.ConnectionTimeout = 400
        CnOracle.CommandTimeout = 400
        CnOracle.ConnectionString = glbCntStr_ORA  'the error occurs here!
        CnOracle.Open
    End If
    If Cn.State <> 1 Then
        Cn.ConnectionTimeout = 200
        Cn.CommandTimeout = 200
        Cn.ConnectionString = glbCntStr
        Cn.Open
    End If
End Sub


the Error message : "Run time error:3706 Provider cannot be found.It may not be properly installed"

Thanks in Advance,

Renato

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 09:52PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month