• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

how to set noexpiration_date for all users in DB: Oracle11g

 
Ranch Hand
Posts: 256
Netbeans IDE Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Could anyone please tell me how to set (password)noexpiration_date for all users present in a DB oracle 11g.
May be this will set for only one user.
alter user SYSTEM with noexpiration_date;
I want to set it for all users so that noones password expires ever.

please help.
thanks,
ricky
[ September 04, 2008: Message edited by: Ricky Rosan ]
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Run in sqlplus:
spool noexp_users
select 'alter user ' || user_name ' with noexpiration_date;' from dba_users;
spool off

With this you have created a file called noexp_users with the sentences to modify all the users.

Now edit the file to remove the non-sql lines.

Next, in sqlplus run:
@noexp_users

With this you run the script previouly created.

Regards
 
Ramakanta Sahoo
Ranch Hand
Posts: 256
Netbeans IDE Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This will only enable the users currently present in the DB.
but my problem is I want to alter full DB's as no expiration . So that if a new schema is created afterwards that ll not also expire.So if anyone knows how to do it then please advice.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic