Connecting with java2 1.4 & user identified externally

Hi,
I try to connect to the Oracle DB 8.1.7. in my java-program (url : <
jdbc:oracle:oci8:@ >) with a user that is identified externally (OS-unix
SUN) . The version of java2 is 1.4
My java-connection work correctly with the Oracle jdbc-driver
"classes12.zip" in my CLASSPATH.
But is NOT work with the last jdbc driver of Oracle "ojdbc14.jar" in my
CLASSPATH. I assume that I have to install also the OCI shared
libraries. But which version of the OCI libraries : 9.2.0.1 or 9.0.1 or
8.1.7 ? Can I use the OCI libraries 9.* for a connection to Oracle
Database 8.1.7?
Other question: is it possible to connect with a user identified
externally with the thin driver?
Kind regards,
Kristoffel DE GEEST

Ralph_CC wrote:
If I want to connect to a user of this sort, can anyone tell me what I put in the
setPassword( passwd ); method for OracleDataSource getConnection please.
I cannot see any clue in the java API doc. (Using 11g & Java 1.6.30)You connect as a user,
you provide the password for the user using setPassword(),
as in this example;
http://www.rgagnon.com/javadetails/java-0545.html
which connects as user 'scott' using password 'tiger'.

Similar Messages

  • SSO and Form 10g, Setting RAD of OID for DB users identified externally

    Please Help!
    Current environment:
    - All users were created with identified externally in Database (OPS$)
    - SSO was setup correctly according to OID admin guide Ch 43 and SSO admin guide ch 8 for App10g. (user login orasso without seeing basic auth/sso login form)
    - DB parameters:
    remote_os_authent=TRUE
    os_authent_prefix=' '
    issues:
    - set ssoDynamicResourceCreate = true
    When user hit the form link, i.e. http://host:port/forms90/f90servlet?config=test&form=appwelcome
    it redirects to http://host:7777/oiddas/ui/oracle/ldap/das/mypage/AppCreateResourceInfo?...
    where it shows Resource Name TEST and prompts username/password/database
    when user inputs window logon /password/database value (same as in form6i)
    it returns ORA-01017: invalid username/password; logon denied.
    - set ssoDynamicResourceCreate = false
    manually set RAD for the end user (I am not sure if I am doing this correctly):
    Name = test
    TYPE = oracledb
    username = (blank)
    password = (blank)
    datebase = prod
    When enduser hits the form link, it returns ORA-01017.... same errors.
    Any ideas how to trouble shoot and configure RAD for users with OPS$ auth?
    thank you in advance!
    Kan

    Thank you for your input!
    This is how our current production is setup that users use os authent (OPS$) to access forms/reports 6i. I'm just trying to migrate it to app10g environment.
    I did configure SSO with WNA, it works fine. Any users can access NON-DB connected forms/reports. Only when forms/reports require DB conn, users who
    have db password can access them with one click. But users identified externally will keep seeing Oracle Logon and Ora-01017 after authent into MidTier.
    Setup RAI with one real db user account is not ideal since there are 1000+ OS authent users who have different database roles. Turn off the OPS$ and setup dummy password for 1000+ users may be the last solution.
    v/r
    Kan

  • DATABASE_LINK with CURRENT_USER for user identified externally

    Hi,
    My database is in standard edition 10.2.0.5 on windows.
    I have a user OPS$xxx identified externally.
    the connection with this user "sqlplus /@service_name" is ok.
    A database link has been created with these options :
    select * from dba_db_links;
    OWNER DB_LINK USERNAME HOST CREATED
    OPS$xxx TEST_DB CURRENT_USER SERVICE_NAME 19/10/11
    This database link references the same database
    ( it is an external application which has created it).
    if we test with sqlplus, we have :
    sqlplus /@service_nameSQL*Plus: Release 10.2.0.5.0 Production on Fri. Oct. 21 09:58:40 201
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Connected to :
    SQLPLUS> select count(*) from user_tables@TEST_DB;
    ORA-1017: invalid username/password; logon denied
    So is it possible to use this type of database link ? And if it is, how can you do that ?
    Or only "user identified globally " can use database links with current_user...
    Thank you in advance for your help.
    Best regards
    Marie

    A connected user link should work per the reference:
    The ability to use a connected user database link depends on several factors, chief among them whether the
    user is authenticated by the database using a password, or externally authenticated by the operating system or
    a network authentication  service. If the user is externally  authenticated, then the ability to use a connected user link
    also depends on whether the remote database accepts remote authentication of users, which is set by the
    REMOTE_OS_AUTHENT initialization parameter.HTH -- Mark D Powell --
    insert line breaks to try to limit width
    Edited by: Mark D Powell on Oct 21, 2011 9:17 AM
    Edited by: Mark D Powell on Oct 21, 2011 9:18 AM

  • User identified externally

    I downloaded and installed Oracle Ex on Windows XP Professional SP 2 taking all of the defaults and all when swimmingly. Then I used sqlplus to create an externally identified user. The user was created. However if I enter "sqlplus /" to connect as the user I get
    ORA-01017: invalid username/password; logon denied
    This same procedure works under Linux. How do I get it to work under Windows?
    Thanks,
    john

    Creating External users in Oracle
    For example, consider the following user definition:
    CREATE USER OPS$SCOTT IDENTIFIED BY TIGER;
    Assuming that Scott has logged onto the operating system, Scott could enter SQL*Plus with or without a password:
    sqlplus /
    sqlplus scott/tiger
    You can also create the user with the "identified externally" clause:
    CREATE USER OPS$SCOTT IDENTIFIED EXTERNALLY;
    Create Oracle External users in Windows
    External users are easy to create in Linux because you need only create the user in /etc/passwd. It's a bit trickier in Windows:
    1. Create the Windows user:
    start --> settings --> control panel --> administrative tools --> computer management --> user
    2. Add the new user to the Oracle group:
    start --> settings --> control panel --> administrative tools --> computer management --> groups
    3. Add user to OS Database Administrator:
    start --> programs --> oracle home --> configuration and migration tools --> administration for windows NT --> OS database administrator
    4. Add user to OS Database Operators:
    start --> programs --> oracle home --> configuration and migration tools --> administration for windows NT --> OS database operators
    5. Add user to OS Administrator:
    start --> programs --> oracle home --> configuration and migration tools --> administration for windows NT --> OS administrator
    6. Add user to OS Operators:
    start --> programs --> oracle home --> configuration and migration tools --> administration for windows NT --> OS operators
    7. Add os_authent_prefix=OPS$ to your initialization parameters (pfile or spfile) and bounce Oracle database, if necessary.
    Ref: http://www.dba-oracle.com/t_windows_external_user_authentication.htm

  • Not able to connect database from another os user using externally?

    Hi,
    I want to connect database from another os user. i am able to connect database from oracle externally. but not able to connect different OS user.
    As ORACLE User:
    [oracle@test1 admin]$ sqlplus /
    SQL*Plus: Release 11.2.0.2.0 Production on Mon Jan 16 19:41:57 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>
    Non ORACLE user:
    [sample@test1 ~]$ export ORACLE_HOME=/u01/app/oracle/product/11.2.0.2/
    [sample@test1 ~]$ export ORACLE_SID=rman
    [sample@test1 ~]$ export PATH=$ORACLE_HOME/bin:$PATH
    [sample@test1 ~]$ sqlplus /
    SQL*Plus: Release 11.2.0.2.0 Production on Mon Jan 16 19:37:42 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    Process ID: 0
    Session ID: 0 Serial number: 0
    Enter user-name:
    Thanks

    You didn't install Oracle correctly, especially you didn't run the root.sh and rootpre.sh scripts.
    If you would have read the error message at all, and researched it, you would have known this.
    Regrettably however you decided to ignore Forums Etiquette and to abuse this forum with Yet Another Doc Question.
    Sybrand Bakker
    Senior Oracle DBA

  • Cannot edit views when logged with user identified externally (OPS$...)

    Hi,
    In our organization we have enabled the OS authentication and even having the DBA role is not possible edit views using SQL Developer.
    Anybody knows if is there any workarround to enable this feature ?
    Thanks in advance.
    Edited by: user12099033 on Jul 15, 2010 9:44 PM
    Edited by: user12099033 on Jul 15, 2010 9:45 PM

    Thanks for getting back to me so quick!
    You were correct to assume that I was referring to a View. All of our users have been added to a standard user role that providers that basic functionalities that they need. This particular user's access is exactly the same as the other users in his department,
    yet he is the only one who has experienced this problem. All of the user roles that we have added this user to contain at least 10 other users who have not reported any issue like this.
    I am wodering how this problem could only apply to this one user even after changing devices. I should also mention that with each of the devices that this user has worked on, there was a period of time when he was able to work in SCSM without
    any issues. What could have changed that caused this error to arrise on two separate occasions for just one user? 
    The biggest issue is the fact that he is unable to edit activities. Am I correct to assume that these two issues are connected?
    I hope this message helps to clarify the problem we are experiencing.
    Thanks,
    Nick

  • How can I backup my mac on a Time Capsule (connected with ethernet), without any user logged on the mac?

    Time Machine by default does not run when no user is logged in, there's some way to let backups run without any user logged on the mac?
    I need to backup 3 iMac connected through ethernet network to a Time Capsule.
    Some hint?

    If you use eithernet for your main connection then just plug the TC bridged into the network.
    If you use wireless for your internet connection then you can use the TC isolated from the network by ethernet.. but this is really only convenient on a desktop Mac.
    The instructions I put in this thread with screenshots.. see near the bottom.
    https://discussions.apple.com/thread/4817218?tstart=30
    It is a bit tricky so if you have questions ask back here.
    Just to say a USB for firewire external drive is faster and more reliable than a TC.. cheaper to buy as well.. although since you already have the TC that is not a concern.. but you can ebay the TC and buy a bigger and better external drive with the proceeds.

  • Connect as user identified globally/externally?

    Greetings! :)
    I have an old app where fat SWING client app connects to the DB with Oracle DB user/pass. I would like to change this. I believe "user identified globally/externally" is the right choice. Is there any (Java) example of login as global/external user? I have read that for global/external users tokens are acquired, but I don't know how to acquire tokens?
    Example: I have Java fat client which shows a dialog asking user for its user/pass. Then I send this user/pass to another Java web app, which check user/pass and asks DB (how?) for token. Then I send this token from my web app to the fat Java client app and it connects (how?) with DB.
    So:
    1. How to get token for external/global user?
    2. Where to put token in DB connection string when connecting with DB (instead of password?)?
    I have already asked this question in Oralce DB security and Java security forums without any results.
    P.S. Is there any other way for app to connect to DB without giving password? I would'n like to use Kerberos or LDAP or some tools. I would like to make my own solution with JDBC.
    Thank you in advance :)

    >
    Is there any other way for app to connect to DB without giving password?
    >
    Maybe this doc has the info you are looking for.
    See chapter 3 Configuring Authentication in the Database Security doc
    http://oracle.su/docs/11g/network.112/e10574/authentication.htm#i1006269
    Configuring Global User Authentication and Authorization and Configuring an External Service to Authenticate Users and Passwords
    have the information.
    You can also see the 'Proxy from Users Identified Externally' and 'Establish a Proxy Session' references in this link
    http://books.google.com/books?id=BaRbj93G1XMC&pg=PA159&lpg=PA159&dq=oracle+java+identified+globally/externally+proxy&source=bl&ots=m75SfHNGe-&sig=LRhANCaoxVJ2Ovd8G8at3rp4wqI&hl=en&sa=X&ei=6y9zT6nCEaiYiAKN15yuCw&sqi=2&ved=0CDUQ6AEwAw#v=onepage&q=oracle%20java%20identified%20globally%2Fexternally%20proxy&f=false
    And this AskTom link has an approach - see Followup September 24, 2004 - 9am Central time zone:
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:21575905259251

  • ISight - connects with windows users no problem?

    I'd like to buy this webcam, but I heard it has problems connecting with windows users. Will I be able to talk to people on it through AIM? Thats what I'd like, if not, I probably wont get it. Anyone have any personal experience or have any answers or helpful tips - I'd appreciate anything - thanks.

    It is not the iSight itself that gives you the impression that connecting with Micros~1 Windows users causes problems ... it is the availability of (cross platform) applications that makes connecting a bit more cumbersome.
    I have PowerMac G5 with iSight and I connect with my Micros~1 Windows platform family equiped with and without USB webcam.
    The challenge will be to find messaging / VoiP applications with bearable audio quality and reasonable video performance.
    I started with Skype for Voice and Yahoo! messenger for bad video ( 1-2 fps and video size 320 x 240).
    Skype has a video plugin (only for Windows)
    Yahoo! Messenger does not have voice yet (2.5.3)
    MSN is badmouthing because of the "M"
    I have used iChat with another Apple believer ... and the quality of Voice and Video is unparralled.
    The best two alternatives I found are:
    a) AIM 5.9
    b) Trillian (www.trillian.cc)
    Both use a free AIM screen name.
    AIM works fine, see also EZJim pages.
    TrillianPro 3.1 reuses AIM screen names ... and ... it has both good audio and zoom-to-full-screen-video size with fps rates filling your bandwidth.
    The only negative on Trillian so far, the "handshake" for connecting two people takes some time.
    TrillianBase is free but has no Video capabilities. The Pro version is 25$.
    Regards Coen
    ps. if you want to test your setup use my AIM screenname: coenjeukens

  • 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

  • Does anyone know how to connect with an external modem and AOL service?

    i just got the macbook yesterday and the modem came today, and i cannot figure out how to connect with an AOL account using the external modem. does anyone know how, or have the same problem??
    Macbook 1.83Ghz White   Mac OS X (10.4.7)  

    Hi MacMan2006! And Welcome To Discussions!
    Do you have the AOL software installed?
    When you open System Preferences > Network > Location: Automatic & at Show: is there an option to select External Modem?
    If so, is your Modem Model listed?
    ali b

  • Connecting with RADIUS using SQLDeveloper

    Hi,
    It's possible to connect to databases using RADIUS authentication (user identified externally) with SQLDeveloper without Oracle Net Client installed ??
    Thanks,
    Àngel

    Try add this (external authentication) in the
    Feature Requests

  • Schema owner identified externally

    I have an oracle 11g, apex 3, OHS implement. The schema assigned to my workspace has owner, identified externally. I can find no workspace/schema relation administering Oracle-XE. Looks like the database username that logs in to the Administration Home is the schema to be parsed. My trouble is that I cannot login to the Administration Home with the user identified externally.
    Please advise.

    I've upgraded the version of Apex that was installed with Oracle-XE. I matched Apex version with that of the Oracle 11g environment; that is, version 3.1.2. So, now I can create developers and workspaces that reference schemas of the developers' choosing, than the one developer (database user) owning the schema it references.

  • How to access OS User created with "identified externally"

    I am able to
    SQL> create user ops$deskuser identified externally;
    while deskuser is one of my OS user.
    I believe it is a very easy question, however I just do not know how to access this user from sqlplus., please help
    Thanks in advance

    oracle@mini:~> sqlplus system
    SQL*Plus: Release 10.1.0.3.0 - Production on Sun Nov 13 21:11:47 2005
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> create user ops$pops identified externally;
    User created.
    SQL> grant connect to pops;
    Grant succeeded.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    oracle@mini:~> su - pops
    \Password:
    Illinois isn't exactly the land that God forgot -- it's more like the
    land He's trying to ignore.
    pops@mini:~> . oraenv
    ORACLE_SID = [pops] ? orcl
    pops@mini:~> sqlplus /
    SQL*Plus: Release 10.1.0.3.0 - Production on Sun Nov 13 21:16:59 2005
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL>

  • Labview program to find the external hardwares connected with the PC

    Hai All,
    Do any one know how to find the external hardware details connected with our PC (like USB memory stick),  using labview program.

    That's assuming the user is running Windows.
    If you are under Windows you can access this information from the Registry. For example, for USB you can look at the key
    HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USB.
    Message Edited by smercurio_fc on 04-30-2008 10:39 AM

Maybe you are looking for