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

Similar Messages

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

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

  • Proxy user connection in oracle form10g

    Dear All,
    Any one could help me out how to use proxy user connection in oracle form10g ?
    proxyapp[SCOTT]/proxyapp@orcl which is running fine is database side i like to use this user in oracle forms 10g and would like to know the syntax of connection .
    Thanks & Regards
    zeeshan

    Do you know if there is there anyway to use proxy users without using OAM? It is working fine for us assuming the combined prox_user[real_user] does exceed 30 characters .... Need to expand the forms user id field ...???

  • Howmany oracle user connect with oracle server.

    hi all
    howmany oracle user connect with oracle server.
    i want query for above sentance.

    Robert,
    This query will show us the username who are connect to a particular database. If OP wants that how many overall users are connected to his/her oracle server (which is having more than one db) then please tell us. Suppose 10 users are connected with db1 and 20 users are connected with db2.. like that.
    Regards
    Girish Sharma

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

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

  • Proxy User Authentication with SQL Developer

    Hello,
    I realized that there are 2 methods for configuring SQL Developer to user Proxy User Authentication.
    1) one-session method with Syntax:
    personaluser[appuser]
    2) two session-method with dialog "Proxy Connection"
    For me it is unclear, why anybody would want to use the two-session-method.
    a. you need username/password for both user acocunts (personaluser and appuser)
    b. it is unclear which operations in SQL Developer are using the personaluser account. It seems that the SQL Window is only using appuser account.
    What was the motivation to implement Two Session Method?
    Best regards,
    Martin

    I found the possibility that proxy authentication of both accounts can be enforced:
    SQL> alter user appuser grant connect through personaluser AUTHENTICATION REQUIRED;
    I guess that this is the motivation for implementing the 2-session proxy connection method in SQL Developer.
    Regards,
    Martin

  • Proxy https connection with client certificate credentials

    Hello, we are building a application like netvibes/iGoogle which allows users to have portlets with rss feeds in them. The portlets are all loaded using ajax and therefore, the RSS feeds must exist on the same domain as the portal. If they don't, you run into problems with cross-domain security issues with ajax. Usually to get around this you just proxy the connection on the server which is very simple with rss feeds that are exposed via http. We however have many feeds that are exposed via https. These feeds likely require a client certificate to authenticate them. Therefore, just doing a basic proxy (take the distant url and open a new connection on the server) won't work because it will build the new connection with the servers credentials and not the users.
    Is there a way to build the connection on the server using the users credentials?? How can we proxy this connection over https?
    If anyone has ideas, please let me know.
    Thanks!

    in fact you are more using a reverse-proxy than a proxy since it is on the server part..
    You have to put all the SSL server part on the reserve-proxy itself and not on the final RSS feed. Then, the reverse-proxy will authenticate your client and gets its certificate. After that, either this proxy will open a plain connection (no ssl) towards the RSS, or you can also open a ssl connection but this means you must create a client certificate for the proxy. It just depends on the security level you need, and I used this solution many times in professional hosting.
    hope it helps !

  • Proxy user authentication with BC4J

    On my webapp i have a connections pool and a MyApplicationModule.
    I can obtain a OracleConnection instace by overriding the method prepareSession()
    into the application module.
    I need to associate the OracleConnection with the ApplicationModule object to execute my queries with the application module and the proxy user.
    The application module is created by this code:
    appMod = (MyApplicationModule)Configuration.createRootApplicationModule("xx.xxx.MyApplicationModule", "MyApplicationModuleLocalTest1");
    The prepareSession ovverride is done by this code:
    protected void prepareSession(Session session) {
    Statement st = null;
    try {
    st = getDBTransaction().createPreparedStatement("rollback",0);
    OracleConnection oConn = (OracleConnection)st.getConnection();
    Properties props = new Properties();
    props.put("PROXY_USER_NAME", "USERTEST");
    oConn.openProxySession
    (OracleConnection.PROXYTYPE_USER_NAME,props);
    catch (SQLException s) {
    //ignore
    finally {
    if (st != null) {
    try {
    st.close();
    catch (SQLException s) { }
    super.prepareSession(session);
    Tanks and sorry for my poor english.

    I found the possibility that proxy authentication of both accounts can be enforced:
    SQL> alter user appuser grant connect through personaluser AUTHENTICATION REQUIRED;
    I guess that this is the motivation for implementing the 2-session proxy connection method in SQL Developer.
    Regards,
    Martin

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

Maybe you are looking for