oracle - Querying OracleAQ views from a package in a different schema -
i have oracleaq multiconsumer queue owned schema a. explained in oracle doc, there views (schema.aq$table_name*) check status of queue table.
i can query these views schema through plain sql or pl/sql code, not if code wrapped inside package. package body refuses compile ora-00942: table or view not exist
the second schema has necessary rights since can query view outside package.
i performed following successfully:
- created aq table (called my_q) in schema a
- granted "select" privs schema b view aq$my_q
- created package (called q_pkg) in schema b selects records aq$my_q
- executed q_pkg in schema b
not sure (without seeing schema information) whether there priv higher in priority restricting aq view being read. stackoverflow post shows information on "displaying" user's privs.
Comments
Post a Comment