Forcing periodic password Changes
Oracle has a feature that lets you force users to change their passwords periodically.
You use profiles to implement password changes and can control two factors:
- The number of days a password can be used before it must be changed
- The length of the grace period during which time a user is warned to change the password each time he or she connects to the database
You can implement a password lifetime limit for the default profile by using a command like this:
ALTER PROFILE default LIMIT
PASSWORD_LIFE_TIME 30
PASSWORD_GRACE_TIME 3;
Example Explanation
In this example, users assigned the default profile are allowed to use their passwords for 30 days.
When the 30-day limit is reached, each time users connect they receive a message, reminding them to change their password.
They have 3 days to make the change. If, after 3 days, a user has not changed his or her password the user's account is locked.
You will learn more about profiles later in this course. For now though, realize that every database has, or should have, a default profile, and that new users are assigned to this profile unless you specify otherwise. If you have been following along with the examples, the users in the COIN
database should all fall under the default profile.
Username and Password:
Oracle uses the username and password to connect to the remote database. The username and password for a database link are optional.
Referring to Database Links
Database links are available only if you are using Oracle distributed functionality. When you issue a SQL statement that contains a database link, you can specify the database link name in one of these forms:
- The complete database link name as stored in the data dictionary, including the database, domain, and optional connect_descriptor components.
- The partial database link name is the database and optional connect_ descriptor components, but not the domain component.
You can disable the requirement that the database.domain portion of the database link name must match the complete global name of the remote database by setting to false the initialization parameter GLOBAL_NAMES or the GLOBAL_NAMES parameter
of the ALTER SYSTEM or ALTER SESSION statement.