Oracle Driver : Connection Properties : NewPassword

NewPassword
Purpose 
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.
Valid Values
string
where:
string
is a valid password.
Notes 
*
The current password also must be specified using the Password property. The driver allows you to use the same value for the current password and the new password, but be aware that your Oracle server security settings may not allow this use.
Example 
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:
jdbc:datadirect:oracle://server1:1521;ServiceName=ORCL;User=test;
Password=secret1;NewPassword=secret2
Similarly, the same connection information specified using a JDBC data source would look like this:
OracleDataSource mds = new OracleDataSource();
mds.setDescription("My OracleDataSource");
mds.setServerName("server1");
mds.setPortNumber(1521);
mds.setServiceName("ORCL");
mds.setUser("test");
mds.setPassword("secret1");
mds.setNewPassword=("secret2");
...
Default
None
Data Type
String

© 2012 Progress Software Corporation and/or its subsidiaries or affiliates.