Exporting Decision Center data
Use this tool to export the contents of the Decision Center database. The files can be used in migration and diagnostics.
Before you begin
Follow these steps to set up the database dumping tool:
- Download this file: decisioncenter-dbdump.war_.zip
. - Decompress
decisioncenter-dbdump.war_.zipand extractdecisioncenter-dbdump.war. - Deploy
decisioncenter-dbdump.war.For example, on Liberty, copy the WAR file to the apps directory: <InstallDir>\wlp\usr\servers\<ODMVersion>\apps
- Map the rtsAdministrator role to users and groups.
For example, on Liberty, add the following in the
server.xml:<!-- DB dump --> <application type="war" id="decisioncenter-dbdump" name="decisioncenter-dbdump" location="${server.config.dir}/apps/decisioncenter-dbdump.war"> <classloader delegation="parentLast" /> <application-bnd> <security-role name="rtsAdministrator"> <group name="AdminGroup" /> </security-role> </application-bnd> </application>
WEB-INF/web.xml file, for example, <security-constraint>
....</security-role>.About this task
This web application creates a compressed (.zip) file that contains the contents of a Decision Center repository. Optionally, the application can exclude the rule definitions to address privacy concerns while still reproducing most repository issues. The application must be deployed on the server that contains Decision Center data source. It can typically be deployed alongside Decision Center.
Procedure
- Web page
-
- Browse to
http://<hostnameorIP>:<port>/decisioncenter-dbdump. - Provide the JNDI name for the data source. The suggested default value is
jdbc/ilogDataSource. - Optionally, click the Lookup button to get information about the data source.
- Provide the schema name for the Decision Center schema.
The option
Use data source defaultmeans that the same schema name as computed by the Decision Center application that is used to retrieve the tables. - Select the check box Exclude definitions if you want to exclude rule definitions.
- Generate the compressed (.zip) file by using one of the following options:
- Click Direct download and a compressed file download starts shortly. No file is saved on the server.
- Click Save on server and the export is generated on the server. When the export is complete, a link is shown.
- Browse to
- Direct URL
-
A URL can be used to initiate the download. It should match the following form:
http://<hostname or IP>:<port>/decisioncenter-dbdump
/services/download?<parameters...>The parameters:
- ds: The JNDI name of the data source, for example, ds=jdbc/ilogDataSource
- schemaName: The name of the schema, for example, schemaName=ODMDB
- excludeDefinitions: Request to exclude definitions by using excludeDefinitions=true
- useDefaultSchemaName: Request to use the default schema name by using useDefaultSchemaName=true
In this example, the curl on Windows assumes the host is a local host and the HTTP port is 9080:curl -u rtsAdmin:rtsAdmin -o dbdumpWithCurl.zip http://localhost:9080/decisioncenter-dbdump
/services/download?useDefaultSchemaName=true&ds=jdbc/ilogDataSource
http://<host>:<port> /decisioncenter-dbdump

If
the export does not complete and no error message is shown in the user interface, check the
application server log. Whenever possible, if an exception occurred during the export, a file
error.txt is saved in the generated compressed archive. It can be useful when
initiating the export from the command line. With the direct URL, if an error occurred but a
compressed file can still be retrieved, checking for error.txt can help
troubleshoot the issue. :ilog.rules.teamserver.dbdump.*