Home >Database >Oracle >What are the commands to unlock users in Oracle?

What are the commands to unlock users in Oracle?

coldplay.xixi
coldplay.xixiOriginal
2020-08-17 15:24:1111733browse

Oracle's commands to unlock users are: 1. Use the plsql tool sys user login, the code is [ALTER USER username ACCOUNT UNLOCK]; 2. Set the user password to try to log in unlimited times; 3. Set the user password not to expire .

What are the commands to unlock users in Oracle?

The commands for oracle to unlock a user are:

1. Usually we encounter multiple incorrect inputs of the oracle user password. , then changing the user will change the lock, then the solution is very simple, as follows:

Use the plsql tool sys user to log in (you can also enter the dos command: sqlplus / as sysdba) to unlock

ALTER USER 用户名 ACCOUNT UNLOCK;

2 , then when encountering this situation where the user will be locked, we can set the user password to try to log in unlimited times, and the user will not be locked:

ALTER PROFILE DEFAULT LIMIT FAILED_LOGIN_ATTEMPTS UNLIMITED;

3. In addition, small partners who do project operation and maintenance often When the database user password expires, it is troublesome to change the password regularly. Then we can set the user password to not expire:

ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;

Related learning recommendations: oracle database learning tutorial

The above is the detailed content of What are the commands to unlock users in Oracle?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn