Re: Cannot create a new table from PL/SQL
From: Robert W. Swisshelm <swisshelm_at_lilly.com>
Date: 1996/11/19
Message-ID: <3291AD1B.3EE1_at_lilly.com>#1/1
Date: 1996/11/19
Message-ID: <3291AD1B.3EE1_at_lilly.com>#1/1
When you are running a stored procedure, you only have privileges that are granted to you explicitly. You do not get privileges that are granted through a role.
So, if your account has CREATE TABLE through a role, you can't use that command in a stored procedure.
Your DROP TABLE command worked because you can always drop one of your own tables. You don't need a special privilege for that.
So, a quick and dirty way to solve your problem is to grant CREATE TABLE explicitly to your account.
-- Bob Swisshelm Eli Lilly and Company swisshelm_at_lilly.comReceived on Tue Nov 19 1996 - 00:00:00 CET