home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.oracle      Overblown overpriced overengineered SHIT      2,288 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 663 of 2,288   
   Frank to DA Singh   
   Re: Ora-942 in stored procedure   
   10 Nov 03 21:44:39   
   
   From: fbortel@home.nl   
      
   DA Singh wrote:   
      
   > Hi,   
   > I have a stored procedure that tries to select from a table owned by   
   > another schema -   
   > create or replace procedure schema1.procedure1   
   > as   
   > insert into table2   
   > select col1, col2   
   > from schema2.table1;   
   > end;   
   > /   
   >   
   > And I get the Ora-942 error - Table or view does not exist.   
   > I can select from the table from the SQL prompt, when logged in as   
   > schema1.   
   > Are there some permissions that need to be set?   
   > The Oracle version is 9.2.0.3.0   
   > Thanks,   
   > D A Singh   
   As always - grant select on table1 to    
   roles are _not_ active in PL/SQL, they are in SQL.   
      
   --   
   Regards, Frank van Bortel   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca