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

Similar Messages

  • 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

  • Using oracle thin driver with to_char gives invalid column name

    select x,y,z, to_char(event_time,'YYYY-MMM-DD') from eventtable;
    if i execute the above query using oracle thin driver it gives me invalid column name. It works fine if i use weblogic driver. So what could be the problem ???
    thanks.

    Sorry , forgot to add that 'YYYY-MM-DD' or 'YYYY-Month-DD' or 'Year-MM-DD' or 'Year-Month-DD' are also allowed(please cheek also for other combinations), not 'YYYY-MMM-DD'.
    Thanks

  • GUYS!! Is there any way to write BLOB's 4K using Oracle thin driver

    I've been trying for 3 days to do that but nothing worked ...
    Not
    setBinaryStream(x, new ByteArrayInputStream(anArrayWith10KBytes), anArrayWith10KBytes);
    nor setBytes(x, myArray), or setObject(x, myArray).
    Is there any way to store Blobs to Oracle 8.1.6 using the thin driver ????????????
    Please help ... cause I really need it !!!
    Best regards,
    Stefig

    Hi Stefig
    Following code help you to store the files >4k in BLOB column in Oracle database
    test is a table in which TEST is BLOB column
    String url = "jdbc:oracle:thin:@.....";
    String user = "user name";
    String password = "password";
    Connection conn = null;
    PreparedStatement aQuery = null;
    ResultSet rs = null;
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    conn = DriverManager.getConnection(url,user,password);
    conn.setAutoCommit(false);
    Statement stmt = conn.createStatement();
    stmt.execute("insert into test values (EMPTY_BLOB())");
    rs = stmt.executeQuery("select TEST from test");
    rs.next();
    BLOB blob =((OracleResultSet)rs).getBLOB(1);
    File f = new File(filename);
    FileInputStream io = new FileInputStream(f);
    OutputStream os = blob.getBinaryOutputStream();
    int size = io.available();
    byte[] buffer = new byte[1024];
    int length=0;
    while((length=io.read(buffer)) != -1)
    os.write(buffer,0,length);
    io.close();
    os.close();
    stmt.execute("commit");
    catch()
    Good Luck
    From
    Sachin

  • Using oracle thin driver from Weblogic server 6.1

    Hi
    I need to know which driver is best for establishing JDBC Connection i.e.
    whether to use JDriver provided with Weblogic or to go using Oracle thin driver.
    Can some one tell the detailed procedure involved in configuring oracle thin driver
    in Weblogicserver 6.1.
    Thanks in advance,
    S Gopikrishna

    I would recommend using the thin driver where ever possible, their are
    certain problems with thin driver which are more in the area of XA support
    you can check weblogic documentation for pointers on this. Oracles latest
    thin driver is pretty stable as they have fixed a bunch of problems.
    heres how to use thin driver:
    create the connection pool using the following url
    jdbc:oracle:thin:@<mc-name or ip-address>:<port-no>:<oracle sid>
    and driver: oracle.jdbc.driver.OracleDriver
    You dont have to install the thin driver its bundled with the product.
    hth
    sree
    "S Gopikrishna" <[email protected]> wrote in message
    news:3c34a0e5$[email protected]..
    Hi
    I need to know which driver is best for establishing JDBC Connection
    i.e.
    whether to use JDriver provided with Weblogic or to go using Oracle thin
    driver.
    Can some one tell the detailed procedure involved in configuring oracle thin
    driver
    in Weblogicserver 6.1.
    Thanks in advance,
    S Gopikrishna

  • Connect to oracle using jdba thin driver

    i want to use jdbc thin driver to connect to oracle 8i for linux intel.
    my code is:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    String dbURL = "jdbc:oracle:thin:@dbserver:1521:iasdb";
    Connection con = DriverManager.getConnection(dbURL,"scott","tiger");
    but an error is reported as "the network adapter can not establish connection".
    why?
    i can connect to oracle using JDBC-ODBC bridge successfully.

    i want to use jdbc thin driver to connect to oracle 8i for linux intel.
    my code is:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    String dbURL = "jdbc:oracle:thin:@dbserver:1521:iasdb";
    Connection con = DriverManager.getConnection(dbURL,"scott","tiger");
    but an error is reported as "the network adapter can not establish connection".
    why?
    i can connect to oracle using JDBC-ODBC bridge successfully.

  • How can I see KSC5602 character set using JDBC thin driver

    After I change character set from USASCII7 to KO16KSC5601, I
    cannot see korean from the clients
    using JDBC thin driver.
    But, I can see korean clearly using sqlplus at serer, or
    application using SQLNet.
    I use Oracle Enterprise Server 8.0.4.1.0, jdbc thin driver
    8.0.4.0.6 on Windows 98. I read that all bugs realated
    to multibyte language are fixed in Oracle8. What can I do to
    solve this problem?
    PS.server: Oracle 8.0.4.1 on Digital Unix 4.0b, client: jdk1.1.8
    on Windows98. I used the command.
    null

    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.

  • OS Authentication using JDBC Thin driver

    Hi
    I have a problem while connecting to Oracle database using JDBC Thin Driver, Basically I am trying to connect using OS Authentication. The following explains clearly what I am trying to do.
    String connectionURL = "jdbc:oracle:thin:@localhost:1521:XYZ";
    String userName = "/";
    String password = "";
    java.util.Properties info = new java.util.Properties();
    info.setProperty("user",userName);
    info.setProperty("password",password);
    conn = DriverManager.getConnection(connectionURL,info);
    When executing the code I am getting an exception as follows.
    java.sql.SQLException: Null user or password not supported in THIN driver
    When i searched in the Oracle site i got the below information
    Note:
    By default, the JDBC driver retrieves the OS username from the user.name system property, which is set by the JVM. If the JDBC driver is unable to retrieve this system property or if you want to override the value of this system property, then you can use the OracleConnection.CONNECTION_PROPERTY_THIN_VSESSION_OSUSER connection property. For more information, see Oracle Javadoc.
    I want to know how to set the OracleConnection.CONNECTION_PROPERTY_THIN_VSESSION_OSUSER connection property.
    Advance Thanks

    Based on your code, when you try to connect your username is null and the password is "/". You are not going to be able to get the OS password using Java.

  • Using oracle thin driver

    Hi,
    I have a problem in using oracle thin driver,ive downloaded oracle thin driver and classpath has been set for classes12.zip.Iam trying to connect to server:teams sid:teams .
    the following code compiles and throws error @ runtime
    ************************ code****************8
    import java.sql.*;
    public class ocdtest {
    public static void main(String arg[]){
    try {
    DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection ("jdbc:oracle:thin:@teams:1521:teams", "raghu", "startoracle");
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("select login_name from login");
    while (rset.next ()){
    System.out.println (rset.getString ("login_name"));
    }catch(Exception e){
    System.out.println(e);
    ********************* code *********************************
    ********************** Exception *************************
    Exception in thread "main" java.lang.UnsatisfiedLinkError: get_env_handle
    at oracle.jdbc.oci8.OCIEnv.get_env_handle(Native Method)
    at oracle.jdbc.oci8.OCIEnv.getEnvHandle(OCIEnv.java:70)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:359)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:252)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:172)
    at ocdtest.main(ocdtest.java:11)
    *******************************Exception **********************
    can anyone help me how to solve this problem.
    thanks in advance
    karthik

    Hi,
    The following code works
    import java.sql.*;
    public class ocdtest {
    public static void main(String arg[]){
    try {
              Class.forName("oracle.jdbc.driver.OracleDriver");
              Connection con=DriverManager.getConnection("jdbc:oracle:thin:@teams:1521:teams", "raghu", "startoracle");
              Statement s=con.createStatement();
              System.out.println("connected");
              ResultSet rs=s.executeQuery("select login_name from login where login_name='tom'");
              System.out.println("resultset");
              while(rs.next()){
                   System.out.println(rs.getString("login_name"));
    }catch(Exception e){
              System.out.println(e);
    all u need to download is classes12.zip and the patch for this zip .
    thanks and regards
    Karthik

  • How to connect to personal oracle using oracle thin driver on windows98

    Hi,
    i would like to know is it possible to connect to personal oracle8 using oracle thin driver on windows98.iam getting some exceptions when iam running ,could any one help me
    1.exception in thread main java.sqlexception:IOexception:the
    networkadapter could not establish the connection
    2.at oracle.jdbc.dbaccess.DBError.throws sqlexception(DBError.java)
    3.atoracle.jdbc.dbaccess.DBError.throws sqlexception(DBError.java)
    4.atoracle.jdbc.driver.oracleconnection.<init>(oracleconnection.java)
    5.atoracle.jdbc.driver.oracledriver.getconnectioninstance(oracledrive
    r.jva)
    6.atoracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
    7.atjava.sql.DriverManager.getConnection(unknown source)
    8.atjava.sql.DriverManager.getConnection(unknown source)
    9.at JEmp.main(JEmp.java:16)
    null

    http://www.orafaq.com/wiki/JDBC#Thin_driver

  • Jdbc connection using oracle thin driver( using jdk1.4 and oracle8 )

    hello ..
    while i was tring to connection using oracle thin driver and jdk1.4 am getting the below error message. i have set the class path for the driver also. am using oracle8 personal edition and jdk1.4.
    [java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
            at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
            at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
            at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
            at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:404)
            at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:468)
            at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
            at java.sql.DriverManager.getConnection(DriverManager.java:512)
            at java.sql.DriverManager.getConnection(DriverManager.java:171)
            at Connexa.main(Connexa.java:18)[/b]
    Press any key to continue...
    my program is....
    import java.sql.*;                                          
    import java.io.*;
    import java.util.*;
    import oracle.jdbc.driver.*;
    // needed for new BFILE class
    import oracle.sql.*;
       public class Connexa {
      public static void main (String args []) throws Exception {
            Statement stmt=null; 
      try{
        // Load the Oracle JDBC driver                            
        //DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Class.forName("oracle.jdbc.driver.OracleDriver");
        // Connect to the database
        // You can put a database name after the @ sign in the connection URL.
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:orcl","scott","tiger");
        //Connection conn =
        //  DriverManager.getConnection ("jdbc:odbc:datasource", "system", "manager");
        stmt = conn.createStatement ();
    catch (SQLException e)
          e.printStackTrace();

    The code itself is fine; the problem is with one of:
    1) the connection URL
    2) intermediate networking
    3) the database itself
    1) your connection URL is "jdbc:oracle:thin:@127.0.0.1:1521:orcl"
    - is Oracle really running on the default port, 1521
    - is the installation SID really "orcl"
    2) lots of possibilities, but only a couple are likely
    - is TCP/IP configured and running on your host
    - is there a persoanl firewall rpduct running? perhaps it's blocking the connection
    3) Is Oracle running?
    Is the listener running?

  • Memory Leak when TOMCAT connects to Oracle 10g RAC using JDBC Thin driver.

    We had experienced Memory leak when a Oracle 10g (10.2.0.3) RAC node was evicted. TOMCAT app server is connecting to the Oracle 10g RAC database instances using JDBC 10.2.0.3 thin driver.
    Anyone had similar experience?
    Any ideas? Any bugs reported/fixed?
    Thanks,
    Raj

    If you're doing XA, we absolutely do not support
    driver-level load-balancing OR failover. Use neither.
    For non-XA, you can use driver-level failover. For
    non-XA, you could set load-balancing, but it won't
    help because we get connections from the driver,
    and keep them indefinitely, so the driver never gets
    the chance to affect which connections the pool
    uses after that.

  • Retrieving XMLType using JDBC(THIN DRIVER)

    Oracle Database: 10g R2
    Java version: 1.4+
    Hi All,
    I have a column of type XMLType in a database table . I have to retrieve it using Oracle XDK APIs as an instance of oracle.xdb.XMLType. How to go about this using thin driver?
    Thanks

    Hello,
    Download the oracle xdk for your platform and copy the jars xdb.jar and xmlparserv2.jar from it to your classpath. Then download the latest ojdbc14.jar driver and add it to your classpath.
    Then use the following example code snippet to extract the xml from the xml-column in the resultset:
    import javax.xml.transform.OutputKeys;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import oracle.xdb.XMLType;
    import org.w3c.dom.Document;
    Object     object = resultSet.getObject("xmlcolumnname");
    if (object instanceof XMLType) {
         Document          document = ((XMLType)object).getDOM();
         Transformer          transformer = TransformerFactory.newInstance().newTransformer();
         transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION,"yes");
         transformer.setOutputProperty(OutputKeys.INDENT,"no");
         transformer.transform(new DOMSource(document),new StreamResult(System.out));
    } else {
    In your query that produces the resultset, it's important to add the procedure ".createNonSchemaBasedXML()" to your xml-value so there is no schema attached to it.
    For example: select myxmlcolumn.createNonSchemaBasedXML() as myxml from mytable;
    or select extract(myxmlcolumn,'//somexpath').createNonSchemaBasedXML() as myxml from mytable;
    Regards, Micha

  • Upgrade 10G to use 10G thin jdbc drivers- OCI

    This is wierd...
    If I upgrade 10G app server to use the 10G thin JDBC drivers, and set up a data source to use the thin drivers, is there any way that I could score a[b] ORA-01010 invalid OCI operation error when I'm not using an OCI driver?
    Anyone else seen this...again, it makes no sense...

    You can not and should not use JDK 1.2 with 8i drivers.
    If you want to use JDK 1.2 drivers, download the 8.1.6 SDK
    from external site.
    Please, please, please READ the FAQ at www.oracle.com/java/jdbc
    before posting
    Premal Mehta (guest) wrote:
    : Hi,
    : Sorry for multiple posting. Previous posting has incomplete
    : information. Here's the whole scenerio...
    : I have Oracle 8i installed on my server. I have downloaded
    : JDBC drivers for Oracle 8i from Oracle site. When I try to run
    a
    : sample example from the demo files given, I get a Windows
    : internal Error "Exception: Access Violation (0xc0000005),
    : Address: 0x6ee0fb83". I am using Oracle 8i on Win NT 4.0 with
    : SP4, IIS4.0 with 128 MB RAM.
    : Also, I am trying to use OCI8 JDBC drivers with JDK 1.2. The
    : classpath is set for classes111.zip files.
    : I am unable to run applets with JDBC also. On using thin
    : drivers, it gives "SO Exception" error.
    : I have tried many options but it dosent seem to work.
    Please
    : help as this is very urgent.
    Oracle Technology Network
    http://technet.oracle.com
    null

  • Memory leak using Oracle thin driver on wls6.1...

    Hi, I've been attempting to find a memory leak in an application that
    runs on WLS 6.1 SP2, on Solaris 8 and accessing an Oracle 9i db. We
    are using the Type 4 (Thin) driver and JProbe reports that hundreds of
    oracle.jdbc.* objects are left on the heap after my test case
    completes. Specifically oracle.jdbc.ttc7.TTCItem is the most common
    loiterer on the heap. I have verified that after each database access
    the resources are release correctly (i.e. ResultSet, Connection,
    PreparedStatement, etc.)
    Has anyone encountered similar problems? or does anyone know how to
    fix this?
    Thanks,
    Tim Watson

    Hi Tim!
    We have seen problem using oracle 817 client that has been resolved using
    901 client for type2(oci) driver, But i am not aware of thin driver
    problem. You should check with oracle if they have find any customer's
    with this problem.
    Thanks,
    Mitesh
    Tim Watson wrote:
    Hi, I've been attempting to find a memory leak in an application that
    runs on WLS 6.1 SP2, on Solaris 8 and accessing an Oracle 9i db. We
    are using the Type 4 (Thin) driver and JProbe reports that hundreds of
    oracle.jdbc.* objects are left on the heap after my test case
    completes. Specifically oracle.jdbc.ttc7.TTCItem is the most common
    loiterer on the heap. I have verified that after each database access
    the resources are release correctly (i.e. ResultSet, Connection,
    PreparedStatement, etc.)
    Has anyone encountered similar problems? or does anyone know how to
    fix this?
    Thanks,
    Tim Watson

Maybe you are looking for