使用 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;