Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8119773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:54:21+00:00 2026-06-06T04:54:21+00:00

After searching online and reading the Oracle documentation for this, I need some help

  • 0

After searching online and reading the Oracle documentation for this, I need some help in getting all of the custom roles found in an Oracle database. Since I can’t find a good resource that gives me the logical model of the system tables or data dictionaries (so I could see where the dba_role is mapped to), the best I could come up with was:

select role from dba_roles 

and then from there filter out any sys or sysdba role that I know — which I know might not be correct.

Any helpful pointers for which table to use would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T04:54:23+00:00Added an answer on June 6, 2026 at 4:54 am

    You can find the SQL behind the dba_roles view:

    select * from dba_views where view_name = ‘DBA_ROLES’;

    Here’s the code on my system:

    select name, decode(password, null,          'NO',
                                  'EXTERNAL',    'EXTERNAL',
                                  'GLOBAL',      'GLOBAL',
                                  'YES'),
                 decode(password, null,          'NONE',
                                  'EXTERNAL',    'EXTERNAL',
                                  'GLOBAL',      'GLOBAL',
                                  'APPLICATION', 'APPLICATION',
                                  'PASSWORD')
    from  user$
    where type# = 0 and name not in ('PUBLIC', '_NEXT_USER');
    

    When I run select * from sys.user$ where type# = 0 order by ctime; I see a lot of views with a ctime at about the same time, several years ago. (The time is even before my database was created.) It’s probably safe to assume that the old roles are system generated.

    But that does not necessarily mean that the newest roles are all custom roles. The ctime might change after an upgrade or re-compile, or if you install new options.

    It may be helpful to install a new instance and subtract whatever you see in that dba_roles.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After searching online this is a question I have been unable to find an
After searching online, the best solution I've found so far is to just make
After searching online for quite some time, I cannot find a good way to
After searching online and going through past stackoverflow posts for a suitable implementation for
After searching through some existing libraries for JSON, I have finally ended up with
First attempt to use this cool site - after searching for 2 hours: So
I came across this question after searching for a ODBC or JDBC. To my
I am really posting this out of desperation after searching around a lot for
I'm going to edit an ImageField using jquery ajax,after searching I found out I
After searching and reading about Modern OpenGL in order to upgrade my existing project,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.