IBM Support

You must have the correct database access permissions to run Cognos reports

Education


Abstract

If you do not have the correct access permissions, when you try to access Cognos reports from the IBM Atlas Policy Suite application, you receive the following error message: RQP-DEF-0177 An error occurred while performing operation 'sqlPrepareWithOptions' status='-9' error

Content

Problem:
Attempting to run a Cognos report using an Oracle database results in the following error message: An error occurred while performing operation 'sqlPrepareWithOptions' status='-9' 

Symptom:
When you run a report from your application, you see the following error on your Cognos viewer page:
UDA-SQL-0107 A general exception has occurred during the operation "prepare".ORA-00942: table or view does not exist RSV-SRV-0042 Trace back: RSReportService.cpp(826): QFException: CCL_CAUGHT: RSReportService::process() RSReportServiceMethod.cpp(259): QFException: CCL_RETHROW: RSReportServiceMethod::process(): reportEditQuerySpecification_Request RSASyncExecutionThread.cpp(789)  

Cause:
The user that is attempting to run the reports, from the IBM Atlas Policy Suite application, does not have the correct permissions on the database objects, such as table,view,procedures, and functions.

Resolving the problem:
Grant the user permissions on the required views, tables, procedure, and functions.

Example for IBM Atlas Policy Suite V6 and later with IBM Cognos 10.2:
Atlas report user: PSSRPTUSER
Cognos user: cognos_user

Ensure that cognos_user has an account that is unlocked and is not expired. If account is locked or expired, complete the following steps to resolve the issue:

  1. Log into sqlplus as the system administrator.
  2. Run the following command: C:\> sqlplus sys/admin@orcl as sysdba 
  3. Enter the following command: sql> alter user cognos_user identified by cognos_user; 
  4. Enter the following command: sql> alter user cognos_user account UNLOCK; 

Grant permissions to the PSSRPTUSER as shown in the following example:
Sqlplus schemauser/schemauser_password@oracle_instance @grant_parpt_syn_priv.sql PSSRPTUSER 

For other products, ensure that you grant permssions for the required user on the schema for all of the required tables, views, and synonyms.

[{"Product":{"code":"SSXPJK","label":"Atlas Policy Suite"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Reports","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"6.0.3;6.0.2;6.0.1.5;6.0.1.4","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Product":{"code":"SS5JP8","label":"Atlas eDiscovery Process Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Reports","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"6.0.2;6.0.1.4","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
22 March 2023

UID

swg27039809