troubleshooting Question

Oracle change of Password

Avatar of muse1982
muse1982Flag for Afghanistan asked on
Oracle Database
1 Comment1 Solution528 ViewsLast Modified:
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
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros