My Oracle Support Banner

SCRIPT: Generate ROLE (Re-)Creation Script (Doc ID 107182.1)

Last updated on AUGUST 30, 2023

Applies to:

SQL*Plus - Version and later
Oracle Database - Enterprise Edition - Version and later
Oracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Information in this document applies to any platform.


 Running this script will in turn create a script to build all the roles in the database. This created file, tfscsrol.sql, can be run by any
user with the DBA role or with the 'CREATE ROLE' system privilege. 


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.