Details
Description
It should be possible to configure a schema prefix that is added to the table name in every query when using Activiti with Oracle. According to a DBA statement, schema prefixes are often used to avoid schema aliases when distributing tables across multiple schemas, but still provide access to all of them via a single data source / connection.
Issue Links
- is duplicated by
-
ACT-635
need to add prefix for all activit tables
-
Our company has a standard where the application server user name setup in the datasource is different than the owning schema. For example, the activity tables and application tables are in schema X but the application user is X_APP_USER. Activiti ends up creating and using the tables in X_APP_USER but we want to be able to have them created and used in X.
There are a couple of ways to do this that we've determined.
1) setup a login trigger for the Oracle user to call ALTER SESSION SET CURRENT_SCHEMA=X
2) write a DataSource wrapper that calls ALTER SESSION SET CURRENT_SCHEMA=X upon 'getConnection' (this works and is implemented)
3) alter Activiti to support schema prefixes (hence this jira issue).