Proxy Authetication adn thin driver

Hello,
Can any one provide sample for proxy authetication using oracle 10g thin driver?
All I saw oci samples, and documentation says, thin can also perform proxy authetication...
Thanks in advance,
Shailesh

Hi,
yes you can use thin friver as well. I am using the 10.1.3 product stack and this works for me.
Frank

Similar Messages

  • Oracle proxy authetication and thin driver

    Hello,
    I am using 10g, and bea 81 sp3, I am trying to setup proxy authetication. All the references I find for proxy authetication are using OCI driver. Is proxy authetication supported using oracle 10g thin driver (ojdbc14.jar)? Can anyone tell me, what drivers are support proxy authetication under oracle 10g?
    Also application servers like bea will not give you oracledata source if you use bea to setup oracle connection pool, is there a easy work around that?
    appreciate,
    Shailesh

    Replace this line:
    DriverManager.registerDriver(new racle.jdbc.OracleDriver());with this one:
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();

  • Proxy Connection with thin driver

    Hello,
    I am using 10g, and bea 81 sp3, I am trying to setup proxy authetication. All the references I find for proxy authetication are using OCI driver. Is proxy authetication supported using oracle 10g thin driver (ojdbc14.jar)? Can anyone provide me an example using thin driver?
    appreciate any help,
    Shailesh

    See the following link for documentation on proxy authentication. http://download-uk.oracle.com/docs/cd/B19306_01/java.102/b14355/proxya.htm
    Also, the release note for 10gR2 JDBC driver installation includes the following text:
    Proxy Authentication
    In Oracle 10g R1 we introduced proxy authentication for the
    OCI driver. In this release we introduce a common proxy
    authentication api that is supported by both the Thin and
    OCI drivers. We strongly recommend that you use the common
    api instead of the OCI specific api.

  • Proxy authetication using 10g thin driver

    Hello,
    I am using 10g, and bea 81 sp3, I am trying to setup proxy authetication. All the references I find for proxy authetication are using OCI driver. Is proxy authetication supported using oracle 10g thin driver (ojdbc14.jar)? Can anyone provide me an example using thin driver?
    appreciate any help,
    Shailesh

    Thanks annie..I googled it but didn't find this one..:-(
    I actaully wanted to implement proxy authetication using thin driver (no oci) but i can't figure out ...and all examples i saw were using thin driver..I found many articles which says that thin driver does support proxy authetication and I am using all latest (10g)..so..:-(
    appreciate any help
    Shailesh

  • Oracle authetication and proxy authetication

    Hello,
    I am using 10g, thin driver and using oracle proxy authetication.
    We have an 'appuser' which is used to setup the connection pool, and the atual user gets the connection from the pool and uses proxy authetication to do the job.
    Currently proxyauthetication do not autheticate oracle user, all it needs is oracle username and NOT user password.
    Anybody who knows, appuser, username and passowrd, can logon on to oracle, and proxy over to anyuser (since it needs only username) and perform any operation onbehalf of that user. This is a serious security issue for us.
    Is there is clean work around for this situation?
    Thanks,
    SL

    Hello,
    I'm Mark Wilcox, the Product Manager for Oracle Virtual Directory.
    First- the plug-in is "subschemaentry". That is a typo in the docs which we will fix.
    Second - The primary purpose of Enterprise User Security is to centralize the management of database users and roles. To address an earlier question in the thread - "Do I need to map every user in AD to every user in the database" - the answer is "depends". Most applications do not actually use local database accounts - they instead do all actions at the middle-tier (though there are mechanisms such as Proxy Users that can be used to pass the context to the database). So these days primarily the only direct users are normally DBAs and some Business Intellegence reporting applications. Additionally EUS supports the notion of "shared schema" where you can map 1 DB user to multiple LDAP entries, but most organizations use a 1 to 1 mapping. And there are a variety of means to do this. I would recommend Oracle Identity Manager and make this as one of your elements of your enterprise provisioning process. However, you can of course use another 3rd party provisioning system.
    You can learn more about what Enterprise User Security here:
    http://www.oracle.com/webapps/dialogue/dlgpage.jsp?p_ext=Y&p_dlg_id=6917346&src=6642146&Act=40
    Regards,
    Mark

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

  • Oracle JDBC thin driver question

    Does anyone know if there is a JDBC thin driver available for Oracle that supports "HTTP tunneling" of the SQLNET wire protocol?
    Such a driver would package the SQL*NET data stream into HTTP or HTTPS packets and connects to a Servlet proxy on the Web host that unpacks the data and forwards the SQL*NET stream to the Oracle RDBMS and returns the response the same way.
    This would help me overcome some firewall issues I'm seeing since HTTP/HTTPS ports are usually opened through a firewall. I know Sybase has a JDBC dirver that does this for their TNS protocol and was hoping some company has developed this for Oracle.
    Thanks in advance...

    The easiest thing to do is download it as an archive with your applet.
    Otherwise, you have to have the files on every client machine.
    For netscape, put the classes111.jar in the java classes folder typically:
    c:\ProgramFiles\Netscape\Communicator\Program\java\classes.
    I'd expect that IE would be setup in a similar way.

  • Which Oracle Thin Driver Classes are used at runtime ?

    Hi,
    I am using Weblogic 6.1 sp1 on a WIN 2000 Professional Box and am trying to connect
    to a Oracle 8.1.7 Database that is located on a Solaris Box. I am using the Oracle
    Thin Driver (classes12.zip) supplied by Oracle.
    The relevant portion of config.xml looks like this:
    <JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
    InitialCapacity="12" LoginDelaySeconds="1" MaxCapacity="24"
    Name="xxxConnectionPool" Password="xxxxxxxx"
    Properties="user=user123" Targets="xxxserver" URL="jdbc:oracle:thin:@1.2.3.4:1521:xxxx"/>
    The start script for the Server includes a CLASSPATH variable that includes both
    weblogic.jar and classes12.zip (in that order)
    The Database access code is from a singleton that is deployed with the beans and
    looks like :
    Context ctx = new InitialContext();
    Object o = ctx.lookup("resonateDataSource");
    dataSource = (DataSource)o;
    Connection con = dataSource.getConnection();
    PreparedStatement ps = con.prepareStatement(sqlXXX);
    The actual subclasses of DataSource, Connection, PreparedStatement that are called
    at runtime are from weblogic jDriver classes like weblogic.jdbc.rmi.SerialPreparedStatement,
    weblogic.jdbc.rmi.SerialConnection etc and not from oracle thin driver.
    Is this expected ? Why arent the corresponding classes from the Oracle Thin Driver
    loaded ?
    Thanks,
    Praveen

    Praveen wrote:
    Hi,
    I am using Weblogic 6.1 sp1 on a WIN 2000 Professional Box and am trying to connect
    to a Oracle 8.1.7 Database that is located on a Solaris Box. I am using the Oracle
    Thin Driver (classes12.zip) supplied by Oracle.
    The relevant portion of config.xml looks like this:
    <JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
    InitialCapacity="12" LoginDelaySeconds="1" MaxCapacity="24"
    Name="xxxConnectionPool" Password="xxxxxxxx"
    Properties="user=user123" Targets="xxxserver" URL="jdbc:oracle:thin:@1.2.3.4:1521:xxxx"/>
    The start script for the Server includes a CLASSPATH variable that includes both
    weblogic.jar and classes12.zip (in that order)Hi. You should have the oracle zip first. This is because our stuff also contains an oracle zip, but
    it's
    older than the latest, and you want yours to be used. Whatever is first in the classpath is what will
    be used.
    The Database access code is from a singleton that is deployed with the beans and
    looks like :...
    The actual subclasses of DataSource, Connection, PreparedStatement that are called
    at runtime are from weblogic jDriver classes like weblogic.jdbc.rmi.SerialPreparedStatement,
    weblogic.jdbc.rmi.SerialConnection etc and not from oracle thin driver.
    Is this expected ? Why arent the corresponding classes from the Oracle Thin Driver
    loaded ?Yes it is expected. The oracle classes are loaded, and used under the covers. All access
    to JDBC connections and JDBC objects via our pools and DataSources will be via a
    wrapper object of ours. This is necessary to allow us to retain control over the pool and
    User Transactions. Also, because the DataSource is supposed to work whether from
    a serverside class or an external client JVM, there will have to be an intermediary JDBC
    object that acts as a proxy from the external client to the real thin driver connection
    in the server. One can't ship JDBC connections across the wire as-is.
    Thanks,
    Praveen

  • Error in creating Connection Pool using Oracle Thin Driver

    Hi,
    I am trying to create a connection pool in WS 5.1 with sp #6 using Oracle Thin Driver (oracle.jdbc.driver.OracleDriver) on a Sun box. But I am able to create the pool using weblogic.jdbc.oci.Driver. I get an DBMS Driver exception when I use thin driver. I have LD library path and weblogic class path set correctly. WL shows the following exception :
    weblogic.common.ResourceException: weblogic.common.ResourceException:
    Could not create pool connection. The DBMS driver exception was:
    java.sql.SQLException: Io exception: The Network Adapter could not establish the
    connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
    Any help on this is greatly appreciated.
    Thanks,
    Ramu

    Hi Ramu,
    Please post your connection pool setting here. You might have missed some
    port/server info. The driver is unable to connect to the db server here.
    sree
    "Ramu" <[email protected]> wrote in message
    news:3d5bbc3a$[email protected]..
    >
    Yes. I am trying to create a connection pool in weblogic and I have theweblogic
    class path setup correctly. It points to classes111.zip andnls_charset11.zip.
    >
    -Ramu
    "Neo Gigs" <[email protected]> wrote:
    Did you setup the JDBC library classpath correctly?
    For me, e.g. Oracle 7.3.4, the classpath should be:
    export CLASSPATH = /oracle7.3.4/jdbc/lib/classes.zip:%CLASSPATH%
    Noted that the JDBC classpath must be the first classpath element in
    the export
    statement.
    Neo

  • BLOB insert behavior with thin driver using standard JDBC2.0 and ORACLE-JDBC2.0API

    We have a problem with a BLOB insert to an oracle 8.1.7 DB using Oracle 8.1.7 JDBC thin driver.We get socket read/write error after inserting 32k of data using the standard JDBC2.0 API but using the Oracle JDBC2.0API (using OracleResultSet) it goes fine. We have a requirement to use the standard JDBC2.0 so that our code works with multiple database vendors. Is there another way to get in the blob data with standard JDBC API & using thin driver...?
    thanks,
    Madhu
    Here is my sample test program that does both standard & oracle specific JDBC Blob test insert.
    import java.sql.*;
    import java.io.*;
    import oracle.sql.BLOB;
    import oracle.jdbc.driver.OracleResultSet;
    public class testBLOB {
    //trying to insert a huge file to a BLOB
    static String fileName = "/kernel/genunix";
    public static void main(String[] args) {
    String driverName = "oracle.jdbc.driver.OracleDriver";
    String dbURL = "jdbc:oracle:thin:@localhost:1521:test"; //thin driver
    String user = "BlobTest";
    String passwd = "BlobTest";
    Connection con=null;
    try {
    Class.forName(driverName);
    con=DriverManager.getConnection(dbURL, user,passwd);
    catch (Exception e) {
    e.printStackTrace();
    close(con);
    int i = 0;
    while (i < args.length) {
    if (args.equals("-f"))
    fileName = args[++i];
    i++;
    System.out.println("The file being Stored is: "+fileName);
    createTable(con);
    insertUsingOracleAPI(con);
    insertUsingJDBC20API(con);
    //readDB(con);
    static String getFileName() {
    return fileName;
    public static void close(Connection con) {
    try {
    if (con != null) {
    con.close();
    catch (Exception e) {
    System.exit(-1);
    public static void createTable(Connection con) {
    Statement stmt ;
    try {
    stmt = con.createStatement();
    stmt.execute("DROP TABLE basic_blob_table");
    stmt.close();
    catch (SQLException sqlEx) {
    System.out.println("Dropped the Table");
    try {
    stmt = con.createStatement();
    stmt.execute("CREATE TABLE basic_blob_table ( x varchar2(30), b blob)");
    stmt.close();
    catch (SQLException sqlEx) {
    sqlEx.printStackTrace();
    close(con);
    System.out.println("Created the Table");
    public static void insertUsingOracleAPI(Connection con) {
    OutputStream os = null;
    Statement stmt = null;
    ResultSet rs = null;
    FileInputStream is = null;
    try {
    con.setAutoCommit(false);
    stmt = con.createStatement();
    stmt.execute("INSERT INTO basic_blob_table VALUES( 'OracleAPI', empty_blob())");
    System.out.println("Inserted the dummy Row");
    rs = stmt.executeQuery("Select * from basic_blob_table where x='OracleAPI'");
    if (rs != null && rs.next()) {
    BLOB blob = ((OracleResultSet)rs).getBLOB(2);
    File file = new File(getFileName());
    is = new FileInputStream(file);
    os = blob.getBinaryOutputStream();
    byte[] chunk = new byte[1024];
    int length = -1;
    while((length = is.read(chunk)) != -1)
    os.write(chunk, 0,length);
    System.out.println("Inserted the File " + getFileName() );
    catch (Exception e) {
    e.printStackTrace();
    finally {
    try {
    if (os != null) {
    os.flush();
    os.close();
    if (is != null)
    is.close();
    stmt.close();
    con.commit();
    con.setAutoCommit(true);
    catch (Exception e) {}
    public static void insertUsingJDBC20API(Connection con) {
    PreparedStatement stmt = null;
    FileInputStream is = null;
    try {
    stmt = con.prepareStatement("INSERT INTO basic_blob_table VALUES(?,?)");
    File file = new File(getFileName());
    is = new FileInputStream(file);
    stmt.setString(1,"JDBC20API");
    stmt.setBinaryStream(2,is,(int)file.length());
    stmt.executeUpdate();
    catch (Exception e) {
    e.printStackTrace();
    finally {
    try {
    if (is != null)
    is.close();
    stmt.close();
    catch (Exception e) {}
    null

    Thanks for the response.
    I understand what you are saying...
    that readers don't block writers in Oracle (the same is true in SQL Server 2000).
    However, I don't see how my test case is working correctly with Oracle (the exact same code acting as I'm thinking it should with SQL Server, but I still think it is acting incorrectly with Oracle).
    I have transaction A do this:
    update <table> set <column2>=<value> where <column1>='1'
    then I use Thread.sleep() to make that program hang around for a few minutes.
    Meanwhile I sneak off and start another program which begins transaction B. I have transaction B do this:
    select * from <table> where <column1>='1'
    and the read works immediately (no blocking... just as you have said) however, transaction A is still sleeping, it has not called commit() or rollback() yet.
    So what if transaction A were to call rollback(), the value read by transaction B would be incorrect wouldn't it ?
    Both A and B use setAutoCommit(false) to start their transactions, and then call setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED).
    Isn't that supposed to guarantee that a reader can only read what is committed ?
    And if a row is in "flux"... in the process of having one or more values changed, then the database cannot say what the value will be ?
    I can almost see what you are saying.
    In letting the reader have what it wants without making it wait, I suppose it could be said that Oracle is holding true to the "only let committed data be read"
    So if that's it, then what if I want the blocking ?
    I want an entire row to be locked until whoever it in the middle of updating, adding, or removing it has finished.
    Do you know if that can be done with Oracle ? And how ?
    Thanks again for helping me.

  • 8.1.6 thin driver and Netscape plug in 1.2.2

    Hi.
    I'm trying to use the latest Oracle thin driver in an applet
    using Netscapes plug-in 1.2.2.
    I am getting the error below when I call
    DriverManager.getConnection
    The error seems to be a security error.
    The code and driver works fine in a standalone application under
    JDK 1.2.
    The database I am connecting to is the same machine as the web
    server and I am not using a firewall so there should be no
    security violations. I have tried using both DNS name and IP
    address for the target machine but I always get the same error.
    Has anyone been able to use the 8.1.6 thin driver in an applet on
    Netscape?
    Thanks in advance, Sean.
    -------Error message ------
    java.lang.ExceptionInInitializerError:
    java.security.AccessControlException: access denied
    (java.util.PropertyPermission JdbcTrace read)
    at
    java.security.AccessControlContext.checkPermission(Unknown
    Source)
    at java.security.AccessController.checkPermission(Unknown
    Source)
    at java.lang.SecurityManager.checkPermission(Unknown
    Source)
    at java.lang.SecurityManager.checkPropertyAccess(Unknown
    Source)
    at java.lang.System.getProperty(Unknown Source)
    at
    oracle.jdbc.driver.OracleLog.<clinit>(OracleLog.java:604)
    at
    oracle.jdbc.dbaccess.DBConversion.<init>(DBConversion.java:87)
    at
    oracle.jdbc.ttc7.TTCConversion.<init>(TTCConversion.java:75)
    at
    oracle.jdbc.ttc7.TTC7Protocol.connect(TTC7Protocol.java:1126)
    at
    oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:182)
    at
    oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:
    156)
    at
    oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDrive
    r.java:231)
    at
    oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:208)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at JDBCTest.init(JDBCTest.java:10)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    null

    It appears that your may be turning tracing on which is in turn requiring access to properties on the local file system. Use JDK 1.2.2's policytool to add a policy for either the Codebase, or sign your applet and then by Codebase and Sign By, adding a PropertyPermission, A Target of *, and an Action of read.

  • Memory leak in weblogic 6.0 sp2 oracle 8.1.7 thin driver

    Hi,
         I have a simple client that opens a database connection, selects from
    a table containing five rows of data (with four columns in each row)
    and then closes all connections. On running this in a loop, I get the
    following error after some time:
    <Nov 28, 2001 5:57:40 PM GMT+06:00> <Error> <Adapter>
    <OutOfMemoryError in
    Adapter
    java.lang.OutOfMemoryError
    <<no stack trace available>>
    >
    <Nov 28, 2001 5:57:40 PM GMT+06:00> <Error> <Kernel> <ExecuteRequest
    failed
    java.lang.OutOfMemoryError
    I am running with a heap size of 64 Mb. The java command that runs
    the client is:
    java -ms64m -mx64m -cp .:/opt/bea/wlserver6.0/lib/weblogic.jar
    -Djava.naming.f
    actory.initial=weblogic.jndi.WLInitialContextFactory
    -Djava.naming.provider.url=
    t3://garlic:7001 -verbose:gc Test
    The following is the client code that opens the db connection and does
    the select:
    import java.util.*;
    import java.sql.*;
    import javax.naming.*;
    import javax.sql.*;
    public class Test {
    private static final String strQuery = "SELECT * from tblPromotion";
    public static void main(String argv[])
    throws Exception
    String ctxFactory     = System.getProperty
    ("java.naming.factory.initial");
    String providerUrl     = System.getProperty
    ("java.naming.provider.url");
    Properties jndiEnv          = System.getProperties ();
    System.out.println ("ctxFactory : " + ctxFactory);
    System.out.println ("ProviderURL : " + providerUrl);
    Context ctx     = new InitialContext (jndiEnv);
    for (int i=0; i <1000000; i++)
    System.out.println("Running query for the "+i+" time");
    Connection con = null;
    Statement stmnt = null;
    ResultSet rs     = null;
    try
    DataSource ds     = (DataSource) ctx.lookup
    (System.getProperty("eaMDataStore", "jdbc/eaMarket"));
    con = ds.getConnection ();
    stmnt = con.createStatement();
    rs = stmnt.executeQuery(strQuery);
    while (rs.next ())
    //System.out.print(".");
    //System.out.println(".");
    ds = null;
    catch (java.sql.SQLException sqle)
    System.out.println("SQL Exception : "+sqle.getMessage());
    finally
    try {
    rs.close ();
    rs = null;
    //System.out.println("closed result set");
    } catch (Exception e) {
    System.out.println("Exception closing result set");
    try {
    stmnt.close ();
    stmnt = null;
    //System.out.println("closed statement");
    } catch (Exception e) {
    System.out.println("Exception closing result set");
    try {
    con.close();
    con = null;
    //System.out.println("closed connection");
    } catch (Exception e) {
    System.out.println("Exception closing connection");
    I am using the Oracle 8.1.7 thin driver. Please let me know if this
    memory leak is a known issue or if its something I am doing.
    thanks,
    rudy

    Repost in JDBC section ... very serious issue but it may be due to Oracle or
    to WL ... does it happen if you test inside WL itself?
    How many iterations does it take to blow? How long? Does changing to a
    different driver (maybe Cloudscape) have the same result?
    Peace,
    Cameron Purdy
    Tangosol Inc.
    << Tangosol Server: How Weblogic applications are customized >>
    << Download now from http://www.tangosol.com/download.jsp >>
    "R.C." <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I have a simple client that opens a database connection, selects from
    a table containing five rows of data (with four columns in each row)
    and then closes all connections. On running this in a loop, I get the
    following error after some time:
    <Nov 28, 2001 5:57:40 PM GMT+06:00> <Error> <Adapter>
    <OutOfMemoryError in
    Adapter
    java.lang.OutOfMemoryError
    <<no stack trace available>>
    >
    <Nov 28, 2001 5:57:40 PM GMT+06:00> <Error> <Kernel> <ExecuteRequest
    failed
    java.lang.OutOfMemoryError
    I am running with a heap size of 64 Mb. The java command that runs
    the client is:
    java -ms64m -mx64m -cp .:/opt/bea/wlserver6.0/lib/weblogic.jar
    -Djava.naming.f
    actory.initial=weblogic.jndi.WLInitialContextFactory
    -Djava.naming.provider.url=
    t3://garlic:7001 -verbose:gc Test
    The following is the client code that opens the db connection and does
    the select:
    import java.util.*;
    import java.sql.*;
    import javax.naming.*;
    import javax.sql.*;
    public class Test {
    private static final String strQuery = "SELECT * from tblPromotion";
    public static void main(String argv[])
    throws Exception
    String ctxFactory = System.getProperty
    ("java.naming.factory.initial");
    String providerUrl = System.getProperty
    ("java.naming.provider.url");
    Properties jndiEnv = System.getProperties ();
    System.out.println ("ctxFactory : " + ctxFactory);
    System.out.println ("ProviderURL : " + providerUrl);
    Context ctx = new InitialContext (jndiEnv);
    for (int i=0; i <1000000; i++)
    System.out.println("Running query for the "+i+" time");
    Connection con = null;
    Statement stmnt = null;
    ResultSet rs = null;
    try
    DataSource ds = (DataSource) ctx.lookup
    (System.getProperty("eaMDataStore", "jdbc/eaMarket"));
    con = ds.getConnection ();
    stmnt = con.createStatement();
    rs = stmnt.executeQuery(strQuery);
    while (rs.next ())
    //System.out.print(".");
    //System.out.println(".");
    ds = null;
    catch (java.sql.SQLException sqle)
    System.out.println("SQL Exception : "+sqle.getMessage());
    finally
    try {
    rs.close ();
    rs = null;
    //System.out.println("closed result set");
    } catch (Exception e) {
    System.out.println("Exception closing result set");
    try {
    stmnt.close ();
    stmnt = null;
    //System.out.println("closed statement");
    } catch (Exception e) {
    System.out.println("Exception closing result set");
    try {
    con.close();
    con = null;
    //System.out.println("closed connection");
    } catch (Exception e) {
    System.out.println("Exception closing connection");
    I am using the Oracle 8.1.7 thin driver. Please let me know if this
    memory leak is a known issue or if its something I am doing.
    thanks,
    rudy

  • Problem w/ 8.1.6 Thin Driver and Oracle 8.0.5

    I am attempting to connect to two data hosts.
    One is Oracle 8.1.6, the other is Oracle 8.0.5. The DB Admin insists the user name and passwords are the same for both.
    I am using the v8.1.6 100% Java thin driver under both JDK v1.2 and v1.3. My OS is Windows2K Professional.
    I can always connect to the 8.1.6 database but never to the 8.0.5 database under any circumstances. The error I receive when attempting to connect to the 8.0.5 database is:
    java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=134238208)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    Does any one have some insights here?
    My test code fragment is as follows:
    try{
    Class.forName( "oracle.jdbc.driver.OracleDriver" ).newInstance();
    String dbURL = "";
    //dbURL = "jdbc:oracle:thin:@host1:1521:data_source_8_1_6";
    dbURL = "jdbc:oracle:thin:@host2:1521:data_source_8_0_5";
    Connection con = DriverManager.getConnection(dbURL, "test_user", "test_user");
    java.sql.Statement stmt = con.createStatement();
    String sq1String = "SELECT * FROM DUAL";
    java.sql.ResultSet res = stmt.executeQuery(sq1String);
    int rows = 0;
    while(res.next()) {
    rows++;
    System.out.println("rows = " + rows);
    catch(Exception e) {
    System.out.println(e);
    null

    tnsping is working correctly. We can ping the host and it is listening on port 1521. Likewise, there are other applications inhouse using this datasource.
    Since first posting my question, I have also tried running the test program on WinNT. Same problem arises.
    Other suggestions?

  • Does oracle 8.1.6.0 jdbc thin driver support jdk1.3 and oracle 8.0.5 database ?

    I have downloaded oracle 8.1.6.0 jdbc thin driver(named classes12.zip) to run with jdk1.3 to access oracle 8.0.5, but when I compile and run the jdbccheckup.java downloaded from oracle website like this:
    javac -classpath d:\jdbc\classes12.zip jdbccheckup.java
    (compile succeed)
    java -classpath d:\jdbc\classes12.zip jdbccheckup
    an error occured:
    Exception in thread "main" java.lang.NoClassDefFoundError:jdbccheckup
    Why??????

    Try this isntead.
    java -classpath d:\jdbc\classes12.zip;. jdbccheckup
    an error occured:
    Exception in thread "main" java.lang.NoClassDefFoundError:jdbccheckup
    Why??????

  • Thin driver connection in oracle8i(8.1.5) on Linux with JDK1.2.2

    JDBC Development team quote:
    You can download the JDK 1.2 version of the 8.1.6 Thin driver from this site. It is 100% Pure Java and will run on Linux.
    As you replied, I downloaded 8.1.6 Thin driver(classes12.zip) and nls_charset12.zip. Then, as instructed in readme file of 8.1.6, I modified CLASSPATH and add LD_LIBRARY_PATH.
    I wrote a test program, and it compiled without errors. But when I excuted it, I got the error message below:
    java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNU
    M=135286784)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    Is there any other installation procedures I missed?
    Below is the test program I used:
    import java.sql.*;
    import oracle.jdbc.driver.*;
    public class Test
    public static void main (String args [])throws SQLException
    //DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    try{
    Class.forName("oracle.jdbc.driver.OracleDriver");
    catch(ClassNotFoundException e){
    System.out.println("Cannot load the Driver");
    Connection conn = DriverManager.getConnection ("jdbc:oracle:thin:@host:port:sid","id", "password");
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("select sysdate from dual");
    while (rset.next ())
    System.out.println (rset.getString (1));
    I'd appreciate if you give me some insight.
    null

    It seems like the database listener is not setup properly. Please double check the listener is up and it's listening to the port you specified.
    Thanks.

Maybe you are looking for

  • Problems  with  string larger char(255)

    Hi guys , Something really weird happened to me , i have the following code  to create a  flat file , suddenly it is truncating the lines in 250 ,  its funny i see  wa_ti_fich+330(5)   in the debugging and it has data , but the whole wa_ti_fich is on

  • Premiere Elements 11 stops importing from DV

    Premiere Elements 11, Windows 8 32, External USB-HD Hi, I am trying to convert my friends' MiniDV videos. I work with a borrowed laptop that has Elements on it but I am not familiar with it. The import always stops after about 18:30 and I get an erro

  • Using External Library in Web Dynpro - Error

    Hello, I want to use an external library in a web dynpro. I use WAS 6.40 SP12. 1. I have created an dc web dynpro app 2. I have created an dc external library app 3. I have importet the jar to the external library 4. I have published the jar as publi

  • Connection and reconnection taking a lot of time

    Hi ppl. I am on a POC with 5 machines plus the Active Directory on a Win 2003 server, the vdi hosts and the storage server each of them reside on a LDOM (four in total) created on one sparc blade on a sun blade 6000, each vdi has 4 gb of memory and t

  • How to create a deployable ejb(.jar file) when we use Oracle application sever?

    Hi, In case if we use Weblogic we give following command on console to create a deployable ejb, while weblogic.jar is in classpath. java weblogic.ejbc temp.jar StudentBean.jar 1)What are the classes or jar files we have to set in classpath, 2)What co