AFTER ALTER ON DATABASE gives the old password value in Oracle

I am writing a trigger to fetch the 'password' value when 'sys.users$' table gets updated.
CREATE OR REPLACE
TRIGGER Sys_User_Nm_Trg AFTER ALTER ON DATABASE
WHEN (ora_dict_obj_type = 'USER')
DECLARE
CURSOR get_pw IS
SELECT password
FROM sys.user$
WHERE name = ora_dict_obj_name;
user_pw_ VARCHAR2(100);
BEGIN
IF (ora_dict_obj_name != 'SYS' AND ora_dict_obj_name != 'SYSTEM') THEN
IF (ora_des_encrypted_password IS NOT NULL) THEN
OPEN get_pw;
FETCH get_pw INTO user_pw_;
CLOSE get_pw;
END IF;
END IF;
END;
But this cursor gives the old 'password' not the changed 'password' value. But if I run
SELECT password
FROM sys.user$
WHERE name = ora_dict_obj_name;
in a separate transaction it gives the correct changed value. Is there something that I should change in the trigger to fetch the updated value for the password?
Thanks in advance!
Edited by: 986412 on Feb 7, 2013 12:11 AM
Edited by: 986412 on Feb 7, 2013 3:17 AM

What is the purpose of the trigger ?

Similar Messages

  • I'm trying to change my apple ID on iPad but won't let me until I give the old password to old ID. I no longer have access to the old email so I can't even change the old password.

    I need to change my old Apple ID to my new. I don't know the password to the old ID and no longer have access to this email. Is there an easy way around this?

    I'm with JC4567, I have my old email turn up when going into my iCloud settings. It won't let me change the email to my new one (this new email and password are already updated on my PC. Why can't it just automatically update all other devices with it???), it's grey'ed out so I can't click and edit. I read somewhere that if we delete (older ios) or log off (newer ios) iCloud in the Settings then we can log in with the new AppleID and password. When I tried that it brought up my old AppleID and demanded my old password to my to turn off the "Find My iPhone" part in the iCloud. So I couldn't delete/log out of iCloud without turning off Fimd My iPhone. Catch 22. How do we fix that?

  • Cannot delete the Folder on the desktop after Mavericks update. when I try to delete it, it is asking for logon password, When I give the logon password, it plays a sound of moving to Trash, but the folder still remains on the desktop

    Cannot delete the Folder on the desktop after Mavericks update. when I try to delete it, it is asking for logon password, When I give the logon password, it plays a sound of moving to Trash, but the folder still remains on the desktop
    Please help

    It is a folder which I have created. Name is "SAP".
    I copied some of my office stuff and then deleted the contents inside the folder. But I couldnt delete the folder SAP.
    This is happening after the Mavericks update.

  • I renamed my Apple ID with new name but the old password is no more working. What should I do ? After renaming I am getting pop up message regarding icloud on my screen but I am unable to set off the message box now

    I renamed my Apple ID with new name but the old password is no more working. What should I do ? After renaming I am getting pop up message regarding icloud on my screen but I am unable to set off the message box now

    What to do after you change your Apple ID email address or password - Apple Support
    ÇÇÇ

  • How do I change my icloud email when don't know the old password after I have changed my apple ID email address and the password? icloud is still online with my old email address!!!

    I got a new phone but backed it up through my itunes, and when I tried to use icloud it kept telling me I have forgotten my password, when I really really didn't. So I went to settings > itunes&appstore and changed my password, but also changed the email address too while I was at it, since I've always wanted to change it. But now here's the problem. My iphone's icloud is currently logged in with my old apple ID email address, which seems to not work with the new password, so I can't log it or even delete the account off my iphone. And ovbiously, I don't know the old password that I have "forgotten", as my phone tells me. There seems to be no way of changing the icloud account now.... What should I do?!

    So what was the solution. I have a similar problem on all of my devices now

  • Mobil email requires a new password but I didnt have to change from the old password

    mobil email requires a new password but I didnt have to change from the old password
    I just paid $7 and it will not take my old password
    I went to live.com and Microsoft didn't make me change passwords.
    So give me $7 credit or the phone number of Mobil Email as there is no way to contact them
    thanks
    >> Edited to comply with the Verizon Wireless Terms of Service <<
    Message was edited by: Verizon Moderator

    1 hour with customer service just now  wasted 1 hour for a cancer cure as this is a 1984 Era why do this to me.... now I have no mobil email as after a hour he your employee gave up...
    wow
    >> Edited to comply with the Verizon Wireless Terms of Service <<
    Edited by:  Verizon Moderator

  • I have changed my icloud email in my iphone but in macbook still using old email. I tried to delete the old email in macbook but it requires password and it does not accept the old password for the old email anymore. How do I remove this old email?

    I have changed my icloud email in my iphone but in macbook still using old email. I tried to delete the old email in macbook but it requires password and it does not accept the old password for the old email anymore. How do I remove this old email?

    Hello farahani hairon nizar,
    If your Apple ID was changed from your old account, you may have to change it back to your old account to be able to sign out and then change it back after that is done. Take a look at the article below for more information. 
    If you're asked for the password to your previous Apple ID when signing out of iCloud
    http://support.apple.com/en-us/HT203828
    Regards,
    -Norm G.  

  • Safari 7.0.5 problem-- I can't erase saved passwords-- I delete it in Preferences, it keeps entering the old password. I just got locked out of a bank account-- AGAIN!

    I changed my password for an important account.
    I deleted the old password under preferences on Safari.
    I entered the new password and it asked to save it.
    Next time I went to the account----it entered the old password--- and after three tries, I was locked out of the account.
    I re-did the whole process--- it happened again!
    Help!

    Passwords saved by Safari are actually stored in Keychain Access.
    Open Keychain Access located in   HD > Applications > Utilities
    Select Passwords on the left.
    Type in the name of the website you are trying to change the password for top right corner of the Keychain Access window.
    That website keychain should be there.
    Then right or control click that keychain then click Delete.
    Then back to Safari. From the Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click:  Remove All Website Data
    Then select the Passwords tab then delete the the website. Make sure: AutoFill user names and passwords is selected.
    Now go to the bank account website and try changing your password.

  • How can you reset your Installer even though you forget the old password?

    I forget the password to Installer (username of the laptop). Now, it asks me for the old password to reset
    Please Help

    Forgot Your Account Password
    For Snow Leopard and earlier
         Mac OS X 10.6- If you forget your administrator password
    For Lion/Mountain Lion
        Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         When the menubar appears select Terminal from the Utilities menu.
         Enter resetpassword at the prompt and press RETURN. Follow
         instructions in the dialog window that will appear.
         Or see Reset a Mac OS X 10.7 Lion Password and
         OS X Lion- Apple ID can be used to reset your user account password.
    If you are unable to boot from an installer DVD:
    (these will only work on Leopard or earlier)
      1. Boot to Safe Mode by restarting and after the chime press and hold down
          the COMMAND-S keys until a black screen with white type appears.
      2. At the prompt, type the following commands pressing return after each
          command line:
         /sbin/fsck -yf
         If you do not receive a "Filesystem OK" message then repeat this command
         until you do.  If after seven tries you still do not receive a "Filesystem OK"
         message, then the system is corrupted and needs to be reinstalled.
         mount -uw /
         cd /private/var/db/netinfo
         mv local.nidb local.old
         rm ../.AppleSetupDone
         shutdown -r now
    The second-to-last command above will cause OS X to think that the operating system is newly installed, and when the new owner starts up the computer it will send him/her to the startup wizard where he/she can start a new user without reinstalling.
    This last method does not actually change a password. It simply removes the user accounts and lets you create an initial admin account as if the computer were new out of the box.
    Reset Admin Password Using The Terminal
    You can reset the password by printing out (or writing down) and carefully following these steps.
    First, find the short name of the admin user on the machine. The easiest way of doing this is by looking at what the directory is called in the Users folder.
    Now, start in Single-user Mode. It should boot into a command line.
    Enter these exact lines. Press RETURN after each.
    mount -uw /
    ifconfig lo0 up
    cd /var/db/netinfo
    netinfod -s local
    Now you'll need that short name. Enter "passwd", a space, and the short name of the admin. For example, if the admin was rather prosaically called "imadmin", you would enter "passwd imadmin".
    The computer will now prompt you to change the password for "lmadmin" (or whatever the short name was). Go ahead and enter a new password.
    Now, enter:
    sync
    reboot
    and the machine will reboot. The admin password should now be changed.

  • I just chnged the password on myipod.Now when i try the new password it doesn't work,and when I try the old password it doesn't work.I know how to unlock it, but  the last computer i synced it with isnt working so there's no way for me to get my stuffback

    So changed the password on my ipod touch this afternoon, and eversince then the password is not working. I keep trying the old password and hen the new one but none are working. I know there is a way to unlock it, but that would delete all my stuff and the last computer i synced my ipod to is broken, so ther'es now ay for me to get my things back. Could i have made a mistake when entering the new password?

    Could i have made a mistake when entering the new password?
    It's entirely possible. And it sounds like you already know what needs to happen in order to correct it.  I'm afraid you won't be able to salvage any data that hasn't been included in your latest backup of the device via iTunes.
    B-rock

  • HT2518 How do you reset the password on a migrated user account? Mac wants the old password putting in before we can set a new password and the old password won't work.  How do we get around this?

    Used Migraton Assist to transfer data from old Dell PC onto new Macbook Pro.  Data has come across but cannota access the User Account from the Dell.  It is displayed on the desktop of the Mac but is requesting and new password.  Before we can reset the password we have to put in the old password.  We have put in the old password but it doesn't work and therefore we can't reset the password and get into the User Account. 
    How do we get around this problem so that we can access the User Account.
    Although the data has transferred we cannot see our contacts transferred from Outlook into Mail.  We are wondering if they are contained within our User Account, but can't find out until we can access the it?
    Help wold be much appreciated.
    Pensos

    Hello:
    Hopefully this will help you:
    http://support.apple.com/kb/PH4117
    Barry

  • How do i delete an old apple ID from iCloud account when I don't know the old password

    I changed my apple Id and now when I go to use iTunes or some email... it says ID and or password are wrong.  I do not have the old password so how do I log in or get it to see my new ID account??

    With iOS 7 there’s no workaround.
    They should have done this.
    What to do before selling or giving away your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT5661
    If the iPad was running iOS 7,  iCloud: Find My iPhone Activation Lock in iOS 7
    http://support.apple.com/kb/HT5818
    iCloud: Activation Lock
    http://support.apple.com/kb/PH13695
    Find My iPhone Activation Lock: Removing a device from a previous owner’s account
    http://support.apple.com/kb/ts4515
    Buying or Selling a Used iPhone or iPad Running iOS 7? Read This First!
    http://www.makeuseof.com/tag/buying-or-selling-a-used-iphone-running-ios-7-read- this-first/
    You may have purchased a stolen iPad.
     Cheers, Tom

  • I reset my apple ID and password for new iPhone 5. Now my iPad is stuck with old ID and I can't remember the old password in order to change apple account on iPad.....

    I would like to enable my new Apple ID onto my iPad but in order to do that I have to delete my previous Apple ID with password. I have tried to retrieve my password several times with no success. Does anyone know how to bypass this step? I can't even reset it to factory settings without the old password.
    Thanks for any help.

    There is no way to bypass this step.  It's Activation Locked.  You can read more about it here: http://support.apple.com/kb/ht1766
    You will need to resolve the password issue for your old Apple Id to move forward. 
    To reset your password follow these steps: http://support.apple.com/kb/ht5787
    If you are still having issues, contact Apple via phone so they can help you reset your password: http://support.apple.com/kb/he57

  • How can I change my icloud account without  knowing the old password

    How can I change my icloud account on my phone when I don't know the old password and I'm on a shared plan

    iCloud has nothing to do with your shared plan.
    Try
    https://iforgot.apple.com

  • I have two apple id's and one I cannot remember the password so I made a new one but to update my apps it still asks for the old password... How do I update my apps?

    I have two apple id's and one I cannot remember the password so I made a new one but to update my apps it still asks for the old password... How do I update my apps?

    All content and data is forever associated with the Apple ID you used to download it. You should have reset the password for the original I'd.
    I forgot.apple.com

Maybe you are looking for

  • Apply custom themes to WebDynpro ABAP application in Portal

    Hi, We have just upgraded the E-Recruitment to EHP4. We have two instances of ECC in which one acts as HR instance and the other one for E-Recruitmet. We have created custom themes for portal and need to apply the same for the WebDynpro ABAP applicat

  • Unable to create multiple transport target groups in SLD

    We have multiple R/3 QA systems but just 1 XI QA system and we need to test interfaces with all R/3 QA client at the same time. My XI development team has asked to explore whether its possible to create multiple target systems. Currenlty R3_dev has R

  • Help pause AS3.0 frame Change Timer on rollover

    could someone help me out on as to how I could go about pausing this timer on rollover of an object, stage... anything? I am just cycling images on the main timeline via this timer but would like the timer to pause if a user has mouse over one of the

  • Do not want my music on icloud

    Music previously purchased and played on iPhone suddenly is on the iCloud. Since I'm rarely in wifi zone, I want it back on my phone. I didn't request this. How do I stop this from happening with future purchases?

  • Mplayer doesn't play .avi[SOLVED]

    Hello. XBMC and MPlayer doesn't play .avi movies. I have the latest updates and are using mplayer 30325-1 from extra and XBMC xbmc 9.11-8 from community. Anyone else having the same problem? Last edited by jai134 (2010-02-05 12:47:25)