Java: Change your password using the BEAK

Hello

I try to change an expired password for Java. That is not possible with thin client, but should work with "Thick", i.e. of BEAK. So far, I have this:

1. the properties props = new Properties ();
2 props.put("user", "my username");
3 props.put("password", "my old password");
4 props.put("OCINewPassword", "my new password");
5 string ociUrl = "jdbc:oracle:oci: @...» » ;
6 connection = DriverManager.getConnection (ociUrl, accessories);

But I'm getting a "java.sql.SQLException: ORA-01017: name of user and password invalid; connection refused '.

The client operating system is Windows 7. Oracle instant client (11.2) is installed and on the path. The database is Oracle 11.2.

And "my old password" is correct. If I comment on line 4, connection works. If I use: thin: driver, connection works too, but the "OCINewPassword" property is then ignored.

Any help or advice is appreciated.

Thank you.

Stefan

P.S. I posted the question first in the "interface call" forum, but I think this one is best.

Well, I finally managed. Phew!

It is not only a rigid between a single data version jar pilot one-to-one relationship and one version of the client libraries OIC (Joe Weinstein) but apparently also between the thin client and the database version. Our database is 11.2.0.2 and I was using instant client 11.2.0.3. Instant switching customer 11.2.0.2 and - guess what? This works.

Thanks for the tips!

Tags: Oracle

