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:

  1. created aq table (called my_q) in schema a
  2. granted "select" privs schema b view aq$my_q
  3. created package (called q_pkg) in schema b selects records aq$my_q
  4. 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

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -