Sync passwords from one database to another

Here is a simple way to syncronize schema passwords from one Oracle database to another. On the source database run the following sqlplus command:


SQL> select ‘alter user ‘ || username || ‘ identified by values ”’||  password ||”’;’
from dba_users where username in (‘GMADMIN’,'GM_0′,’GM_0_REPORT’,'GM_0_STATS’);


That will produce the following output which you can run on your new database:
 
‘ALTERUSER’||USERNAME||’IDENTIFIEDBYVALUES”’||PASSWORD||”’;’
——————————————————————————–
alter user GM_0_REPORT identified by values ‘SJINE200223′;
alter user GM_0_STATS identified by values ‘SKDNO9S9S’;
alter user GM_0 identified by values ‘SD8HF872B34′;
alter user GMADMIN identified by values ‘SN828WWHB88′;


This entry was posted on Saturday, September 22nd, 2007 at 4:00 am and is filed under Oracle. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Be the first to leave a comment.

Leave a Reply