PANTHEON™ Help

 Toc
 PANTHEON Help - Welcome
[Collapse]PANTHEON
 [Collapse]Guides for PANTHEON
  [Expand]Guide for PANTHEON
  [Expand]Guide for PANTHEON Retail
  [Expand]Guide for PANTHEON Vet
  [Expand]Guide for PANTHEON Farming
 [Collapse]User Manuals for PANTHEON
  [Collapse]User Manual for PANTHEON
   [Collapse]Getting Started
     Dictionary of terms
     First steps with PANTHEON
    [Expand]Using PANTHEON at Tecta, a fictional company
    [Expand]Instructions for Ensuring Compliance of PANTHEON with SAS
    [Expand]PANTHEON Installation
    [Expand]PANTHEON System
    [Expand]PANTHEON Basics
    [Expand]PANTHEON Help
    [Expand]Materials and Goods Movements
    [Expand]Assigning Identifiers
    [Expand]Frequently asked questions about Pantheon (F.A.Q.)
    [Collapse]Archive
     [Expand]PANTHEON Editions
      Installing PANTHEON on Linux and Oracle Database
     [Expand]eDocumentation
     [Expand]eInvoice
     [Expand]Workflow
     [Expand]Backup
     [Collapse]Get.start
      [Expand]Duplicates
       Windows 7
       SQL Server
      [Expand]ODBC
       SQL Server Agent
       Windows Vista
       Slabšanje performans MS-SQL strežnika
      [Collapse]Row Level Security
        How RLS works in practice
        Upgrade
        Database
        Code changes
        Troubleshooting
        ARES - RLS Compatibility Mode
        RLS Questions and Answers
       MS SQL Server Installation
      [Expand]Task Scheduling
       PANTHEON System Environment
      [Expand]Hardware
       Installation types on different network configurations
      [Expand]Datalab Utilities
       Installation
       On-premises installation
       PANTHEON Cloud installation
       Ordering and setting eBusiness services
       One-user installation of PANTHEON Cloud
       Network installation of PANTHEN Cloud
       PANTHEON Client Setup Wizard
     [Expand]To-do
     [Expand]End-User License Agreement
      Introductory word
     [Expand]Referential integrity (RI)
      eExchange
      SMS notifications
   [Expand]User Manual for eBusiness
   [Expand]Settings
   [Expand]Orders
   [Expand]Goods
   [Expand]Manufacturing
   [Expand]Service
   [Expand]Help
   [Expand]Personnel
   [Expand]Financials
   [Expand]Analytics
  [Expand]User Manual for PANTHEON Retail
  [Expand]User manual for PANTHEON Vet
  [Expand]User Manual for PANTHEON Farming
[Collapse]PANTHEON Web
 [Collapse]Guides for PANTHEON Web
  [Expand]Guide for PANTHEON Web Light
  [Expand]Guide for PANTHEON Web Terminal
  [Expand]Guide for PANTHEON Web Legal
  [Expand]Old products Archive
 [Collapse]User Manuals for PANTHEON Web
  [Expand]Getting started PANTHEON Web
  [Expand]User Manual for PANTHEON Web Light
  [Expand]User Manual for PANTHEON Web Terminal
  [Expand]User Manual for PANTHEON Web Legal
  [Expand]Old products Archive
[Collapse]PANTHEON Granules
 [Collapse]Guides for PANTHEON Granules
  [Expand]Personnel Granule
  [Expand]Travel Orders Granule
  [Expand]Documents and Tasks Granule
  [Expand]Dashboard Granule
  [Expand]B2B Orders Granule
  [Expand]Field Service Granule
  [Expand]Fixed Assets Inventory Granule
  [Expand]Warehouse Inventory Granule
 [Collapse]User Manuals for PANTHEON Granules
  [Expand]Getting started
  [Expand]Personnel Granule
  [Expand]Travel Orders Granule
  [Expand]Documents and Tasks Granule
  [Expand]B2B Orders Granule
  [Expand]Dashboard Granule
  [Expand]Field Service Granule
  [Expand]Fixed Assets Inventory Granule
  [Expand]Warehouse Inventory Granule
  [Expand]Archive
[Expand]User Site

Load Time: 406.2384 ms
"
  1000002258 | 221881 | 373968 | Updated
Label

Troubleshooting

              

 

Users with admin rights can modify RLS security on PANTHEON database.

  1. Create Flat Tables, RLS functions and security policies
  2. Drop RLS on database (clear all)
  3. Sample to select all data without checking permissions
  4. Check if RLS is enabled on a PANTHEON database

1. Create Flat Tables, RLS functions and security policies


[dbo].[pPA_RLSCreate]

  1. Create RLS flat tables from script in RLS scheme
    SQL Command:
    Exec [dbo].[pPA_RLSFlatTablesPrepare]
  2. Fill all flat tables (data from t%usersecurity tables to RLS tables)
    SQL Command:
    Exec [dbo].[pPA_RLSFlatTablesFill]
  3. Create all RLS inline table valued functions used in predicates
    SQL Command:
    Exec [dbo].[pPA_RLSCreateFunctions]
  4. Fill data needed to create Security Policies for tables
    SQL Command:
    Exec [dbo].[pPA_SetRLSFunctionPolicyFill]
  5. Create after-insert triggers for changes on t%usersecurity tables
    SQL Command:
    Exec [dbo].[pPA_RLSCreateTriggers]
  6. Enable/disable all policies to apply RLS to database:

SQL Command:
Exec pPA_RLSSecurityPoliciesState 'ON';
Exec pPA_RLSSecurityPoliciesState 'OFF';

Exec pPA_RLSSecurityPoliciesState 'ON', 'tHE_Move';
Exec pPA_RLSSecurityPoliciesState 'OFF', 'tHE_Move';

 

2. Drop RLS on database (clear all)

 

SQL Command: Exec [dbo].[pPA_RLSDrop]

  1. DROP SECURITY POLICY
  2. DROP Function [RLS]
  3. DROP Triggers: exec pPA_RLSCreateTriggers 'F'
  4. DROP table [RLS]
  5. Disable all policies to apply LS to database: Exec pPA_RLSSecurityPoliciesState 'OFF';

 

3. Sample to select all data without checking permissions

 

SQL Command:
execute as user = 'RLS_ALL'
select * from tHE_Move
revert

 

4. Check if RLS is enabled on a PANTHEON database

 

SQL Command:
select * from [dbo].[fPA_RLSEnabled]()

 


 

Rate this topic
Was this topic usefull?
Comments
Comment will also bo visible in forum!