Similar Questions

  • Change your password within the next 40 minutes?

    on my iPhone 5 that I had a message pop up 4 times telling me that I need to change my password in the next 40 minutes. I rejected this message each time because I'm a little worried about it. I was wondering if anyone else had experienced this and if it was a real message of Apple or if it was something else?

    It is not Apple, your access code you enter to unlock your phone is used only locally. If you have a work email account on your iPhone, it could be them.

  • How to stop someone from changing my password with the hack of sethc.exe?

    Today, I just read that ANYONE with an ERD can start my computer and reset my password. If they copy the command prompt in the sethc.exe file, they can reset your password using the StickyKeys. I read it here: http://www.pcworld.com/article/249181/how_to_reset_your_windows_password.html

    I tried it and it worked. Now, I am very concerned that someone will be able to make my computer. How can I stop people hacking my computer by doing this?

    Thank you very much

    -JP

    Hi JP,

    Please contact technical support for your computer manufacturer - you'll need be specific enough on the details and specifications to get the right answer (it varies not only by the manufacturer, make and model, but by the internal components and BIOS versions)- and ask for the procedure (if necessary - and it is usually) to set up a BIOS password.

    This can then be assigned to be required before you can start by any other method.

    And Yes, there is probably another way to get around that - but it would be much more difficult and almost certainly need to open the computer on a variety of procedures for workarounds.

    It is usually sufficient protection for most people who want an extra layer.

    Good luck.

    Kosh

  • Received a message "You must change your password within 60 minutes" what's the problem?

    10 minutes ago, I got a message "You must change your password in 60 minutes", what is the problem?

    Please help me!

    Usually the sign of a business or business profile added to your device. They have their own rules concerning the access codes and security.

  • Change the message "remember to change your password"?

    Hello everyone

    Someone knows how can I change the message "'consider changing your password ' on windows 7? "

    Hi Raphael,.
     
    As the query you posted is bound to change the message on the machines of the user logged on to the domain, I recommend you post your query in the security of Windows 7 forums on TechNet for better assistance.
  • change a password for the administrator

    I tried everything to change an administrator password, I need help

    If you are an administrator, you can change the password by...

    Start > Control Panel > Classic view > use of accounts > click on change your password...
    or
    Click account management > click the administrator account to change the password > change your password.

    However, If you are not an administrator, you cannot change admin password.

    Moeover, this forum prohibited any person to help users to bypass the password protection.

    Here's the Microsoft Policy about this:
    http://social.answers.Microsoft.com/forums/en-us/vistasecurity/thread/3eba3150-8742-4264-be9f-0daaad2282cd For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • I changed my password in the cloud, but I can always sign in my PC with the old password

    I changed my password online, but I can always sign in my PC with the old password

    To connect to online services, you must use your password later. However, we recognize that sometimes you just need to get to a document on your PC and may not have an internet connection to validate your password more later. In this case, we you always let connect you to your PC using the last known password, but then when you want to use services online, we will ask you your last password as soon as we need to authenticate you.

  • I can't connect to MSN and Hotmail for a long time, about 2 weeks and I try to change my password but the support of coustomor give me a PIN code

    Hello world

    Hi everyone, please I need help I can not connect on MSN and Hotmail for a long time, about 2 weeks and I try to change my password but the support of coustomor give me a PIN code but I forgot it and when I try to answer to the security question, they said try later I am looking for your help I have a lot of private information and I want to get that back please help me :(
    How will I know if my account has been blocked? and how can I get it back?
    Hi -0,

    The question you have posted is better suited for Windows Live Forums, check out the link:

     
    Reference: How to contact MSN customer service
     

    I hope this helps.

  • Java, I can't uninstall java (TM) 7 update3 using the windows uninstall program what do I do?

    I can't uninstall java (TM) 7 update3 using the windows uninstall program what do I do?

    Hello

    1. what happens when you try to uninstall it?

    2 have you made changes on the computer before this problem?

    3. facing this problem with Java?

    I suggest that you run the patch from the following link and check the status of the issue.

    Problems with programs that cannot be installed or uninstalled.

    http://support.Microsoft.com/mats/Program_Install_and_Uninstall

    You can also refer to:

    http://www.Java.com/en/download/uninstall.jsp

  • Foreground color does not change when I use the color picker.  CS6.

    Foreground color does not change when I use the color picker.  CS6.

    Your document is in grayscale, convert color (Image > Mode).

  • Screen resolution/size changes when you use the touchpad

    Bought Probbok 4530 s. Win 7. I continue to have the screen/print resolutiom size change when you use the touch pad. The pointer seems to 'paste' and then when I move it, the screen get is much lower or higher. I continually have to type ctrl + or - to get the size of the screen back to the 'normal '. Is this something to do with the settings for the touchpad or pointer? Its driving me crazy...

    Bruce

    Hell, I think that this is it... Pinch Zoom! I have disabled that, as well as the "allow the theme change mouse pointers" on the pointers tab. I'm playing with it now, and it seems to have solved the problem. I'll let you know if this isn't... Thanks for the great help, Dragon fur!

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

    Hello

    John explained earlier the clause VALUES below thread.

    Status expired

    I created a new account named SURI, and tried to use the password of the user account from the HR by using the VALUES clause. I was able to change the password but not able to connect SURI with HR password.

    Please see below for details. And the SQL statements that 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>
    Thank you
    Suri

    Its because you have used a different username.
    Oracle produces a hash based on the user name and the password, not only the password.

    Therefore, you can not use the hashed password of a user to log on to the account of another user.

    You need to get the password hashed Suri and then connect you to suri by using the password hashed Suri (using the identified by the syntax of values)

  • Cannot change the password using the question of security in l/min.

    We have an identity server. We have a lost password management application. There is a webpass and a webgate configured for the application of the LPM. The mode of communication is simple. The forgotten password feature does not work for the application of the LPM.

    Steps to re-create the issue
    --------------------------------------
    -In the form of connection, the user clicks on "I forgot my password"link
    -User enter 'User ID' and then click on submit
    -It redirects the user to a page of challenge question, the answer to the question the user and click on submit
    -The next page confirms the user had correctly answered the secret question. And invite the user to enter the new password, retype the password, and then click Save
    -When, click Save shows "cannot change the password. The screen is refreshed. The new password is not saved.

    Identity & Webpass - 10.1.4.2 BP08 Server version

    Thank you.

    Hello

    For the LPM error "cannot change the password" check if you set a "minimum age" in the definition of the strategy of password.
    "If you set a minimum age of 2 days for example, the user will not be able to change his or her password before 2 days after the initial setting of the password and you will have 'identity/oblilx/logs/oblog.log' shows: ERROR 0 x 00000901 lost_pwd_mgmt.cpp:264 'cannot change password' loginName ^ xxxxx" in oblog.log

    --> In our POC password minimum age has been set, and we have forgotten that we have in him... This is why we hade this error on the LPM scenario...
    --> After setting the minimum age to 0, the scenario LPM works every time

    Best regards

  • Change administrator password when the old one has expired

    After a year of using Vista on my PC, 3 weeks ago I got a message saying my password expires in 15 days, that was strange that I had never been asked to change it before. I have it has not changed at that time, and then went away for 2 weeks. On my return, my old password no longer works, and I was not given an opportunity to change, because I guess that the expiration date... any ideas on what to do? I'm now effectively locked out of my PC...

    If this is the only administrator on the system account (if there is another, just connect as one, go to start / Control Panel / user accounts / manage another account / choose the account with the expired password and change the password).

    If there is no other administrator, follow these steps after you create a System Restore Point.

    Use the recovery environment, you can open the registry in the target
    Windows Setup to apply the fix:

    Start with the Vista installation disc in the drive and select the command line
    in the repair options. If you do not have a disc, you can make a bootable recovery disk by using http://neosmart.net/blog/2008/windows-vista-recovery-disc-download/ with burning software like: http://www.snapfiles.com/get/active-isoburner.html and, of course, a blank CD (perhaps with another computer if necessary).

    At the R.E. prompt:

    -Type: regedit
    -Click on HKEY_LOCAL_MACHINE
    -Click file-> load hive
    -Navigate to the folder of the installation target \Windows\System32\Config
    -Select the file named 'SAM' and click Open
    -Give it a name, for example "target SAM" and click OK
    -Develop "Target SAM" inside the HKEY_LOCAL_MACHINE
    -Develop in the following subfolder: SAM\Domains\Account\Users\000001F4
    -Double-click on the element on the right called 'F'
    -You are presented with a hex editor
    -Change the position of th 57' 11 hex spell 10. (It's the)
    identify in the data that contains only a 11 hex). To do this, click in the
    law of 11 hex to make the insertion point. Back Press and 11
    disappears. Type 10.

    On my computer, here is what the data looked like, until I have
    changed:

    From:

    02,00,01,00,00,00,00,00,80, d7, 8 c, b2 e9, 97, c7, 01, 00, 00, 00, 00, 00, 00, 00,.
    00, 1f, ea, fd, announcement, e9, 97, c7, 01, 00, 00, 00, 00, 00, 00, 00, 00, ad, 60, 9 b, e9, 97, c7, 01,.
    F4, 01, 00, 00, 01, 02, 00, 00, 11...

    TO:

    02,00,01,00,00,00,00,00,80, d7, 8 c, b2 e9, 97, c7, 01, 00, 00, 00, 00, 00, 00, 00,.
    00, 1f, ea, fd, announcement, e9, 97, c7, 01, 00, 00, 00, 00, 00, 00, 00, 00, ad, 60, 9 b, e9, 97, c7, 01,.
    F4, 01, 00, 00, 01, 02, 00, 00, 10...

    This should make the active built-in Administrator account, but still need to
    display it in the home screen.

    * Please NOTE, the following key may not be present on all systems. If this key is
    missed, simply exit regedit, leave command prompt it and restart the system
    normal extra Vista *.

    -Follow the same steps when loading of a hive, but instead of load SAM, load
    SOFTWARE
    -Give it a name such as "software target.
    -Develop target software, then navigate to the following key:

    Microsoft-Windows NT------CurrentVersion \ Winlogon------SpecialAccounts.
    UserList.

    -Remove the entry in it named "Administrator".
    -Close regedit
    -Reboot

    Administrator should now be activated and able to be signed in as.

    ======================================================================================================================

    Now connect to this account and correct the problem with your password and then the problem should be solved.  Create a second account administrator in an emergency like this.

    Use the following procedure to disable the built-in Administrator account:http://www.howtogeek.com/howto/windows-vista/enable-the-hidden-administrator-account-on-windows-vista/.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • The unit 3.1 (3) change of password for the Service account

    Hi all

    I am aware of the link and procedure on how to change the password of the service account of the unit 3.1 X here: http://www.cisco.com/en/US/customer/products/sw/voicesw/ps2237/products_tech_note09186a0080093f54.shtml#topic2

    My question is this. I have 5 unity servers that use this service account in any area, which includes Europe and the United States. If I change the password in AD all services will continue to work with the old password as long as they have not restarted with the old password? I know I need to change the password for each service that uses the account and then restart the unit, but since AD taking so long to reply, I was hoping to change the password of the account one day and then the next day or even longer when I have planned for my failure, I can then change the password for the services on each server and then restart the unit and make sure that replication is complete and the services start again with the new password.

    I think as long as I do not have to restart services can I change the password of the service account in AD a day or two before I schedule my outage can I change the password for all services, and then restart the unit. I know that I can force replication, but it would be nice to be able to change it in advance as long as it is not flexible, whatever it is. Even force the replication takes a lot of time in our environment and I want to be sure, can I change well in advance without having a negative impact.

    Thanks for your time!

    Keith

    If you change a password for a domain account, it should respond immediately through the Organization as AD treats this with the highest coastal.

Maybe you are looking for