× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
jenseickmeier reported Nov 27, 2014  · tariqrahiman last modified Dec 17, 2014

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

tariqrahiman   Nov 27, 2014  Change History
Field Old Value New Value
Dev Assignee Unassigned ivangron (Ivan Gron)
QA Assignee Unassigned tariqrahiman (Tariq Rahiman)
tariqrahiman   Dec 3, 2014  Change History
Field Old Value New Value
Priority Major Low
Version 15.0 16.0
ivangron   Dec 9, 2014  Change History
Field Old Value New Value
Status New In Progress
ivangron   Dec 9, 2014  Change History
Field Old Value New Value
Resolution Fixed
Resolved Date Dec 9, 2014 9:04 PM
Status In Progress Resolved
ivangron   Dec 11, 2014  Change History
Field Old Value New Value
Fixed Build v16.0.0-dev-69
abhishekj(*)   Dec 15, 2014  Change History
Field Old Value New Value
Status Resolved Verified
tariqrahiman   Dec 17, 2014  Change History
Field Old Value New Value
Status Verified Closed

Issue #12869

Closed
Fixed
Resolved Dec 9, 2014
 
 
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