解锁oracle用户的方法

[oracle@dhm ~]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on Wed May 11 11:08:55 2016

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

SQL> connect / as sysdba;

Connected.

SQL> select * from dba_profiles where resource_name like 'FAILED_LOGIN_ATTEMPTS%';

PROFILE                  RESOURCE_NAME                       RESOURCE

------------------------------ -------------------------------- --------

LIMIT

----------------------------------------

DEFAULT                          FAILED_LOGIN_ATTEMPTS                  PASSWORD

10

SQL> alter profile default limit FAILED_LOGIN_ATTEMPTS unlimited;

Profile altered.

SQL> select * from dba_profiles where resource_name like 'FAILED_LOGIN_ATTEMPTS%';

PROFILE                  RESOURCE_NAME                       RESOURCE

------------------------------ -------------------------------- --------

LIMIT

----------------------------------------

DEFAULT                          FAILED_LOGIN_ATTEMPTS                  PASSWORD

UNLIMITED

SQL> alter user cms account unlock;

User altered.

posted @ 2019-03-22 16:36  LBeautiful  阅读(3831)  评论(0编辑  收藏  举报