Collections:
Lock and Unlock a User Account in Oracle
How To Lock and Unlock a User Account in Oracle?
✍: FYIcenter.com
If you want to lock a user account for a short period of time, and unlock it later, you can use the ALTER USER ... ACCOUNT command. The following sample script shows how to use this command:
>.\bin\sqlplus /nolog SQL> connect SYSTEM/fyicenter SQL> ALTER USER dev ACCOUNT LOCK; User altered. SQL> disconnect SQL> CONNECT DEV/developer ORA-28000: the account is locked SQL> disconnect SQL> connect SYSTEM/fyicenter SQL> ALTER USER dev ACCOUNT UNLOCK; User altered. SQL> disconnect SQL> CONNECT DEV/developer Connected.
⇒ Privilege to Create Tables in Oracle
⇐ Revoke CREATE SESSION Privilege in Oracle
2019-06-29, 2483🔥, 0💬
Popular Posts:
How to put statements into a statement block in SQL Server Transact-SQL? You can put statements into...
How To Generate CREATE VIEW Script on an Existing View in SQL Server? If you want to know how an exi...
How To Verify a User name with SQLCMD Tool in SQL Server? The quickest way to verify a user name in ...
How To Verify Your PHP Installation in MySQL? PHP provides two execution interfaces: Command Line In...
How To Revise and Re-Run the Last SQL Command in Oracle? If executed a long SQL statement, found a m...