Results 1 to 6 of 6

Thread: How connect to ORACLE SERVER over LAN in VB6

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2005
    Posts
    105

    How connect to ORACLE SERVER over LAN in VB6

    Hi,

    My server (IP: 192.168.0.100) is installed ORACLE database. My application in clients want to connect to the ORACLE installed in the server using ADO.

    How will be the connectin string used in ADO connection object ? How can I specfy the server name or IP in the connecting string ? Is there needed any additional installation of ORACLE software or components in each client machine ?

    I can connect from the server itself using the following connection string
    Code:
    Provider=MSDAORA.1;Password=MyPwd;User ID=MyUid;Data Source=MyDb;Persist Security Info=True
    But I can't use this to connect from clients.

    With regards,
    Nasreen

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

    Re: How connect to ORACLE SERVER over LAN in VB6

    Take a look at http://www.connectionstrings.com/oracle the connection string will vary slightly based on how you are connecting.

    -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
    Lively Member
    Join Date
    Apr 2005
    Posts
    105

    Re: How connect to ORACLE SERVER over LAN in VB6

    Hi techgnome
    I already come over the link specified by you.
    But none of the string work with me. And I have no much idea about how to set ODBC settings for ORACLE in clients.
    So can you please explain how to do this step by step ?
    Or can you help in connection string using ADO (Native connection) ?
    I want either ODBC or ADO connection string and ODBC settings for ORACLE in clients.

    Nasreen

  4. #4
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: How connect to ORACLE SERVER over LAN in VB6

    First: your clients (or users) must have Oracle Client installed.
    Then you will have to make sure that local (on each user machine) tnsnames.ora file is up to date (ask your database administrator to supply you with one or you can just file from server).
    When you complete first two steps you should be able to connect to your Oracle database using connection string from your original post.

  5. #5
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: How connect to ORACLE SERVER over LAN in VB6

    Thread moved to 'Database Development' forum (the 'VB6' forum is only meant for questions which don't fit in more specific forums)

  6. #6
    PowerPoster abhijit's Avatar
    Join Date
    Jun 1999
    Location
    Chit Chat Forum.
    Posts
    3,228

    Re: How connect to ORACLE SERVER over LAN in VB6

    Quote Originally Posted by RhinoBull View Post
    First: your clients (or users) must have Oracle Client installed.
    Then you will have to make sure that local (on each user machine) tnsnames.ora file is up to date (ask your database administrator to supply you with one or you can just file from server).
    When you complete first two steps you should be able to connect to your Oracle database using connection string from your original post.
    Once you have this done, you should be able to use the TNSPING utility to locate your Oracle Server. You should also be able to use SQLPLUS and connect to this server. Unless you have done the connection with SQLPLUS, do not attempt to use the connection string or your front-end code.

    The tnsping utility is used to determine whether or not an Oracle service can be successfully reached. If a connection can be established from a client to a server (or server to server), tnsping will report the number of milliseconds it took to reach the remote service. If unsuccessful, a network error will be displayed. However, tnsping will only report if the listener process is up and provides no indication of the state of the database.
    Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
    save a blobFileStreamDataTable To Text Filemy blog

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