Manage Scripts
The Manage Scripts feature allows you to view, select, and execute global database scripts as part of cube preparation or maintenance tasks. Scripts can create or modify database objects, adjust data, or apply configuration changes before running cube jobs. You can review scripts, run them in a chosen environment, and monitor execution results.
When to manage scripts
- Applying configuration changes: Adjust system settings or apply updates that support cube processing.
- Resolving data issues: Correct or cleanse source data before a refresh or load job.
- Preparing database objects: Create or modify tables, views, or procedures needed by the cube before loading data.
Make the cube editable
- In the Administration page, select OLAP Manager from the sidebar.
- In the cube list, select the cube where you want to configure tracking.
- Clear the In Production checkbox.
- Click Save.
Manage scripts
- In the Options panel on the right, click the General icon.
- Select Manage Scripts.
Or right-click the Workspace and select Manage Scripts. - In Global Scripts, click to select scripts you want to execute. They will move to the Scripts to Execute list.
- In Scripts to Execute, review the selected scripts.
- Click the magnifying glass next to a script to preview its content.
- Click Execute.
- Select the target environment and click Confirm.
- Enter any required parameters in the Parameters dialog.
- Click Run.
Review execution report
- In the Execution Report dialog, locate the script you want to review.
- Click the success or error icon to open details.
- Review execution results in the Manage Scripts details window.
- Click Cancel, then Save.
Manage Scripts fields
| Field | Description |
|---|---|
| Environment Description | Name of the environment where the script ran. |
| Script Description | Text label identifying the script. |
| Server Type | Database server type where the script is intended to run (for example, SQLSERVER, ORACLE). |
| Script Content | SQL code or commands contained in the script. |
| Revert Script Content | SQL code used to undo the effects of the script. |
| Error Message | Details of any error encountered during execution. |