DEFAULT role explained

It seems at times when roles are assigned they are not assigned as DEFAULT role to a user. The reason for seems to be the following: In the table sys.user$ there is a column called “DEFROLE” which indicates if the role will be a default role or not. The possible values that seem to be…

Oracle passwords in 11g

In 11g Oracle supports password to be case sensitive. But the password can be case insensitive depending on value of “PASSWORD_VERSIONS” and “sec_case_sensitive_logon”. In 11g dba_users view has a new column called “PASSWORD_VERSIONS”, it can have 3 possible values “10G”, “10G 11G”, “11G”. Below shows what they mean along with parameter “sec_case_sensitive_logon”. Scenario when the…

ORA-28221: REPLACE not specified

When a user name has a profile that has a password verify function set and the user tries to change the password using “ALTER USER” without the REPLACE clause, and also the user doesn’t have ALTER USER privilege Oracle will generate the “ORA-28221: REPLACE not specified” error message. So the user needs to include the…

How to extend an account whose password is expiring?

One of the ways to extend the password of an expiring account is to change the profile of the user. — show the current user profile which shows the password expires 180 days SQL> select * FROM dbA_profiles where profile = ‘APPLICATIONS’; PROFILE RESOURCE_NAME RESOURCE LIMIT —————————— ——————————– ——– —————————————- .. APPLICATIONS FAILED_LOGIN_ATTEMPTS PASSWORD UNLIMITED…

How to turn off case sensitive in 11g

SQL> SHOW PARAMETER SEC_CASE_SENSITIVE_LOGON NAME TYPE VALUE ———————————— ———– —————————— sec_case_sensitive_logon boolean TRUE SQL> SQL> ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE; System altered.