× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
jenseickmeier reported 2014-11-27T10:09:22Z  · tariqrahiman last modified 2014-12-17T21:04:06Z

Oracle: Script object grants for "create user" statement


customer request
Priority Low
Complexity Unknown
Component Tools - Server Script Gen
Version 16.0

Hi...

we use the Server script generator as one daily business to re-create a user or to create a similar one on a different instance. Is it possible to script the object-grants of a user? The roles and system-grants are scripted in the output. But the objects grants are missing.

I think the view "DBA_TAB_PRIVS is the one to select.

Here an example: select distinct 'GRANT '||privilege||' ON '||OWNER||'.'||TABLE_NAME||' TO '||GRANTEE from DBA_TAB_PRIVS where GRANTEE in ('SCOTT','USER1'); Only "with grant option" or not is missing.

Perhaps you can build it in, it would be a facilitation.

Thanks,

Jens

Issue #12869

Closed
Fixed
Resolved 2014-12-09T21:04:08Z
 
 
Completion
No due date
Fixed Build v16.0.0-dev-69
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017