Link to home
Avatar of muse1982
muse1982Flag for Afghanistan

asked on

Oracle change of Password

I need a script that will connect to an oracle data locally by running a batch file and change  a specific uses password.

I need to be able to extract a  field from a database and use it in the password.

I have  created the below , although I don'Y think it is right can you please advised what I need to do to this.




select to_char(locationcode) dcol from resort;

spool c:\temp\&locationcode.LOG_PCR_GLOBAL_ALERTS.log

update application$_user
set app_password='(locationcode)0777'    
where app_user='SUPERVISOR';





spool c:\temp\&locationcode.LOG_PCR_GLOBAL_ALERTS.log
ASKER CERTIFIED SOLUTION
Avatar of OP_Zaharin
OP_Zaharin
Flag of Malaysia image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial