How to connect with oracle8/8i in jdbc program

Dear Pal
I am getting problem in connecting Oracle8/8i database , I am registering driver using
String dsnName = "jdbc:oracle:thin:@<Server>:<Port>:<DSN-Name>";
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
but it is giving error(name oracle.jdbc.driver.OracleDriver not declared as type) during compilation .
Please help ...
divyanand

Never tried the oracle drivers, but the usual way to load a jdbc driver is:
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
catch(ClassNotFoundException cnfe) {
System.out.println(cnfe.getMessage());
And then you get a Connection object using:
try {
Connection con = DriverManager.getConnection(dnsName);
catch(SQLException sqle) {
System.out.println(sqle.getMessage());
}

Similar Messages

  • I need to know how to connect with my Black Berry

    Hi good morning, A few days ago I bought a 3rd generation ipad with wifi and I need to know how to connect with my Black Berry, as if this were the modem. Regards and thanks

    The BB has to be set up as a wifi hotspot. After you do that just connect the iPad to the wifi network created on the BB the same way you connect to any other wifi network.

  • How to connect Sql Server 2000 using JDBC ODBC Driver

    How to connect Sql Server 2000 using JDBC ODBC Driver ?
    plz Send Syntax.
    thanks

    In SQL Server 2000 the driver class is com.microsoft.jdbc.sqlserver.SQLServerDriver
    The connection URL for the default SQL Server 2000 database is jdbc:sqlserver://localhost:1433
    Class.forName(
      "com.microsoft.sqlserver.jdbc.
      SQLServerDriver");
    String url =
      "jdbc:sqlserver://localhost:1433";
    Connection conn = DriverManager.
      getConnection(
      url, "sa", "sqlserver");

  • Does anyone know how to connect with an external modem and AOL service?

    i just got the macbook yesterday and the modem came today, and i cannot figure out how to connect with an AOL account using the external modem. does anyone know how, or have the same problem??
    Macbook 1.83Ghz White   Mac OS X (10.4.7)  

    Hi MacMan2006! And Welcome To Discussions!
    Do you have the AOL software installed?
    When you open System Preferences > Network > Location: Automatic & at Show: is there an option to select External Modem?
    If so, is your Modem Model listed?
    ali b

  • How to connect iseries green screen from java program

    how to connect iseries green screen from java program to get the data in the DB files ,here the DB is DB2/400

    Just some Friday fun. Use the telnet program that comes with Windows and supports VT escape sequences.
    import java.io.*;
    import java.net.*;
    public class AutoTelnet {
         private static Socket s;
         public static void main(String[] args) throws Exception {
              Thread t = new Thread() {
                   @Override public void run() {
                        try {
                             s = new ServerSocket(5555).accept();
                        } catch (IOException ex) {
                             ex.printStackTrace();
              t.start();
              Process p = new ProcessBuilder("cmd", "/C", "start", "telnet", "127.0.0.1", "5555").redirectErrorStream(true).start();
              t.join();
              PrintStream ps = new PrintStream(s.getOutputStream());
              ps.println("Screen will be cleared in 5 seconds");
              ps.println("5");
              Thread.sleep(1000);
              ps.println("4");
              Thread.sleep(1000);
              ps.println("3");
              Thread.sleep(1000);
              ps.println("2");
              Thread.sleep(1000);
              ps.println("1");
              Thread.sleep(1000);
              ps.println("\u001b[2J");
              Thread.sleep(5000);
    }

  • How to get Connection with Oracle8i In OAS through EJB?

    I've created a EJB in OAS,and invoked its method successfully.However,when I added a method using JDBC to get connection to Oracle8i,it failed.The source code is as below:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection l_connection = DriverManager.getConnection(......);
    then there is an Exception about omg.CORBA;
    but using the code in an application to connect to Oracle8i directly is ok.
    Would you please give me some advices?
    null

    Were you able to fix your problem?
    I am getting a similar error. I am using the Reference Implementation from J2EE SDK.
    I can connect to Oracle8i with JDBC in a Java Application but when I put my code in my Entity Bean, I get a NoClassFoundError on the oracle.jdbc.OracleDriver.
    Any suggestions?
    Al
    [email protected]

  • HELP about How to connect with Database without JDBC ?

    Hello all,
    i have oracel8i database and my programe work fine with JDBC
    but now
    i want to connect my programe with database without using JDBC connection please any body tell me syntex for that,
    Class.forName("oracle.jdbc.driver.OracleDriver");
    databaseConnection = DriverManager.getConnection("??","arif","arif");
    i have user arif in my database and my computer name is "ABCD"
    Please help me,
    i m thanksfull,
    onlyforjava.

    Thanks i try it,
    url = "jdbc:oracle:thin:@ABCD:1521:" + sid;
    connection = DriverManager.getConnection(url,"arif","arif");
    but after that i got exception,
    java.sql.SQLException: Protocol violation
    Please help me,
    i m thanksfull.
    onlyforjava.

  • How to connect with a cable box

    I cannot seem to find any information on how to connect up an Apple TV in a system that has an external cable box. I live in NY City where you cannot get cable TV without the external cable box. Where in the set up (along with my DVD player and component audio) do I fit the AppleTV?
    PowerBook G4 15FW800   Mac OS X (10.4.9)   1GB RAM

    I've used a 5 X 1 HDMI switch from Monoprice.com and it works just fine. I only have two HDMI inputs on my TV and use one just for the cable box and the other has the 5X1 switch hooked to it. The five ports are: a Toshiba DVR, a Mac Mini, an Apple TV, a DVI to HDMI cable for my MacBook and a spare port hopefully a HD-DVD some day.
    One problem is if you calibrate the HDMI port on the TV to a device on the switch, when you switch to a different device the picture may not be optimal for that second (third, fourth or fifth) device. This is not the fault of the switch, rather a function having different devices on one HDMI port.
    Rarely, very rarely, when switching to the Apple TV you need to tell it the resolutions for the TV.
    Finally, if you are impatient, it takes three seconds or so when switching between devices. Otherwise a switch works great for me.
    David
    MBP home, AlBook work, TiBook retired   Mac OS X (10.4.10)  

  • How can connect to oracle8 server(install in RedHat6.0)

    I have installed Oracle Standard Edition 8.0.5.1
    in RedHat6.0 . Now I can't connect to it with Windows95
    client.
    get an ORA-12500 error.
    1. successful start Oracle use "dbstart"
    2. successful start the LISTENER use "lsnrctl" -- 'start'
    to /home/oracle/805/network/log/listener.log
    Listening on: (ADDRESS=(PROTOCOL=tcp)(DEV=6)
    (HOST=xxx.xxx.xxx.xxx)(PORT=1521))
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=magic.com)(PORT=1521)
    (COMMUNITY=UK_SUP_TCPIP))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for linux ......
    Start Date 23-FEB-98 20:38:50
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security OFF
    SNMP ON
    Listener Parameter
    File /home/oracle/805/network/admin/listener.ora
    Listener Log
    File /home/oracle/805/network/log/listener.log
    Services Summary...
    xoracle has 1 service handler(s)
    The command completed successfully
    LSNRCTL> exit
    null

    Hi Sushama,
    Seeburger AS2 Adapter supports the SFTP using PI
    Have you checked this threads
    Help needed for SFTP on Seeburger
    How to connect SFTP from the XI
    Regards
    Ramesh

  • How to connect with VPN of type L2TP programatically in IOS8 ? canse NEtwoatically in IOS8 ? can i use NEtwork/Extension framework for this?rk/Extension framework for this?

    I have a mobileconfig file and the VPNType is L2TP . How can i connect to this VPN programatically in IOS8 ?Apple's Network/Extension framework has methods which supports IPSEC and IKEV2 protocols(NEVPNProtocolIPSec, NEVPNProtocolIKEv2). Can i use Network/Extension framework to connect with L2TP type VPN ?

    I have a mobileconfig file and the VPNType is L2TP . How can i connect to this VPN programatically in IOS8 ?Apple's Network/Extension framework has methods which supports IPSEC and IKEV2 protocols(NEVPNProtocolIPSec, NEVPNProtocolIKEv2). Can i use Network/Extension framework to connect with L2TP type VPN ?

  • How to connect with database in JBuilder?

    Hi,
    I try to connect with database in JBuilder7, but the connection is failed. please tell me what is wrong? thanks!
    In connection tab:
    Driver: sun.jdbc.odbc.jdbcodbcDriver
    URL: jdbc:odbc:MS Access Database:h:\onlinestore\database\book.mdb
    Error:
    com.borland.dx.dataset.DataSetException: [Microsoft][ODBC Driver Manager] Data source name too long
    Jun

    URL: jdbc:odbc:MS Access Database:h:\onlinestore\database\book.mdbshould be jdbc:odbc:DBname:book.mdb

  • How to connect with Oracle database in JSF ?

    Hi ,
    am very new to JSF,i want to perform a database connection with an Oracle database through JSf.Is there any special tag as such in struts for DB connectivity in JSF?Can any one help me?

    No.
    A database shouldn't even be reached from inside the view layer. Do it in the controller/business layer, e.g. the backing bean. Read on about JDBC, DAO, DTO. If you're already familiar with that, consider an ORM, like Hibernate.

  • SB Live! 5.1 how to connect with my HiFi-Syst

    Hey,
    I want to connect my Soundblaster Li've! 5. with my amplifier.
    The amplifier is connected to two stereo loudspeaker.
    It?s kind of an old amplifier with DIN connections, so I have to use a Cinch to DIN adapter. But the adapter has two cinch cables, one for the left signal and one for the right. (http://www.starcom-edv.de/shop/pics/AudioAdapter_DIN_St-Cinch_St_s.jpg)
    I really don?t know how to connect it to my Soundcard. (http://img55.imageshack.us/img55/4602/picture0032vf.jpg)
    Aditional I want to connect my PC with my TV, so I need one Line-Out for my TV.
    Please hep me!

    Is tha 2 x RCA to DIN intend for playback or recording input (or are those DIN connector wires equal for Input and output purposes)?
    You need another cable: 2 x RCA to 3.5mm (/8") stereo mini jack plug to get the SB and Hi-Fi connected. Connect the PC just the way, you would connect a casette deck into a stereo system (if you know how to do this) so, you get both playback and recording capability or just connect the output from PC into Hi-Fi system).
    For that TV connection, do you mean you would use the TV as output device (PC --> TV)?
    If that's what you're after, then just use the another line-out from your Li've card for that connection, otherwise (TV -> PC) connect the TV output into Li've Line-In or into some of those, possible available, internal analog inputs (AUX_IN, CD-AUDIO, etc.).
    jutapaMessage Edited by jutapa on 0-2-20072:52 PM

  • How to connect with waveform graph?

    hi
      i would like to know how to simulate wave form graph the input is randon number ?My problem is i cannot connect with wave form graph...
    can u show me example..like using arrary...or something else..i looking forward ur reply
    thank u

    I have an example that you may want to look at here.
    The example was for a signal generator, but there is a waveform graph to show the selected waveform.  It is an extremely basic program, but might be a good start.
    RayR

  • HP/Agilent Infiniium 54831B scope - how to connect with LabView 6.0 by LAN (TCP/IP)

    Dear,
    I'm looking inf. how to connect Agilent Infiniium 54831B scope with LabView 6.0 by LAN (TCP/IP).
    Thanks in advance.
    Regards,
    Z.Mrowka
    mailto:[email protected]

    Hello,
    If the instrument is capable of being controlled from its TCP/IP port, it will be possible to communicate with the instrument from LabVIEW using VISA.
    The VISA resource name input will need to be entered manually and is a little different from the normal Serial or GPIB format. The format is as follows:
    For SOCKET connections, this is just like the traditional TCP functionality in LabVIEW. An example string that connects with the NI FTP site is:
    "TCPIP::ftp.ni.com::21:OCKET"
    For INSTR connection, this requires a device that supports the T&M standard LAN instrument protocol. An example of this (that we have tested with) is the Tektronix 3054 Scope. A string that connects with this scope is: "TCPIP::HostnameOrIP::gpib0,1::INSTR"
    I hope this
    helps,
    Anthony Bacak
    National Instruments
    Applications Engineering

Maybe you are looking for

  • Variable replacement path with another variable

    Hi Guru's I'd like to use the functionnality of replacement path from a variable. Well, i have variable V_1 which is a basic manual entry variable based on a date infoobject. this variable is not mandatory and accessible. And i have the variable V_2

  • Purchase requsition and Purchase order Price Changes

    Hi All, When purchase requsition(XXXXXXXX) is converted in to a purchase order through ME 59N(YYYYYYYYYY),after converting in to a purchase order i will change the purchase order price to a new value. How can i track the price changes for a purchase

  • Date determination in sap crm 7.0

    Hi experts, Date determination in sap crm 7.0  . Please explsin the concepts. how is it relevant to Business.Transaction. Thanks in advance Prajith P

  • How to create non valuated material

    I need to create non valuated material Please help me to create the same. Thanks Rupesh

  • Missing expression error...

    Trying to do this in a function, that takes table_name, col_name, col_value and returns 0 or 1 1- record exists 0- record does not exists - error EXECUTE IMMEDIATE ' SELECT COUNT(*) INTO nExists FROM ' || table_name || ' WHERE ' || col_name || ' = '