Connectivity of Applet with Oracle

I am able to connect an Applet to oracle.It is displayed on the client browser only when there is an .java.policy file in my home directory.I created a .java.policy file on my server home directory.It is not running on the client machine.Please let me know how i can overcome this problem.Going through some of the previous topics in the forum i saw that signing the applet is one of the solution....please let me know how i can sign the applet.....its very urgent.

we're currently looking at building the reports j2ee thin client for ibm websphere - however do not have a scheduled date for this. you can see if the j2ee thin client meets your requirements by looking at the doc for it for the bea client:
http://otn.oracle.com/products/reports/htdocs/getstart/examples/Tools/thinclient/bea/Readme.html
is something like this for websphere what you are looking for?
thanks
paul narth
oracle reports & portal product management

Similar Messages

  • Is it possible to connect Sqlfire server with oracle using DBSynchronizer using default license

    is it possible to connect Sqlfire server with oracle using DBSynchronizer using default license
    Sql fire is my machine
    Oracle is another machine
    When i connect sqlfire with oracle using DBsynchronizer It shows the error message as Wan is not supported for default license
    When i connect Sqlfie(my system) with oracle( another system) using JDBC Rowloader .nothing is happening after some time it shows the error like"time out for pool connection to archive database.When i increase the time out also nothing is happening.
    what is the reason for above two errors(I stated in the pragraph.)
    is it beacuse of wan netwrok not supported by default evaluation license?
    could you please explain?

    I don't think this has anything to do with a VMware product.

  • I want to connect an applet with an access database

    I want to connect an applet with an access(*.mdb) database, how I do?
    I now the jdbc odbc bridge but how work it?
    Please Help me!!!!!!!!!!

    If you want access database please install IDSSERVER and import j102.sql.*;
    Example:
    import java.awt.*;
    import java.io.*;
    import j102.sql.*;
    public class AccessMdb extends Applets {
    Connection con;
    ResultSet rs;
    Statement stmt;
    IDSDriver drv;
    String _url ="jdbc:ids://localhost:your port /conn?dsn="your database"";
    // make connection to database
    drv = new j102.sql.IDSDriver();
    try{
    con = drv.connect(_url,null);
    stmt = con.createStatement();
    // query database
    stmt.executeQuery("your SQL statement");
    }catch(Exception ex){
    System.out.println(ex.getMessage());
    Good luck.

  • How to connect google maps with oracle

    Hello people ,
    i read an artical there is a way to connect google maps with oracle .
    can anyone give us lesson or more information to do that ?
    regards .

    I guess, using Google for the same should be the best way to find the solution for it,
    http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=How+to+connect+google+maps+with+oracle
    HTH
    Aman....

  • How to connect pocket pc with oracle 9.2.0.6 databse

    hi,
    i have oracle 9 databse and erp which works with it.
    i need to create application for pocket pc which must work with oracle 9 database.
    how can i connect pda device with oracle databse?
    how to use oracle databse lite to do this?
    best regards

    I know there was a problem in 6i where you would get a crash if your query returned more than {Max Length} characters of the field representing the CLOB column.

  • Connect as: normal with Oracle 12c and Toad 12 FAILS.

    Connect as: normal with Oracle 12c and Toad 12 FAILS.
    I've been looked at forums, blogs and wikies but I couldn't found why my new user, that I created before, can't connect as NORMAL but as SYSDBA it can.
    I don't know why this occurs.
    My intention is create a user/schema in a local DB to have my own db.
    I can create a new user but when I go to connect to this new schema I only connect as SYSDBA, this is a big trouble because I can "see" object's DBA and I don't want this, I want create my own new schema db and not share name's object or name's tables with DBA.
    For example, object JOB exists as SYSDBA and I can't create a new table with this name.
    Please, help me.
    Thanks very much for read me.

    Hello rp0428!!
    I'll show you all step that you wrote.
    In sql plus:
    sho con_name
    CON_NAME
    CDB$ROOT
    SELECT name, created, open_mode FROM v$database;
    NAME CREATED                OPEN_MODE
    ORCL 23/07/2013 15:59:44 READ WRITE
    SELECT username, account_status, lock_date, expiry_date FROM dba_users WHERE USERNAME like '%IMEI%' ORDER BY 1;
    username       account_status  lock_date     expiry_date
    IMEILOCAL   OPEN                                    22/01/2014 12:20:25
    SELECT USERNAME,CON_ID,USER_ID FROM CDB_USERS WHERE USERNAME like '%IMEI%';
    USERNAME     CON_ID   USER_ID
    IMEILOCAL      3               117
    select GRANTEE,con_id from cdb_ROLE_PRIVS where GRANTED_ROLE='CONNECT' AND GRANTEE LIKE '%IMEI%';
    GRANTEE                  con_id
    IMEILOCAL                3
    SELECT NAME, CON_ID, DBID, CON_UID, GUID FROM V$CONTAINERS ORDER BY CON_ID;
    NAME       CON_ID    DBID                CON_UID         GUID
    ORCLC    3               2835062256     2835062256     14236144864B451C8E04D5C6453034FA
    To create my user I did:
    select con_id,dbid,NAME,OPEN_MODE from v$pdbs;
    2    4064112103    PDB$SEED    READ ONLY
    3    2835062256    ORCLC      MOUNTED
    alter PLUGGABLE database ORCLC open;
    select con_id,dbid,NAME,OPEN_MODE from v$pdbs;
    --2    4064112103    PDB$SEED    READ ONLY
    --3    2835062256    ORCLC      READ WRITE
    alter session set container=ORCLC;
    CREATE TABLESPACE DATA3 DATAFILE 'C:\app\X05699SA\oradata\orcl\DATA3.dbf' SIZE 50M;
    CREATE USER IMEILOCAL IDENTIFIED BY IMEILOCAL DEFAULT TABLESPACE DATA3 TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK;
    select username, password, created, password_versions, default_tablespace from dba_users where username like '%IMEI%';
    username      password     created                         password_versions    default_tablespace
    IMEILOCAL                       24/07/2013 16:41:35   11G                             DATA3
    GRANT CREATE SESSION TO IMEILOCAL;
    GRANT CREATE TABLE TO IMEILOCAL;
    GRANT CREATE VIEW TO IMEILOCAL;
    GRANT CREATE procedure TO IMEILOCAL;
    GRANT CREATE trigger TO IMEILOCAL;
    GRANT CONNECT TO IMEILOCAL;
    GRANT CREATE SEQUENCE to IMEILOCAL;
    GRANT create any context TO IMEILOCAL;
    GRANT create public synonym TO IMEILOCAL;
    GRANT execute on dbms_rls TO IMEILOCAL;
    GRANT administer database trigger TO IMEILOCAL;
    SELECT user, osuser, terminal, program FROM gv$session WHERE sid = (SELECT sid FROM v$mystat WHERE rownum = 1);
    user     osuser                                 terminal                      program
    SYS    SECTORIALES\X05699SA MX3500906DC1549 Toad.exe
    SELECT u.username, u.default_tablespace, u.temporary_tablespace "TMP TBS", u.profile, r.granted_role,
    r.admin_option, r.default_role
    FROM sys.dba_users u, sys.dba_role_privs r
    WHERE u.username = r.grantee and u.username like '%IMEI%'
    GROUP BY u.username, u.default_tablespace, u.temporary_tablespace, u.profile, r.granted_role,
    r.admin_option, r.default_role;
    IMEILOCAL USERS TEMP DEFAULT CONNECT NO YES
    SELECT tablespace_name FROM dba_tablespaces;
    SYSTEM
    SYSAUX
    TEMP
    USERS
    EXAMPLE
    DATA3
    SELECT name, password FROM user$ where name like '%IMEI%';
    IMEILOCAL passwordx
    select USERNAME, USER_ID, CREATED,                      COMMON, ORACLE_MAINTAINED from all_users WHERE username like '%IMEI%' order by 1;
              IMEILOCAL    117           24/07/2013 16:41:35       NO              N
    select * from user$ where name like '%IME%';
    117 IMEILOCAL 1 passwordx 3 2 24/07/2013 16:41:35 26/07/2013 12:20:25   0  1   0 0 DEFAULT_CONSUMER_GROUP  0   S:566C0A818AC42C203D49706D3586926A7656F5B16AA6C37E8FE10A1F779B;H:6FB057BA9F5B0690B93FD9A20695654D      
    Here you're my tnsnames.ora
    # tnsnames.ora Network Configuration File: C:\app\X05699SA\product\12.1.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    LISTENER_ORCL =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl.iecisa.corp)
    # Here you're my listener.ora Network Configuration File: C:\app\X05699SA\product\12.1.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = C:\app\X05699SA\product\12.1.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:C:\app\X05699SA\product\12.1.0\dbhome_1\bin\oraclr12.dll")
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    I think my problem source from about CDBs and PDBs, that is new in Oracle 12c and I'm not configure correcly my new DB and neither my new User
    Thanks for all!!!

  • Cannot connect jdev2.0 with oracle 8i

    I cannot connect my jdev2.0 with oracle 8i.
    I am getting the following error.
    "The network adapter couldn't make the connection"
    I would be really thankful if someone can help me this problem.

    I guess I should have also askced you which driver you are using to connect.. thin or OCI.
    First thing you should do is select your project and choose Properties from the right-mouse menu. Make sure 'Oracle 8.1.5 JDBC' shows up in the Libraries list. If it doesn't, choose Add to add it.
    If you are using the thin driver, try using the Named Host method of connecting (rather than existing TNS Names). This method does not depend on an external Oracle Home like the TNS method does.
    If you do want to use the TNS method, choose Tools|IDE Options from the menu. On the Environment tab, you can explictly set which Oracle Home to have JDeveloper look for the TNS entry.
    Also, for the thin driver, check the Oracle 8.1.5 JDBC User's Guide and reference. There is a section in Chapter 1 or 2 which provides sample code for testing a JDBC connection from the command line.
    If you are using the OCI driver, and your database is on the same machine that you are running JDev from: make sure that the Oracle Home JDev is using is the one where your database is installed.
    If you are using the OCI driver and the database is on a different machine, you need to install the Oracle Client software that matches the version of the JDBC drivers you are using (by default, 8.1.5 in JDev 2.0 and 3.0).
    Laura

  • How to connect Sql Developer with Oracle 11g Xe

    Hi all.
    I am new in the mac os x world and i want to now if it`s possible to connect the sql developer (running at mac os) with oracle xe (running at windows 8 at parallels vm).
    Thank u all.

    Perhaps the Building ASP.NET Web Applications with Oracle Developer Tools for Visual Studio from the Oracle By Example series will be enough to get you going.

  • Error connecting applet with oracle database

    hi all,
    here i m running the following code .
    it executes the following query "Select * from emp";
    the number in the text filed decides the column number to be displayed.
    import java.awt.*;
    import java.applet.*;
    import java.sql.*;
    /*<applet code=project.class width=300 height=200>
    </applet>*/
    public class project extends Applet
    Statement stmt=null;
    Connection conn = null;
    TextField t1;
    public void init()
    t1 = new TextField(2);
    add(t1);
    t1.setText("0");
    public void paint(Graphics g)
    int x=0,y=0,z=0;
    String s1,s2,s;
    try{
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    catch(Exception e)
    try{
    conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@anant:1521:student", "scott", "tiger");
    stmt = conn.createStatement();
    catch(Exception e)
    s1 = t1.getText();
    x = Integer.parseInt(s1);
    try{
    ResultSet rset = stmt.executeQuery("select * from emp");
    while (rset.next())
    s2 = (rset.getString(x));
    g.drawString(s2,100,100);
    stmt.close();
    catch(Exception e){}
    public boolean action(Event event,Object obj)
    repaint();
    return true;
    i m getting following error.
    Exception in thread "AWT-EventQueue-1" java.lang.NoClassDefFoundError: oracle/jdbc/OracleDriver
    at project.paint(project.java:23)
    at java.awt.Container.update(Container.java:1730)
    at sun.awt.RepaintArea.updateComponent(RepaintArea.java:239)
    at sun.awt.RepaintArea.paint(RepaintArea.java:216)
    at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:254)
    at java.awt.Component.dispatchEventImpl(Component.java:4031)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    this error comes when i run every jdbc applet.
    can anyone suggest any solution.

    Mintu,
    You said:
    i do have to access to jdbc driversNo, you don't. Otherwise you wouldn't be getting that error message.
    Good Luck,
    Avi.

  • Error connecing applet with oracle database

    here i m running the following code .
    it executes the following query "Select * from emp";
    the number in the text area decides the column number to be displayed.
    import java.awt.*;
    import java.applet.*;
    import java.sql.*;
    /*<applet code=project.class width=300 height=200>
    </applet>*/
    public class project extends Applet
    Statement stmt=null;
    Connection conn = null;
    TextField t1;
    public void init()
    t1 = new TextField(2);
    add(t1);
    t1.setText("0");
    public void paint(Graphics g)
    int x=0,y=0,z=0;
    String s1,s2,s;
    try{
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    catch(Exception e)
    try{
    conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@anant:1521:student", "scott", "tiger");
    stmt = conn.createStatement();
    catch(Exception e)
    s1 = t1.getText();
    x = Integer.parseInt(s1);
    try{
    ResultSet rset = stmt.executeQuery("select * from emp");
    while (rset.next())
    s2 = (rset.getString(x));
    g.drawString(s2,100,100);
    stmt.close();
    catch(Exception e){}
    public boolean action(Event event,Object obj)
    repaint();
    return true;
    i m getting following error.
    Exception in thread "AWT-EventQueue-1" java.lang.NoClassDefFoundError: oracle/jdbc/OracleDriver
    at project.paint(project.java:23)
    at java.awt.Container.update(Container.java:1730)
    at sun.awt.RepaintArea.updateComponent(RepaintArea.java:239)
    at sun.awt.RepaintArea.paint(RepaintArea.java:216)
    at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:254)
    at java.awt.Component.dispatchEventImpl(Component.java:4031)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    this error comes when i run every jdbc applet.
    can anyone suggest any solution.

    seems as if your client machines are missing the oracle driver. This is one of the disadvantages of a single tier environment you have to make sure that the oracle driver is available to the machines where the applet is run.
    If you have the possibility to define/change the configuration or setup of these machines, e.g. in an intranet environment) deploy the driver in the ext directory of the virtual machines used. If not you can make it a part of your applet jar file, so it is downloaded with the applet code and therefore available to the virtual machines.

  • How do I set miminum # of connections for pool with Oracle and Tomcat?

    Hi,
    I can't seem to find any attribute to initialize the number of connections for my connection pool. Here is my current context.xml file under my /App1 directory:
    <Context path="/App1" docBase="App1"
    debug="5" reloadable="true" crossContext="true">
    <Resource name="App1ConnectionPool" auth="Container"
    type="oracle.jdbc.pool.OracleDataSource"
    driverClassName="oracle.jdbc.driver.OracleDriver"
    factory="oracle.jdbc.pool.OracleDataSourceFactory"
    url="jdbc:oracle:thin:@127.0.0.1:1521:oddjob"
    user="app1" password="app1" />
    </Context>
    I've been googling and reading forums, but haven't found a way to establish the minimum number of connections. I've tried all sorts of parameters like InitialLimit, MinLimit, MinActive, etc, with no success.
    Here is some sample code that I am testing:
    package web;
    import oracle.jdbc.pool.OracleDataSource;
    import oracle.jdbc.OracleConnection;
    import javax.naming.*;
    import java.sql.SQLException;
    import java.sql.ResultSet;
    import java.sql.Statement;
    import java.util.Properties;
    public class ConnectionPool {
    String message = "Not Connected";
    public void init() {
    OracleConnection conn = null;
    ResultSet rst = null;
    Statement stmt = null;
    try {
    Context initContext = new InitialContext();
    Context envContext = (Context) initContext.lookup("java:/comp/env");
    OracleDataSource ds = (OracleDataSource) envContext.lookup("App1ConnectionPool");
    message = "Here.";
         String user = ds.getUser();
    if (envContext == null)
    throw new Exception("Error: No Context");
    if (ds == null)
    throw new Exception("Error: No DataSource");
    if (ds != null) {
    message = "Trying to connect...";
    conn = (OracleConnection) ds.getConnection();
    Properties prop = new Properties();
    prop.put("PROXY_USER_NAME", "adavey/xxx");
    if (conn != null) {
    message = "Got Connection " + conn.toString() + ", ";
              conn.openProxySession(OracleConnection.PROXYTYPE_USER_NAME,prop);
    stmt = conn.createStatement();
    rst = stmt.executeQuery("SELECT username, server from v$session where username is not null");
    while (rst.next()) {
    message = "DS User: " + user + "; DB User: " + rst.getString(1) + "; Server: " + rst.getString(2);
    rst.close();
    rst = null;
    stmt.close();
    stmt = null;
    conn.close(); // Return to connection pool
    conn = null; // Make sure we don't close it twice
    } catch (Exception e) {
    e.printStackTrace();
    } finally {
    // Always make sure result sets and statements are closed,
    // and the connection is returned to the pool
    if (rst != null) {
    try {
    rst.close();
    } catch (SQLException e) {
    rst = null;
    if (stmt != null) {
    try {
    stmt.close();
    } catch (SQLException e) {
    stmt = null;
    if (conn != null) {
    try {
    conn.close();
    } catch (SQLException e) {
    conn = null;
    public String getMessage() {
    return message;
    I'm using a utility to repeatedly call a JSP page that uses this class and displays the message variable. This utility allows me to specify the number of concurrent web requests and an overall number of requests to try. While that is running, I look at V$SESSION in Oracle and occassionaly, I will see a brief entry for app1 or adavey depending on the timing of my query and how far along the code has processed in this example. So it seems that I am only using one connection at a time and not a true connection pool.
    Is it possible that I need to use the oci driver instead of the thin driver? I've looked at the javadoc for oci and the OCIConnectionPool has a setPoolConfig method to set initial, min and max connections. However, it appears that this can only be set via Java code and not as a parameter in my context.xml resource file. If I have to set it each time I get a database connection, it seems like it sort of defeats the purpose of having Tomcat maintain the connection pool for me and that I need to implement my own connection pool. I'm a newbie to this technology so I really don't want to go this route.
    Any advice on setting up a proper connection pool that works with Tomcat and Oracle proxy sessions would be greatly appreciated.
    Thanks,
    Alan

    Well I did some more experiments and I am able to at least create a connection pool within my example code:
    package web;
    import oracle.jdbc.pool.OracleDataSource;
    import oracle.jdbc.OracleConnection;
    import javax.naming.*;
    import java.sql.SQLException;
    import java.sql.ResultSet;
    import java.sql.Statement;
    import java.util.Properties;
    public class ConnectionPool {
    String message = "Not Connected";
    public void init() {
    OracleConnection conn = null;
    ResultSet rst = null;
    Statement stmt = null;
    try {
    Context initContext = new InitialContext();
    Context envContext = (Context) initContext.lookup("java:/comp/env");
    OracleDataSource ds = (OracleDataSource) envContext.lookup("App1ConnectionPool");
    message = "Here.";
         String user = ds.getUser();
    if (envContext == null)
    throw new Exception("Error: No Context");
    if (ds == null)
    throw new Exception("Error: No DataSource");
    if (ds != null) {
    message = "Trying to connect...";
    boolean cache_enabled = ds.getConnectionCachingEnabled();
    if (!cache_enabled){
    ds.setConnectionCachingEnabled(true);
    Properties cacheProps = new Properties();
    cacheProps.put("InitialLimit","5");
         cacheProps.put("MinLimit","5");
    cacheProps.put("MaxLimit","10");
    ds.setConnectionCacheProperties(cacheProps);
              conn = (OracleConnection) ds.getConnection();
    Properties prop = new Properties();
    prop.put("PROXY_USER_NAME", "adavey/xyz");
    if (conn != null) {
    message = "Got Connection " + conn.toString() + ", ";
              conn.openProxySession(OracleConnection.PROXYTYPE_USER_NAME,prop);
    stmt = conn.createStatement();
    //rst = stmt.executeQuery("SELECT 'Success obtaining connection' FROM DUAL");
    rst = stmt.executeQuery("SELECT user, SYS_CONTEXT ('USERENV', 'SESSION_USER') from dual");
    while (rst.next()) {
    message = "DS User: " + user + "; DB User: " + rst.getString(1) + "; sys_context: " + rst.getString(2);
    message += "; Was cache enabled?: " + cache_enabled;
    rst.close();
    rst = null;
    stmt.close();
    stmt = null;
    conn.close(OracleConnection.PROXY_SESSION); // Return to connection pool
    conn = null; // Make sure we don't close it twice
    } catch (Exception e) {
    e.printStackTrace();
    } finally {
    // Always make sure result sets and statements are closed,
    // and the connection is returned to the pool
    if (rst != null) {
    try {
    rst.close();
    } catch (SQLException e) {
    rst = null;
    if (stmt != null) {
    try {
    stmt.close();
    } catch (SQLException e) {
    stmt = null;
    if (conn != null) {
    try {
    conn.close();
    } catch (SQLException e) {
    conn = null;
    public String getMessage() {
    return message;
    In my context.xml file, I tried to specify the same Connection Cache Properties as attributes, but no luck:
    <Context path="/App1" docBase="App1"
    debug="5" reloadable="true" crossContext="true">
    <Resource name="App1ConnectionPool" auth="Container"
    type="oracle.jdbc.pool.OracleDataSource"
    driverClassName="oracle.jdbc.OracleDriver"
    factory="oracle.jdbc.pool.OracleDataSourceFactory"
    url="jdbc:oracle:thin:@127.0.0.1:1521:oddjob"
    user="app1" password="app1"
    ConnectionCachingEnabled="1" MinLimit="5" MaxLimit="20"/>
    </Context>
    These attributes seemed to have no effect:
    ConnectionCachingEnabled="1" ; also tried "true"
    MinLimit="5"
    MaxLimit="20"
    So basically if I could find some way to get these attributes set within the context.xml file instead of my code, I would be a happy developer :-)
    Oh well, it's almost Miller time here on the east coast. Maybe a few beers will help me find the solution I'm looking for.

  • Java Connection Pooling issue with Oracle 10g Express Edition

    Hello
    I have a Java based web application that uses the Oracle 10g Express Edition database. I am using a connection pool to get connections to the database.
    I use the NetBeans IDE and run my web application on the bundled Tomcat server(5.5.7) that comes with the IDE. Though when I initially run the application from the IDE, the connection pool is set up fine, when I recompile my java code and try to run the application again, I get the following error each time:
    Listener refused the connection with the following error:
    ORA-12516, TNS:listener could not find available handler with the
    matching protocol stack.
    The logs before the error shows up, indicate that the connection pool object is fine and gives me the number of available connections and the number of active connections and so on, which I have printed from the constructor of the Connection Pool class:
    For e.g.:
    Cache size = 17
    Available Connections = 17
    Cache Limit = 1000
    Active size = 0
    However, if I kill my Tomcat server process and run the application again, it works fine with no error.
    I looked around for possible causes and solutions and all I could find
    was increasing the processes parameter value in the init.ora file. I have increased the parameter value to from 100 to 20000 now, in increments of 500/1000 each time but it hasnt worked so far.
    Someone else suggested that I increase the size of my connection pool; I initially had it set to a minimum limit of 5, an initial limit of 10 and a maximum limit of 1000. However if I set the Initial Limit to anything above 17 connections, I see the following log on the Bundled Tomcat log and my application doesn't run at all:
    Log: Loading JDBC Driver : class=oracle.jdbc.driver.OracleDriver ...
    Log: Loaded JDBC Driver
    Log: Connection with URL=jdbc:oracle:thin:@localhost:1521:xe as username/password
    Error code not handled : 0
    Exception Message :java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12519, TNS: no appropriate service handler found
    The Connection descriptor used by the client was:
    localhost:1521:xe
    // End of log
    And the Bundled Tomcat server automatically shuts down.
    Again the System.out statements from the Connection Pool class constructor show that the cache has been initialized and that currently there are free connections available in the pool.
    E.g.
    Cache size = 18
    Available Connections = 18
    Cache Limit = 1000
    Active size = 0
    Has anyone faced anything similar? Could someone please suggest what I'm doing wrong here and what I should do to set right this problem?
    Swetha

    hello, please pardon me, my english is basic. i do of my best. i had the same problem until reading the pdf documentation 2 days for java devvelloper.it is simple, follow this way.
    try {OracleDataSource ds;
         Connection conn;
      ds = new OracleDataSource();
      ds.setURL("jdbc:oracle:thin:@localhost");
      conn = ds.getConnection("userid","password");
    Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
    don't forget to Dowload the user client of oracle Express Edition. do the rest of your program and it will work. take a look to the documentation pdf for java develloper. all it is explained.  good look                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Connect Toad freeware with Oracle express Edition, How?

    Hello,
    Although I know that people will raise the question this is Oracle and use SQL developer... Ok I do that and that is working fine. But on my work they work with TOAD so I like to work with TOAD as well and I want get some knowledge about Toad, TNSNAMES etc.
    I've put the issue on TOAD forum as well, but till now I don't have received an answer.
    I want to teach/learn myself Oracle by working with the Oracle express edition. I have downloaded the SQL Developer and I can work with it, which means I can create a connection.
    Errors when I try to work with TOAD are:
    If i try to make a connection:
    - "No valid clients found. You need at least one 64-bit client properly configured"
    If I click on TNSNames editor:
    - Access violation in address xxxxxxx at module TOAD.exe"
    I have installed oracle at D:\ORACLE_HOME. In this directory is also a TNSNAMES.ORA file.
    I have installed the express edition with the installer. I have first installed the Oracle express edition and later TOAD.
    I'm working on my local machine with:
    - windows 7 Home
    - Oracle 32 bit client:
    - Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
    - PL/SQL Release 11.2.0.2.0 - Production
    - "CORE 11.2.0.2.0 Production"
    - TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
    - NLSRTL Version 11.2.0.2.0 - Production
    - TOAD 64-bit freeware.
    *Questions:*
    *- Are there certain environment variables necessary? Does TOAD expect Oracle at a certain directory?*
    *- Is it necessary to add something to the PATH environment variable?*
    *- 32-bit Oracle client will working with the 64-bit TOAD freeware?*
    Nico

    Nico van de Kamp wrote:
    I've put the issue on TOAD forum as well, but till now I don't have received an answer.Yes, correct, visit toadworld.com. This is not the proper forum.
    >
    Errors when I try to work with TOAD are:What version toad? Is it 11.6 x64?
    If i try to make a connection:
    - "No valid clients found. You need at least one 64-bit client properly configured"Listen to that message. A 64-bit program requires 64-bit libraries.
    I have installed the express edition with the installer. I have first installed the Oracle express edition and later TOAD.
    I'm working on my local machine with:
    - windows 7 HomeHome editions are not supported, sorry.
    - Oracle 32 bit client:What is it - Client or Server?
    - Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production>
    - TOAD 64-bit freeware.Perhaps easiest way out is to remove 64-bit Toad and install the 32-bit one instead.
    >
    Questions:
    - Are there certain environment variables necessary? Does TOAD expect Oracle at a certain directory?
    - Is it necessary to add something to the PATH environment variable?
    - 32-bit Oracle client will working with the 64-bit TOAD freeware?
    All these should be directed elsewhere, e.g. at some Toad forum, maybe at toadworld.com.

  • Query to connect Java Applet to Oracle 10g.

    I am developing an Applet in Java 1.5.0.7.My database is Oracle 10g.Now when i connect Oracle to Java I get the Error : java.lang.ExceptionInInitializerError
    and it does not get connected.Please help me anyone.
    Below is the code which i have written.
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.MouseEvent;
    import java.beans.PropertyChangeEvent;
    import java.beans.PropertyChangeListener;
    import java.sql.*;
    import java.util.ArrayList;
    import javax.swing.JApplet;
    import javax.swing.JButton;
    import javax.swing.JLabel;
    public class tt7 extends JApplet
         implements ActionListener, PropertyChangeListener
    private int m_uniqueID = 0;
         JLabel m_lblRadius;
         // A button the user can click to display the Add Theme wizard.
         JButton m_btnAddTheme;
         static String m_mapxtremeURL = null;
         // TODO: Specify a map file name such as "uk.mdf" (if the mdf file is in
         // in same directory that the applet was loaded from),
         // or an URL to a map file, such as "http://host.com/maps/uk.mdf".
         // Or, instead of specifying this URL explicitly here, you can specify it
         // in the HTML page that loads the applet (using the 'filetoload' param).
    ResultSet rs=null ;
    ArrayList arrlist=null;
    ArrayList arrlist1=null;
    ArrayList arrlist2=null;
    //Connection con=null;
    Statement st=null;
         public void start()
         } // start method
         public void init()
    try{
    // System.out.println("helloooooooo");
    Class.forName("oracle.jdbc.driver.OracleDriver");
    //Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection con= DriverManager.getConnection("Jdbc:oracle:thin:@asl005:1521:geo","system","1234567");//"jdbc:oracle:thin:@asl005:1521:geo","system","1234567");
    System.out.println("helloooooooo");
    System.out.println("CON:"+con.toString());
    st = con.createStatement();
    System.out.println("St:"+st);
    catch(Exception e2){System.out.println("Exception :"+e2);}
    catch(ExceptionInInitializerError s)
    System.out.println("Exception2 :"+s);
    }// If the HTML page specified parameters, use them to
              // override our default values.
              // See if a MapDef file was specified in the HTML file.
         }     // propertyChange method
         // Respond to the user actions, such as clicking
         // the Add Theme button.
    public void actionPerformed(ActionEvent e)
    // LocalDataProviderRef localDPRef = null;
    // a static label displayed in the applet
    public void propertyChange(PropertyChangeEvent evt) {
    This is the HTML CODE...
    <HTML>
    <HEAD>
    <TITLE>SimpleMap applet demonstration</TITLE>
    </HEAD>
    <BODY>
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH = 600 HEIGHT = 440
    codebase="http://java.sun.com/products/plugin/1.3.1/jinstall-131-win32.cab#Version=1,3,1,0">
    <PARAM NAME = CODE VALUE = "tt7.class" >
    <PARAM NAME=archive VALUE="classes12.jar">
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.5">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.5"
    CODE = "tt7.class"
    WIDTH = 600 HEIGHT = 440
    archive="classes12.jar"
    pluginspage="http://java.sun.com/products/plugin/1.3.1/plugin-install.html">
    <NOEMBED></COMMENT>
    alt="Your browser understands the &lt;APPLET&gt; tag but isn't running the applet, for some reason."
    Your browser is completely ignoring the &lt;APPLET&gt; tag!
    </NOEMBED></EMBED>
    </OBJECT>
    </BODY>
    </HTML>

    My dear colleague, You better consider asking this question in Jdeveloper forum.
    I have a simple code for Windows application. You can easily convert it into Applet application..
    import java.awt.*;
    import java.awt.event.*;
    import java.sql.*;
    import oracle.jdbc.*;
    import oracle.sql.*;
    public class QueryFrame extends Frame {
    TextField inputText;
    public QueryFrame() {
    super("Query Interface");
    setSize(450, 250);
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    ActionListener printListener = new ActionListener() {
    public void actionPerformed(ActionEvent ae) {
    ConnectAndRun(inputText.getText());
    Panel toolbar = new Panel();
    toolbar.setLayout(new FlowLayout(FlowLayout.LEFT));
    Button queryButton = new Button("Run Query");
    queryButton.addActionListener(printListener);
    toolbar.add(queryButton);
    inputText = new TextField(14);
    toolbar.add(inputText);          
    // The "preferred" BorderLayout add call
    add(toolbar, BorderLayout.NORTH);
    public static void main(String args[]) {
    QueryFrame tf1 = new QueryFrame();
    tf1.setVisible(true);
         public void ConnectAndRun(String s)
              String sqlquery;
              if (s.equals(""))
              sqlquery ="select * from DEPT where LOC is null";
              else
              sqlquery ="select * from DEPT where LOC like '" + s + "'";
              System.out.println(sqlquery);
              try
              DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
         Connection conn = DriverManager.getConnection ("jdbc:oracle:thin:@localhost:1521:HELLO","scott","tiger");
         Statement stmt = conn.createStatement ();
              ResultSet rset = stmt.executeQuery (sqlquery);
              while (rset.next ())
                   System.out.println( rset.getInt("DEPTNO"));
                   System.out.println( rset.getString("DNAME"));
                   System.out.println (rset.getString("LOC"));
              rset.close();
         stmt.close();          
              catch (SQLException se)
                   System.out.println(se);
    Make sure you have appropriate libraries in classpath...

  • Problems on connecting Developer/2000 with Oracle

    1. Can Developer/2000 for window95/NT release 2.0 connect with Personal Oracle8i for Windows 98 under Windows 98 environment?
    2. Can Developer/2000 for window95/NT release 2.0 connect with Personal Oracle7.3 for Windows 95 under Windows 98 environment?
    3. What is the default database name of Personal Oracle8i for Windows 98?

    If you get an error message with a number, did you try looking for this number in the oracle errors book (online on OTN? just click search).
    Developer/2000 is quite old, better get the newer versions from otn.oracle.com.

Maybe you are looking for

  • Unable to load rdbnet.dll

    Hello, I'm trying to use the provider Oracle.DataAccess.Rdb.dll with the following statement in c# RdbConnection connection = new RdbConnection(); connection.ConnectionString = string.Format("User Id={0};Password={1};Server={2};Database={3};",login,p

  • "Manually manage music and videos" takes up more space than syncing?

    Hello all, I fear that I am just stupid and unseeing an obvious answer to this query, but ask I shall, because it is frustrating me to no end. I recently downloaded a few audiobooks from my local library to listen to on my iPod Touch; the app in ques

  • Importing MPEG-TS

    Hello, Would like to kindly ask if there is an alternate method to import MPEG-TS(.MTS) files to PPro CC? Currently, the import process creates an environment where the video quality is not viewable. The colors are completely off. Hopefully you can h

  • Work Flow Setting for Vendor Payment Release using TCode F-53

    Hi Experts, We want to 3 level payment release strategy for Vendor using Workflow in F-53 Regards, Gaurav.

  • Stage disappears when using selection tool

    I'm using Photoshop CS6 Extended and i discover a strange problem in some documents that makes working impossible. When i use the normal rectangle selection tool in some documents then suddenly all the content of the stage disappears when i release t