Quantcast
Viewing all articles
Browse latest Browse all 3585

Re: insufficient privilege: Not authorized

Yes, i've also mentioned another thread, where the exact required steps are given. i am just copy pasting the solution content of the thread by adding some additional comments for your reference:

 

1. create a role in the .xsprivileges file // create the privileges file: ".XSPRIVILEGES"

{

"privileges": [{

"name": "Execute",

"description": "Basic usage privilege"

}]

}

 

2. add the sql object permission into the user <role filename>.hdbrole: //create the role file "<role filename>.hdbrole"

sql object <account>.<package>::Person: SELECT, INSERT, UPDATE,DELETE;

sql object <account>.<package>::PersonId: SELECT; /* sequence for key generation */

 

3. execute // grant role to your user

call HCP.HCP_GRANT_ROLE_TO_USER('<account>.<package>::<role filename>','<user>')

Or use this:

call "HCP"."HCP_GRANT_ACTIVATED_ROLE"('XXROLENAMEXX');

 

CALL "HCP"."HCP_GRANT_SELECT_ON_ACTIVATED_OBJECTS"

 

4. execute the below if you make changes to the roles

CALL "HCP"."HCP_SYNCHRONIZE_ROLES"


Viewing all articles
Browse latest Browse all 3585

Trending Articles