使用 MaxL 创建聚合存储样例

您可能希望创建块存储 (BSO) 多维数据集的聚合存储 (ASO) 版本。以下示例 MaxL 脚本创建、加载数据并聚合基于 Sample.Basic 的 Essbase 聚合存储数据库。

login $1 $2;

spool on to 'maxl_log.txt';

create or replace application SampleAS using aggregate_storage 
 comment 'aggregate storage version of Sample';

create database SampleAS.Basic2 
 comment 'aggregate storage version of Sample Basic';

create or replace outline on aggregate_storage database SampleAS.Basic2 
 as outline on database Sample.Basic;

alter database SampleAS.Basic2 initialize load buffer with buffer_id 1;

import database SampleAS.Basic2 data 
 from server data_file '/catalog/users/catalogUser/Data.txt' 
 to load_buffer with buffer_id 1 
 on error abort;

import database SampleAS.Basic2 data from load_buffer with buffer_id 1;

execute aggregate process on database SampleAS.Basic2 
 stopping when total_size exceeds 1.9;

spool off;

logout;