Changes a user’s password when a connection is established. This property can be used to comply with corporate security policies that require a regularly occurring password change or to ensure access to the database if Oracle has let the user’s password expire. If specified and the connection fails, the password is unchanged.
This value is used only if user ID/password authentication is enabled explicitly (AuthenticationMethod=
userIdPassword) or implicitly (AuthenticationMethod=
auto and a user ID and password is supplied); otherwise, the driver throws an exception.
The following connection URL specifies the current password (secret1) using the Password connection option, and then specifies the new password (
secret2) using the NewPassword connection option: