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
SQL Query to obtain directly assigned entitlements for a user 34Number of Views How to use the HXTT Text (CSV) Pure Java JDBC Driver to test SQL Queries against a CSV text file data source in RSA Identi… 314Number of Views A change request to remove role access from a user tries to remove AD group (indirect access from role) which no longer ex… 54Number of Views RSA Identity Governance & Lifecycle aveksaServer.log file filling with warning messages "Logging event having message" and… 395Number of Views How to run a SQL query for Authentication Manager 8.0 or 8.1 and write the output to a file for support 780Number of Views
Trending Articles
RSA Authentication Manager 8.9 Setup and Configuration Guide How to 'Trust' the RSA Authentication Manager Security Console Self-Signed Root CA certificate and prevent Cert warnings. RSA Authentication Manager 8.9 Release Notes (January 2026) Configure RSA Authentication Manager as a Secure Proxy Server for Cloud Access Service RSA Authentication Manager Upgrade Process
Don't see what you're looking for?