(applet,thin driver): IE works, appletviewer not; driver location?

Hi,
there are a lot of questions around this topic but I couldn't find a specific answer to this:
I programmed an applet under WinNT (connection to Oracle 8i thru thin driver) and keep the Oracle drivers in the ..\Ora8i\jdbc\lib\ place (ZIPped), classpath set correctly.
The applet works fine in IE on my local machine, but not in the appletviewer (it can't find the driver class). Without applet-specific part it works fine using 'java ...'.
I use the suggested 'import oracle.jdbc.driver.OracleDriver' statement.
2nd question: since this applet is supposed to run on a webserver (and not only my local machine...), where do I place the driver (class or whole zip-file?) and how do I tell the main class / applet where to look for it instead of Ora8i\jdbc\lib\ ?
Thanks for any help!!

There's a fair amount of fiddling you can do with packets sent over the network by SQL*Net, but that requires the OCI driver. The thin driver is writing out Oracle's wire protocol which isn't publicly documented.
The OCI driver is going to be faster in general than the thin driver, and you're going to have more flexibility to optimize its network traffic.
Justin

Similar Messages

  • JSP Not Working with Thin Driver

    My JSP is not working with Oracle thin driver but it is working with Oracle OCI driver.
    From my jsp i am calling a stored procedured and passing 170 parameters to the procedure. This JSP works with Oracle OCI Driver configured as thrid party drivers in iAS6.0 SP2, but not working with Oracle Thin Driver configured as third party drivers in iAS6.0. My thin driver JDBC Connection URL is as follows:
    jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = MAPDBI01)(PORT = 1521)))(CONNECT_DATA =(SID = MAPS))).
    I have to give this URL because my production server deployment consists of iWS4.1 SP5 and iAS6.0 SP2 in different solaris boxes and Oracle 8.1.7 Database server in another Solaris Box. There is a pool of proxy servers between iAS6.0 box and the oracle box.

    Wim,
    I'd really appreciate it if you could provide some sample code. A complete, small, simple java class that I could copy and try out would be wonderful -- if it's not too much trouble.
    Thanks heaps (in advance :-),
    Avi.

  • Sql_trace does not work for Java app using Oracle JDBC thin driver

    Hi,
    I'm using Oracle 8.1.7. I enabled sql trace at instance level by setting sql_trace and timed_statistics to true in init.ora. I restarted the db instance. I wrote a stand-alone java application which used Oracle JDBC thin driver(classes12.zip) to make a connection to my db instance, do some select statements, and close the connection. There were no trace files generated in the folder specified by udump_dest variable. However, if I used sqlplus or dba studio, I saw trace files generated. Has anyone got Oracle sql trace work for JDBC calls from java apps.
    Thanks in advance!

    Hi,
    I'm using Oracle 8.1.7. I enabled sql trace at instance level by setting sql_trace and timed_statistics to true in init.ora. I restarted the db instance. I wrote a stand-alone java application which used Oracle JDBC thin driver(classes12.zip) to make a connection to my db instance, do some select statements, and close the connection. There were no trace files generated in the folder specified by udump_dest variable. However, if I used sqlplus or dba studio, I saw trace files generated. Has anyone got Oracle sql trace work for JDBC calls from java apps.
    Thanks in advance!

  • Applet Oracle thin driver on IE: NO Suitable Driver

    Dear Sir, Happy New Year to you and Shailesh Sir.
    I used IIS server under Win 2k, applet is perfectly working from anywhere, using thin driver in Netscape but not in IE 5.0 or 4.0.
    Following are the exceptions for IE:
    111) The code under 111-applet folder of Oracle:
    Driver name: JDBC driver oracle.jdbc.driver.OracleDriver
    Connection String : jdbc:oracle:thin:student/student@cmmserver:1521:cmmora
    Exception:
    No suitable driver
    class java.sql.SQLException
    102) The code under 102-applet folder of Oracle:
    Driver name: JDBC driver oracle.jdbc.dnlddriver.OracleDriver
    Connection String : jdbc:oracle:dnldthin:student/student@cmmserver:1521:cmmora
    Exception:
    No suitable driver
    class jdbc.sql.SQLException

    oracle.jdbc.driver.OracleDriver is in ora81/jdbc/lib/classes12.zip
    Include classes12.zip in your classpath.

  • How JDBC thin driver protocol works ???

    Hi,
    I'm having some problems, I think, with an application that I developed using Java (j2se 1.4.0), the system performance is very good (1500 msec per query) unfortunelly my customer want's more than that.
    So I've been working in some optimizations against the code that execute the query, after reading the JDBC Developers guide some modifications were made at the code, altering Statement to PreparedStatement, the time down to 1200 msec, yet too much.
    Then I tried another aproach, I've put an Sniffer on the LAN and sniffed the packets that flow to the database from the applet when I executed one single PreparedStatement resulting this table:
    --- Time: 2002-10-21 14:16:06
    Src IP Dst IP sent recv
    TCP 10.0.0.122 1895 10.0.0.119 1525 55 0
    TCP 10.0.0.122 1895 10.0.0.119 1525 0 51
    TCP 10.0.0.122 1895 10.0.0.119 1525 133 0
    TCP 10.0.0.122 1895 10.0.0.119 1525 0 40
    TCP 10.0.0.122 1895 10.0.0.119 1525 0 127
    TCP 10.0.0.122 1895 10.0.0.119 1525 40 0
    The query executed:
    select trim(cidade) nome, trim(coduf) uf from cacidade where codcidade = :1
    Where codcidade is the Primary Key.
    I'm using defineColumnType in the PreparedStatement.
    Anyone knows how can I reduce the number os packets that the thin driver put in the network ?
    That packets sent and received depents in each other ?
    How are implemented the TTC over Java sockets by Oracle?

    Anyone knows how can I reduce the number os packets that the thin driver put in the network ?
    That packets sent and received depents in each other ?
    How are implemented the TTC over Java sockets by Oracle? You should post this question on the JDBC forum here on OTN. Someone there may have more insight into the internals of the jdbc drivers.
    Hope this helps,
    Rob

  • How to set SunOne IDE to work with Oracle thin driver

    I am new to the SunOne IDE. I am trying to use the JDBC wizard to generate a form to work with an Oracle table. I want to use the ORacle thin driver but I am not sure how I can tell the IDE where its located. Can someone help? Thanks.

    In the explorer window select "RUNTIME".(Bottom of window tabbed pane)
    Expand "DATABASES"
    Expand "DRIVERS"
    Scrolldown and you'll see Oracle thin - click on that and set properties.
    Then right click "Oracle thin" click "connect using..."
    From here/there you should be able to view all tables you have access to view..etc.

  • Could not connect through thin driver

    I am trying to connect to database through thin driver but getting the following exception :
    Io exception:The Network Adapter could not establish the connection
    java.sql.SQLException: Io exception : The Network Adapter could not establish the
    connection at oracle.jdbc.dbacess.DBError.throwSqlException(DBError.java:168)
    but I am able to coonect to the database through the oracle client and also through the odbc bridge driver.
    also I am able to connect to other oracle database but not the particular.
    pls if anyone can help ,suggest me what could be the possible error and solution to it.
    Thank u.

    I am not sure what is your URL parameter in the getConnection Method !
    Check if the it is
    jdbc:oracle:thin:@<ip-Add of server>:<port no>:<SID>
    e.g.
    jdbc:oracle:thin:@10.173.110.70:1521:cpmnc
    Hope this works !
    null

  • Applet which uses the JDBC Thin driver

    My applet is running from Internet Explorer(Windows NT 4.0) and uses the JDBC
    Thin Driver to connect to database. The code complies with J2SDK1.4.0-beta3 and
    JDBC 2.0. I am getting following error:java.lang.NoClassDefFoundError:
    oracle/jdbc/driver/oracleDriver at applet.button_actionPerformed...
    Can anybody help?
    help urgently needed...
    Best regards and thanks in advance

    AFAIK the Oracle drivers still don't work with JDK 1.4, switch to 1.31 and they should be fine.

  • Does multilingual work with Oracle oci8 Driver? I am facing problems with oci8 while thin driver works fine ...

    Hi, I am currently working on iPlanet 6.0 SP4 with oracle 8.1.6. I am planning to make my application language independent. while testing I figured out that if i use oci8 driver or oracle, it doesn't support other language characters while the thin driver supports fine. Can anybody help me regarding this? Is this a bug, or some possible configuration issue? Has somebody came across this problem before? How do i go about it ?

    We faced same issue. Looks like the native driver does not support the automatic data encoding/decoding from/to database. You can always workaround this by reading everything as byte stream and then by letting java handle the encoding/decoding. But we decided to use type4 thin driver which does this automatically if you set the content type. Anyway we are told that later versions of IAS may not support native drivers, so if you are serious about multi language shift to type4 thin drivers now itself.

  • ORA01002 with Oracle thin driver - not with JDriver

    Hi,
    I use weblogic 5.1 SP10. I was using the weblogic JDriver to create a connection
    pool for my entity beans with BMP. I switched from the weblogic Jdrivers to using
    the Oracle thin driver (classes12.zip) for my connection pool. Now i get a ORA-01002
    (fetch out of sequence) for my ORACLE 8.1.6 SELECT FOR UPDATEs. I can solve this
    by - explicitly setting autocommit to false for the connection. This is within
    in the EJB transaction.
    Why I have to do this with the Oracle thin driver and not with the Weblogic JDriver
    Any thoughts on this are appreciated !

    From this I assume that you know what you are doing but I have to ask, are you
    using the TxDataSource to obtain the connection in your BMP entity beans? If
    so, I would talk to support...
    Anand wrote:
    Hi Robert,
    I am using the TxDataSource in the workout.properties file.
    eg:
    weblogic.jdbc.TXDataSource.MyDBPool =MyDBPool
    The connection pool is defined as below:
    weblogic.jdbc.connectionPool.MyDBPool =\
    driver=oracle.jdbc.driver.OracleDriver,\
    url=jdbc:oracle:thin:@localhost:1521:MyDb,\
    loginDelaySecs=1,\
    initialCapacity=10,\
    maxCapacity=20,\
    capacityIncrement=2,\
    allowShrinking=true,\
    shrinkPeriodMins=15,\
    refreshMinutes=10,testTable=dual,\
    props=user=admin;password=password
    Robert Patrick <[email protected]> wrote:
    How are you obtaining the connection from the pool? Make sure you are
    using a
    TxDataSource...
    Anand wrote:
    Hi,
    I use weblogic 5.1 SP10. I was using the weblogic JDriver to createa connection
    pool for my entity beans with BMP. I switched from the weblogic Jdriversto using
    the Oracle thin driver (classes12.zip) for my connection pool. Nowi get a ORA-01002
    (fetch out of sequence) for my ORACLE 8.1.6 SELECT FOR UPDATEs. I cansolve this
    by - explicitly setting autocommit to false for the connection. Thisis within
    in the EJB transaction.
    Why I have to do this with the Oracle thin driver and not with theWeblogic JDriver
    Any thoughts on this are appreciated !

  • JBO-26061, Null User Name and password not supported by thin driver

    Hello !
    I have just installed Oracle 8.1.6 on my Linux Box.My Jdeveloper is installed on Win 98 Box. Now I am trying to execute the Online Orders sample package provided with the Jdeveloper. I have followed the instructions provided with the Jdeveloper Tutorial sample. The test connection between the client and server are a success. The OnlineOrder test is also a success. When I run The Application.java Class then it is giving the
    JBO-26061 error with details as Null user name and password not supported by thin driver.
    Where I am wrong I dont understand. Pls guide?

    jdeveloper is certifed to run on the win nt AND win 200 platforms only.
    Please read the "Install notes" file (install.htm) before proceeding further.

  • I can't load pictures to online site... Iphoto works but not aperture.  I have edited photos that i exported to an external drive but they will still not load to Walgreens for printing.  Does anyone know what I can do?

    I can't load pictures to online site... IPhoto works but not aperture3.  I have edited photos that I exported to an external drive but they will still not load to Walgreens for printing.  Does anyone know what I can do?

    Are you shooting RAW? Are you exporting masters or versions? Is there a size limitation on the Walgreens site?

  • Is jdbc thin driver not designed for internet use?

    Is jdbc thin driver not designed for internet use?
    The size of the thin-driver file is about 1MB of size and is
    too large if were to ask clients to download it from the
    internet.
    Can anyone advise on this issue?
    null

    You need to remote onto the server and go into start->control panel-Administration-> ODBC (or sometimes start->administration->ODBC) and set up ODBC connections . Make sure you set them up on the system tab, then you should see them in EAS. I don't remember, b ut don't think you need to restart the Essbase servise for them to take effect

  • Applet Working in the AppletViewer not Working in Explorer

    After a few compilation of the following code the changes I made to the java file were only viewed by the appletviewer, not the explorer, the change I have made and is not shown in the explorer is setting the foreground and back round of calPanel label. Please compile the code yourself:
    import java.awt.*;
    import java.lang.*;
    import java.awt.event.*;
    public class JavaCal extends java.applet.Applet implements ActionListener {
    // The 2 variables contain the numbers
    // for the action to take place
    double doubleBuf1 = 0;
    double doubleBuf2 = 0;
    // Contains the numbers and act in string format
    StringBuffer totalBuffer = new StringBuffer();
    // Interface components
    Button calPercent, calSqr, calClear, calDev, calSeven, calEight, calNine, calMul, calFour, calFive, calSix, calSub, calOne, calTwo, calThree, calAdd, calNull, calDec, calEquals;
    Label calPanel = new Label("0", Label.RIGHT);
    void buildConstraints(GridBagConstraints gbc, int gx, int gy,
    int gw, int gh, int wx, int wy) {
    gbc.gridx = gx;
    gbc.gridy = gy;
    gbc.gridwidth = gw;
    gbc.gridheight = gh;
    gbc.weightx = wx;
    gbc.weighty = wy;
    public void init() {  
    setBackground(Color.white);
    GridBagLayout gridbag = new GridBagLayout();
    GridBagConstraints constraints = new GridBagConstraints();
    setLayout(gridbag);
    //Calculator Panel label field
    buildConstraints(constraints, 0, 0, 4, 1, 0, 2);
    constraints.fill = GridBagConstraints.BOTH;
    gridbag.setConstraints(calPanel, constraints);
              calPanel.setForeground(new Color(65280));
              calPanel.setBackground(new Color(0));
    add(calPanel);
    constraints.fill = GridBagConstraints.NONE;
    //Button %
    buildConstraints(constraints, 0, 1, 1, 1, 100, 100);
    constraints.fill = GridBagConstraints.BOTH;
    calPercent = new Button("%");
    gridbag.setConstraints(calPercent, constraints);
    add(calPercent);
    calPercent.addActionListener(this);
    //Button Sqr
    buildConstraints(constraints, 1, 1, 1, 1, 100, 100);
    calSqr = new Button("sqr");
    gridbag.setConstraints(calSqr, constraints);
    add(calSqr);
    calSqr.addActionListener(this);
    //Button Clear
    buildConstraints(constraints, 2, 1, 1, 1, 100, 100);
    constraints.fill = GridBagConstraints.BOTH;
    calClear = new Button("c");
    gridbag.setConstraints(calClear, constraints);
    add(calClear);
    calClear.addActionListener(this);
    //Button \
    buildConstraints(constraints, 3, 1, 1, 1, 100, 100);
    calDev = new Button("/");
    gridbag.setConstraints(calDev, constraints);
    add(calDev);
    calDev.addActionListener(this);
    //Button 7
    buildConstraints(constraints, 0, 2, 1, 1, 100, 100);
    calSeven = new Button("7");
    gridbag.setConstraints(calSeven, constraints);
    add(calSeven);
    calSeven.addActionListener(this);
    //Button 8
    buildConstraints(constraints, 1, 2, 1, 1, 100, 100);
    calEight = new Button("8");
    gridbag.setConstraints(calEight, constraints);
    add(calEight);
    calEight.addActionListener(this);
    //Button 9
    buildConstraints(constraints, 2, 2, 1, 1, 100, 100);
    calNine = new Button("9");
    gridbag.setConstraints(calNine, constraints);
    add(calNine);
    calNine.addActionListener(this);
    //Button *
    buildConstraints(constraints, 3, 2, 1, 1, 100, 100);
    calMul = new Button("*");
    gridbag.setConstraints(calMul, constraints);
    add(calMul);
    calMul.addActionListener(this);
    //Button 4
    buildConstraints(constraints, 0, 3, 1, 1, 100, 100);
    calFour = new Button("4");
    gridbag.setConstraints(calFour, constraints);
    add(calFour);
              calFour.addActionListener(this);
    //Button 5
    buildConstraints(constraints, 1, 3, 1, 1, 100, 100);
    calFive = new Button("5");
    gridbag.setConstraints(calFive, constraints);
    add(calFive);
              calFive.addActionListener(this);
    //Button 6
    buildConstraints(constraints, 2, 3, 1, 1, 100, 100);
    calSix = new Button("6");
    gridbag.setConstraints(calSix, constraints);
    add(calSix);
              calSix.addActionListener(this);
    //Button -
    buildConstraints(constraints, 3, 3, 1, 1, 100, 100);
    calSub = new Button("-");
    gridbag.setConstraints(calSub, constraints);
    add(calSub);
    calSub.addActionListener(this);
    //Button 1
    buildConstraints(constraints, 0, 4, 1, 1, 100, 100);
    calOne = new Button("1");
    gridbag.setConstraints(calOne, constraints);
    add(calOne);
              calOne.addActionListener(this);
    //Button 2
    buildConstraints(constraints, 1, 4, 1, 1, 100, 100);
    calTwo = new Button("2");
    gridbag.setConstraints(calTwo, constraints);
    add(calTwo);
    calTwo.addActionListener(this);
    //Button 3
    buildConstraints(constraints, 2, 4, 1, 1, 100, 100);
    calThree = new Button("3");
    gridbag.setConstraints(calThree, constraints);
    add(calThree);
    calThree.addActionListener(this);
    //Button +
    buildConstraints(constraints, 3, 4, 1, 2, 100, 100);
    calAdd = new Button("+");
    gridbag.setConstraints(calAdd, constraints);
    add(calAdd);
    calAdd.addActionListener(this);
    //Button 0
    buildConstraints(constraints, 0, 5, 1, 1, 100, 100);
    calNull = new Button("0");
    gridbag.setConstraints(calNull, constraints);
    add(calNull);
    calNull.addActionListener(this);
    //Button .
    buildConstraints(constraints, 1, 5, 1, 1, 100, 100);
    calDec = new Button(".");
    gridbag.setConstraints(calDec, constraints);
    add(calDec);
    calDec.addActionListener(this);
    //Button =
    buildConstraints(constraints, 2, 5, 1, 1, 100, 100);
    calEquals = new Button("=");
    gridbag.setConstraints(calEquals, constraints);
    add(calEquals);
    calEquals.addActionListener(this);
         public void actionPerformed(ActionEvent event)
              /* Declares an object named "src" to represent the event.getSource()
              * method. This shortens the code that follows.
              Object src = event.getSource();
              /* Checks to see if the source of the event which src is representing
              * is a Button and can behave like a Button
              if (src instanceof Button)
         if(src == calNull) calPanel.setText("0");
         if (src == calOne) calPanel.setText("1");
         if(src == calTwo) calPanel.setText("2");
         if(src == calThree) calPanel.setText("3");
         if(src == calFour) calPanel.setText("4");
         if(src == calFive) calPanel.setText("5");
         if(src == calSix) calPanel.setText("6");
         if(src == calSeven) calPanel.setText("7");
         if(src == calEight) calPanel.setText("8");
         if(src == calNine) calPanel.setText("9");
         if(src == calAdd) calPanel.setText("+");
         if(src == calSub) calPanel.setText("-");
         if(src == calMul) calPanel.setText("*");
         if(src == calDev) calPanel.setText("/");
         if(src == calDec) calPanel.setText(".");
         if(src == calEquals) calPanel.setText("=");
         if(src == calClear) calPanel.setText("c");
         if(src == calSqr) calPanel.setText("sqr");
         if(src == calPercent) calPanel.setText("%");                         
    }

    Well,
    ata the end of init() method add two lines:
    doLayout();
    validate();

  • 9.0.1 JDBC thin driver not logging

    Does anyone know how to get the 9.0.1 thin JDBC driver to do logging,
    the way the 8.1.7 driver did (via DriverManager.setLogStream)?
    Looks like OracleLog has a constant compiled in
    that prohibits any logging, and its class javadoc states:
    "This facility is only enabled in the debug zip/jar file. " However, there's only
    one driver (classes12.zip)
    available for download at http://technet.oracle.com/software/tech/java/sqlj_jdbc/htdocs/solsoft.html.
    I can't find any "debug" zip file available for download.
    Has anyone found a 9.0.1 thin driver that logs correctly?
    Thanks very much,
    Jim Doyle
    [email protected]

    Does anyone know how to get the 9.0.1 thin JDBC driver to do logging,
    the way the 8.1.7 driver did (via DriverManager.setLogStream)?
    Looks like OracleLog has a constant compiled in
    that prohibits any logging, and its class javadoc states:
    "This facility is only enabled in the debug zip/jar file. " However, there's only
    one driver (classes12.zip)
    available for download at http://technet.oracle.com/software/tech/java/sqlj_jdbc/htdocs/solsoft.html.
    I can't find any "debug" zip file available for download.
    Has anyone found a 9.0.1 thin driver that logs correctly?
    Thanks very much,
    Jim Doyle
    [email protected]

Maybe you are looking for

  • SSMA for migrating table from oracle to Sql server

    Hi All, I wanted to replicate oracle huge table to sql server and i am using SSMA.its helpful and fast but can we replicate the table to different name using SSMA.for example i have a table TEST and i wanted to replicate it to SQL_TEST.Can it be poss

  • Installing final cut express with  a disc drive

    I have 2 copies of final cut express 4, however my laptop was stolen. I know have a new laptop but it is a mac book pro without a disc drive. How do install my copy of final cut express? I don't want to (and can't afford) to buy it again when I alrea

  • SQL help - Parse Hyphen delimited text from UDF

    Dear Experts, I am experiencing a challenge that I hope you can help me with. I have a requirement to create several separate UDF's to be populated with information from another UDF. It uses a hyphen delimited string and I need to parse the different

  • Multi Pass formatting on Macbook Pro (2012) purchase

    Hello Everyone, I am looking forward to wipe the data using MULTI PASS FORMATing, Can anyone guide on this, Kind request. Regards Ali

  • Itunes library without the view option  "comments" on my ipad

    On my Macbook itunes library beside artist, album and more view options I have selected comments where I add  important notations. Almost 4500 songs have a comment. When synchronising with my mini ipad I can't get my comments. Is there a way to do it