SQL> select name,password from user$ where name='DBSNMP';
NAME PASSWORD
------------------------------ --------------------------
DBSNMP 0A08792EE57D2EC9
SQL> SELECT USERNAME,ACCOUNT_STATUS FROM DBA_USERS WHERE USERNAME='DBSNMP';
USERNAME ACCOUNT_STATUS
------------------------------------------------------
DBSNMP OPEN
SQL> SELECT USERNAME,ACCOUNT_STATUS FROM DBA_USERS WHERE USERNAME='DBSNMP';
USERNAME ACCOUNT_STATUS
----------------------------------------------------
DBSNMP OPEN
SQL> select name,password from user$ where name='DBSNMP';
NAME PASSWORD
------------------------------ ------------------------
DBSNMP 0A08792EE57D2EC9
SQL> select * from dba_profiles where profile='MONITORING_PROFILE';
PROFILE RESOURCE_NAME RESOURCE LIMIT
------------------------------------------------------------------------------------------
MONITORING_PROFILE COMPOSITE_LIMIT KERNEL DEFAULT
MONITORING_PROFILE SESSIONS_PER_USER KERNEL DEFAULT
MONITORING_PROFILE CPU_PER_SESSION KERNEL DEFAULT
MONITORING_PROFILE CPU_PER_CALL KERNEL DEFAULT
MONITORING_PROFILE LOGICAL_READS_PER_SESSION KERNEL DEFAULT
MONITORING_PROFILE LOGICAL_READS_PER_CALL KERNEL DEFAULT
MONITORING_PROFILE IDLE_TIME KERNEL DEFAULT
MONITORING_PROFILE CONNECT_TIME KERNEL DEFAULT
MONITORING_PROFILE PRIVATE_SGA KERNEL DEFAULT
MONITORING_PROFILE FAILED_LOGIN_ATTEMPTS PASSWORD UNLIMITED
MONITORING_PROFILE PASSWORD_LIFE_TIME PASSWORD DEFAULT
MONITORING_PROFILE PASSWORD_REUSE_TIME PASSWORD DEFAULT
MONITORING_PROFILE PASSWORD_REUSE_MAX PASSWORD DEFAULT
MONITORING_PROFILE PASSWORD_VERIFY_FUNCTION PASSWORD DEFAULT
MONITORING_PROFILE PASSWORD_LOCK_TIME PASSWORD DEFAULT
MONITORING_PROFILE PASSWORD_GRACE_TIME PASSWORD DEFAULT
16 rows selected.
SQL> alter user dbsnmp identified by values '0A08792EE57D2EC9';
User altered.
SQL> alter profile monitoring_profile limit password_life_time unlimited;
Profile altered.
SQL> SELECT USERNAME,PROFILE FROM DBA_USERS WHERE USERNAME='SYSMAN';
USERNAME PROFILE
--------------- ------------------------------
SYSMAN DEFAULT
SQL> alter profile default limit password_life_time unlimited;
Profile altered.
Happy Learning....
No comments:
Post a Comment