Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

dbms_metadata.get_granted_ddl

Ora_83Jun 23 2017 — edited Jun 23 2017

Hi

I want to get the ddl of the priveleges of the user.
The script returns more than 100 rows hence I want to put ';' at the end of each line so i can run it in sqlplus.

How can I put ';' at the end of each line ?


SQL> select dbms_metadata.get_granted_ddl( 'OBJECT_GRANT', 'APPS' ) from dual where rownum<5;

DBMS_METADATA.GET_GRANTED_DDL('OBJECT_GRANT','APPS')
--------------------------------------------------------------------------------

  GRANT EXECUTE ON "SYS"."DBMS_LOCK" TO "APPS"
  GRANT SELECT ON "SYS"."AQ$_UNF

This post has been answered by AndrewSayer on Jun 23 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 21 2017
Added on Jun 23 2017
3 comments
368 views