Results 1 to 8 of 8

Thread: Connection string for oracle 10g Database Issue

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2009
    Location
    Watch Window(Shift+f9)
    Posts
    1,879

    Question Connection string for oracle 10g Database Issue

    Hi Friends,
    from some hours i have tried to test the connection string for oracle10g client .but when i compiler reads the
    following line
    constr = " Provider = OraOLEDB.Oracle;Data Source=mydatabase/myservicename;User Id=myusername;Password=mypassword"

    it says provider cannot be found and Provider cannot be found. It may not be properly installed.
    let me know please .any help would be highly appreciated .

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Connection string for oracle 10g Database Issue

    1) http://www.connectionstrings.com/oracle
    2) you should be using the oracle data connector
    3) the link in #1 above even has a link itself to the appropriate download locations
    4) none of the examples on that page look like what you have.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2009
    Location
    Watch Window(Shift+f9)
    Posts
    1,879

    Re: Connection string for oracle 10g Database Issue

    Yes,i tried the attached way .but it stil say
    Provider cannot be found. It may not be properly installed.Attachment 99637

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Connection string for oracle 10g Database Issue

    DO you HAVE the proper driver installed? And if you're using VB6, that would have been good to know....

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2009
    Location
    Watch Window(Shift+f9)
    Posts
    1,879

    Re: Connection string for oracle 10g Database Issue

    No it does not seems to be installed .i tried the following way .but it is also not working .i have been using 64 bit Microprocessor+64 bit windows 7.
    let me know please .any help would be highly appreciated
    Code:
    constr = "Provider=MSDASQL;" & _
              "Driver={Microsoft ODBC for Oracle}; " & _
             "CONNECTSTRING=(DESCRIPTION=" & _
             "(ADDRESS=(PROTOCOL=TCP)(HOST=10.64.5.101)(PORT=1521))" & _
             "(CONNECT_DATA=(SERVICE_NAME=rms))); uid=MDMFIROZ;pwd=MDMFIROZ_142;"
    
     ' constr = "Provider=MSDAORA.1;Password=MDMFIROZ_142;User ID=MDMFIROZ;Data Source=infinity-db:1521;Persist Security Info=True"
      con.Open constr

  6. #6
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Connection string for oracle 10g Database Issue

    If I am not mistaken the oracle driver cannot be installed on a 64bit machine, I also tried a few months ago but gave up after trying all recommendations on the net, it works on a 32bit machine though.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2009
    Location
    Watch Window(Shift+f9)
    Posts
    1,879

    Re: Connection string for oracle 10g Database Issue

    If I am not mistaken the oracle driver cannot be installed on a 64bit machine, I also tried a few months ago but gave up after trying all recommendations on the net, it works on a 32bit machine though.
    so is their any solution for 64 Bit machine to connect oracle .

  8. #8
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Connection string for oracle 10g Database Issue

    Quote Originally Posted by firoz.raj View Post
    so is their any solution for 64 Bit machine to connect oracle .
    As I've said I gave up on trying to make it work in a 64bit machine. =)
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width