Using Proxy User Authentication in Sql Developer

Hi!
Is it possible to use proxy user authentication in SQL Developer? I'm thinking that if I'm clever enough, I can craft a custom jdbc URL that will allow my users to proxy authenticate into my Oracle 10gR2 database while using SQL Developer.
Unfortunately, I'm not feeling all that clever. ;)
Can anybody help me out here? Is it even in the realm of possibility?
Thanks!
Kevin Ferlazzo
DBA
VA Department of Juvenile Justice

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

Similar Messages

  • 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

  • Connect using OS authentication in SQL Developer

    Hi,
    We are using OS authentication to connect on Oracle, if I use SQL*PLUS I use only sqlplus /@instance but someone knows how can I connect on Oracle using OS authentication ? I tried to use / or blank username in SQL Developer and it requests an user and password...
    Thanks in advance,

    Thanks for your answer Raghu, when this feature will be implemented it will help a lot to keep security.
    Regards,
    Joao

  • 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

  • Please tell me your idea about my manner of using proxy user

    Hello
    Please say to me your idea about my manner of using proxy user , I don't know that my method is right , doesn't it has security weakness ?
    Let me to say what I wanna do :
    I want my application users authenticated by database , therefore in my database (Oracle database) I create a user for every application user for example if I have 10 application user I create 10 user in the database for them and I grant necessary privileges to them
    Now I create a proxy user and grant to my users connect through the proxy user
    for example
    alter user user1 grant connect through user_proxy with role role1 authentication required;
    alter user user2 grant connect through user_proxy with role role1 authentication required;
    alter user user10 grant connect through user_proxy with role role1 authentication required;
    And now in Weblogic I create a DataSource that connect to the database by that proxy user
    My client Application (It's a stand alone application) obtain the DataSource from Weblogic and then get from operator its user name and password and then create a proxy session
    in below I've written the application's code
    Hashtable env = new Hashtable();
    env.put( Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory" );
    env.put(Context.PROVIDER_URL, "t3://127.0.0.1:7001");
    try{
    Context context=new InitialContext( env );
    ds=(javax.sql.DataSource) context.lookup ("OracleConnection2");
    conn=(OracleConnection) ds.getConnection();
    java.util.Properties prop = new java.util.Properties();
    String username=getUserNameFromOperator();  //Operator enter user1
    String password =getPasswordFromOperator(); //Operator enter its password
    prop.put(OracleConnection.PROXY_USER_NAME, username);
    prop.put(OracleConnection.PROXY_USER_PASSWORD,password);
    conn.openProxySession(OracleConnection.PROXYTYPE_USER_NAME, prop);
    stmt= conn.createStatement();
    rs=stmt.executeQuery("select SYS_CONTEXT('USERENV','PROXY_USER') ||'--->' || user from dual");
    My anxiety is that this section
    String username=getUserNameFromOperator();  //Operator enter user1
    String password =getPasswordFromOperator(); //Operator enter its password
    prop.put(OracleConnection.PROXY_USER_NAME, username);
    prop.put(OracleConnection.PROXY_USER_PASSWORD,password);
    operator enter a real database username and password
    don't you think it cause security weakness ?
    do you have better suggestion for me ?
    thank you

    Gmail offers POP, which means you can use Mail.app like a regular ISP account. If you need an invite to GMail email me at the address on http://Gnarlodious.com/
    Once yiou have a Gmail address you need to enable POP (which includes SMTP). There is a help link on the GMail page that allows you to enable POP and other features.
    Once that is turned on, you need to set up the Mail.app for downloading your mail (and uploading). There are excellent instruction pages on Gmail, which I believe someone else gave you.

  • Using DEBUG Mode in Oracle SQL Developer Data Modeler to Log SQL

    Hello,
    I am looking for the possibilty to enable the logging of SQL in Data Modeler.
    Jeff Smith wrote an article how to do this for SQL Developer, for Data Modeler there are other configuration files. Does anyone have an idea?
    Best regards,
    Joop

    Hello Philip,
    the URL to the article of Jeff is: http://www.thatjeffsmith.com/archive/2012/10/using-debug-mode-in-oracle-sql-developer-to-log-sql/
    in the install directory of Data Modeler 3.3.0.734 exists a file datamodeler\datamodeler\bin\datamodeler.conf. This analogue the situation for sql Developer.
    However in this file there is no reference to a (non)debug file.
    In ide/bin directory there is a ide-logging-debug.conf and ide-logging.conf file. But they are not referenced. Should one of them be included?
    Joop

  • EUS password authentication in sql developer failing with username/password

    We have recently changed to use Enterprise User Security (EUS) for our client authentication (password global authentication).
    This is working fine but we are encountering an issue with SQL Developer whereby we can't logon using our EUS details, it simply returns the following on the logon screen:
    Status : Failure - Test failed: ORA-01017: invalid username/password; logon denied
    Logging on via sql plus client and server software and other 3rd party tools like pl/sql developer works correctly.
    It appears to be an issue with sql developer itself.
    We are using the latest Production release of sql developer 2.1
    Does anyone have any ideas?
    This is an issue for
    Edited by: david butler on Jan 14, 2010 10:45 AM

    Further to this, I have now found a suitable resolution to this that doesn't require an external client.
    There is a jdbc setting that will allow you to use EUS password authentication.
    Add the jdbc line option (below) in the sqldeveloper.conf file (backup the sqldeveloper.conf file first).
    AddVMOption -Doracle.jdbc.thinLogonCapability=o3
    The sqldeveloper.conf file can be found wherever you have installed sqldeveloper, under <INSTALL_HOME>\sqldeveloper\bin\sqldeveloper.conf.
    After you add this option, restart SQL Developer and you should be able to use your EUS username / password to authenticate via SQL Developer.

  • Two user profiles in SQL Developer

    Hello,
    is it possible to start 2 instances of SQL Developer on Windows with 2 different user profiles at the same time? I like to have one instance with a set of connections and one instance with another set of connections. Maybe it is also possible to color the connections with a different color (like TOAD) at this possibility I don't need 2 different profiles. I need for better overview which project I'm working on. Ok, I can name my connection with prefixes for example, but when many SQL windows are opened, the differences are not so clear.
    I'm also happy for different solutions.
    Best regards
    Carsten

    Mmm, yes, but you could mix up a batch file for using one file or the other.
    And this is really just a Java parameter, so you should be able to just pass it as command line parameter to the executable, like:
    sqldeveloper -J-Dide.user.dir="%SQLDEVELOPER_USER_DIR%"Hope that helps,
    K.
    Edited by: -K- on 07/11/2011 14:27

  • Error 18452 "Login failed. The login is from an untrusted domain and cannot be used with Windows authentication" on SQL Server 2008 R2 Enterprise Edition 64-bit SP2 clustered instance

    Hi there,
    I have a Windows 2008 R2 Enterprise x64 SP2 cluster which has 2 SQL Server 2008 R2 Enterprise Edition x64 SP2
    instances.
    A domain account "Domain\Login" is administrator on both physcial nodes and "sysadmin" on both SQL Server instances.
    Currently both instances are running on same node.
    While logging on to SQL Server instance 2 thru "Domain\Login" using "IP2,port2", I get error 18452 "Login failed. The login is from an untrusted domain and cannot be used with Windows authentication". This happened in the past
    as well but issue resolved post insatllation of SQL Server 2008R2 SP2. This has re-occurred now. But it connects using 'SQLVirtual2\Instance2' without issue.
    Same login with same rights is able to access Instance 1 on both 'SQLVirtual1\Instance1' and "IP1,port1" without any issue.
    Please help resolve the issue.
    Thanks,
    AY

    Hello,
    I Confirm that I encountred the same problem when the first domain controller was dow !!
    During a restarting of the first domain controller, i tried to failover my SQL Server instance to a second node, after that I will be able to authenticate SQL Server Login but Windows Login returns Error 18452 !
    When the firts DC restart finishied restarting every thing was Ok !
    The Question here : Why the cluster instance does'nt used the second DC ???
    Best Regards     
    J.K

  • Using bind variables in Oracle SQL developer

    Hi all,
    i am using Oracle SQL developer. i want to use the bind variable in my sql.
    variable myid number :=1;
    select * from mds_3618_request where id = :myid;
    but i am getting the below error.
    Error starting at line 2 in command:
    select * from mds_3618_request where id = :myid
    Error report:
    SQL Error: Missing IN or OUT parameter at index:: 1
    Does Oracle SQL developer support bind variables in the SQL statements?
    thanks in Advance
    Vali Shaik

    You are probable going to get a quicker answer on this forum : SQL Developer
    -- Andy

  • Prompt For User Input in SQL Developer

    I am using the '&' in a very basic SQL select script, but I do not get a prompt for my input. However, i have used the '&' in update scripts and it does prompt me.
    For example:
    select DCC_DESCRIPTION
    from S_TBLDTMINOR
    where DCC_DTMINOR = &Minor;
    Gives an ORA-01008 error (not all variables bound).
    If it's a varchar field and I use '&Minor' - it executes with no error, but does not prompt for data. Please note:  this script works when it's run in SQL*Plus, but not in SQL Developer.
    If I execute:
    update S_TBLDTMINOR
    set DCC_DESCRIPTION = 'Mark & Wilson'
    where DCC_DTMINOR = 'AAA';
    It does prompt me for a value (but I do not want it to).
    So I know prompting works in SQL Developer, but it does not work in select statements.
    Is this a configuration setting I can change in SQL Developer? I know I can use the escape in the update statement to avoid the prompt, but I'm not concerned with that. I'm trying to get the prompting to work in the select statement.
    Edited by: user12289057 on Feb 23, 2012 11:17 AM

    Hi user12289057,
    1/Not sure what your testcase is (including table definition), I was trying to reproduce with:
    select * from dual where dummy = '&myin'
    2/Try
    undefine Minor
    to ensure Minor is not already set.
    3/Minor may need to be quoted if it is a string.
    Short blog post on substitution and bind variables.
    http://totierne.blogspot.com/2010/04/substitution-and-bind-variables.html
    -Turloch
    SQLDeveloper team.

  • Declare, Set, and Use a variable in a SQL Developer Query

    I come from the SQL Server world and am trying to do something very simple: Declare, set, and use a variable in a query. For example:
    Declare @lastPeriod date;
    Set @lastPeriod = (select max(payperiod) from table 1 where payperiod < current_date);
    Select field 1,
    Field2
    From table2
    Where payperiod = @lastPeriod
    The variable is going to be used in more areas in the query which is why I am simply not using a Sub-query in the where clause. I appreciate any assistance.

    This forum is for issues with the SQL Developer tool. You'd get more response in the SQL And PL/SQL forum.
    That said, read up on bind variables and substitution variables.
    Whenever you can you should use Bind variables (e.g. *:lastPeriod* ), as they increase performance. In sqldev, there's no need to declare as you will be prompted to enter them on execution (F9), but you do if you execute as script (F5) (e.g. VARIABLE lastPeriod VARCHAR2(30);).
    Alternatively, Substitution variables (e.g. *&lastPeriod* ) will literally be substituted in your statement before the database parses it. In sqldev, there's no need to declare as you will be prompted to enter them on execution (either F9 or F5), but you can (DEF lastPeriod='TEST'; ).
    Have fun,
    K.

  • I want to use subversion control tool with SQL Developer

    Dear Gurus,
    I have SQL Developer 2.1 on widows machine.
    I have not used any subversion control tool for maintaining versions. But in my Office, we have TortoiseSVN 1.6.7
    Could any anybody help me to understand subversion concept so as to use TortoiseSVN 1.6.7 with SQL developer.
    And My regular task includes Developing SPs, functions, Packages tables etc.
    How can I use subversion tool in my day to day routine.
    Could anybody provide me links or tutorials so as to use subversion tool with SQL developer.
    Regards
    Sanjeev

    http://st-curriculum.oracle.com/tutorial/SQLDeveloper/index.htm
    Click on "Show Me and Try It"

  • Function Module used for user Authentication in B2B webshop

    Hi Gurus,
    Can someone please help me in finding a Function module which is getting called for the user authentication in B2B webshop and where can i find this class file which is getting called in the NWDS?
    Thanks
    Saurabh

    Depending upon if you are coming from Portal (SSO) or B2B logon screen, one of the following function modules is called to authenticate authorize the B2B application usage.
    CRM_ISA_IUSER_LOGIN
    CRM_ISA_LOGIN_CHECKS
    Easwar Ram
    http://www.parxlns.com

  • Using Data Modeler in Oracle SQL Developer

    Hi,
    Can anyone help me to learn the DataModeler in Oracle SQL Developer?

    You should post your question in the SQL Developer Data Modeler forum. This is the Oracle Forms forum.
    Craig...

Maybe you are looking for

  • How to load properties file

    Hello Everyone, We are experiencing difficulties when trying to load a properties file from a directory other then the one where the servlet is located. We are using the following code for this purpose: private final String PROP_FILE_NAME = "my.prope

  • Mark css code in a .php file

    I changed my css file extension to php (so that I could change css properties based on user preferences through php) Now, DW doesn't mark/highlight my css code. How can I explicitly tell DW to mark css code in a .php file? Failing that, is it possibl

  • I want know...

    Hi, everbody. I want to know, how works (principle):when you protect a PDF file against edit, copy, print etc. I need to know a technical principle of it....can you help me?

  • HT1941 My MacBook Air was stolen.

    How do I find the serial number online? I connected it to Google Docs and iCloud all the time. Also, is there a way to activate Find My Mac? I'm in a panic here. Thanks.......

  • Video chat between iChat Mac user and AIM pc user?

    Me and my friend are attempting to video chat with each other via iChat for him and AIM for me. He is using iChat version 4.0.2 and I am using AIM version 6.8.10.1. When we send an video chat invitation it says that it timed out, could not connect. I