How to find the ROLE of all 10 GB DB users

Is there a way to discover the ROLE of all users in the database. Is there any DISPLAY for it.

THX

Hello

Some scripts:

PROMPT
PROMPT
PROMPT ******************************************** ROLES AND PRIVILEGES
PROMPT
PROMPT ******************************************** USER ROLES

SELECT grantee user, granted_role, admin_option, default_role
FROM dba_role_privs
WHERE grantee IN (SELECT username FROM dba_users) AND
      grantee NOT LIKE '%SYS%' AND
      grantee NOT IN ('DBSNMP','OUTLN')
ORDER BY grantee;

PROMPT
PROMPT ******************************************** USER PRIVILEGES

SELECT grantee user, privilege, admin_option
FROM dba_sys_privs
WHERE grantee IN (SELECT username FROM dba_users) AND
      grantee NOT LIKE '%SYS%' AND
      grantee NOT IN ('DBSNMP','OUTLN')
ORDER BY grantee;
set pages 58
column role         format a19 heading 'User or Role'
column admin_option format a3  heading 'Ad?'
column owner        format a7 heading 'Owner'
column table_name   format a26 heading 'Table name'
column privilege    format a21 heading 'Priv, Grant or Role'
column r_ord noprint
break on role
start titel132 'ORACLE ROLES REPORT'
select
  2 r_ord, b.role role, b.owner owner, b.table_name,
  b.privilege privilege, b.grantable admin_option
from
  sys.role_tab_privs b
union
select
  1 r_ord, a.role role, 'N/A' owner, 'N/A' table_name,
  a.privilege privilege, a.admin_option admin_option
from
  sys.role_sys_privs a
union
select
  3 r_ord, c.role role, 'N/A' owner, 'N/A' table_name,
  c.granted_role privilege, c.admin_option admin_option
from
   sys.role_role_privs c
order by
   role,r_ord;
set flush on term on pagesize 22  linesize 80
clear columns
clear breaks
ttitle off
pause Press enter to continue

I hope this will help you.

See you soon,.

Francisco Munoz Alvarez
http://www.oraclenz.com

Tags: Database

