The SYSCS_UTIL.SYSCS_RESET_PASSWORD system procedure resets a password that has expired or has been forgotten.
This procedure is used in conjunction with NATIVE authentication. For details about NATIVE authentication, see derby.authentication.provider and "Using NATIVE authentication" in the Derby Developer's Guide.
SYSCS_UTIL.SYSCS_RESET_PASSWORD(IN USERNAME VARCHAR(128), IN PASSWORD VARCHAR(32672))
No result set is returned by this procedure.
If authentication and SQL authorization are both enabled, only the database owner has execute privileges on this procedure by default. See "Using NATIVE authentication," "Enabling user authentication," and "Setting the SQL standard authorization mode" in the Derby Developer's Guide for more information. The database owner can grant access to other users.
Reset the password of a user named FRED:
CallableStatement cs = conn.prepareCall ("CALL SYSCS_UTIL.SYSCS_RESET_PASSWORD(?, ?)"); cs.setString(1, "fred"); cs.setString(2, "temppassword"); cs.execute(); cs.close();
Reset the password of a user named FreD:
CallableStatement cs = conn.prepareCall ("CALL SYSCS_UTIL.SYSCS_RESET_PASSWORD(?, ?)"); cs.setString(1, "\"FreD\""); cs.setString(2, "temppassword"); cs.execute(); cs.close();
Reset the password of a user named FRED:
CALL SYSCS_UTIL.SYSCS_RESET_PASSWORD('fred', 'temppassword')
Reset the password of a user named FreD:
CALL SYSCS_UTIL.SYSCS_RESET_PASSWORD('"FreD"', 'temppassword')