PL/SQL (MOSC)

MOSC Banner

truncate partition privilige

edited Sep 22, 2009 3:34AM in PL/SQL (MOSC) 10 commentsAnswered
hello, i have a small problem with the truncate partition privilige.
let me describe the scenario:

user a - contains a partitioned table named TAB.
user b - has "drop any table"  and has a procedure that can truncate partition (recieves a table name and partition name)

if i run the following command
alter table TAB truncate partition xxx_92009 update... - the command works fine.

if i run the procedure i recieve: insufficient privliges. important to add the procedure was created with user b.
if i add the authid current_user to the procedure, it works. but i dont want to add it, since the purpose of this procedure is for other non privilged users to truncate a partition.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center