MaxL BNF
MaxL BNF 表示法是铁路图的可选替代方法,可用于学习 Essbase 的 MaxL 语法。
关键信息
{} Alternatives (at least one required)
[] Options (none required)
!! Default option if none indicated
| Separates options (OR)
[,...] Comma-separated list (of previous item) allowed
[ ...] Whitespace-separated list (of previous item) allowed
'' Literal
::= "is defined as." Symbol to the left is to be replaced with expression on the right
TERMINAL
%NON-TERMINAL%
alter application
alter application
{APP-Name
{set
{lock_timeout after INTEGER[!seconds!|minutes]
|max_lro_file_size {unlimited|SIZE-STRING}
|minimum permission %DBS-SYSTEM-ROLE%
|variable VARIABLE-NAME STRING
|cache_size SIZE-STRING
|type unicode_mode
}
|{load|unload} database DBS-STRING
|{enable|disable} {startup|autostartup|commands|updates|connects|security}
|comment COMMENT-STRING
|clear logfile
|add variable VARIABLE-NAME [STRING]
|drop variable VARIABLE-NAME
|rename to APP-NAME
}
DBS-SYSTEM-ROLE::=
{no_access|read|write|execute|manager}更改应用程序(聚合存储)
alter application
{APP-Name
{set
{
|minimum permission %DBS-SYSTEM-ROLE%
|variable VARIABLE-NAME STRING
|cache_size SIZE-STRING
|type unicode_mode
}
|{load|unload} database DBS-STRING
|{enable|disable} {startup|autostartup|commands|updates|connects|security}
|comment COMMENT-STRING
|clear logfile
|add variable VARIABLE-NAME [STRING]
|drop variable VARIABLE-NAME
|rename to APP-NAME
}
DBS-SYSTEM-ROLE::=
{no_access|read|write|execute|manager}alter database enable|disable
alter database DBS-NAME
{enable|disable}
{
two_pass_calc
|aggregate_missing
|startup
|autostartup
|compression
|create_blocks
|committed_mode
|pre_image_access
}更改数据库集
alter database DBS-NAME
set
{
retrieve_buffer_size SIZE-STRING
|retrieve_sort_buffer_size SIZE-STRING
|data_cache_size SIZE-STRING
|index_cache_size SIZE-STRING
|currency_database DBS-STRING
|currency_member MEMBER-NAME
|currency_conversion {division|multiplication}
|minimum permission %DBS-SYSTEM-ROLE%
|compression {rle|bitmap}
|lock_timeout
{
immediate
|never
|after INTEGER {[!seconds!|minutes]}
}
|implicit_commit after INTEGER {blocks|rows}
|variable VARIABLE-NAME STRING
|default calculation {CALC-NAME-SINGLE|as calc_string CALC-STRING}
|active alias_table ALT-NAME-SINGLE
|performance statistics {enabled|disabled|mode to %PST-SPEC%}
|note COMMENT-STRING
}
DBS-SYSTEM-ROLE::=
{no_access|read|write|execute|manager}
PST-SPEC::=
{
default
|{medium|long} persistence {all|database|server} scope
}更改其他数据库
alter database DBS-NAME
{
reset [{all|data}]
|force restructure
|load alias_table ALT-NAME-SINGLE from data_file FILE-NAME
|unload alias_table ALT-NAME-SINGLE
|add variable VARIABLE-NAME [STRING]
|drop variable VARIABLE-NAME
|delete lro
{
all
|by USER-NAME
|before DATE
|by USER-NAME before DATE
}
|unlock all objects
|begin archive to file FILE-NAME
|end archive
|replay transactions
{
after LOG-TIME
|using sequence_id_range ID-RANGE
}
|rename to DBS-STRING
|comment COMMENT-STRING
}更改数据库磁盘卷
alter database DBS-NAME
{
{add|drop} disk volume VOLUME-NAME
|set disk volume VOLUME-NAME
{
file_type {data|index|index_data}
|file_size SIZE-STRING
|partition_size {SIZE-STRING|unlimited}
}
}
变更数据库(聚合存储)
alter database DBS-NAME
{
{enable|disable}
{
startup
|autostartup
|query_tracking
|replication_assume_identical_outline
}
|set
{
retrieve_buffer_size SIZE-STRING
|retrieve_sort_buffer_size SIZE-STRING
|minimum permission %DBS-SYSTEM-ROLE%
|variable VARIABLE-NAME STRING
|active alias_table ALT-NAME-SINGLE
}
|reset [{all|data}]
|clear
{
aggregates
|data in region CUBE-AREA[,...][physical]
}
|compact outline
|add variable VARIABLE-NAME [STRING]
|drop variable VARIABLE-NAME
|%LOAD-BUFFER-INIT%
|destroy load_buffer with buffer_id BUFFER-ID[,...]
|unlock all objects
|rename to DBS-STRING
|comment COMMENT-STRING
|merge {all|incremental} data
|begin archive to file FILE-NAME
|end archive
}
DBS-SYSTEM-ROLE::=
{no_access|read|write|execute|manager}
LOAD-BUFFER-INIT::=
initialize load_buffer with buffer_id BUFFER-ID[,...]
[resource_usage RNUM][property PROPS][wait_for_resources]更改钻取
alter drillthrough
URL-NAME from xml_file FILE-NAME
on '{'MEMBER-EXPRESSION'}'[,...]
[allow_merge]更改筛选器
alter filter FILTER-NAME
add {no_access|read|write|meta_read} on MEMBER-EXPRESSION [,...]更改组
alter group GROUP-NAME revoke filter FILTER-NAME更改对象
alter object OBJ-NAME of type %OBJ-TYPE%
{rename to OBJ-NAME-SINGLE|unlock|[force]copy to OBJ-NAME}
OBJ-TYPE::=
outline
|calc_script
|report_file
|rules_file
|text
|partition_file
|lro
|selection
|wizard
|eqd
|outline_paging_file
|worksheet
|alias_table更改分区
alter {transparent|replicated} partition DBS-NAME
{to|from} DBS-NAME [at HOST-NAME]
set{
connect as USER-NAME identified by PASSWORD
|hostname as HOST-NAME instead of HOST-NAME direction {single|all}
|application as APP-NAME instead of APP-NAME direction {single|all}
|database as DSB-STRING instead of DBS-STRING
}变更会话
alter session set dml_output
{
[
!default!
|alias {on|off}
|metadata_only {on|off}
|cell_status {on|off}
|numerical_display {!default!|fixed_decimal|scientific_notation}
|precision PRECISION-DIGITS]
|formatted_value {on|off}
|get_missing_cells {on|off}
|get_meaningless_cells {on|off}
[,...]
}
alter system
alter system
{
load application {all|APP-NAME}
|unload application {all|APP-NAME} [no_force]
|set
{
session_idle_limit {INTEGER[!seconds!|minutes]|none}
|session_idle_poll {INTEGER[!seconds!|minutes]|none}
|invalid_login_limit {INTEGER|none|}
|inactive_user_days {INTEGER[days]|none}
|password_reset_days {INTEGER[days]|none}
|variable VARIABLE-NAME STRING
|server_port begin at INTEGER end at INTEGER
}
|delete export_directory EXPORT-DIR
|add variable VARIABLE-NAME[STRING]
|drop variable VARIABLE-NAME
|logout session %SESSION-SPEC% [force]
|shutdown
|kill request %SESSION-SPEC%
|{enable|disable} unicode
|reconcile[force]
}
SESSION SPEC::=
all
|SESSION-ID
|by user USER-NAME
[
on application APP-NAME
|on database DBS-NAME
]
|on application APP-NAME
|on database DBS-NAME
变更系统(聚合存储)
alter system
{
load application {all|APP-NAME}
|unload application {all|APP-NAME} [no_force]
|set
{
session_idle_limit {INTEGER[!seconds!|minutes]|none}
|session_idle_poll {INTEGER[!seconds!|minutes]|none}
|invalid_login_limit {INTEGER|none|}
|inactive_user_days {INTEGER[days]|none}
|password_reset_days {INTEGER[days]|none}
|variable VARIABLE-NAME STRING
|server_port begin at INTEGER end at INTEGER
}
|add variable VARIABLE-NAME[STRING]
|drop variable VARIABLE-NAME
|logout session %SESSION-SPEC% [force]
|shutdown
|kill request %SESSION-SPEC%
|reconcile [force]
}
SESSION SPEC::=
all
|SESSION-ID
|by user USER-NAME
[
on application APP-NAME
|on database DBS-NAME
]
|on application APP-NAME
|on database DBS-NAME
更改表空间(聚集存储)
alter tablespace TABLSP-NAME
{
add file_location FILE-NAME
[
set max_file_size SIZE-STRING
|set max_disk_size SIZE-STRING
[,...]
]
|alter file_location FILE-NAME
[
set max_file_size SIZE-STRING
|set max_disk_size SIZE-STRING
[,...]
]
|drop file_location FILE-NAME
}更改触发器
alter trigger
{
TRIGGER-NAME {enable|disable}
|on database DBS-NAME disable
}ALTER 用户
alter user
{
USER-NAME
{
|revoke filter FILTER-NAME
}
创建申请
create [or replace] application APP-NAME
[type {!nonunicode_mode!|unicode_mode}]
[as APP-NAME]
[comment COMMENT-STRING]创建应用程序(聚合存储)
create [or replace] application APP-NAME
[type {!nonunicode_mode!|unicode_mode}]
[using aggregate_storage]
[as APP-NAME]
[comment COMMENT-STRING]创建计算
create [or replace] calculation CALC-NAME {CALC-STRING|as CALC-NAME}创建数据库中
create [or replace] [currency] database DBS-NAME
[using non_unique_members]
[as DBS-NAME]
[comment COMMENT-STRING]创建数据库(聚合存储)
create [or replace] database DBS-NAME
[using non_unique_members]
[comment COMMENT-STRING]创建钻取
create drillthrough URL-NAME from xml_file FILE-NAME
on '{'MEMBER-EXPRESSION [,...]'}'
[level0 only]创建筛选条件
create [or replace] filter FILTER-NAME
{
as FILTER-NAME
|
{
no_access
|read
|write
|meta_read
}
on MEMBER-EXPRESSION
[,...]
}
[definition_only]
创建功能
create [or replace] function FUNC-NAME
as JAVACLASS.METHOD
[spec CALC-SPEC-STRING
[comment COMMENT-STRING]
]
[with property runtime]创建群组
create group GROUP-NAME
[type external]创建位置别名
create [or replace] location alias
{
LOC-ALIAS-SINGLE from DBS-NAME
|LOCATION-ALIAS-NAME
}
to DBS-NAME at HOST-NAME as USER-NAME identified by PASSWORD创建宏观
create [or replace] macro MACRO-NAME
[%MACRO-SIGNATURE%]
as MACRO-EXPANSION
[spec CALC-SPEC-STRING [comment COMMENT-STRING]]
MACRO-SIGNATURE::=
'('
{
!any!
|single
|group
|optional
|optional_group
[,...]
}
')'创建复制的分区
create [or replace] replicated partition DBS-NAME
%AREA-SPEC%
{to|from}
DBS-NAME [at HOST-NAME][as USER-NAME identified by PASSWORD]
[using USER-NAME identified by PASSWORD for creation]
[%AREA-SPEC%]
[
mapped
{globally|AREA-ALIAS}
'('MEMBER-NAME [,...]')'
to '('MEMBER-NAME [,...]')'
[,...]
]
[outline {!direct!|reverse}]
[comment COMMENT-STRING]
[remote comment COMMENT-STRING]
[update {allow|disallow}]
[validate only]
AREA-SPEC::=
area MEMBER-EXPRESSION [AREA-ALIAS] [ ...]创建透明分区
create [or replace] transparent partition DBS-NAME
%AREA-SPEC%
{to|from}
DBS-NAME [at HOST-NAME][as USER-NAME identified by PASSWORD]
[using USER-NAME identified by PASSWORD for creation]
[%AREA-SPEC%]
[
mapped
{globally|AREA-ALIAS}
'('MEMBER-NAME [,...]')'
to '('MEMBER-NAME [,...]')'
[,...]
]
[outline {!direct!|reverse}]
[comment COMMENT-STRING]
[remote comment COMMENT-STRING]
[validate only]
AREA-SPEC::=
area MEMBER-EXPRESSION [AREA-ALIAS] [ ...]创建更新后的触发器
create [or replace] after update trigger TRIGGER-NAME
where CUBE-AREA [when CONDITION then ACTION][ ...] end创建更新时触发器
create [or replace] [!on update!] trigger TRIGGER-NAME
[log_value {!OFF!|ON}]
where CUBE-AREA
[when CONDITION then ACTION][ ...]
[else ACTION]
end创建的用户
create user USER-NAME %EXTERNAL-USER-SPEC%
EXTERNAL-USER-SPEC::=
type external显示应用程序
display application [!all!|APP-NAME [message_level]]显示计算
display calculation
[
!all!
|CALC-NAME
|on application APP-NAME
|on database DBS-NAME
]显示数据库
display database
[
!all!
|DBS-NAME
|on application APP-NAME
]
[request_history]显示磁盘卷
display disk volume
[!all!|UNIQUE-VOL-NAME|on database DBS-NAME]显示钻进
display drillthrough
{
DBS-NAME [to FILE-NAME-PREFIX]
|URL-NAME [to FILE-NAME]
}显示筛选条件
display filter [!all!|FILTER-NAME|on database DBS-NAME]
显示筛选器行
display filter row [!all!|FILTER-NAME|on database DBS-NAME]显示功能
display function [!all!|on system|on application APP-NAME|FUNC-NAME]显示位置别名
display location alias [!all!|LOCATION-ALIAS-NAME|on application APP-NAME|on database DBS-NAME]显示锁
display lock [!all!|on system|on application APP-NAME|on database DBS-NAME]显示宏
display macro [!all!|on system|on application APP-NAME|MACRO-NAME]显示的对象
display [locked] object
[
[!all!|of type %OBJ-TYPE%]
[!on system!|on application APP-NAME|on database DBS-NAME]
|OBJ-NAME of type %OBJ-TYPE%
]
OBJ-TYPE::=
outline
|calc_script
|report_file
|rules_file
|text
|patition_file
|lro
|selection
|wizard
|eqd
|outline_paging_file
|worksheet
|alias_table
显示分区
display partition [!all!|on database DBS-NAME][advanced]显示权限
display privilege
{
user [!all!|USER-NAME]
|group [!all!|GROUP-NAME]
}显示会话
display session
[
!all!
|SESSION-ID
|by user USER-NAME [on application APP-NAME|on database DBS-NAME]
|on application APP-NAME
|on database DBS-NAME
]显示系统
display system
[
version
|ports {in use|overview}
|export_directory
|license_info
|security mode
|configuration
{
|agent
|network
|errors
|on database DBS-NAME
}
|message_level
]显示触发器
display trigger
[
!all!
|on system
|on application APP-NAME
|on database DBS-NAME
|TRIGGER-NAME
]
显示触发器假脱机
display trigger_spool
[
!all!
|on application APP-NAME
|on database DBS-NAME
|SPOOL-NAME
]
显示变量
display variable
[
!all!
|VARIABLE-NAME
|on application APP-NAME
|on database DBS-NAME
|on system
]删除应用程序
drop application APP-NAME [cascade] [force]退课计算
drop calculation CALC-NAME删除数据库
drop database DBS-NAME [force]下拉钻取
drop drillthrough URL-NAME删除筛选器
drop filter FILTER-NAME删除功能
drop function FUNC-NAME退课组
drop group GROUP-NAME删除位置别名
drop location alias LOCATION-ALIAS-NAME跌落锁
drop lock
[
!all!
|[
!on system!
|on application APP-NAME
|on database DBS-NAME
]
[!all!|held by USER-NAME]
]
删除宏
drop macro MACRO-NAME放置对象
drop object OBJ-NAME of type %OBJ-TYPE% [force]
OBJ-TYPE::=
outline
|calc_script
|report_file
|rules_file
|text
|patition_file
|lro
|selection
|wizard
|eqd
|outline_paging_file
|worksheet
|alias_table
删除分区
drop
{transparent|replicated}
partition DBS-NAME {from|to} DBS-NAME
[at HOST-NAME][force]
放置触发器
drop trigger TRIGGER-NAME删除触发器假脱机
drop trigger_spool {SPOOL-NAME|all on database DBS-NAME}卸货用户
drop user USER-NAME执行聚合构建
execute aggregate build on database DBS-NAME
using
{
views VIEW-ID VIEW-SIZE [,...] with outline_id OUTLINE-ID
|view_file VIEW-FILE-NAME
}执行聚合进程
execute aggregate process on database DBS-NAME
[stopping when total_size exceeds STOPPING-VAL]
[based on query_data]
[{enable|!disable!} alternate_rollups]execute aggregate selection
execute aggregate selection on database DBS-NAME
[
using views VIEW-ID[,...]
with outline_id OUTLINE-ID
[[!suppress!|force] display]
]
[selecting INTEGER views]
[stopping when total_size exceeds STOPPING-VAL]
[based on query_data]
[{dump|force_dump} to view_file VIEW-FILE-NAME]
[{enable|!disable!} alternate_rollups]执行分配(聚合存储)
execute allocation process on database DBS-NAME with
{
pov MDX-SET
amount ALLOC-NUMERIC
{
[amountcontext MDX-TUPLE]
[amounttimespan MDX-SET ]
}
target MDX-TUPLE
{
[targettimespan MDX-SET]
[targettimespanoptions {!divideamout!|repeatamount}]
[offset MDX-TUPLE]
[debitmember MDX-MBR]
[creditmember MDX-MBR]
}
range MDX-SET
{
[excludedrange MDX-SET]
[basis MDX-TUPLE]
[basistimespan MDX-SET]
[basistimespanoptions {splitbasis|combinebasis}]
[
share
|spread [{skip_missing|skip_zero|skip_negative},...]
]
[zeroamountoptions {skip_to_next_amount|abort}]
[zerobasisoptions
{
skip_to_next_amount
|abort
}
]
[negativebasisoptions
{
skip_to_next_amount
|abort
|absolute_value
|missing_value
|zero_value
}
]
[round
{INTEGER|MDX-NUMERIC}
{
discard errors
|errors_to_lowest
|errors_to_highest
|errors_to_location MDX-TUPLE
}
]
[{!override!|add|subtract} values]
}执行计算
execute calculation
{
CALC-NAME
|CALC-NAME on database DBS-STRING
|{CALC-STRING|default} on DBS-NAME
}
执行计算(聚合存储)
execute calculation on database DBS-NAME with
local script_file FILE-NAME pov MDX-SET sourceregion MDX-SET
{
[target MDX-TUPLE]
|[debitmember MDX-MBR]
|[creditmember MDX-MBR]
|[offset MDX-TUPLE]
}
[{!override!|add|subtract} values]导出数据
export database DBS-NAME
{
[!all!|level0|input]
data [anonymous] [in columns] to [!server!] data_file FILE-NAME[,...]
|using [!local!|server] report_file FILE-NAME to data_file FILE-NAME
}导出数据(聚合存储)
export database DBS-NAME
{
[!level0!|input]
data [anonymous] to [!server!] data_file FILE-NAME[,...]
|using [!local!|server] report_file FILE-NAME to data_file FILE-NAME
出口油槽
export databse DBS-NAME lro to
[!server!|local] directory
{DBS-EXPORT-DIR|FULL-EXPORT-DIR}导出大纲
export outline {DBS-NAME|FILE-NAME}
{
all dimensions
|list dimensions '{'DIM-NAME'}'[,...]
}
[tree|with alias_table ALT-NAME-SINGLE]
to xml_file FILE-NAME导出 query_tracking
export query_tracking DBS-NAME to
[!server!] file FILE-NAME
授予
grant
{
{create_application|create_user|no_access|administrator}
[on system]
|{no_access|manager} on application APP-NAME
|{no_access||read|write|manager} on database DBS-NAME
|filter FILTER-NAME
|execute
{
CALC-NAME
|{any|default}
[
!on system!
|on application APP-NAME
|on database DBS-NAME
]
}
to {USER-NAME|GROUP-NAME}import data
import database DBS-NAME
[using max_threads INTEGER]
data
{
from
[!local!|server]
[!text!]
data_file IMP-FILE
[using [!local!|server] rules_file IMP-FILE]
|from data_string STRING
|connect as SQL-USR identified by SQL-PASS
using [!local!|server] rules_file IMP-FILE
}
on error {{write|append}to FILE-NAME|abort}
导入数据(聚合存储)
import database DBS-NAME data
{
from
[!local!|server]
[!text!]
data_file IMP-FILE
[using [!local!|server] rules_file IMP-FILE]
|from data_string STRING
|connect as SQL-USR identified by SQL-PASS
using
{
[!local!|server] rules_file IMP-FILE
|multiple rules_file RULE-FILE-NAME[,...]
to load_buffer_block starting with buffer id BUFFER-ID
on error {write to FILE-NAME|abort}
}
|from load_buffer with buffer_id BUFFER-ID[,...]
[{!override!|add|subtract} values]
[create slice]
|override {all|incremental} data
]
}
on error {{write|append}to FILE-NAME|abort}
导入尺寸
import database DBS-NAME dimensions
{
from
[!local!|server]
[!text!] data_file IMP-FILE
using[!local!|server] rules_file IMP-FILE
[[!enforce!|suppress] verification]
|connect as SQL-USR identified by SQL-PASS
using[!local!|server] rules_file IMP-FILE
}[,...]
[
!preserve all data!
|preserve {level0|input} data
]
on error {write|append} to FILE-NAME
进口货车
import database DBS-NAME
lro from [!local!|server] directory IMPORT-DIR导入 query_tracking
import query_tracking DBS-NAME from
[!server!] file FILE-NAME
查询应用产品
query application APP-NAME get cache_size查询应用程序(聚合存储)
query application APP-NAME
{
get cache_size
|list aggregate_storage storage_info
}查询归档文件
query archive_file FILE-NAME {get overview|list disk volume}查询数据库中
query database DBS-NAME
{
get
{
active_alias_table
|attribute_info MEMBER-NAME
|attribute_spec
|currency_rate
|dbstats {dimension|data_block}
|default calculation
|member_info MEMBER-NAME
|member_calculation MEMBER-NAME
|estimated size
|performance statistics
{
kernel_io
|kernel_cache
|end_transaction
|database_synch
|database_asynch
|dynamic_calc
}
table
}
|list
{
alias_table
|alias_names in alias_table ALT-NAME-SINGLE
|lro
[
!all!
|by USER-NAME
|before DATE
|by USER-NAME before DATE
]
|{all|data|index} file information
|transactions
[
after LOG-TIME
[[force] write to file PATHNAME_FILENAME]
]
}
}
查询数据库(聚合存储)
query database DBS-NAME
{
get
{
active_alias_table
|attribute_info MEMBER-NAME
|attribute_spec
|cube_size_info
|dbstats {dimension|data_block}
|member_info MEMBER-NAME
|opg_state of %OPG-SECTION% for dimension DIM-NAME
}
|list
{
|aggregate_storage runtime_info
|aggregate_storage compression_info
|aggregate_storage group_id_info
|aggregate_storage slice_info
|aggregate_storage uncommitted_transaction_info
|alias_table
|alias_names in alias_table ALT-NAME-SINGLE
|existing_views [based on query_data
|{!all!|data|index} file information
|load_buffers
|aso_level_info
}
|{dump|force_dump}
existing_views to view_file VIEW-FILE-NAME
[based on query_data]
}
刷新定制定义
refresh custom definitions on application APP-NAME刷新轮廓
refresh outline on {transparent|replicated}
partition DBS-NAME {to|from} DBS-NAME
[at HOST-NAME]
{
purge outline change_file
|apply all
|apply nothing
|%OTL-CHANGE-SPEC%
}
OTL-CHANGE-SPEC::=
apply on dimension
{add|delete|rename|update|move}[...,]
apply on member
{add|delete|rename|move}[...,]
apply on member_property {
account_type
|alias
|calc_formula
|consolidation
|currency_conversion
|currency_category
|data_storage
|uda
}[...,]刷新复制的分区
refresh replicated partition DBS-NAME
{to|from} DBS-NAME
[at HOST-NAME]
[[!all!|updated]data]