Avatar of muse1982
muse1982
Flag 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
Oracle Database

Avatar of undefined
Last Comment
OP_Zaharin

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
OP_Zaharin

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Your help has saved me hundreds of hours of internet surfing.
fblack61