I normally use this script when i replicate my production database do development or testing environment.
Script:
This script will generate a spool file called change_password_exe.sql that will be executed at the end on the script.(you can also remove the execution part if you want to validate the script before executing)
As you can see i don't alter any user that have administration privileges such as SYS, SYSTEM, etc.