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
In RSA Identity Governance and Lifecycle, the Vaild Reply Answers are not displayed in the Approval Request email. 127Number of Views AM 8.6 RADIUS Pre-Migration Script FAILURES: Error while exporting the trusted root certificate 239Number 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 773Number 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… 309Number of Views System down with Initialization Status 'ORA-06502: PL/SQL:numeric or value error: raw variable length too long' error afte… 164Number of Views
Trending Articles
Quick Setup Guide - Passwordless Authentication in Windows MFA Agent for Active Directory RSA Authentication Manager 8.9 Release Notes (January 2026) Artifacts to gather in RSA Identity Governance & Lifecycle RSA Governance & Lifecycle 8.0.0 Administrators Guide RSA Governance & Lifecycle 8.0.0 Installation Guide
Don't see what you're looking for?