Eclipse BIRT and Oracle: Need to set role before running report -
Is it possible to define the role of the database before running a report? I have a lot of databases in which there are several schemas with the same set of tables in each number, where there are many roles to control each schema, reading, writing, data management etc. None of these have the default role.
In Sqlplus or TOAD, before I run a selection statement, I can roll the SET. I would also like to do the same in BIRT.
It may be possible to do this by using an open event after the Oda data source, but I have not found an example to use and use the original connection in JavaScript.
I do not have permission to add or change anything at the end of the server.
You can make an additional call to the database by using JavaScript in the open method after the data source. You can use JavaScript or Java event handlers to execute the SET ROLE statement or call a stored procedure that will execute it for you. This is done after the initial DB connection, but before the data set query is run. Using a data source connection to make that call will be a bit difficult, and I do not have the code to make it available as an example.
Another way is to set up a stored proc data that will execute the desired command, and execute it first. Drag and drop the data set in the report set, and make it invisible.
Le Birt Specialist
This helps
Comments
Post a Comment