Locked user

2023-07-24 09:52:12  Updated

This topic describes errors related to a locked user and the troubleshooting procedure.

Error: ERROR 3118

Error messages

ERROR 3118 (HY000):User locked

Examples

When you log on as the ny1 user, this error is returned, indicating that this user is locked.

[admin@k08j13249.eu95sqa /home/admin]
$obclient -h10.0.0.0 -P2881 -uny@Oracle -p -A
Enter password:
ERROR 3118 (HY000): User locked

Troubleshooting procedure

  1. Log on as the SYS user.

    [admin@k08j13249.eu95sqa /home/admin]
    $obclient -h10.0.0.0 -P2881 -usys@Oracle -p -A
    Enter password:
    Welcome to the OceanBase.  Commands end with ; or \g.
    Your OceanBase connection id is 3221583856
    Server version: OceanBase 4.0.0.0 (r100000172022101218-6ab80a3950710941946c004d805fcfded7a4aa2c) (Built Oct 12 2022 18:43:39)
    
    Copyright (c) 2000, 2018, OceanBase Corporation Ab and others.
    
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    
  2. Unlock the ny user.

    obclient> ALTER USER ny ACCOUNT UNLOCK ;
    Query OK, 0 rows affected
    
  3. Log on as the ny user again.

    [admin@k08j13249.eu95sqa /home/admin]
    $obclient -h172.30.xxx.xxx -P2881 -uny@Oracle -p -A
    Enter password:
    Welcome to the OceanBase.  Commands end with ; or \g.
    Your OceanBase connection id is 3221583856
    Server version: OceanBase 4.0.0.0 (r100000172022101218-6ab80a3950710941946c004d805fcfded7a4aa2c) (Built Oct 12 2022 18:43:39)
    
    Copyright (c) 2000, 2018, OceanBase Corporation Ab and others.
    
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    

Contact Us