Modifying a profile v18
Altering a password profile
The PG_ALTER_PROFILE function modifies an existing password profile for password management.
Synopsis
PASSWORD_PROFILE.PG_ALTER_PROFILE('profilename', failed_login_attempts, password_lock_time, password_life_time, password_grace_time, password_verify_function)
Description
The PG_ALTER_PROFILE function modifies an existing profile for password management. The profile defines the profile name, limits for failed login attempts, account lock time, password expiration and grace period, and the password verification function for complexity checks.
Parameters
profilename— Name of the password profile to modify.failed_login_attempts— Number of consecutive failed login attempts allowed before the account is lockedfor the length of time specified byPASSWORD_LOCK_TIME. Supported values are:- An
integervalue greater than0. Default— The value offailed_login_attemptsspecified in theDEFAULTprofile.unlimited— The connecting user can make an unlimited number of failed login attempts.
- An
password_lock_time— Duration (in days) for which the account remains locked after exceeding the allowed failed login attempts. Supported values are:- A
numericvalue greater than or equal to0. To specify a fractional portion of a day, specify a decimal value. For example, use the value4.5to specify 4 days, 12 hours. Default— The value ofpassword_lock_timespecified in theDEFAULTprofile.unlimited— The account is locked until a database superuser manually unlocks it.
- A
password_life_time— Duration (in days) after which the password expires and must be changed. Include thepassword_grace_timeclause when using thepassword_life_timeclause to specify the number of days that pass after the password expires before connections by the role are rejected. If you don't specifypassword_grace_time, the password expires on the day specified by the default value ofpassword_grace_time, and the user can't execute any command until they provide a new password. Supported values are:- A
numericvalue greater than or equal to 0. To specify a fractional portion of a day, specify a decimal value. For example, use the value4.5to specify 4 days, 12 hours. Default— The value ofpassword_life_timespecified in theDEFAULTprofile.unlimited— The password doesn't have an expiration date.
- A
password_grace_time— Duration (in days) after password expiration during which the user can still log in and change the password. When the grace period expires, a user can connect but can't execute any command until they update their expired password. Supported values are:- A
numericvalue greater than or equal to 0. To specify a fractional portion of a day, specify a decimal value. For example, use the value4.5to specify 4 days, 12 hours. Default— The value ofpassword_grace_timespecified in theDEFAULTprofile.unlimited— The grace period is infinite.
- A
password_verify_function— Name of the password verification function that checks the complexity of the new password. This function should return true if the password meets the complexity requirements, and false otherwise. Supported values are:The name of a PL/SQL function.
Default— The value ofpassword_verify_functionspecified in thedefaultprofile.NULL
Renaming a password profile
The PG_RENAME_PROFILE function renames an existing password profile for password management.
Synopsis
PASSWORD_PROFILE.PG_RENAME_PROFILE('old_profilename', 'new_profilename')
Description
The PG_RENAME_PROFILE function renames an existing profile for password management.
Parameters
old_profilename— Current name of the password profile to rename.new_profilename— New name for the password profile.