Put your tips and tricks online - Share your knowledge! Login | Register
 
 
  Search     Advanced search
 

Home | Ask Question | Add tip | My tips | Recent tips & tricks | Suggest a category | FAQ | Forums

 
 
 
 Category : Home > Databases > Oracle > Security     

How to switch to another user


Need to become a different Oracle database user? There is a way to login into a another user's
account without knowing their password:

1. Find out the encrypted password for the user

SQL> select username, password from dba_users where username = 'USERNAME';

USERNAME     PASSWORD
------------ ------------------------------
USERNAME     6B4712549D4DA963

Save the encrypted password value somewhere i.e. in a text file

2. Change user's password to a temporary password

SQL> alter user USERNAME identified by 'password';

3. Do whatever you had to do as that user

4. Change user's password back to the original

SQL> alter user USERNAME identified by values '6B4712549D4DA963';


  Options
 
   del.icio.us  |  newsvine  |  digg  |  furl  |  google  |  yahoo  |  Ma.gnolia  |  vigillar  |  reddit  |  technorati  |  icerocket  |  pubsub

     (Average: 5 / Votes: 1)   Rate this tip:    

Start discussion or add comment to this tip

  Details
Tip reference : #76
views : 623
Added on : 02/07/06
Submited by : h8dk97
 
Send a message Send a message Printer friendly output Printer friendly output
Display this member's tips Display this member's tips (149)
 
 
<< Previous Next >>
 Most viewed tips 
  Databases > Oracle > Security : How to unlock Oracle user account  
  Databases > Oracle > Performance Tuning : How to enable trace in Oracle  
  Databases > Oracle : Kill user session  
  Databases > Oracle : Scripts to backup Oracle database on Windows NT  
   
  All categories
Databases | Programming | Hardware | Operating Systems | Networking | Internet | ERP / CRM | Games & Multimedia | Graphics & Design | Miscellaneous | Office Software | TipLib FAQ
 
 

Home |  FAQ |  Terms of Use |  Privacy Policy

© 2005 tiplib.com