Alter Application

The MaxL alter application statement helps you change Essbase application-wide settings.

Keywords

Use MaxL alter application to change the following application-wide settings. The minimum application permission required for most of the statements is Application Manager, with exceptions noted.

alter application APP-NAME set lock_timeout …

Change the maximum time interval that locks on data blocks can be held by Smart View (or other grid clients') users. When a client data-block lock is held for more than the time out interval, Essbase removes the lock and the transaction is rolled back. The default interval is 60 minutes. This setting affects all databases in the application.

Example:

alter application Sample set lock_timeout after 30 minutes;
alter application APP-NAME set max_lro_file_size …

Specify a maximum file size for Linked Reporting Objects (LRO) attachments. There is no default. There is no minimum or maximum value, excepting limitations imposed by your system resources.

Example:

alter application Sample set max_lro_file_size 450mb;
alter application APP-NAME set minimum permission

Grant all users a minimum level of permission to all databases in the application. Users with higher permissions than this minimum are not affected.

Example:

alter application Sample set minimum permission read;

Grants all users read access to all databases in the Sample application. Users can retrieve data values and run report scripts.

alter application APP-NAME set variable

Assign a string value to an existing substitution-variable name. If the variable does not exist, first create it using add variable. Substitution variables may be referenced by calculations in the application.

Example:

alter application Sample set variable Current_month July;

Assigns the string value July to the substitution variable "Current_month." "Current_month" may be referenced by calculations in the Sample application.

alter application APP-NAME set cache_size …

Set the maximum size to which the application cache may grow. The application cache grows dynamically until it reaches this limit. The application cache is used for hybrid aggregation in block storage databases, and can help you manage memory usage for retrievals. This setting takes effect after you restart the application. To check the currently set limit, use the following MaxL statement:

query application APP-NAME get cache_size;

Example:

alter application Sample set cache_size 32mb;
alter application APP-NAME set type unicode_mode

Migrate an application to Unicode mode. Migration to Unicode mode cannot be reversed.

Example:

alter application Sample set type unicode_mode;
alter application APP-NAME load database …

Start (by loading into memory) an idle database. You need at least Database Access permission provisioned in the application.

Example:

alter application Sample load database Basic;
alter application APP-NAME unload database …

Stop (by unloading from memory) an active database. You need at least Database Access permission provisioned in the application.

Example:

alter application Sample unload database Basic;
alter application APP-NAME enable startup

Permit all users who have at least Database Access permission to load (start) the application. Startup is enabled by default.

Example:

alter application Sample enable startup;
alter application APP-NAME disable startup

Prevent all users from loading (starting) the application. Startup is enabled by default.

Example:

alter application Sample disable startup;
alter application APP-NAME enable autostartup

Start the application automatically when Essbase Server starts. By default, autostartup is disabled.

Example:

alter application Sample enable autostartup;
alter application APP-NAME disable autostartup

Do not start the application automatically when Essbase Server starts. By default, autostartup is disabled.

Example:

alter application Sample disable autostartup;
alter application APP-NAME enable commands

Allow all users with sufficient permissions to make requests to databases in the application. Use to reverse the effect of disable commands. The disable commands setting remains in effect only for the duration of your session. By default, commands are enabled.

Example:

alter application Sample enable commands;
alter application APP-NAME disable commands

Prevent all requests to databases in the application, including non-data-specific requests, such as viewing database information or changing database settings. All users are affected, including other administrators. Administrators are affected by this setting as a safety mechanism to prevent accidental updates to databases during maintenance operations. This setting remains in effect only for the duration of your session. The setting takes effect immediately, and affects users who are currently logged in, as well as users who log in later during your session.

Caution:

If performing maintenance operations that require disabling commands, you must make those maintenance operations within the same session and the same script as the one in which commands were disabled.

By default, commands are enabled.

Example:

alter application Sample disable commands;

Prevents all users from making requests to the application scope. Use this statement before performing application-wide update and maintenance operations.

alter application APP-NAME enable updates

Allow all users with sufficient permissions to make requests to databases in the application. Use to reverse the effect of disable updates. Disabling updates remains in effect only for the duration of your session. By default, updates are enabled.

Example:

alter application Sample enable updates;
alter application APP-NAME disable updates

Prevent all users from making requests to databases in the application. Use before performing update and maintenance operations. The disable updates setting remains in effect only for the duration of your session.

Example:

alter application Sample disable updates;

Caution:

If performing maintenance operations that require updates to be disabled, you must make those maintenance operations within the same session and the same script as the one in which updates were disabled. By default, updates are enabled.

alter application APP-NAME enable connects

Allow all users with sufficient permissions to make connections to databases in the application. Use to reverse the effect of disable connects. By default, connections are enabled.

Example:

alter application Sample enable connects;
alter application APP-NAME disable connects

Prevent any user with a permission lower than Application Managers from making connections to the databases that require the databases to be started. This includes starting the databases or performing the ESSCMD shell SELECT command on the databases. Database connections remain disabled for all databases in the application, until the application setting is re-enabled by the administrator.

By default, connections are enabled.

Example:

alter application Sample disable connects;
alter application APP-NAME enable security

When security is disabled, Essbase ignores all security settings in the application and treats all users as Application Managers. By default, security is enabled.

Example:

alter application Sample enable security;
alter application APP-NAME disable security

When security is disabled, Essbase ignores all security settings in the application and treats all users as Application Managers. By default, security is enabled.

Example:

alter application Sample disable security;
alter application APP-NAME comment …

Enter an application description (optional). The description can contain up to 80 characters.

Example:

alter application Sample comment 'Sales application';
alter application APP-NAME clear logfile

Delete the application log located in the application directory. A new log is created for entries recording subsequent application activity.

Example:

alter application Sample clear logfile;
alter application APP-NAME add variable

Create an application-level substitution variable by name, and optionally assign a string value for the variable to represent. You can assign or change the value later using set variable. A substitution variable acts as a global placeholder for information that changes regularly. Substitution variables may be referenced by calculations and report scripts.

If substitution variables with the same name exist at server, application, and database levels, the order of precedence for the variables is as follows: a database level substitution variable supersedes an application level variable, which supersedes a server level variable.

Example:

alter application Sample add variable Month Nov;
alter application APP-NAME drop variable

Remove a substitution variable and its corresponding value from the application.

Example:

alter application Sample drop variable Month;
alter application APP-NAME rename to

Rename the application. When you rename an application, the application and the application directory are renamed.

Example:

alter application Sample rename to Sample2;