on 2013 Sep 10 5:46 PM
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
Hi Bill
_SYS_BI_CP_ALL is an analytic privilege itself.
It can only be granted by calling the procedure GRANT_ACTIVATED_ANALYTICAL_PRIVILEGE:
call GRANT_ACTIVATED_ANALYTICAL_PRIVILEGE ('_SYS_BI_CP_ALL', 'LUMIRA');
and you're done.
- Lars
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.