ファイル・システムでのデータソース・キャッシュの作成
BIサーバーによる直接アクセスのために、データソース・キャッシュのデータをファイル・システムに格納できます。これはデフォルトの構成です。これは、アップロードしたスプレッドシート・ファイルなど、小規模から中規模のデータソースに適しています。大規模なデータソースの場合は、データソース・キャッシュをデータベースに構成すると、より優れたパフォーマンスを得られます。
-
BIサーバーがデータソースに対する論理SQL文を受け取ります。
-
BIサーバーはデータソースのメタデータを取得します。メタデータの内容を使用して、BIサーバーは、データソースのデータをリクエストするかわりに、問合せへの応答に使用可能な既存のデータソース・キャッシュ・エントリが存在するかどうかをチェックします。
-
いずれのデータソースにも既存のデータソース・キャッシュ・エントリがない場合、BIサーバーは、データソースのデータをキャッシュにロードするスレッドを開始します。
-
論理SQL文(および同じデータソースのデータを要求する他のすべての同時論理SQL文)は、スレッドの終了を待機します。
-
スレッドの実行が完了すると、新たにシードされたデータソース・キャッシュ・エントリに依存するすべてのサブリクエストでこのキャッシュが使用されます。
ファイル・システムでデータソース・キャッシュを構成します。
-
NQSConfig.INI
ファイルのXSA_CACHE
セクションを次のように変更します。[XSA_CACHE] ENABLE = YES; # The schema and connection pool where the XSA data is cached. # Set PHYSICAL_SCHEMA to ""."" to use file-based XSA cache. # This indicates that a file-based XSA cache should be used by BI Server and the value of the CONNECTION_POOL parameter should be ignored. PHYSICAL_SCHEMA = "".""; # "<Database>"."<Schema>"; CONNECTION_POOL = "".""; # "<Database>"."<Connection Pool>"; # The path to the location where cache data files is persisted. # This is only used if file-based XSA cache is configured. # If a relative path is specified, it is relative to: # BI_DOMAIN/servers/obisn STORAGE_DIRECTORY = "storage"; # location where the cache data files are stored # The maximum space allocated in the schema for the cache data. MAX_TOTAL_SPACE = 5 GB; # The maximum size allowed for a single XSA cache entry. MAX_CACHE_ENTRY_SIZE = 200 MB; # The path to the location where descriptor files of the cache data is persisted. # If a relative path is specified, it is relative to: # BI_DOMAIN/servers/obisn DESCRIPTOR_STORAGE_PATH = "xsacache"; # location where the cache metadata files are stored # The number of threads available for seeding XSA cache entries. CACHE_SEED_THREAD_RANGE = 0-40; CACHE_SEED_THREAD_STACK_SIZE = 0; # default is 256 KB (32 BIT mode), 1 MB (64 BIT mode), 0 for default
-
BIサーバーを再起動します。
-
データソース・キャッシュが正しく構成されていることを検証するには、
obis1-diagnostic.log
をチェックします。サーバー起動時に、次のようなエントリを探します。[2017-01-13T14:41:30.715-07:00] [OracleBIServerComponent] [NOTIFICATION:1] [] [] [ecid: ] [tid: 81c8] [101043] External Subject Area cache with internal storage is started successfully using configuration from the repository with the logical name Star. [2011-01-13T14:41:30.716-07:00] [OracleBIServerComponent] [NOTIFICATION:1] [] [] [ecid: ] [tid: 81c8] [101017] External Subject Area cache has been initialized. Total number of entries: 0 Used space: 0 bytes Maximum space: 107374182400 bytes Remaining space: 107374182400 bytes. Cache table name prefix is XC.
データソース・キャッシュを有効にすると、NQSConfig.INI
のXSA_CACHE
セクションのSTORAGE_DIRECTORY
パラメータの定義に従って、ファイル・システムにデータソースのデータが格納されます。メタデータは、NQSConfig.INI
のXSA_CACHE
セクションにあるDESCRIPTOR_STORAGE_PATH
パラメータで指定された、ローカル・ファイル・システムのディレクトリに格納されます。パフォーマンスを向上させるには、データソースのデータおよびデータソース・キャッシュのメタデータ・ファイルをRAMディスクに配置します。