Oracle database 19c is used for development and testing purposes only.
All users (including sys, system and all others created by default during installation) have the same password.
For example, password123
How do I change the password, for example to password456 for all users?
So that I don't have to change the password for each user separately.
Please advise some steps or script.
Thank you in advance.
One option is to use a cursor FOR loop.
This is user
scottwhose password istiger:Connect as a privileged user (the one who is capable of modifying other users' passwords):
Run such a script; compose
alter userstatement, display it (so that you'd know all users whose passwords have been changed) and then change the password. You'd modify line #6; I'm restricting it only toscottas I don't want to change any other password in my database. You'd either name all users whose passwords you want to change, or - if you want to change all passwords - omit line #6:Can scott connect using its old password? No:
Using its new password? Yes: