Reauthentication
- Last Updated: May 30, 2024
- 1 minute read
- DataDirect Connectors
- JDBC
- IBM Db2 5.1
- MySQL 5.1
- Progress OpenEdge 5.1
- SAP Sybase 5.1
- Documentation
The Db2 driver supports reauthentication for Db2 for Linux/UNIX/Windows. The user performing the switch must have been granted the database SETSESSIONUSER permission and the SYSADM permission.
Use the setCurrentUser() method in the ExtConnection interface to switch a user on a connection. The following table describes the driver-specific options supported by the setCurrentUser() method.
| Option | Description |
|---|---|
| CURRENT_SCHEMA | Specifies the name of the current schema. The value
must be a valid Db2 schema name. If the setCurrentUser() method is
called and this option is not specified or the value is set to |
| CURRENT_PATH | Specifies the current path for the database to use
when locating stored procedures and functions. The value must be a valid path name for
the Db2 CURRENT PATH special register. If the setCurrentUser()
method is called and this option is not specified or the value is set to |
Refer to Connection Pool Manager in the Progress DataDirect for JDBC Drivers Reference for more information.
Refer to JDBC extensions in the Progress DataDirect for JDBC Drivers Reference for more information about the setCurrentUser() method.