How to grant privileges on trigger and synonyms in oracle 11g

31,853

But the problem is this query is not working for trigger and synonyms. so anyone please suggest me how can I grant privileges on triggers and synonyms to user SCOTT.

  • TRIGGER - You cannot t give grants for trigger. There is no such thing. Triggers fire automatically whenever the trigger event is done on the table on which the the trigger is created. You only need to grant privilege on the table.

  • SYNONYM - You just create a synonym for the schema.table and grant privilege on the table such that other users doesn't have to fully qualify the table and just use the synonym instead.

Share:
31,853
Mamta Vyas
Author by

Mamta Vyas

Updated on December 23, 2020

Comments

  • Mamta Vyas
    Mamta Vyas over 3 years

    I have created a sample application to get schema of all objects and generate SQLfile, so I simply created two user, user 'SYSTEM' and 'SCOTT' , and user SYSTEM grant all privileges to access some of tables,views,function etc. to user SCOTT, for grant privileges to user SCOTT use following oracle query

    GRANT ALL ON table_name to username
    

    But the problem is this query is not working for trigger and synonyms. so anyone please suggest me how can I grant privileges on triggers and synonyms to user SCOTT.