Similar Questions

  • How to find the names of all the computers/phones connected to my account?

    I don't know if I'm the only person who uses my Firefox Sync account (if only my computers/phones are data sending and reciving). How can I check all the names of computers is connected to my account?

    Hi boogiee__,
    There are features under development to make this clearer. However, it is a place that you can watch on the desk. For active sync devices, you can visit the page on: sync-tabs into a new url bar.

    I hope this helps. Another modification of the password disconnects all devices, but also prevents you from being able to synchronize the copy of cloud.

  • How to find the sizes of all schema objects

    Hi guru,.

    I have a 10.2.0.4 database on the Windows platform.

    How can I calculate the size of a particular schema objects (i.e.table, index, Mviews etc.)?

    Is any dynamic script available for the same thing?


    Thanks in advance.

    Why do you want to include nom_segment in the State? You need size of all objects in the schema.
    simply question query provided that WHEN the OWNER = "tbl";
    If you need that in Excel, you can use SQL Developer or any available for Oracle GUI tools.

    Murali Mohan

  • find the ddl for all index

    Hello
    on the 11g on Win 2008 R2

    How to find the ddl for all index built on MY_VW?
    Thank you.

    You can use DBMS_METADATA for this:

    SELECT DBMS_METADATA.GET_DDL
           ( 'INDEX'
           , index_name
           , owner
           )
    FROM   all_indexes
    WHERE  table_name  = ''
    AND    table_owner = ''
    ;
    
  • How to find the book, THE, Op units, Org (All) names and ID?

    How to find the book, THE, Op units, Org (All) names and ID?

    With regard to:

    Mr. Shahzad Saleem

    Please run the following query

    SELECT gl.NAME ledger_name, hou.NAME operating_unit_name,

    xep.NAME legal_entity_name

    Gl_ledgers gl, hr_operating_units hou, xle_entity_profiles xep

    WHERE gl.ledger_id = hou.set_of_books_id

    AND hou.default_legal_context_id = xep.legal_entity_id

  • How to access the tab 'Save all' when I close several jpeg files that have been adjusted with the "color adjust tool? He is currently making me close and save one at a time. Thanks for any help :)

    How to access the tab 'Save all' when I close several jpeg files that have been adjusted with the "color adjust tool? He is currently making me close and save one at a time.  I've just upgraded to El Capitan.  Thanks for any help :)

    I assume that you use the application overview.

    I can't find an answer to back up everything, but a workaround could be while the file menu options are visible, press the option key

    and the point of the window will become close, if you click on that dialogue will ask you if you want to restore the changes or save

    pressing Save will close the image with the changes and then move to the next image and so on.

  • How to find the velocity of an incremental encoder

    I use the RE22I encoder which can give up to 8192 pulses per revolution, I have A, B, Z reports that I use an fpga as a controller Please help me.

    How to find the speed of the encoder using these signals I'm going to have a clock in the fpga sysytem will help.

    Start by looking at the information on Wikipedia on the rotary encoders and a book on encoders OR white.  These articles will give you a basic understanding of the encoder and the signals it produces.

    With proper decoding, you can get the direction and momentum of each of the points on your encoder 8192.  If the tree can reverse (same vibration on one point unique all-in-mnearly stationary), full decoding must be used.  If data are only of interest while the tree turns in a direction and speed will not close to zero, a simple decoding can be used.  Decoding of a quadrature encoder is a good way to learn to use a state machine.  Signals A and B can exist in only four possible combinations, but the possible transitions to do interesting things.

    Define DECODING is a purely logical exercise and it is a simple coding in LabVIEW, such as a state machine.  There are examples, Desing Patterns, or project templates (depending on your version of LV) that come with LV to help you get started.

    By using the channels A and B you can update your calculation of velocity 8192 times per turn.  With the help of Z you get only an update by the revolution. You use depends on your application.  The pulse of Z is also useful to define a reference position for the measurement of phase angle.

    Lynn

  • How to find the number of data items in a file written with the ArryToFile function?

    I wrote a table of number in 2 groups of columns in a file using LabWindows/CVI ArrayToFile... Now, if I want to read the file with the FileToArray function so how do I know the number of items in the file. during the time of writing, I know how many elements array to write. But assume that I want the file to be read at a later time, then how to find the number of items in the file, so that I can read the exact number and present it. Thank you all

    Hello

    I start with the second question:

    bytes_read = ReadLine (file_handle, line_buffer, maximum_bytes);

    the second argument is the buffer to store the characters read, so it's an array of characters; It must be large enough to hold maximum_bytes the value NULL, if char [maximum_butes + 1]

    So, obviously the number of lines in your text tiles can be determined in a loop:

    Open the file

    lines = 0;

    While (ReadLine () > 0)

    {

    lines ++;

    }

    Close the file

  • average of k: how to find the data clustred; : or how to assign number t0 each data group

    Hi Member

    I have download the LabVIEW Machine https://decibel.ni.com/content/docs/DOC-19328 learning package

    I want to run the K average algorithm to group the image in a group of two or three or more

    the problem is how to find the result I mean the image of clustred', the image that contain 2 or three threatened value only

    or how aasign a 1 value for all the intesity who

    belong to the cluster a and 255 for data that belongs to group 2

    for the look of the image as binary image?

    a my vi below

    Best regards

    my post before shows how to set the threshold manually using the slider of the graph.

    Here is the version k-means automated help .vi box tools

    Alex

  • How to find the position of the VI icon currently run on the block diagram of the appellant

    Dear forum,

    I am currently trying to use a LabVIEV VI as a simple sequencer: several (very slow) actions must run one after the other. Each action is represented by a Sub - VI, some actions are executed several times. My task is to view the Subvi somehow executing.

    My first intention (just manipulate the icon of the VI running with 'Icon.Get VI as Image data' / 'Icon.Set VI of Image data' invoke nodes) has failed, because it changes all instances of the VI icon. If you use the same VI several times, all these VI icons are changed (see here: http://forums.ni.com/t5/LabVIEW/How-to-change-animate-icon-of-currently-running-VI/m-p/3120754/highl... )

    My current approach is to use an image of the block diagram (with "VI: block diagram: get resized Image ' call method) in a picture of the front panel control and working within this control. But for this I need to know the position of the icon of the VI running. I know that I can assess the limits and Position via the properties GObj, but how to find the VI running (note that a VI can be installed several times on the block diagram, so the name of the VI is not unique)? IMHO the easiest way might be if a VI might find its icon on the block of the appellant diagram itself when it is run...

    It is clear that this position is not yet the position on the photo, but this conversion is a small piece of work...

    Kind regards

    cpschnuffel


  • How to find the device ID?

    How to find the device of my CAN ID card and RIO (or card for something else)?

    I use MAX 4.5 and LabView 8.6.

    Thank you.

    Open MAX and go to the section:

    My system > devices and Interfaces > NOR-DAQmx

    It should list all your DAQ devices and say something like

    DAQCard-xxxx: "Dev 0.

    DAQCard-xxxx: "Dev 1.

    etc.

    Just look at your device

  • How to find the snid? If it is removed or deleted from this sticker on the back?

    How to find the snid and sn & id of the laptop if it is removed or deleted this sticker on the back?

    My laptop is acer ferrari 1000

    Tools Information as SIW system reports the product name and serial number IF this information is stored somewhere in the computer.

    I don't know what you mean by 'id', but for example, all the following values are reported by SIW:

    Manufacturer
    Name of the product
    Version
    Serial number
    Type of machine
    Infrared (IR) supported
    DMI system UUID
    UUID

  • How to find the path of a file

    Hello

    I have Windows 7 Starter.

    The search utility can be used to search for files by using the ' * ' wildcard, but unfortunately it does not show the path for no results.

    I would like to know how to find the path of a file of my choice.

    For example, I record a radio on the internet, which is then saved as "MP3". Now, I want to edit such a file, but I need to know where the file is actually stored. Simply access within a 'library' does not show me where the file is actually located.

    How to discover all paths where a particular file format?

    I hope to receive a response to this request.

    Kind regards

    Rayt333

    An option for the search utility see the paths for all of its results, would be useful.

    Hi Ray

    Overall view for the search folder for Detailsof Windows Explorer , by using the View Menu on the right side of the toolbar.

    Click on the last name column heading and select the folder item.

    If you do not see the folder item, click other, scroll and select the folder item. This will add the folder column.

    Use the left mouse button to drag the folder column to the left, next to the column name .

    Now, when you perform a search, the folder column will show the path of each file found.

    Concerning

  • How to find the background list ot application

    Dear friends,

    Can someone tell me how to find the applications that are running in the background and how to move the application thoroughly.

    If you can pls bring me some code examples too.

    Kind regards

    s.Kumaran.

    ApplicationManager getVisibleApplications()
    Retrieves the descriptors for visible, running applications.

    getForegroundProcessId()
    all others are in the background

    requestForeground (int processId)
    request a future application to the foreground

    requestForegroundForConsole()
    Displays the home screen

  • How to find the size of the virtual server?

    Hello

    We intend to pass our applications 4 virtual servers has 2 physical servers. In this process, we need to identify the size of the current virtual servers to use as a starting point to configure or add the size in physical server. can anyone provide information on whats stats to be noticed and how to find the size of the current virtual servers?

    Thank you

    Hi Sekhar, there.

    in general, it is a fairly complex task if you want to size the new platform correctly, i.e. not to oversize it and have very low use below, i.e. spend too much on equipment.

    In fact, it's the first thing to consider the level of use of the new platform. Most likely your organization (HW and infrastructure) has targets to a minimum. optimal and maximum usage levels.

    In the case where you do not have this as a starting point, and then you continue with load average and the current peak (CPU, RAM, NW). To these basic lines, you can use the statistics of WLS Admin Console, where the use of CPU and memory statistics are presented since the server was last started. For more detailed statistics, you can use WLDF to capture measures key at regular intervals, and then base your analysis of these data.

    Finally and above all, the size of FS, but I've seen some comments above related to the size of the FS.

    HTH,

    A.

Maybe you are looking for