set pages 500 select USERNAME,ACCOUNT_STATUS,LOCK_DATE,EXPIRY_DATE,PROFILE from dba_users --where ACCOUNT_STATUS <> 'OPEN' order by 1; quit; EOF select 'alter user "' || USERNAME || '" identified by oracle account unlock;' from dba_users where ACCOUNT_STATUS <> 'OPEN' order by 1; sqlplus / as sysdba << "EOF" alter user "ANONYMOUS" identified by oracle account unlock; alter user "APEX_030200" identified by oracle account unlock; alter user "APEX_PUBLIC_USER" identified by oracle account unlock; alter user "APPQOSSYS" identified by oracle account unlock; alter user "BI" identified by oracle account unlock; alter user "CTXSYS" identified by oracle account unlock; alter user "DBSNMP" identified by oracle account unlock; alter user "DIP" identified by oracle account unlock; alter user "EXFSYS" identified by oracle account unlock; alter user "FLOWS_FILES" identified by oracle account unlock; alter user "HR" identified by oracle account unlock; alter user "IX" identified by oracle account unlock; alter user "MDDATA" identified by oracle account unlock; alter user "MDSYS" identified by oracle account unlock; alter user "MGMT_VIEW" identified by oracle account unlock; alter user "OE" identified by oracle account unlock; alter user "OLAPSYS" identified by oracle account unlock; alter user "ORACLE_OCM" identified by oracle account unlock; alter user "ORDDATA" identified by oracle account unlock; alter user "ORDPLUGINS" identified by oracle account unlock; alter user "ORDSYS" identified by oracle account unlock; alter user "OUTLN" identified by oracle account unlock; alter user "OWBSYS" identified by oracle account unlock; alter user "OWBSYS_AUDIT" identified by oracle account unlock; alter user "PM" identified by oracle account unlock; alter user "SCOTT" identified by oracle account unlock; alter user "SH" identified by oracle account unlock; alter user "SI_INFORMTN_SCHEMA" identified by oracle account unlock; alter user "SPATIAL_CSW_ADMIN_USR" identified by oracle account unlock; alter user "SPATIAL_WFS_ADMIN_USR" identified by oracle account unlock; alter user "SYS" identified by oracle account unlock; alter user "SYSMAN" identified by oracle account unlock; alter user "SYSTEM" identified by oracle account unlock; alter user "WMSYS" identified by oracle account unlock; alter user "XDB" identified by oracle account unlock; alter user "XS$NULL" identified by oracle account unlock; ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED; ALTER PROFILE MONITORING_PROFILE LIMIT PASSWORD_LIFE_TIME UNLIMITED; quit; EOF