Connecting with Unix user/password using JDBC

1) Is it possible to connect on a java program, with JDBC, using the Unix autentification ?
With the JDBC thin client I use :
DriverManager.getConnection("jdbc:oracle:thin:@<ip addresse>:<listener entry port>:<SID>","<user>","<password>");
2) What Java syntaxe may I use, not to give the <user>/<password> in my java program ?
I want to lauch my java program from a shell script (UNIX). The Unix's user is know in my Oracle database.
3) Is it a secure way ?
Thank's

For what it's worth, I have not yet found a way to do this, either. But since it's not critical for me, I have given up on it, for now. I have not found anything on OTN nor in the Oracle documentation that explains how to do this. Sorry :-(
Good Luck,
Avi.

Similar Messages

  • 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

  • How can i connect with HR User as it is not existing

    Hi this is Arslan
    I need your help in one problem and this problem i am facing from very start
    I have installed fresh copy of oracle 10g-2 and when I login with user HR it give following message
    Error: ORA-01017 : invalid user name / password; logon denied
    after this command i have executed other command
    alter user hr account unlock;
    then got error ORA- 01918 : USER 'HR' does not exist
    again i have executed one more command
    alter user hr identified by hr account unlock;
    but again receive error that user HR does not exist (error ORA- 01918 : USER 'HR' does not exist)
    then i have also check the hr in all_users list with command
    select * from all_user
    but did not find HR user in this list
    can you help me so that i can connect to the hr user, also tell me why this user is not creating with the oracle installation
    i have perform all above task with SYS @DBA
    Regards
    Arslan

    Arsal wrote:
    HI again
    i did the same and got success and now i am connecting with HR user.
    can you tell or any one else can tell how can i instal schema after the instalation of oracle/database.
    is there any option to install schema without being uninstall oracle
    Thanks and regards
    ArslanA schema is simply all of the objects (tables, etc.) that belong to a particular user. You definitely don't need to uninstall oracle. That would be like tearing out the entire telephone system just to add a phone at your house.
    Oracle provides some sample schemas. When you install Oracle, you have a choice of whether or not to create a starter database at installation, and whether or not to install one of the sample schemas. You can always create a new database after, and separately from, software installation. And you can always create one of the sample schemas after, and separately from, database creation.
    Of course, those are just sample schemas. In the real world, you'd create your own to meet your own business needs.
    More information on the sample schemas can be found at http://www.oracle.com/technology/obe/obe9051jdev/common/files/b10771.pdf
    Edited by: EdStevens on Feb 11, 2009 8:35 PM

  • Can't connect my new iPhone 4 with internet via Time Capsule. IP4 recognized TC but will not connect with it. (Password etc. is ok)

    Can't connect my new iPhone 4 with internet via Time Capsule. IP4 recognized TC but will not connect with it. (Password etc. is ok)

    Do the usual wireless things.
    Change the wireless name to simple name with only alphanumerics and no spaces.
    Set to manual and use channels 1, 6, 11 in turn.
    For testing take off the security altogether.
    The iphone only works on 2.4ghz so only that band is relevant.

  • Establish a connection with the user peerID?

    Hello ,
    Know that a user's peerID, how to establish a connection with the user and send a message
    With netGroup.sendToNearest (message, GroupAddress) do?
    Seems to not realize?

    You can simply publish to the RTFMP stream both are connected to. Ryan Stewart once came up with this: http://tv.adobe.com/watch/tech-talk-with-ryan-stewart/build-a-chat-application-with-adobe- stratus/
    But besides you could of course only use a netgroup and send messages to neighbors with notifies.

  • How to Connect Microsoft SQL 2000 database using JDBC

    Hi all..
    I want to connect Microsoft SQL 2000 database using JDBC. I want from initial steps also. (about JDBC driver & its installation)
    Thankz

    Just checkout the SQL Server JDBC Driver Documentation at the manfacturer's site: http://msdn2.microsoft.com/en-us/data/aa937724.aspx

  • Where is the best place to connect with Apple users who experience a disability?

    I would like to have discussions with Apple users who use the accessibility features..

    http://niederfamily.blogspot.com/2012/06/silencing-of-maya.html
    Proloquo2go is also popular. I'm sure the individual app developers would be happy to accept your feedback.
    There are braille typewriters and print-readers, there are mounts for ipads, there is voiceover, and assistive touch for those that have trouble swiping or using the home and sleep/wake buttons.
    --Sam
    P.S Apple can also be reached at www.apple.com/feedback

  • Can we decrypt the peoplesoft user password using peoplecode?

    Can we decrypt the peoplesoft user password using peoplecode?
    Thank you,
    Bye.

    If u r talking about the pwd in the psoprdefn then, the answer is NO...is ur talking about the pwds encrypted by PSCipher Utility then the answer is yes...snippet code below...But this works only for prior to tools version 8.48 since PS had DES encryption alone...
    /* Encrypt the password */
    Local JavaObject &pscipher = CreateJavaObject("com.peoplesoft.pt.integrationgateway.common.EncryptPassword");
    rem &pwd = "XXXX";
    &pwd = "<>";
    MessageBox(0, "", 0, 0, "Password before encryption " | &pwd);
    &encPassword = &pscipher.encryptPassword(&pwd);
    &yo = &pscipher.isPasswordEncrypted(&encPassword);
    &pscipher = Null;
    MessageBox(0, "", 0, 0, "Encrypted Password " | &encPassword | " " | &yo);
    Local JavaObject &psCYPHER = CreateJavaObject("psft.pt8.pshttp.PSCipher");
    &DecPwd = &psCYPHER.decodePassword(&encPassword);
    MessageBox(0, "", 0, 0, "&DecPwd " | &DecPwd);
    &psnode = Null;

  • O authorize the user with Unix Login/Password ?

    Hi all,
    I am developing an web tier application with login page on unix server and deploying on WebLogic 8.1.2.
    I need to authorize the user login/password with unix user_id and passwd. Is there a document that describe the procedure ?
    Thanks,
    Satyam

    Hi all,
    I am developing an web tier application with login page on unix server and deploying on WebLogic 8.1.2.
    I need to authorize the user login/password with unix user_id and passwd. Is there a document that describe the procedure ?
    Thanks,
    Satyam

  • Help: Connecting Tomcat to CA-IDMS Using JDBC Type 4 Drivers (JNDI)

    Hi there,
    I have a rather interesting / complex problem......creating a connection to CA-IDMS from Tomcat using JDBC type 4 drivers (CA provide the type 4 driver).
    We have a zSeries 9 IBM mainframe running CA-IDMS r16.1, and I need to connect to the IDMS from Tomcat (running on Linux) using the JDBC Type 4 drivers provided by CA.
    At this stage I am struggling with the actual setup and configuration of Tomcat’s server.xml and web.xml files. These are the files where the JDBC configuration is set (I think). I have to setup the CA-IDMS part of the configuration, but that is a different problem. Basically there is a TCP/IP listener on the IDMS, waiting for incoming connections from the JDBC type 4 driver.
    I set up a Tomcat to MySQL connection using MySQL Connector / J, which is a similar kind of process to what I am trying to achieve with IDMS. MySQL connector / J came with a jar file which is placed in Tomcat’s lib folder, and then the JDBC setup for the web application is created in Tomcat's server.xml and web.xml files. You can then connect to the MySQL database using JSP and the configured JDBC driver / connection. The CA-IDMS Server comes with an idmsjdbc.jar file, which I think is the JDBC typr 4 driver. I think it needs to be placed in the Tomcat /lib folder, but I don’t know how to set up the configuration.
    There is a JDBC DriverManager which allows JDBC drivers to connect to CA-IDMS. The DriverManager recognises the following syntax:
    jdbc:idms://hostname:port/database
    This allows the JDBC driver running within Tomcat to connect to the IDMS which is running on the IDM mainframe. CA IDMS r16 supports direct connections from the Type 4 JDBC driver to the Central Version on IDMS. "hostname" is the DNS name or IP address of the machine where the CV is running, and "port" is the IP port that was specified for the listener PTERM (setup on the IDMS side).
    There is a caidms.properties file for the JDBC driver, which is used to specify user ID, password, and optional accounting information. It can also be used to specify physical connection information, allowing an application to connect to a CA-IDMS database without requiring the definition of an ODBC style data source. However, I don’t know where to place this file within the Tomcat setup.
    There is also an IdmsDataSource class. I don’t know where to configure this or how to set it up; the CA-IDMS Server manual states the following:
    This class implements the JDBC DataSource interface. It is used with an application server (Tomcat) providing Java Naming and Directory Interface (JNDI) naming service to establish a connection to a CA IDMS database. IdmsDataSource properties conform to the Java Beans naming conventions and are implicitly defined by public “setter” and “getter” methods. For example, the “description” property, which is required for all DataSource implementations, is set using the setDescription(String) method. The application server may use the java.lang.reflection methods to discover DataSource properties and provide an interface to set them, or may simply require that they are defined in some configuration file. IdmsDataSource properties are used to specify the connection parameters. These properties are the equivalent of the DriverPropertyInfo attributes described in the previous section and can be used to completely define the parameters needed to connect to a database. Like a URL, an IdmsDataSource object can also reference an “ODBC” style data source name, where the connection parameters are defined in the configuration file on Linux.
    Is there anyone that can try to point me in the right direction to setting up the JDBC connection? I am totally new to Java and so the instructions are not making much sense at the moment. Any help, hints, tips…..anything will be greatly appreciated as I have just hit a brick wall here. I can't find much to do with setting up the CA-IDMS Server JDBC type 4 driver online either....if anyone can point me to some resources that would also be extremely useful.
    Kind regards
    Jp

    You say you've managed to get the JDBC driver working
    in an application but not in a JSP. You also say that
    the error you get is
    "com.microsoft.jdbc.sqlserver.SQLServerDriver".
    I'd be willing to bet that the exception that you have
    got is a ClassNotFoundException. I.E. your application
    server hasn't found the JDBC driver classes. The
    application server probably doesn't use your current
    CLASSPATH to look for classes. It will be setup within
    the application server in some way and you'll need to
    check your app server documentation to see how it is
    done.
    Try replacing
    e.printStackTrace();with
    e.printStackTrace(out);to get a full stack trace of your error.
    ColTried it. Got this error when I tried to run the JSP.
    Incompatible type for method. Can't convert javax.servlet.jsp.JspWriter to java.io.PrintWriter.
              e.printStackTrace(out);
    I'm currently using Apache Tomcat 4.0.3 as my JSP/Servlet Container.
    I'm also using Type 4 MS SQL Server 2000 JDBC driver version 2.0 on my NT4.0 Server.
    Do I need to set my JDBC driver in my container? if so, how do I do that?

  • Getting Pooled Connection with username and password

    hi,
    I am facing problems in getting pooled connections to MYSQL
    database.I am using Tomcat server.
    I tried the example given in Tomcat doc "JNDI how to", it
    works fine with one set of username and password which is
    given in server.xml. Now can anybody guide me thru the steps
    to get pooled connections to the same database with multiple
    username and passwords.
    Thankyou all in advance

    Now can anybody guide me thru the steps to get pooled
    connections to the same database with multiple
    username and passwords.Nope. Can't be done -- at least not that I've seen yet.
    Database/JDBC driver vendors seem unconcerned, or don't
    care about this scenario. I ragged on Informix years
    ago for this very feature. It should would make database
    admins jobs a lot easier if they could know "who" that
    connection belonged to that is running the outrageous
    SQL query without having to divine it by way of tracing
    socket/IP connections back thru the network to some machine.
    The only way I've seen to do it is to create your own
    connection pool code that handles user/password connections.
    -- but then the problem becomes you have a collection of
    mini-pools for each user. i.e. if you have 200 users, you
    end up with 200 connection pools with a couple/few connections
    in each sub-pool. Kinda defeats the purpse.
    So, apparently, everybody just deals with the single
    "generic" user/password connection pool.

  • Shared Disk - can't connect with Fast User Switching

    Hi,
    I've created a Disk on my Time Capsule, and shared it via "File Sharing", it's secured "with a disk password", and is working well ... sort of. I can connect to it with no issues, and so can my wife via her MacBook Pro. However, if I'm signed into my account, and she accesses her account using Fast User Switching, she can't connect to the shared volume. She has to Disconnect, and then reauthenticate, and after doing so, I can't connect to the shared volume. I must Disconnect, and reconnect. Why is this? Is there an authentication file that's set up some where on the root of the shared computer, that's preventing us from being able to signin to the shared volume? Or is something broken?
    Thanks!

    Complete uninstallation and reinstallation of network adapter drivers has been reported to resolve this error in some cases. Open
    Device Manager and select Show Hidden Devices from the
    View menu. Expand the Network Adapters category and delete all drivers under this category. After the devices are removed right click and select
    Scan for hardware changes.
    Brandon
    Windows Outreach Team- IT Pro
    Windows for IT Pros on TechNet

  • Not able to connect after changing the password using ALTER VALUES clause

    Hi,
    Just now John explained about VALUES clause in below thread.
    Expired Status
    I created a new account called SURI and tried to use the user account HR's password using VALUES clause. I was able to alter the password but not able to connect SURI with hr password.
    Please see the version details below. And the SQL statements which I have tried.
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Aug 13 18:44:50 2012
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Enter user-name: sys as sysdba
    Enter password:
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> SELECT password
      2  FROM dba_users
      3  WHERE username = 'HR';
    PASSWORD
    4C6D73C3E8B0F0DA
    SQL> ALTER USER SURI IDENTIFIED BY VALUES '4C6D73C3E8B0F0DA';
    User altered.
    SQL> SELECT password
      2  FROM dba_users
      3  WHERE username='SURI';
    PASSWORD
    4C6D73C3E8B0F0DA
    SQL> conn suri/hr     -- HR account's password is hr only
    ERROR:
    ORA-01017: invalid username/password; logon denied
    Warning: You are no longer connected to ORACLE.
    SQL>Thanks,
    Suri

    Suri wrote:
    Hi,
    Just now John explained about VALUES clause in below thread.
    Expired Status
    I created a new account called SURI and tried to use the user account HR's password using VALUES clause. I was able to alter the password but not able to connect SURI with hr password.
    Please see the version details below. And the SQL statements which I have tried.
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Aug 13 18:44:50 2012
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Enter user-name: sys as sysdba
    Enter password:
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> SELECT password
    2  FROM dba_users
    3  WHERE username = 'HR';
    PASSWORD
    4C6D73C3E8B0F0DA
    SQL> ALTER USER SURI IDENTIFIED BY VALUES '4C6D73C3E8B0F0DA';
    User altered.
    SQL> SELECT password
    2  FROM dba_users
    3  WHERE username='SURI';
    PASSWORD
    4C6D73C3E8B0F0DA
    SQL> conn suri/hr     -- HR account's password is hr only
    ERROR:
    ORA-01017: invalid username/password; logon denied
    Warning: You are no longer connected to ORACLE.
    SQL>Thanks,
    SuriYou can only do it for the same user, as the password is a hashed value that includes the username as part of the hashing (It's either the username or some internal object id or something). So using the hashed value against another user won't work.

  • Connect Notifications - Add user password into the email?

    When creating a training notification for a curriculum, do you have access to add the user password into the email? I know this is not a great idea for security purposes, but we have a few cases where we may need to do this. Fields are available to add using the brackets like {description}. So I was wondering if user password is available to use.

    setRequestProperty essentially modifies the http-headers sent to the server.
    You play with headers named Username and Password - these do not exist in the standard (see http://www.w3.org/Protocols/rfc2616/rfc2616.html).
    It is not too unlikely that the server you want to connect to uses the so-called "Basic" authentication scheme.
    In that case (see http://www.ietf.org/rfc/rfc2617.txt) you have to add a header looking like
    setRequestProperty("Authorization", "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==")
    where the cryptic character sequence is just the base64 encoding of username:passowrd (in fact here it is "Aladdin:open sesame").
    hope this helps
    hagman
    P.S.: I think this page shows some code that looks like what you are up to:
    http://home.tiscali.nl/~bmc88/java/sbook/045.html
    Edited by: hagman on Oct 9, 2008 8:26 AM

  • Connection to db fails from client if connecting with sqlplus user/ps@NAME

    Hi
    I have just installed Oracle client 11.2 on a linux server.
    When I connect with sqlplus apmr/******@apm
    I am getting:
    SQL*Plus: Release 11.2.0.2.0 Production on Thu Mar 29 11:11:17 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    BUT, if I am connecting with /nolog and then insert user/password --> it success!!!
    Could anyone solve this mystery ? :-)
    sqlplus /nolog
    SQL*Plus: Release 11.2.0.2.0 Production on Thu Mar 29 11:12:20 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    SQL> conn apmr_larisa@apm
    Enter password:
    Connected.
    Thanks
    Larisa

    884714 wrote:
    Thanks a lot for the response. I am getting the following error :
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection.Before asking you to get the help from your DBA, i would suggest to check couple of things like:
    1) Write a standalone program and check whether everytime you are getting connection. If answer is yes.
    2) Check whether in your web application do jdbc jar's are there (in lib folder) . If answer is yes. Check the version of jars. because the application first checks the dependant jars in application lib folder, if not found then it checks at classpath.
    So this might casuse a problem.
    If no luck after doing above steps, then i would suggest to ask the DBA, does DB goes down frequently? and show him that error. Because the error is pure say's SID is not up and running.

Maybe you are looking for

  • Client.ole2 is not working

    Hi i'm migrating to from fomrs 4.5 to 10g as DDE package are not supported in the 10g. i'm using client.ole2 I have written following code to open a stored excel sheet(which is a template for entering the data). this is not working not giving any err

  • Most efficient way to use thumbnails of multiple sizes

    When a user submits an image on my website, the upload script currently creates thumbnails in three different sizes (120px, 90px, and 20px). Different thumbnail sizes are used in different areas of the site. Is there a more storage-efficient way to d

  • Why does my iPhone duplicates my Outlook Calendar entries?

    My iPhone makes a mess of my Outollok calendar.  It often duplicates appointments in Outlook and, perpetually, has double entries on itself.  How do I remedy this and prevent it?

  • Is there any file manager like scrapbook (firefox extension)

    Is there any file manager like scrapbook ( firefox extension ) I love the extension. Especially the "tree view" style. I'd like to use it to manage all my files and photos. Is there anything like that? I've tried xfe. But I cannot select the root fol

  • What is this light at the front-righ of my Macbook pro?

    I've had my macbook for 1.5 years and I never saw it go on. What is it?