It depends on how the "read privileges" were granted. If schema A has permission via a role, then that is exactly what will happen: you will be able to select from chema B using an SQL query in SQL*Plus or TOAD or SQL Developer, etc. But, in order to do this same select in PL\SQL, you must have a direct grant from schema B to schema A for this table, since PL\SQL does *NOT* use role-based security. Why not? I don't know, but that's the documented way that Oracle security is designed to work .
Main Topics
Browse All Topics





by: ytarkanPosted on 2009-10-10 at 00:36:56ID: 25541191
Your PLSQL code is correct. Are you sure you can log in using SchemaA user and select from SchemaB.Employee_Tbl ?!
This is certainly an access right problem.