ImpersonateUser
- Last Updated: May 20, 2025
- 1 minute read
- DataDirect Connectors
- JDBC
- Oracle Database 6.0
- Documentation
Purpose
Specifies the user used for impersonation. This value determines the identity and permissions for accessing Oracle resources during query execution. When specified, the driver first authenticates based on the AuthenticationMethod property setting. Once the initial connection is established, the driver reauthenticates as the impersonated user.
Valid Values
string
where:
- string
- is a valid user with permissions to access the database.
Notes
- An administrator must grant
CONNECT THROUGHpermission to the authenticated user in order to impersonate the user. - The driver returns an error if
ExtConnection.setCurrentUser()is called after using the connection propertiesImpersonateUserandImpersonateUserPasswordin the connection URL. - You should not call
resetUser()if you use the connection propertiesImpersonateUserandImpersonateUserPasswordin the connection URL.
Data Source Method
public String getImpersonateUser()
public void setImpersonateUser(String)
Default
None
Data Type
String