Solved

setting up oracle user account to expire in xx months

Posted on 2009-04-08
8
1,933 Views
Last Modified: 2012-05-06
I have oracle user account that need to be set such as that their password expire after 6months, 12months and 18months
win 03
version 9.2

thanks
0
Comment
Question by:taaz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
8 Comments
 
LVL 23

Expert Comment

by:David
ID: 24096678
ALTER PROFILE lets you modify a particular parameter.  The sample syntax is ALTER PROFILE xxx LIMIT PASSWORD_LIFETIME 180;
where xxx is the profile associated with the account(s) in question.
0
 
LVL 2

Assisted Solution

by:chuchyyy
chuchyyy earned 250 total points
ID: 24096776
You need to set up a profile in your database in order to establish limitations such as :
- number of failed login attempts before the account is locked
- number of days before a password can be reused
etc.
And then, you have to set the profile to your users.

In your request, you ask for password expiration. You need to use PASSWORD_LIFE_TIME which "limits the number of days the same password can be used for authentication".

CREATE PROFILE pass_expiration
LIMIT
PASSWORD_LIFE_TIME 90; %(for 3 months) but also 180 (6 months), 365 (yearly), 450 (18 months)

ALTER USER my_user PROFILE pass_expiration;

Hope that helps
0
 
LVL 2

Expert Comment

by:chuchyyy
ID: 24096784
oups... Already answered, sorry. I began to write before you answered ;-)
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

Author Comment

by:taaz
ID: 24110954
If I assign a profile "pass_exp" to a user would it change his privileges that the user was having or it would remain the same except the one in the profile "pass_exp"?  
0
 
LVL 23

Assisted Solution

by:David
David earned 250 total points
ID: 24111163
Let's clarify how you're using "privileges" -- a user account has to be assigned to a profile when the account is created - usually "DEFAULT".  The account may be assigned to one and only one profile at a time -- so to your question, altering a user to a different profile means the whole set of profile parameters is changed.  Remember, this has nothing to do with object or role-based privileges.
A profile has nine RESOURCE attributes, and seven PASSWORD ones.  When a profile is altered, for example changing FAILED LOGIN ATTEMPTS from 10 to 3, all users who use that profile will use the changed values upon one's next login.
Does that help?
0
 

Author Comment

by:taaz
ID: 24114749
basicall  I like to extend the user password expiration time without hurting all privileges the user is having  such that

userA1,userA2,userA3 passowrd expire after 180 days

user B1,userb2.userB3 password expire after 365days

userC1,userC2,userc3   password expire after 90 days

I just want to extend the password but want other privileges to remain the same.
0
 
LVL 2

Expert Comment

by:chuchyyy
ID: 24114783
dvz, tell me if i'm wrong but he can create a single profile with the limited password and others privileges stuff. Is that right ?
0
 

Accepted Solution

by:
taaz earned 0 total points
ID: 24115395
Username:    Useradmin
Profile      :    Password
Expiry_date      :04-13-09 (from    dba_users)


In the profile  Password
Password Lifetime(Days):      365

How to extend useradmin's password  for another 365 days (04-13-2010)

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Row_number in SQL 6 54
oracle forms question 22 60
Convert CSV to list in oracle for IN-Clause 6 45
ORA-01843: not a valid month - use NVL 14 16
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to recover a database from a user managed backup

737 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