zoukankan      html  css  js  c++  java
  • 【ORACLE】oracle数据库用户密码复杂度配置

    -- 设置密码复杂度
    SQL> @ /u01/app/oracle/product/11.2.0/db_1/rdbms/admin/utlpwdmg.sql


    -- 测试
    SQL> alter user scott identified by 123456;
    alter user scott identified by 123456
    *
    ERROR at line 1:
    ORA-28003: 指定口令的口令验证失败 ORA-20001:
    Password length less than 8


    SQL> alter user scott identified by 12345678;
    alter user scott identified by 12345678
    *
    ERROR at line 1:
    ORA-28003: 指定口令的口令验证失败 ORA-20009:
    Password must contain at least one
    digit, and one character

    SQL> alter user scott identified by "123456ykyy!";

    User altered.

    -- 取消密码复杂度
    SQL> alter profile default limit password_verify_function null;

    Profile altered.




    -- 密码过期
    SQL> alter profile default limit password_life_time 30;

    -- 测试
    [oracle@rac01 ~]$ sqlplus scott/123456ykyy!

    SQL*Plus: Release 11.2.0.4.0 Production on 星期六 4月 7 12:30:06 2018

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

    ERROR:
    ORA-28002: the password will expire within 7 days



    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    SQL>

    -- 取消密码过期
    SQL> alter profile default limit password_life_time unlimited;

    Profile altered.
  • 相关阅读:
    ye间模式
    Xutilt网络获取数据
    JUnit
    IntelliJ IDEA快捷键
    Map存放不同数据或对象
    SQL改
    外键约束
    Hibernate之SQL语言查询
    Hibernate之Criteria语言查询
    Hibernate之HQL语言查询
  • 原文地址:https://www.cnblogs.com/xphdbky/p/8746158.html
Copyright © 2011-2022 走看看