I'm working on Oracle 188.8.131.52. I have a doubt on how to inactivate the Oracle user (schema). The scenario is something like this... I have a list of users from ADS that I created as Oracle users in my database. Now if there any deletion in the ADS users, then instead of dropping that particular user from my database, I want to inactivate it. Is there any way we can do this?
Since you are on Oracle 8i, you can use a feature introduced in that version. You can lock this account. The schema objects will still exist, but no one can ever log into that account while it is locked. This can be done with the following statement:
ALTER USER username ACCOUNT LOCK;Prior to Oracle 8i, the only way to get the same effect was to change the user's password to something that no one else would ever know.
For More Information
- Dozens more answers to tough Oracle questions from Brian Peasland are available.
- The Best Oracle Web Links: tips, tutorials, scripts, and more.
- Have an Oracle or SQL tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize. Submit your tip today!
- Ask your technical Oracle and SQL questions -- or help out your peers by answering them -- in our live discussion forums.
- Ask the Experts yourself: Our applications, PL/SQL, database administration and data warehousing gurus are waiting to answer your toughest questions.
Dig Deeper on Oracle database design and architecture
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.