Solved

Baseing a Datablock on DBA_ROLES

Posted on 2004-09-09
2
533 Views
Last Modified: 2012-06-27
I want to list all of the roles available in the database - This is for a maintenance form to create new users.  I want to allow someone to type in a user and password, and then click the checkboxes of the roles that they should be granted.  The problem is that with the wizard I can't find the DBA_ROLES as a table or a view to base the block on.  

Anyone got any idea how to do this.
0
Comment
Question by:Intern
2 Comments
 
LVL 7

Expert Comment

by:Bigfam5
ID: 12017792
You would need (select) permission to DBA_ROLES granted to the user executing the 'maintenance form'
0
 
LVL 23

Accepted Solution

by:
seazodiac earned 500 total points
ID: 12017840
just log in as SYSDBA

SQL>connect / as sysdba

SQL>select role from dba_roles;


or grant the log in user "select_catalog_role"


SQL>connect / as sysdba
SQL>grant select_catalog_role to <user_name>;

then log in as <user_name> to select from dba_roles....
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Oracle Pivot 2 43
PL/SQL Search for multiple strings 5 39
Oracle Next Available Number 2 31
scheduler for Procedure in DB with 3 arguments in 10g 7 28
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now