New role object privileges [message #61493] |
Thu, 29 April 2004 01:59  |
Ludek
Messages: 1 Registered: April 2004
|
Junior Member |
|
|
Hi,
I create new database role. Is possible copy object privileges to new role from existing user object?
Thank You
Ludek
|
|
|
Re: New role object privileges [message #61497 is a reply to message #61493] |
Thu, 29 April 2004 03:11   |
Daljit Singh
Messages: 290 Registered: October 2003 Location: Texas
|
Senior Member |
|
|
Hi,
There is no direct way to do this, but it doesn't mean that there is no way to do this. You can user this script for the same :
select 'Grant ' || p.privilege || ' on ' || p.table_name || ' to new_role_name;'
from dba_tab_privs p
where
p.table_name = '&tablename';
Daljit Singh.
|
|
|
|