Extract encrypted user password |
-- 10g and below select 'alter user '||username||' identified by values '''||password||''';' from dba_users where username=upper('&username'); -- 11g and above -- @Extract_userpwd select 'alter user "'||username||'" identified by values '''||extract(xmltype(dbms_metadata.get_xml('USER',username)),'//USER_T/PASSWORD/text()').getStringVal()||''';' old_password from dba_users where username = '&username'; |