QUESTION ========= 1) Does Oracle cache the SYSDBA password? 2) Is there a way to force it to re-read the password file to pick up a changed password without havi ng to shutdown the database?
RESEARCH ========= Note.1029539.6 - UNIX How to Set up the Oracle Password File Note 185703.1 - How to Avoid Common Flaws and Errors Using Passwordfile Note 114384.1 - WIN: Checklist for Resolving CONNECT AS SYSDBA (INTERNAL) Issues
ANSWER ======= 1) Yes. this is cached. The passwordfile is read only at the beginning, when the instance is started. 2) There is no way to force Oracle read the passwordfile, but one can use :
alter user sys identified by ;
After this the "cache" should be changed to the new password.
Guess that answers that question then. I've double checked the course materials from the Oracle DBA courses I've been on and they all say the way to change the SYSDBA password is to use orapwd, none of them mention using 'alter user...'.
¶ 8:41 AM
Comments:
Good post Stephen.
My question was whether or not I needed to shutdown a database in order to rebuild a password file.
I read the same notes on Metalink and concluded that yes, I do need to shut it down.
Your blog answers why. Thanks. dberg
# posted by Anonymous : Wednesday, July 05, 2006 6:39:00 PM
select * from v$fixed_view_definition where view_name='GV$PWFILE_USERS';
This reveals the answer lies in x$kzsrt.
I haven't attempted to read the relevant area of memory, but it does explain why you can recreate the password file and it has no effect until the database restart...
Thanks for making me think about it!
# posted by Simon Kelsey : Thursday, July 06, 2006 6:29:00 AM
Simon,
Thank you for taking the time to think about it.
dberg,
I'm glad you found this helpful. I guess the outcome is that you don't need to shutdown the database to rebuild the password file but you do need to restart it once the file has been changed.
# posted by Stephen Booth : Thursday, July 06, 2006 6:55:00 AM
Lisa Dobson - Oracle Newbies Blog, a blog aimed at people still relatively new to Oracle.
Doug Burns - Oracle excellence and soft toy wierdness.
Andrew Clarke - Radio Free Tooting. Includes a very interesting and useful entry on how to be a good guru, in many ways a response to and match for Eric S. Raymond's Newbie Ettiquette guide.
Oracle Today - Day-to-day musings and experiences of a DBA.
Moans Nogood - Certainly a different view on Oracle and the world. Knowedgable and entertaining.
Pete S - Mostly Oracle and often Data Warehouse related.
Experts Exchange - Q&A site for a variety of technical areas. Members earn points by answering questions and having their answer accepted by the questioner so tend to not get RTFM type responses. To ask a question you do have to have points to award, these can be earned by answering questions or bought through a subscription.
OTN - Oracle Technical Network. Hosts documentation, white papers and discussion forums on Oracle products. You can also download Oracle software from here (subject to registration and license terms).
Oracle Magazine - Current and past issues archive of Oracle magazine.
UK Oracle Users Group - Oracle Users Group for the UK. Well worth joining if you're in the UK and use Oracle products. Extensive, members only, library of technical papers and other articles.
Where are Oracle Bloggers? - Frappr map of locations of Oracle Bloggers, only bloggers who have an active blog aggregated by the OraNA RSS feed aggregator.
Google Print Search - Allows you to search scanned in texts. A number of Oracle texts are amongst those available. Useful for following up a reference given in a presentation, when the books on your shelf don't have the answer you need (and you need it NOW) or to 'try before you buy' when deciding which book to buy from your limited budget.
Ora-Code - Lookups on Oracle error messages (handy when all you have are Windows boxes so no access to oerr).