How do I turn off Oracle password expiration?

前端 未结 6 721
[愿得一人]
[愿得一人] 2020-11-29 15:18

I\'m using Oracle for development. The password for a bootstrap account that I always use to rebuild my database has expired.

How do I turn off password expiration

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-29 15:25

    I will suggest its not a good idea to turn off the password expiration as it can lead to possible threats to confidentiality, integrity and availability of data.

    However if you want so.

    If you have proper access use following SQL

    SELECT username, account_status FROM dba_users;

    This should give you result like this.

       USERNAME                       ACCOUNT_STATUS
    ------------------------------ -----------------
    
    SYSTEM                         OPEN
    SYS                            OPEN
    SDMADM                         OPEN
    MARKETPLACE                    OPEN
    SCHEMAOWNER                    OPEN
    ANONYMOUS                      OPEN
    SCHEMAOWNER2                   OPEN
    SDMADM2                        OPEN
    SCHEMAOWNER1                   OPEN
    SDMADM1                        OPEN
    HR                             EXPIRED(GRACE)
    
    USERNAME                       ACCOUNT_STATUS
    ------------------------------ -----------------
    
    APEX_PUBLIC_USER               LOCKED
    APEX_040000                    LOCKED
    FLOWS_FILES                    LOCKED
    XS$NULL                        EXPIRED & LOCKED
    OUTLN                          EXPIRED & LOCKED
    XDB                            EXPIRED & LOCKED
    CTXSYS                         EXPIRED & LOCKED
    MDSYS                          EXPIRED & LOCKED
    

    Now you can use Pedro Carriço answer https://stackoverflow.com/a/6777079/2432468

提交回复
热议问题