Pass database url as parameter at run time


I have 2  similar oracle databases in 2 different pdbs using the same reports.

Is it possible to pass the database url as parameter to jasperserver at runtime?

The idea is to use one instance of jasperserver to run the reports from 2 database sources.

Example URL sent to jasperserver :


didier.lebon's picture
Joined: Jun 12 2019 - 7:37am
Last seen: 1 year 8 months ago

1 Answer:


If you have Pro version then most probably you can do following trick:
create 2 datasources, then combine them in 1 with Virtual Datasource,define different aliases, build your report with parametrized schema name, when running report - switch schema.

ogavavka's picture
Joined: Mar 12 2012 - 2:10pm
Last seen: 6 months 2 weeks ago