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 13Number of Views How to enable DEBUG logging to show SQL queries generated by RSA Identity Governance & Lifecycle 96Number of Views Access Manager - Multiple vulnerabilities reported in Spring Source "spring-core-3.0.3.RELEASE.jar" - False Positives 56Number of Views How to query a public database schema table for Segregation of Duties (SOD) violations in RSA Identity Governance & Lifecycle 101Number of Views Error "Unable to resolve trusted user because multiple matching trusted users exist" on RSA Authentication Manager 8.x for… 225Number of Views
Trending Articles
RSA Authentication Manager Upgrade Process RSA Release Notes for RSA Authentication Manager 8.8 RSA RADIUS Server service failed to start in the RSA Authentication Manager 8.1 Operations Console Microsoft Entra ID External MFA - Relying Party Configuration Using OIDC - RSA Ready Implementation Guide RSA Release Notes: Cloud Access Service and RSA Authenticators
Don't see what you're looking for?