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, 2237🔥, 0💬
Popular Posts:
What Is an Oracle Instance in Oracle? Every running Oracle database is associated with an Oracle ins...
How To Create a Dynamic Cursor with the DYNAMIC Option in SQL Server Transact-SQL? If the underlying...
What Happens If the UPDATE Subquery Returns Multiple Rows in MySQL? If a subquery is used in a UPDAT...
What Is SQL*Plus in Oracle? SQL*Plus is an interactive and batch query tool that is installed with e...
How To Convert Numeric Values to Integers in SQL Server Transact-SQL? Sometimes you need to round a ...