How to connect Oracle 9i / 10g to a Java ( JDK 1.4 / J++) Program?

Hello,
I have written a java program in JDK 1.4 ( Which I have compiled in J++).
I am dont know how to connect oracle ( 9i / 10g) as Backend to my java program.
Please send the code / instructions to connect my backend.
my program includes oracle tables..
Please help me..
thank you
Jayanth

Use JDBC, but who the hell uses J++ anymore?

Similar Messages

  • 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 forms 10g with oracle 10g express database?

    Hi all,
    I have downloaded and installed oracle forms 10g and oracle database 10g express, when I open net configuration assistant to test local net service, I tested the default service (EXTPROC_CONNECTION_DATA) BUT THE RESULT IS "ora-28547 connection to server failed probable oracle net admin error"
    How can I solve this issue?
    My tnsname.ora is located in c:\DevSuiteHome\network\admin\tnsnames.ora, and its contents is:
    # tnsnames.ora Network Configuration File: c:\DevSuiteHome\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nour-pc)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = PLSExtProc)
    Edited by: user10228498 on Jan 21, 2011 11:37 PM

    I copied the contents of C:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN\tnsnames.ora and appended it to C:\DevSuiteHome\NETWORK\ADMIN\tnsnames.ora
    and tried net configuration management to test local net service, the test was ok, thus the first problem resolved.
    but the login problem in forms developer still exist and it claims that: ora-12154 tns could not resolve the connect identifier specified.
    any ideas?

  • How to Connect Oracle Database 10g with using Oracle Dev 10g

    Hello there,
    I have problem with connection on database 10g using oracle dev 10g on the same server.
    The message is: TNS... bla..bla... it means not connect.
    Please advice
    Regards
    Leksono

    just simple
    copy the from the database instance the tnsnames.ora
    file's entried into developer folders tnsnames.ora
    file and you can connect to DBFirst of all there is no such error as TNS... bla..bla... it means not connect.
    there are several errors for the tnsnames, post the exact error
    And it is not recommended that you copy it from the database's tnsnames file, it doesn't always work.
    to configure the tnsnames.ora you have 2 ways, manual and GUI.
    For GUI use the Net configuration assistance from your Devsuite home and for manual you need edit the tnsnames.ora file usually under %ORACLE_HOME%/NETWORK/ADMIN
    You need to specify the connection string name, the hostname and the database SID name. It should look something like this.
    <connection identifier> =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = host name)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = SID)
      )Regards,
    Tony

  • 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

  • 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 10g to MySql

    hi,
    can anybody plz guide me how to connect Oracle with MySql...I was going through official documentation and I found the procedure for connecting with Informix, Sybase and Teradata etc but I could not find for MySql...so can anybody plz guide in this regard...
    Thanking you

    To connect to a MySQl database the product you have to use is DG4ODBC 11.2. It requires a 3rd party MySQL ODBC driver (64bit on 64bit platforms and 32bit on 3bit platforms). This Dg4ODBC has to be installed in its OWN ORACLE_HOME. Installing it into the database home 10.2 you'll corrupt the database installation.
    Before installing DG4ODBC, please make sure your Oracle database release is 10.2.0.4 or 10.2.0.5. If you still have 10.2.0.3 or 10.1.0.5 you have to apply the gateway compatibility patch to your Oracle database release.
    More details can be found in the gateway config note available at "My Oracle Support".
    The notes are:
    - Installing on a 64bit Unix OS:
    How to Setup DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX) [ID 561033.1]
    - Installing on 32bit linux:
    How to Setup DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit [ID 466225.1]
    - Installing on Windows:
    How to Setup DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit [ID 466225.1] (although it is the 32bit note is is almost similar for a 64bit Windows installation
    You can download Dg4ODBC for free from http://edelivery.oracle.com or from http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html

  • Problem about using Oracle Form 6i to connect Oracle Database 10g express.

    Sorry to interrupt all of you.
    I have encountered a problem about using Oracle Form 6i to connect Oracle Database 10g express.
    As I would like to
    I use Oracle Net8 Easy Config to create a connection.
    According to "tnsnames.ora", the paramater of connection is as follows;
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    (CONNECT_DATA = (SID = XE))
    Unfortunately, when I use Oracle Net8 Easy Config to test the connection, an error message is prompted as follows:
    Connecting....
    The test did not succeed.
    ORA-03106: fatal two-task communication protocol error
    There may be an error in the fields entered
    or the server may not be ready for a connection.
    You can check the server and retry, or continue.
    After I google it, I still have no idea how to solve the problem. I would like to ask, could anyone mind providing some hints or solution to address the issues.
    Thanks for your assistance in advance.

    I don't believe the Net8 Easy Config (NEC) will create a compatible entry in the tnsnames.ora. I have Forms 6i running successfully against a 10g Express database, but I did not use the NEC - I created the entry myself. Here is the entry I use:
    XE=
      (DESCRIPTION=
        (ADDRESS=
          (PROTOCOL=TCP)
          (HOST=<<servername or IP address>>)
          (PORT=1521)
        (CONNECT_DATA=
          (SERVER=dedicated)
          (SERVICE_NAME=XE)
      )Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • 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 8.0.5 for Linux to Tuxedo

    How to connect Oracle 8.0.5 for Linux to Tuxedo?
    How to config Tuxedo RM file and setting.

    Thomas Drolshagen (guest) wrote:
    : Oracle 8.0.5. Installation on S.u.S.E. Linux 5.3
    : =================================================
    : After strugling for 3 weekends with the installation of Oracle
    : 8.0.5. on a
    : S.u.S.E. 5.3 distribution here are the installation steps that
    : worked for me.
    I have tried to install Oracle on SuSE 5.2. I almost complted the
    installation, but kept getting a failure on installing the
    database. The last entry in the install.log is:
    Leaving trace.ins- Entering Make Dependent section.
    - Entering do_relink==false section.
    - Leaving Make dependent section.
    - Entering database actions section.
    Deciding to start again from scratch, I tried deleting all files
    and begining again, but now I get a different error running
    orainst. The installer keeps responding that 'file x already
    exists'. The name of the file changes each time I run it, and no
    file of that name exists. I have tried deleting the temp
    directories, as well as dropping them and recreating them
    elsewhere (desperation!), but I canot stop this from happening:
    An operating system error occurred while trying to spawn
    '/orasys/app/oracle/product/8.0.5/bin/otrccref' while
    redirecting
    output to '^ @^'. (File exists.) Would you like to retry
    the
    operation, ignore the error, or allow the error to be
    processed by
    the Installer?
    Does anyone have any ideas??
    null

  • How to connect Oracle database in VC++.06

    How to connect Oracle database in VC++.06 please give me details

    on the Insert command button and add the following code to the button click event:
    try
    string results = "";
    OracleConnection con = new OracleConnection("DSN=Employee;uid=system;pwd=test");
    con.Open();
    .....................................................................

  • 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 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 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 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

Maybe you are looking for

  • My caller id is not working on iphone 5 - it beeps but doesn't show who is calling or let me click over

    I have recently had my iphone 5 not show who is calling on call waiting.  The phone beeps but doesn't show the number / per son that is calling, won't let me click over and won't show who it was in my call history.  Help very annoying.

  • How to get the service name of a webservice using UDDI API

    Hi, Iam working on setting up a dynamic partner link in a BPEL, by passing the endpoint of a web service queried from the UDDI (Oracle Service Registry 10.3 ) using the API. Iam able to do it successfully. Now, for example I have two operations in my

  • Audio Looping bug in rendered output

    I've hit a recent issue where I'm getting audio looping / stuttering bugs in the rendered output. Doesn't happen at the start of the clip, but elsewhere if I fade everything down to black / nothing, and then fade up again into the next clip, the audi

  • Multiple Managed Beans

    Does it make sense to have multiple managed beans with a JSF app? Is there a tutorial for doing this in JSC? I can see the need for a larger app to have many managed beans at the request level and/or session level. If there isn't a way to do this the

  • Cloning a database from data guard

    Hi Gurus, I have a situation where I am using 11g R1 11.1.0.7 Primary database in server prodsrv and active data guard read only db in drsrv host. I have to clone a new dev database in drsrv database. since 11g R1 supports clone from active database,