Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Oracle + Vb

  • 06-04-2002 12:41pm
    #1
    Closed Accounts Posts: 18


    Does anyone know how to connect an oracle Database to VB?


Comments

  • Closed Accounts Posts: 62 ✭✭K12


    Hi there!

    For connecting VB and Oracle u should have ODBC drivers installed in your machine.
    1. You have to create DSN name
    ( Use Control panel -> ODBC for Creation, for this u should know ODBC driver name, Oracle username/password & SID name )
    2. Now u can use the above created DSN name in ur VB application.


  • Closed Accounts Posts: 62 ✭✭K12


    Hi there!

    For connecting VB and Oracle u should have ODBC drivers installed in your machine.
    1. You have to create DSN name
    ( Use Control panel -> ODBC for Creation, for this u should know ODBC driver name, Oracle username/password & SID name )
    2. Now u can use the above created DSN name in ur VB application.


  • Registered Users, Registered Users 2 Posts: 5,741 ✭✭✭jd


    you will need the oracle windows client cd.
    Also your tnsnames.ora file will have to be set up properl


  • Closed Accounts Posts: 18 story_starlet


    Still cant get it to work. Just cant get it to connect.

    Any more Ideas


  • Registered Users, Registered Users 2 Posts: 5,741 ✭✭✭jd


    Originally posted by story_starlet
    Still cant get it to work. Just cant get it to connect.

    Any more Ideas

    What happens?
    What is your set up
    Can you telnetr to the oracle server on ports 1521/1525
    is the listener started on the server??


  • Advertisement
  • Moderators, Education Moderators Posts: 1,863 Mod ✭✭✭✭Slaanesh


    I think this has more of a chance on the programming boards.

    Slaanesh.


  • Registered Users, Registered Users 2 Posts: 15,443 ✭✭✭✭bonkey


    IIRC, what you need to do is this :

    1) Set up a connection in the Oracle Client software. Lets say you call this Fred

    2) Create an ODBC DSN, connecting to Oracle, where the name of what you're connecting to is....Fred. Lets say you save this DSN as FredODBC

    3) In your VB code, use standard code to open an ODBC connection, connecting to FredODBC.

    Its been a while since I played with this, so I may be completely wrong, unfortunately, but hey - you arent much better off at the moment :)

    jc


Advertisement