Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ACCESSIBLE BY clause issue with PIPELINED functions

aBroMay 29 2017 — edited May 30 2017

In out application we want to separate data access from tables in a separate DA packages which would be called from API packages later on, so that no direct data access would be done form API packages. To get all the rows from one configuration table a pipelined function was created in DA package. Everything seemed to be working fine until we decided to implement a ACCESSIBLE BY clause in our DA package. Once we tried to call PIPELINED function in API package, we got error "PLS-904: insufficient privilege to access object"

I have created a small demo for this problem on Oracle Live SQL - https://livesql.oracle.com/apex/livesql/file/content_E16S1I95O85AURPDKVKNDQSOR.html

Is there any workaround (except for removing ACCESSIBLE BY clause or changing function form PIPELINED to normal one) to this issue?

This post has been answered by Solomon Yakobson on May 29 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 27 2017
Added on May 29 2017
3 comments
638 views