How to connect Oracle 9.2 using Visual Basic

Hi all ,
I have Oracle database which setup in another computer.
I need to create VB program to connect to the Oracle Database .
I would like to use Oracle ODBC driver to connect . However i did not know what is the parameters that need for ADO connection String , see below :
Anyone have any sample code is much appreciated . Thanks.
l_connection_str = "Driver={Oracle ODBC Driver};" & _
"Dbq=myDBName;" & _
"Uid=myUsername;" & _
"Pwd=myPassword"

First off all you should chcek id you have installed Oracle ODBC driver (default client install) don't contain this driver. Then I will suggest you configuring Data Source from
Control Panel | Administrative Tools | ODBC Data Sources you have to configure data source (Please remember to configure tnsnames.ora) and use this source in your application
Best Regards
Krystian Zieja / mob

Similar Messages

  • How to Connect Oracle Database without using TNS entry

    Hi,
    i need to connect Oracle Database server from my pc without using the TNS entry. How to do that?
    Regards,
    007

    You have marked the question as answered, so it means you can answer my questions:
    1.How do i check that i can make easy connect to the server or not, I mean is it configured on Server ?
    2.Can I make connection with easy connect without having Net Services software installed on the client ?
    3.What if I am not able to access sqlnet.ora ?
    4.Is there any difference in connect string, which is based upon OS for easy connect ?
    5.How do i use global database name, if it is configured ?
    6.What are pros and cons of using easy connect ?
    7....
    20....
    I think this are those 20 questions which John is talking about.
    Regards
    Girish Sharma

  • How to connect oracle and c# using namespace System.Data.OracleClient

    Hi!
    I am using Microsoft Visual Studio 2005 and Orange for oracle version 4.
    I've been given a task, show the table of the database using datagrid.
    but first I have to connect to the database using namespace System.Data.OracleClient.
    What should I do? I am totally new in c# and oracle.
    Thanks in advance. :)

    Hi!
    I am using Microsoft Visual Studio 2005 and Orange for oracle version 4.
    I've been given a task, show the table of the database using datagrid.
    but first I have to connect to the database using namespace System.Data.OracleClient.
    What should I do? I am totally new in c# and oracle.
    Thanks in advance. :)

  • How to connect Oracle Database by using OID

    Hi,
    I am testing Oracle Directory Manager Version 10.1.4.0.1. I want to authenticate users with LDAP then connect to the database. Is there any step by step documentation how I could configure the OID?
    I have read OID administration guide Version 10.1.4.0.1. and I did not see clear explanation.
    Thank you

    Hi,
    During the oracle client windows installation, you need to select administrator option. Make sure you include Enterprise Security Manager. After the installation, you need to run net manager to establish database connection.
    NY

  • Need help creating full battery alert using visual basic script

    Hi,
    I have been searching for resources, programs and code that will create an alert for me to unplug my charger when my laptop
    battery is charged to full (or almost full).
    The only problem with this code is that
    Line 13: iRemaining (or RemainingCapacity called from BatteryStatus returns a 0 (might be a floating point which I can't figure out why). I even checked the microsoft documentation and its supposed to be a percentage.
    I want to get either the current percentage of the battery or the total Fullchargedcapacity and the EstimatedRemainingCapacity to find the % of battery level.
    Essentially what I am asking is how can I return the battery % using visual basic script.
    Help!
    The Code:
    1 set oLocator = CreateObject("WbemScripting.SWbemLocator")
    2 set oServices = oLocator.ConnectServer(".","root\wmi")
    3 set oResults = oServices.ExecQuery("select * from batteryfullchargedcapacity")
    4 for each oResult in oResults iFull = oResult.FullChargedCapacity
    5 next
    6
    7 while (1)
    8 set oResults = oServices.ExecQuery("select * from batterystatus")
    9 for each oResult in oResults
    10 iRemaining = oResult.RemainingCapacity
    12 bCharging = oResult.Charging
    12 next
    13 iPercent = ((iRemaining / iFull) * 100) mod 100
    14 if bCharging and (iPercent > 95) Then msgbox "Battery is at " & iPercent "%",vbInformation,"Battery monitor"
    15 wscript.sleep 30000 ' (30 seconds)
    16 wend

    14 if bCharging and (iPercent > 95) Then msgbox "Battery is at " & iPercent "%",vbInformation,"Battery monitor"
    On my Windows 7 machine your script returns the desired percentage (after adding the missing "&" to the right of "iPercent" in Line 14).

  • How to connect oracle database using jsf

    how to connect oracle database using javaserver faces with connection pooling

    Here is one way...
    http://jakarta.apache.org/commons/dbcp/

  • How to access Oracle Data Base on Unix using Visual Basic ?

    Hi !
    I want to use visual basic and access the Oracle Data Base on Unix server. How can i do that ? Do i need any software?
    .Prashant

    You need an oracle client installation and setup your TNS names.

  • How to connect from java without using oracle client installation

    hi ,
    Please tell me how to connect from java without using oracle client
    Thanks & Regars

    http://www.orafaq.com/wiki/JDBC#Thin_driver

  • How to Connect Oracle Database 10g Express Edition ?

    From example
    http://www.oracle.com/technology/obe/hol08/dotnet/getstarted-c/getstarted_c_otn.htm
    using Oracle.DataAccess.Client; // ODP.NET Oracle managed provider
    using Oracle.DataAccess.Types;
    string oradb = "Data Source=ORCL;User Id=hr;Password=hr;";
    OracleConnection conn = new OracleConnection(oradb); // C#
    conn.Open(); <== Connect Error
    Error Message "ORA-12154: TNS:could not resolve the connect identifier specified"
    I used
    Visual Studio 2005
    Oracle Database 10g Express Edition
    setup "Oracle Developer Tools for Visual Studio .NET with ODAC 10.2.0.2.21"
    Best Regards,
    Edited by: user1949694 on 8 ก.ย. 2552, 9:20 น.

    I search "tnsnames.ora" in my computer. I found 3 file
    1. C:\oraclexe\app\product\10.2.0\server\hs\admin\tnsnames.ora
    2. C:\oraclexe\app\product\10.2.0\server\NETWORK\ADMIN\tnsnames
    3. C"\oraclexe\app/product\10.2.0\server\NETWORK\ADMIN\SAMPLE\tnsnames
    How to entry in your tnsnames.ora file File1, File2, File3
    How to called "ORCL"?
    Please Help Me Step by Step
    Thank You.
    : )

  • How to connect oracle database into VC?GIve step by step.

    Hi Experts,
    Please help
    How to connect oracle database into VC?
    I need step by step.
    what shall i do the first to connect via jdbc or  something else.
    whether we have to create dsn name or using jdbc connections?which one to use?
    Please give the basic steps.Its very urgent.
    Thanks and Regards,
    Nutan

    Hi ,
    all information are in the following document:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6209b52e-0401-0010-6a9f-d40ec3a09424">How to Configure a Business Intelligence JDBC System for Visual Composer</a>
    Rgds,
    Karim

  • How to connect oracle application server portal to MS access DataBase

    Hello,
    I am facing one problem here.
    Our client is having their database in MS access and they want to implement the oracle application server portal for their organization then how to connect the MS access DB to oracle Application server portal

    There is a worked example of how to connect oracle to an Excel spreadsheet, which is easily modifyable to read from an Access Database.
    http://asktom.oracle.com/pls/ask/f?p=4950:61:::::P61_ID:4406708207206#18830681837358
    I had some concurrency problems - only one person could use the link at any one time, so I used it to load the data into oracle tables.
    Tak

  • How to connect oracle database from tuxedo

    Hi,
    How to connect oracle database from tuxedo.
    If any one can help me.
    Regards,

    it depends on configuration your going to choose, there are two ways--
    - Using X/Open standards, for this
    you have to make an entry of Resource manager in $TUXDIR/udataobj/RM file.
    Then in UBBConfig file in GROUPS section u have to set Openinfo.
    It also depend on which database you are going to use.
    In your service now you need to call tpopen() API from tpsvrinit() function.
    - Other possibility is, take an implicit connection using Pro*C or Pro*Cobol whatever platform you are using.
    EXEC SQL Connect ...

  • How to connect oracle database with JAVA

    how to connect oracle database with JAVA....
    using j2sdk and Jcreator . which connector to use .. what are the code for that ..

    PLEASE .... Ask in an Oracle Java forum.
    And read the documentaiton. There is a whole document devoted to doing that. http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/toc.htm has examples.
    PLEASE ... do not ask product questions in a forum which clearly has a title saying it is devoted to assisting with download problems.

  • How to connect oracle form6i or 10g to mysql database

    can anyone tell me how to connect oracle forms to mysql database using ODBC connector?
    akin

    Hi
    this is step by step installation guide
    http://download.oracle.com/docs/cd/E11882_01/install.112/e10875/toc.htm
    also below link for download
    http://www.oracle.com/technology/software/products/database/index.html
    hope this helps
    Zekeriya

  • HOW TO CONNECT ORACLE BI DISCOVERER ADMINISTRATOR 10g

    Hi,
    My question is HOW TO CONNECT ORACLE BI DISCOVERER ADMINISTRATOR 10g. I know how to connect PLUS and VIEWER using a URL. Do i need to install Discoverer Admin. separately on my local machine.
    This is very urgent... Please reply.
    Thanks in advance for your time and answers.
    Jay

    Discoverer Administrator is a client side tool, you must install it on your machine or even you can install discoverer administrator in your server but you must connect through a connection string which you must enter in your tnsnames
    regards

Maybe you are looking for

  • External Hardrive - from PC to Mac

    I recently got a Macbook and when I plugged in my external hard drive (used originally on my Toshiba) I am able to see all my files however when I wanted to transfer photo to the hard drive I am not able to. No pop-up messages just the circle with li

  • Customer receivables Aging report was changed

    When try to generate the SAP Standard Report Customer Receivables Aging, supprised to see that the column has been changed. The first column was the Future Remit, second column is the 0-30 aging, third column is Customer name. I chcek if the Form set

  • Configure a intel i915 (Solved)

    I need help to configure a intel i915 chipset, I installed the 3ddesktop package, and the command "3ddesk" gives me this message: Xlib:  extension "GLX" missing on display ":0.0". Xlib:  extension "GLX" missing on display ":0.0". Xlib:  extension "GL

  • Mass user movement from one org. unit to another in SRM org. structure

    Hi, Is there any way by which i can move mass users from one organisational unit to another in SRM org. structure.. there is a thread available in SDN but it is not conclusive. it talks abt using a FM: BBP_USER_CHANGE_ORG BR Bharat M

  • Programmitically call a task flow commit

    I'd like to execute a task flow commit from a method inside an application module impl class. How can I get a handle on a task flow and invoke the commit in my code? Any insight appreciated.