Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Anything less than CREATE ANY TABLE?
bsand..._at_gmail.com wrote:
> Is there a way to allow a user to be able to create/drop a table in
> another user's schema without having the CREATE ANY TABLE and DROP
ANY
> TABLE privileges? Is there a way to just grant CREATE/DROP within a
> specified schema or schemas?
Frank van Bortel wrote:
>No, and why would you?
>
>Only during the installation of an application you
>would create tables - not on the fly!
I agree with Frank, but if you had to, why not just write a procedure and grant EXECUTE to the user.
CREATE OR REPLACE
PROCEDURE drop_table( p_tablename IN VARCHAR2)
IS
BEGIN
EXECUTE IMMEDIATE 'DROP TABLE otheruser.' || p_tablename;
END drop_table;
something similar could be written for CREATE TABLE.
chet Received on Tue Apr 19 2005 - 15:30:48 CDT
![]() |
![]() |