Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Alternate database option in Report Definition is not working



The alternate database option in report definitions does not work. When an alternate database is used, the data is pulled from the default database instead of the alternate datasource.

Error Messages

Not applicable

Steps to Reproduce

1) Configure two different database connections for a ORACLE DB.
2) Specify the DB Names for Main and Reports DB  in the Data-Admin-Database-Table  for the class.
3) Run a report definition with "Alternate Database" checkbox enabled.

Notice that Tracer also the DB query running against the main database.

Root Cause

User is using ORACLE database, which uses "username" as the schema name.  

Alternate schema works only when schema of the main and reports database match.


Note that the "Alternate database" option works:

1. When the main and the reports database use the same schema.


2. When the schema for the reports database is specified in its database definition.

Data-Admin-Database-Table provides option to specify schema for the main database, no such option is provided for the reports database.

Hence the schema for the reports database is picked from its Database rule's JDBC definition.

In case of ORACLE database the schema name defaults to the username. Since the user is using the same database (ORACLE) and two different schemas (usernames) this option does not work. User can address it by creating another database instance with the same schema name.


Suggest Edit

Published December 27, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us