Skip to Content

How to GRANT the Analytic Priviledge _SYS_BI_CP_ALL using SQL?

I'm trying to define a user named LUMIRA that can be used as a least privileged user for accessing Analytic Views that I've created for use with Lumira.

So far, I did the following to define access to the various schemas

CREATE USER LUMIRA PASSWORD Hana1234;

GRANT SELECT ON SCHEMA "WIKIDATA" TO LUMIRA;

GRANT SELECT ON SCHEMA "_SYS_BI" TO LUMIRA;

GRANT SELECT ON SCHEMA "_SYS_BIC" TO LUMIRA;

GRANT EXECUTE ON "SYS"."REPOSITORY_REST" TO LUMIRA;

The problem is I can't figure out the syntax for granting the _SYS_BI_CP_ALL Analytic Privilege. I was able to do this in the UI as shown below.

This is what the privilege looks like in GRANTED_PRIVILEGES.

I'm using SPS5.

Thanks in advance,

Bill

AV01.png (6.9 kB)
AV02.png (10.5 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Sep 10, 2013 at 06:10 PM

    I figured it out by looking at the SQL Plan Cache after assigning the Analytic Privilege using the UI. I saw a statement that looked like this:

    call GRANT_ACTIVATED_ANALYTICAL_PRIVILEGE(?,?);

    Knowing that the ? are markers for parameters, I guessed that the command should look like this.

    call GRANT_ACTIVATED_ANALYTICAL_PRIVILEGE('_SYS_BI_CP_ALL','LUMIRA1');

    Sure enough, it worked!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.