Creation of an Admin Exceptions Tabular Report fails with 'ORA-01031: insufficient privileges' error in RSA Identity Governance & Lifecycle
Originally Published: 2015-06-08
Article Number
Applies To
RSA Version/Condition: All
Platform (DB): Oracle
Issue
com.aveksa.server.runtime.ServerException: com.aveksa.server.db.PersistenceException: com.aveksa.server.db.PersistenceException: java.sql.SQLSyntaxErrorException: ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_SESSION", line 122
ORA-06512: at "AVUSER.REPORTING_PKG", line 587
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_SESSION", line 122
ORA-06512: at "AVUSER.REPORTING_PKG", line 587
ORA-06512: at line 1
The aveksaServer.log file ($AVEKSA_HOME/wildfly/standalone/log/aveksaServer.log) has the same error:
07/22/2020 14:49:29.679 INFO (default task-16) [com.aveksa.server.db.persistence.PersistenceServiceProvider] executeCallableStatement giving up after hitting SQLException: ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_SESSION", line 122
ORA-06512: at "AVUSER.REPORTING_PKG", line 587
ORA-06512: at line 1
07/22/2020 14:49:29.687 ERROR (default task-16) [com.aveksa.server.report.Report] SQL: SELECT * FROM V_AVR_ADMIN_EXCEPTIONS WHERE 1=1
com.aveksa.server.runtime.ServerException: com.aveksa.server.db.PersistenceException: com.aveksa.server.db.PersistenceException: java.sql.SQLSyntaxErrorException: ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_SESSION", line 122
ORA-06512: at "AVUSER.REPORTING_PKG", line 587
ORA-06512: at line 1
at com.aveksa.server.report.Report.fillReport(Report.java:2025)
at com.aveksa.server.report.Report.fillReportWCleanup(Report.java:1975)
at com.aveksa.server.report.Report.fillReportForPreview(Report.java:1709)
at com.aveksa.server.report.Report.fillReportForPreview(Report.java:1696)
at com.aveksa.gui.objects.report.GuiReport.getPreview(GuiReport.java:940)
at com.aveksa.gui.pages.report.report_definition.edit.tabular.BaseEditTabularReportWizard.updatePreview(BaseEditTabularReportWizard.java:203)
at com.aveksa.gui.pages.report.report_definition.edit.tabular.BaseEditTabularReportWizard.handlePreview(BaseEditTabularReportWizard.java:147)
at com.aveksa.gui.pages.report.report_definition.edit.tabular.BaseEditTabularReportWizard.handleRequest(BaseEditTabularReportWizard.java:109)
at com.aveksa.gui.pages.PageManager.forwardRequest(PageManager.java:609)
at com.aveksa.gui.pages.PageManager.handleRequest(PageManager.java:340)
at com.aveksa.gui.pages.PageManager.handleRequest(PageManager.java:271)
at com.aveksa.gui.core.MainManager.handleRequest(MainManager.java:187)
at com.aveksa.gui.core.MainManager.doGet(MainManager.java:131)
at com.aveksa.gui.core.MainManager.doPost(MainManager.java:433)
ORA-06512: at "SYS.DBMS_SESSION", line 122
ORA-06512: at "AVUSER.REPORTING_PKG", line 587
ORA-06512: at line 1
07/22/2020 14:49:29.687 ERROR (default task-16) [com.aveksa.server.report.Report] SQL: SELECT * FROM V_AVR_ADMIN_EXCEPTIONS WHERE 1=1
com.aveksa.server.runtime.ServerException: com.aveksa.server.db.PersistenceException: com.aveksa.server.db.PersistenceException: java.sql.SQLSyntaxErrorException: ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_SESSION", line 122
ORA-06512: at "AVUSER.REPORTING_PKG", line 587
ORA-06512: at line 1
at com.aveksa.server.report.Report.fillReport(Report.java:2025)
at com.aveksa.server.report.Report.fillReportWCleanup(Report.java:1975)
at com.aveksa.server.report.Report.fillReportForPreview(Report.java:1709)
at com.aveksa.server.report.Report.fillReportForPreview(Report.java:1696)
at com.aveksa.gui.objects.report.GuiReport.getPreview(GuiReport.java:940)
at com.aveksa.gui.pages.report.report_definition.edit.tabular.BaseEditTabularReportWizard.updatePreview(BaseEditTabularReportWizard.java:203)
at com.aveksa.gui.pages.report.report_definition.edit.tabular.BaseEditTabularReportWizard.handlePreview(BaseEditTabularReportWizard.java:147)
at com.aveksa.gui.pages.report.report_definition.edit.tabular.BaseEditTabularReportWizard.handleRequest(BaseEditTabularReportWizard.java:109)
at com.aveksa.gui.pages.PageManager.forwardRequest(PageManager.java:609)
at com.aveksa.gui.pages.PageManager.handleRequest(PageManager.java:340)
at com.aveksa.gui.pages.PageManager.handleRequest(PageManager.java:271)
at com.aveksa.gui.core.MainManager.handleRequest(MainManager.java:187)
at com.aveksa.gui.core.MainManager.doGet(MainManager.java:131)
at com.aveksa.gui.core.MainManager.doPost(MainManager.java:433)
. . .
Please refer to RSA Knowledge Base Article 000030327 -- Artifacts to gather in RSA Identity Governance & Lifecycle to find the location of the aveksaServer.log file for your specific deployment, if you are on a WildFly cluster or a non-WildFly platform. The aveksaServer.log may also be downloaded from the RSA Identity Governance & Lifecycle user interface (Admin > System > Server Nodes tab > under Logs.)
Cause
In the case of a local database supplied by RSA, the AV_REPORT_CONTEXT is created by default. This issue can occur if the AV_REPORT_CONTEXT has been removed.
In the case of a remote database supplied by the customer, this issue can occur if the AV_REPORT_CONTEXT was not created as per the instructions in the RSA Identity Governance & Lifecycle Database Setup and Management Guide.
Resolution
- Login in to a SQL tool such as SQL*Plus or SQL Developer as user SYS and execute the following SQL command:
create or replace context AV_REPORT_CONTEXT using AVUSER.Reporting_Pkg;
- To verify that the report context has been created, execute the following:
select namespace from dba_context;
The output should return a namespace value of AV_REPORT_CONTEXT.
See the RSA Identity Governance & Lifecycle Database Setup and Management Guide for your version of RSA Identity Governance & Lifecycle for more information on setting up the report context.
Related Articles
How to insert a branding logo in Tabular Reports on RSA Via L&G 18Number of Views RSA Authentication Manager 8.3 system monitor reports "SSL Socket Connection Error" from the RSA Authentication Agent 7.2 … 112Number of Views Duplicate column headers exist in csv-formatted report email attachments in RSA Identity Governance & Lifecycle 25Number of Views RSA SecurID TokenConverter cannot write to output file 56Number of Views The documentation for enabling the RSA Database Security Manager adapter for SQL Server 2005 discusses the requirement for… 5Number of Views
Trending Articles
Passwordless Authentication in Windows MFA Agent for Active Directory – Quick Setup Guide RSA Authentication Manager 8.9 Release Notes (January 2026) RSA Authentication Manager Upgrade Process RSA Authentication Manager 8.7 SP2 Setup and Configuration Guide An example of SSO using SAML and ADFS with RSA Identity Management and Governance 6.9.x
Don't see what you're looking for?