Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password will expire message not displaying

Status
Not open for further replies.

babsjoy

Programmer
Sep 1, 2003
46
0
0
US
It seems since we have upgraded to 10g (version 10.2.0.1.0) When executing batch jobs (to execute PL/SQL packages via SQLPLUS)the Oracle messsage

ORA-28002; the password will expire within XX days

is no longer appearing in the output log.
I have done some research and the SQL*PLUS release notes for V 10.1 dated December 2003 states this as a known issue. How can this be corrected? The account used to perform the batch execution was set up with a grace_period of 10 days. Any ideas?
 
Sure, modify your script to have the following code

Code:
set serveroutput on
declare
days number;
begin
  select nvl(EXPIRY_DATE,sysdate + 1) - sysdate
  into days
  from user_users;

  if days > 0 and days <= 10 then
   dbms_output.put_line('ORA-28002: The password will expire within '||to_char(trunc(days))||' days');
  end if;
end;
/

Bill
Oracle DBA/Developer
New York State, USA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top