Today while working on UAT database refresh activity, had a step to change all schemas password to a common one. begin for x in (select username from dba_users ) loop execute immediate 'alter user '||x.username||' identified by xxxxxx profile DEFAULT'; end loop; end; / The above was executed as SYS user and it errored out
