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.

Similar Messages

  • Proxy user connectivity with thin driver

    Hi,
    The database I'm working use proxy user authentication. When I select oci8 as driver I can connect using the below login method:
    Host Name : username[proxy user]
    password : password
    but it shows as invalid username/password when I select the driver = THIN.
    What could be the reason behind this?
    thanks
    Edited by: Nadvi on Jul 9, 2010 1:52 PM

    Hi John,
    Thanks for your reply. The documentation says, proxy connectivity method is same both for THIN & OCI8 driver. But what I can see is Jdeveloper is somehow misinterpreting the proxy user name.
    Ie, Username[Proxy user] and the reason why it throws invalid username/password.
    But the same syntax works fine with sqlplus, or any other IDE.
    Can anybody guide me on this.
    Thanks

  • DB Connection with thin driver is hanging in Oracel EM 10g

    I have couple of J2EE applications deployed in Oracel 10g EM.
    The applications build using Struts and JDBC.
    I am using java thin driver to make DB Connection
    Problem: When ever I make the db connection call, it is hanging there and not returning the db connection.
    Observation: I have verified in serverlogs, applicationlogs but nothing i found. Hence I have created a separate static class and make the jdbc connection which is very quick and working fine.
    I have ran the below command at the shell prompt: lsof -i:1521 | wc -l
    It returned 128 connections.
    I really did not uderstand what exactly went wrong here, Is there any problem with my application server or with my application.
    Kindly get back to me what exactly is the wrong here, also Please let me know if you need more information.
    Thanks in advance.
    Edited by: user7631923 on Jan 4, 2013 2:13 PM

    I have couple of J2EE applications deployed in Oracel 10g EM.
    The applications build using Struts and JDBC.
    I am using java thin driver to make DB Connection
    Problem: When ever I make the db connection call, it is hanging there and not returning the db connection.
    Observation: I have verified in serverlogs, applicationlogs but nothing i found. Hence I have created a separate static class and make the jdbc connection which is very quick and working fine.
    I have ran the below command at the shell prompt: lsof -i:1521 | wc -l
    It returned 128 connections.
    I really did not uderstand what exactly went wrong here, Is there any problem with my application server or with my application.
    Kindly get back to me what exactly is the wrong here, also Please let me know if you need more information.
    Thanks in advance.
    Edited by: user7631923 on Jan 4, 2013 2:13 PM

  • OraXE Connection with thin

    when making the connection with thin gives the following error me
    ORA-00604: error occurred at recursive SQL level 1
    ORA-12705: Cannot access NLS data files or invalid environment specified

    What is the NLS_LANG settings of your database? Are you able to connect to the database with SQL*Plus? If not, you might want to try posting on the Oracle XE forum and solve that problem first.

  • 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 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();

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

  • Wireless does not hold connection with b43 driver!

    Hi everybody!!
    It's my first time here in the forum, so nice to meet you.
    I have a laptop Acer Aspire 3050 and I recently formatted it to install the new Arch 2009.08.
    It's pretty cool, but I can't make my wireless card (Broadcom BCM4318) work with b43 driver. It worked very well with Arch 2009.02, but now it's a pain!
    It recognizes the driver, loads it and connect with no problems, but when I ping my desktop machine, it says that unfortunate message "Destination Host Unreachable"
    It sometimes works when I do these commands about 5 or 10 times:
    ./connect
    ping 192.168.0.1 >>> Destination Host Unreachable
    ifconfig wlan0 down
    rmmod b43
    /etc/rc.d/network restart
    modprobe b43
    ./connect
    [... many more times]
    but even when it does connect, it usually can't hold the connection for more than 15 or 20 minutes. And I have to do it all again.
    Hear goes some info on configuration files so it may help you:
    lspci -vk
    08:04.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
    Subsystem: AMBIT Microsystem Corp. TravelMate 2410
    Flags: bus master, fast devsel, latency 64, IRQ 21
    Memory at d0200000 (32-bit, non-prefetchable) [size=8K]
    Kernel driver in use: b43-pci-bridge
    Kernel modules: ssb
    lsmod | grep "b43"
    b43 137208 0
    mac80211 155532 1 b43
    cfg80211 90428 2 b43,mac80211
    ssb 45988 1 b43
    pcmcia 36168 2 b43,ssb
    pcmcia_core 35184 5 b43,yenta_socket,rsrc_nonstatic,ssb,pcmcia
    led_class 4000 3 b43,sdhci,acer_wmi
    /etc/rc.conf
    MOD_AUTOLOAD="yes"
    #MOD_BLACKLIST=() #deprecated
    MODULES=(!b43 !ndiswrapper)
    #Static IP example
    #eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
    #eth0="dhcp"
    INTERFACES=()
    gateway="default gw 192.168.0.1"
    ROUTES=(!gateway)
    DAEMONS=(syslog-ng network netfs crond hal)
    I've already tried many different configurations in rc.conf, but it still does not estabilish a connection in the first try.
    I'm using the driver from the wiki (http://mirror2.openwrt.org/sources/broa … .5.tar.bz2) and did not try with only ndiswrapper. It's because I want to have all functionalities from criptography and... after all, it was supposed to work, wasn't it?
    Where could be the problem? The driver version? Or bad configuration?
    Thanks in advance!! If you need more information, please ask.

    So, the same problem occurred and in a relatively shorter time than before. I began to think that something is causing this problem.
    My theory is that it is a VMWare software issue. What I've been doing differently recently is using it in "Unity" mode as opposed to "Full Screen" mode. My guess is that the program is modifying my wireless permissions and screwing it all up.
    So, what I've done is set the "Network Adapter" to "Host-Only". This denies the VMWare program internet access but still allows file sharing between the Windows virtual environment and the Mac hard drive.
    Then I had to re-install Mac OS X all over again to fix the wireless settings/permissions mess.

  • Marked objects connect with thin line

    I work in CS6. When I mark two or more objects they automatically connect with a thin line (and a white square) between them. They are still two separate objects, but the connection between them is shown (and they can be dragged together). Is it possible to change this setting?  

    That's the selection bounding box, and no, you can't change it.
    The bounding box is going to change to be the smallest rectangle that completely encloses all of the selected objects and may look quite different from what you describe if the objects are not the same size and aligned vertically or horizontally.

  • Could not connect through thin driver

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

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

  • 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

  • 9iFSRe2 + API + connect with thin-Client

    Hi,
    I progam the iFS-APi to connect the iFS.
    But under Windows i must install about 100MB.
    Under Linux the size of libs i need to connet
    about 10MB.
    My Question is can i connect the iFS with
    thin-Client dll?
    thanks for Answer
    bye

    Place some debugging code and see if URL is null. Also, although it is nice practice, you don't need to catch every type of exception. Try (no pun intended):
    catch (Exception e) {
    System.err.println(e.getClass().getName() + ":" + e.getMessage());
    - Saish
    "My karma ran over your dogma." - Anon

  • Problem with thin driver and tnsname syntax

    I have tried to use the tnsname syntax for the thin driver.
    ORACLE_HOME points to the right home, but I always get an E/A-Exception: Unknown host specified.
    I thought that tnsname syntax is supported in the latest driver. What am I doing wrong?
    Then entry:
    MEDORA.euro.med.ge.com =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (COMMUNITY = TCP.euro.med.ge.com)(PROTOCOL = TCP)(Host = zzimedo1.euro.med.ge.com)(Port = 1521))
        (CONNECT_DATA =
          (SID = rad)
          (GLOBAL_NAME = MEDORA.euro.med.ge.com)
      )The URL: jdbc:oracle:thin:@medora
    Thanks,
    Sascha

    I have tried to use the tnsname syntax for the thin driver.
    ORACLE_HOME points to the right home, but I always get an E/A-Exception: Unknown host specified.
    I thought that tnsname syntax is supported in the latest driver. What am I doing wrong?
    Then entry:
    MEDORA.euro.med.ge.com =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (COMMUNITY = TCP.euro.med.ge.com)(PROTOCOL = TCP)(Host = zzimedo1.euro.med.ge.com)(Port = 1521))
        (CONNECT_DATA =
          (SID = rad)
          (GLOBAL_NAME = MEDORA.euro.med.ge.com)
      )The URL: jdbc:oracle:thin:@medora
    Thanks,
    Sascha

  • Problem with thin driver connection from servlet

    i'm using a servlet and i'm trying to connect to Oracle using the syntax below. but i get an error.
    DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@qit-uq-cbiw:1526:orcl", "scott", "tiger");
    // @machineName:port:SID, userid, password
    the error...
    Class oracle.jdbc.driver.OracleDriver not found.
    DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
    ^
    1 error
    i guess the question is, what should be in place of
    oracle.jdbc.driver.OracleDriver());

    Here is what I use:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    con = DriverManager.getConnection(url, userName, password);Which would appear to be the same as what you use. So your syntax is probably OK. This driver exists in a file provided by Oracle as classes12.zip or classes12.jar. On a normal Oracle9i install on Windows this is located C:\oracle\ora90\jdbc\lib, where C: is your Oracle installation drive. I would check to be sure that your classpath points to this specific file (not just the directory).
    Also, if you are using an OLD version of Oracle, this file could be named classes111.zip or classes111.jar.
    Joel

  • Problem with Thin Driver

    Hi All
    I am using WinNT and Tomcat installed on it
    I have jdk1.3 . Loaded classes111.zip after unzipping and included all classes in classpath of the m/c .
    Now when I try to access database it gives following error
    java.sql.SQLException: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135286784)(E
    RR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:407)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:152)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:214)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:193)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    The code that gives error is following..
    import java.sql.*;
    import java.io.*;
    public class ConnectionBean {
    // private String myDriver = "sun.jdbc.odbc.JdbcOdbcDriver";
    //private String myURL = "jdbc:odbc:pms";
    private String myDriver="oracle.jdbc.driver.OracleDriver";
    String myURL="jdbc:oracle:thin:@192.168.24.60:1521:softedge";
    String User="scott";
    String Pass="tiger";
    // Connection dbConnection = DriverManager.getConnection
    //("jdbc:oracle:dnldthin:@localhost:1521:orcl","TomA","caffeine");
    public Connection myConn;
    public ConnectionBean() {}
    public void setConnection() throws Exception {
    public Connection getConnection() throws Exception {
    System.out.println(" Inside getConnection");
    Class.forName(myDriver);
    System.out.println("After class.forname");
    //myConn = DriverManager.getConnection(myURL,"sa","");
    myConn = DriverManager.getConnection(myURL,User,Pass);
    System.out.println("After getConnection(m");
    return myConn;
    public void takeDown() throws Exception {
    myConn.close();
    Line that thows the error in this code is..
    myConn = DriverManager.getConnection(myURL,User,Pass);
    If anyone can tell me what is the problem and what is its resolution..
    Thanks
    null

    mohitmm stated :
    classes12.zip is same as classes102.zip
    totally false !!
    there is a naming pattern or convention being used for the ORACLE claases based upontheir JDK versions.
    JDK 1.0.2 --> is the basis for the classes102.zip file
    JDK 1.1.x --> is the basis for the classes111.zip file
    JDK 1.2.x --> is the basis for the classes12.zip file.
    JDBC drivers based upon jdk 1.2.x were first released with the rdbms 8.1.6 SDK and 8.1.6 platforms and they continue to be released with the rdbms 8.1.7 platform.
    i hope this helps ...

Maybe you are looking for

  • Did I just prove the purple fringing is software?

    I experienced some fringing issues and got curious about the claims of coatings and internal reflections.... Please duplicate this and explain if you can... Set up a shot where the purple is very obvious, now simply switch to video mode.... It's gone

  • Oracle Express 6.3.4 Installation problem

    Hi, We have installaed Oracle Express 6.3.4 in HP Truc 64 M/C. When trying to start Express 6.3.4 version software, i get the foll error as mentioned below. It shows OES_Request -read fails, error 35. Please can anyone let me know what should be done

  • RDS Web 2008 R2

    Hello, I am trying to publish a link via RDS web 2008 R2. This is not a farm. I follow the steps to publish calculator but when i open the RDSweb, the remoteapp Programs is empty. Thanks for help

  • EssbaseCluster-1 in 11.1.2 - giving users filter access

    I am attempting to grant users filter access to an Essbase application in 11.1.2.1 In Shared services I am right-mouse-clicking on the application under the EssbaseCluster-1 node, and selecting "Assign Access Control", but no users are displayed when

  • N8 Anna update zoom out not working in mails

    prior to the Anna update, i could zoom out  the view for all the mails received in N8 (ive set up gmail account). I use this particularly to view in full page mode for big images in html mails. But after the Anna update, i cannot zoom out the default