set serveroutput on;
DECLARE
BEGIN
FOR c IN (SELECT t.username FROM dba_users t where account_status='OPEN') LOOP
EXECUTE IMMEDIATE 'alter user ' || c.username || ' identified by ' || c.username ;
DBMS_LOCK.SLEEP(1) ;
dbms_output.put_line('user ' || c.username || ' changed ');
END LOOP;
END;
/