Main Topics
Browse All TopicsHi,
In 11g when I set a user's password to expire. No matter what tool they use - (Toad, sqlplusw or cmd - sqlplus) they a prompted to enter in their new password and then get an error message ORA-01017: invalid username/password; logon denied.
Anyone else experience this?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
To investigate the password stuff use:
This simple script will check if a user password is expiring in the next 120 days.
set pagesize 500
set linesize 200
set trimspool on
column EXPIRE DATE format a20
select username as USER NAME, expiry_date as EXPIRE DATE, account_status
from dba_users
where expiry_date < sysdate+120
and account_status IN ( OPEN, EXPIRED(GRACE) )
order by account_status, expiry_date, username
/
Another scripts:
INVESTIGATE AND CHANGE PROFILE ENTRIES
connect sys/pasw@some_instance as sysdba
select profile from dba_users where username='SYSTEM';
select LIMIT, RESOURCE_NAME
from dba_profiles
where RESOURCE_NAME in ('PASSWORD_GRACE_TIME','PA
and PROFILE=(select profile from dba_users where username='SYSTEM');
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
I ran the scripts that you gave me and it showed the account status as expired.
USERNAME ACCOUNT_STATUS EXPIRY_DA LOCK_DATE
--------------------------
PIERCEY EXPIRED 25-MAR-09
1 row selected.
I tried to sign in twice in Toad and here is my activity in a cmd window
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\>C:\oracle\product\10.2.
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Mar 26 11:23:53 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-28001: the password has expired
Changing password for piercey
New password:
Retype new password:
ERROR:
ORA-01017: invalid username/password; logon denied
C:\>C:\oracle\product\10.2.
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Mar 26 11:24:59 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-28001: the password has expired
Changing password for piercey
New password:
Retype new password:
ERROR:
ORA-01017: invalid username/password; logon denied
Password unchanged
Enter user-name:
Then I tried it again from Toad
USERNAMERETURNCODE EXTENDED_TIMESTAMP
PIERCEY 28001 2009-03-25 3:00:35.359000 PM -03:00
PIERCEY 1017 2009-03-25 3:00:46.218000 PM -03:00
PIERCEY 28001 2009-03-26 11:23:57.406000 AM -03:00
PIERCEY 28001 2009-03-26 11:25:11.531000 AM -03:00
PIERCEY 28001 2009-03-26 11:42:50.031000 AM -03:00
PIERCEY 28001 2009-03-26 11:54:59.109000 AM -03:00
PIERCEY 1017 2009-03-26 11:55:08.062000 AM -03:00
It doesn't seem to log every event.
I figured it out...it only works with version 11 client software.
SQL*Plus: Release 11.1.0.6.0 - Production on Fri Mar 27 09:13:29 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Enter user-name: piercey
Enter password:
ERROR:
ORA-28001: the password has expired
Changing password for piercey
New password:
Retype new password:
Password changed
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Ah, thanks for the info. I will note that.
It is possible to setup the 11g database with backwards compatible security settings, possibly you remember when you installed, 11g has a new choice in DBCA.
That may be another workaround for future databases, but its just a guess, and won't help you now, though I'm sure there is a way to alter the settings on the fly, but I would have to research.
Business Accounts
Answer for Membership
by: mrjoltcolaPosted on 2009-03-25 at 11:10:30ID: 23982760
Possibly the new password is not passing Oracle's complexity verification.
Have him try a more complex password, or change the policy.