Guidelines for writing Report Chart SQL Queries in RSA Identity Governance & Lifecycle
Originally Published: 2016-06-07
Article Number
Applies To
RSA Version/Condition: All
Issue
Resolution
- When testing the SQL query in Oracle SQL Developer or another query tool, connect to the database with user ACMDB. The RSA Identity Governance & Lifecycle report engine uses ACMDB for the database connection. To view the same information in the AVUSER schema, prefix the tables described in the RSA Identity Governance & Lifecycle Public Database Schema Reference with PV_. For example, table USER would be PV_USER.
NOTE: This is also true for Tabular Reports (Reports > Tabular).
- When creating/editing the query in a Report Chart, because the report engine uses the ACMDB schema, to use tables in the AVUSER schema, they need to be both prefixed with PV_ and with the AVUSER username. For example, table USER would become AVUSER.PV_USER in the query.
NOTE: This is also true for Tabular Reports (Reports > Tabular).
- Surround the entire SQL query with parenthesis and embed the query as a sub-select statement in the form (SELECT * FROM (your_query)). Sometimes only the outer parentheses are sufficient but the outer select allows for ORDER BY and other SQL clauses that may cause issues so it is a better practice to embed yoiur query in its own set of parentheses.
EXAMPLE: (connected as user ACMDB)
Query tested in SQL Query tool:
Query tested in SQL Query tool:
SELECT
current_state AS state,
count(1) AS TOTAL_COUNT
FROM
change_request cr
WHERE
cr.request_date_no_time >= trunc(current_date) - 30
GROUP BY
current_state
ORDER BY current_state
Query reformatted for a Report Chart Query (Reports > Charts > {Chart name} > Edit > Query tab)
(SELECT * FROM
(
SELECT
current_state AS state,
count(1) AS TOTAL_COUNT
FROM
change_request cr
WHERE
cr.request_date_no_time >= trunc(current_date) - 30
GROUP BY
current_state
ORDER BY current_state
)
)
Related Articles
Intermittently SQL select node queries are seen in runtime in RSA Identity Governance & Lifecycle 14Number of Views SQL Query to obtain directly assigned entitlements for a user 34Number of Views How to query a public database schema table for Segregation of Duties (SOD) violations in RSA Identity Governance & Lifecycle 109Number of Views How to enable DEBUG logging to show SQL queries generated by RSA Identity Governance & Lifecycle 98Number of Views 'ORA-00942: Table or View does not exist' error when referencing a custom table/view in a report query in RSA Identity Gov… 233Number of Views
Trending Articles
Downloading RSA Authentication Manager license files or RSA Software token seed records RSA MFA Agent 2.3.6 for Microsoft Windows Installation and Administration Guide Quick Setup Guide - Passwordless Authentication in Windows MFA Agent for Active Directory Mandatory Certificate Upgrade Required by 6th October 2025 for RSA MFA Agent for PAM, RSA MFA Agent for Apache, and Third … RSA Authentication Manager 8.9 Release Notes (January 2026)
Don't see what you're looking for?