活着,寻找生存。
分类: Oracle
2015-11-21 16:04:55
SQL> SELECT i.INSTANCE_NAME,i.HOST_NAME,i.VERSION,i.STATUS FROM v$instance i; INSTANCE_NAME HOST_NAME VERSION STATUS -------------------------------- -------------------- ---------------------------------- --------------- ora ora.db.com 11.2.0.3.0 OPEN |
SQL> SELECT * FROM dba_profiles WHERE profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME'; PROFILE RESOURCE_NAME RESOURCE_TYPE LIMIT -------------------- -------------------- ---------------- ----------------------------- DEFAULT PASSWORD_LIFE_TIME PASSWORD 180 |
SQL>ALTER USER text IDENTIFIED BY text; |
SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED; |
SQL> SELECT * FROM dba_profiles WHERE profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME'; PROFILE RESOURCE_NAME RESOURCE_TYPE LIMIT -------------------- -------------------- ---------------- -------------------------------------------------------------------------------- DEFAULT PASSWORD_LIFE_TIME PASSWORD UNLIMITED |