Solved

Alter user password with FORMS_DDL in Forms6i

Posted on 2006-11-27
7
1,705 Views
Last Modified: 2013-12-11
Ca anybody tell me why the following statement does not work.

FORMS_DDL(' ALTER USER '||:Block.Username||' identified by '||:block.newpassword)

I keep getting a 28001 password expire message.
0
Comment
Question by:timjshields
  • 2
  • 2
7 Comments
 
LVL 47

Expert Comment

by:schwertner
Comment Utility
Seem the user you use has not CREATE USER privelege.
To issue this DDL you have to be connected under SYS schema.
If this is not the case the user you use with this Form
should be granted some rights from the SYS user.
I just show in OEm for 10g.
This is the under " Modify System Privileges "
and the privelege is
"CREATE USER"

SQL>connect sys/passw@alias as sysdba
SQL>grant create user to your_user;
0
 
LVL 12

Expert Comment

by:jwahl
Comment Utility
the statement is o.k. and should work.

the problem in your case is that the password of the user had expired.  you can only change the password with ALTER USER ... if you're connected to the database with a valid (not expired) password.

0
 
LVL 12

Expert Comment

by:jwahl
Comment Utility
> the statement is o.k. and should work.
... assuming that the user has priveleges as schwertner described ...
0
 

Author Comment

by:timjshields
Comment Utility
Thanks for the reply.
The user  is me and I have dba rights. I expired the password on purpose to test the statement -> FORMS_DDL(' ALTER USER '||:Block.Username||' identified by '||:block.newpassword)!.
What you are telling me is that I should is
1) creat a logon statement  as sys
2) do the alter statment?
3) logon statment with the expired user.

By the is to be done in a login screen I created.

0
 
LVL 47

Accepted Solution

by:
schwertner earned 500 total points
Comment Utility
According
http://forum.java.sun.com/thread.jspa?threadID=455430&tstart=0
ALTER USER '||:Block.Username||' identified by '||:block.newpassword
will do the job!
Give a try.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now