How to disable direct access to Spotfire Data Virtualization cache target tables?

book

Article ID: KB0138642

calendar_today

Updated On:

Products Versions
TIBCO Data Virtualization 8.8.1 and above

Description

This article provides step-by-step instructions on how to prevent users from directly querying cache target tables in Spotfire Data Virtualization (SDV / TDV). It covers the necessary configuration adjustments required to restrict direct backend access while ensuring that cached views and virtualized queries continue to function correctly.

 

 

Environment

All supported Operating Systems

Resolution

The direct access to SDV cache target tables can be disabled by setting the SDV configuration 'Disable Direct Cache Table Access' to true - 

image.png

Note - 

- This configuration is set to false by default. 

- Changing the value of this configuration will apply to all the SDV nodes in the active cluster. 

- No SDV Server restart is required for the configuration changes to take effect. 

 

Now, accessing the cache target table will fail with below error -> 

Error [qengine--1]: Unable to execute: Select * from /shared/examples/ds_orders/tutorial/employees_cache_table FETCH NEXT 1000 ROWS ONLY
Direct access to cache table '/shared/examples/ds_orders/tutorial/employees_cache_table' is not allowed. On line 1, column 15.  [parser-2900560] [Log ID: c4377fd5-fc20-401c-a1f4-e990f8395b76]

 

Screenshot of the error for reference :

image.png

 

Issue/Introduction

How to disable direct access to Spotfire Data Virtualization cache target tables?