通过覆盖密码策略更改TOAD中的密码

时间:2017-05-02 13:47:14

标签: sql oracle security

我想在TOAD中更改密码,但我想保留一个不符合密码策略集的密码。如何在更改密码时覆盖密码策略?

1 个答案:

答案 0 :(得分:1)

查找用户的个人资料 -

SQL> select profile from dba_users where username='USER1';

PROFILE
--------------------------------------------------------------------------------
DEFAULT

然后更改个人资料以将password_verify_function设置为null

SQL> conn sys as sysdba


SQL> alter user user1 identified by user1;
alter user user1 identified by user1
*
ERROR at line 1:
ORA-28003: password verification for the specified password failed
ORA-20026: Password must contain at least 1 special character(s)


SQL> alter profile default limit password_verify_function null;

Profile altered.

SQL> alter user c##_user1 identified by user1;

User altered.