These schema's make me want to screama!
July 3, 2006 9:32 AM
Subscribe
Calling all SQL / DBA / code monkey brainiac's! Please help me understand what is happening in this mess ....
Here is the issue I am having....
Currently, I have developed a package in PL/SQL. This package resides under both schema A and schema B. The package creates temporary tables under whichever schema it is being called. The only difference between the two copies of the packages is that each one looks at the ALL_TAB_COLS table to identify the temporary tables that have been created under the schema from which the package was ran. Additionally, this package queries tables from schema B, no matter which schema it is being called from.
The issue that I am having is that this package runs fine from schema A, but I am encountering issues when trying to run it from schema B. The error I am getting is a "table or view" does not exist error. This occurs when I try to run a create table statement (with a SELECT) using EXECUTE IMMEDIATE. All of the tables in the create table statement exist and user B (owner of schema B) has read permissions on them. I am confused as to why this issue is occuring from schema B when schema B owns all of the tables in the create table statement, yet there are no issues when running from schema A, which only has read access to the tables in the create table statement.
posted by AllesKlar to computers & internet (8 comments total)
1 user marked this as a favorite
posted by AllesKlar at 9:35 AM on July 3, 2006