Sql to show all roles object privileges owned by a specific schema

maybe this is simple but i'm just not getting it...
i need sql to show me all of the distinct roles that have privileges granted against objects in a specific schema.
thanks in advance.

Feel free to modify the script to reduce the rows to only what you need.
In terms of Oracle users, roles and privileges, it is just that complicated. Internally, a user and role exist in the same structure (user$). And privileges can be granted to users or roles. Roles can be granted to users and other roles. This means that a privilege (object or system) may have been granted to a user multiple times. USER1 can have 'SELECT' on 'TABLEA' that has been granted directly or via ROLE1, ROLE2 and ROLE3 (since ROLE1 is granted to ROLE3).

Similar Messages

  • WLE 5.1: show all active objects

    Does anyone know an API, which I can use to
    get infos of all active WLE CORBA objects.
    Of course, "print active objects" (pao) of tmadmin
    does this job. However, the object infos are shortened,
    e.g. only a small part of the OID is printed.
    Bernhard

    Hi
    The only thing I know that you can do, is to turn on verbose mode (v
    will toggle verbose mode on/off) in tmadmin. Then the info is no longer
    shortened.
    Attila Cseke
    Bernhard Hollunder wrote:
    Does anyone know an API, which I can use to
    get infos of all active WLE CORBA objects.
    Of course, "print active objects" (pao) of tmadmin
    does this job. However, the object infos are shortened,
    e.g. only a small part of the OID is printed.
    Bernhard

  • I want to know the role's privileges

    I want to select all ROLES's privileges.

    Hi,
    The DBA_SYS_PRIVS dictionary view, describes system privileges granted to users and roles. For more information, take a look at [url http://tahiti.oracle.com]documentation
    SQL> select privilege from dba_sys_privs where grantee = 'CONNECT';
    PRIVILEGE
    CREATE VIEW
    CREATE TABLE
    ALTER SESSION
    CREATE CLUSTER
    CREATE SESSION
    CREATE SYNONYM
    CREATE SEQUENCE
    CREATE DATABASE LINKCheers
    Legatti

  • Is there any software which displays all form objects - tables, views, etc?

    Dear friends,
    I need to know if we have some software product which opens an Oracle form and shows all objects (tables, views, procedures, functions, and so on) accessed by it.
    For each form, this software should show all operations made in each table - that is, whether form creates, updates, reads or deletes data in each table accessed by the form.
    If there's any software which makes such analysis, please let me know. I'd rather be downloading free software, but a trial version or a paid one can be considered as well.
    Best regards,
    Franklin

    Hello all,
    sorry, I don't know whether my 1st message was clear, so I am trying to rewrite it.
    I'm thinking about a software which creates a database objects list report; this report shows all database objects being accessed by the form - for example, it can list all tables being accessed by the form, showing a CRUD (Create, Read, Update and Delete) for each accessed table, or list all packages being executed by the same form, and so on. For example:
    Form: CLI0001.FMB
    Package -> Operation
    PCK_ACCOUNTS -> E (Execute; but that's a suggestion, we can have 'R' instead)
    Table -> Operation
    ACCOUNTS -> CR (Create + Read)
    PAYMENTS -> D (Delete)
    Sequence -> Operation
    SEQ_ACCOUNTS -> R (Read)
    View -> Operation
    VW_CLIENTES -> R (Read)
    If there's any software which can do it, please let me know. Thanks in advance.
    Best regards,
    Franklin
    Edited by: franklinbrasil on 15/10/2008 19:26

  • Cost Centre report that shows all Tax Codes

    Hi there,
    We're trying to run a cost centre report that shows the tax codes relating to all expenditure, but Tax Code isn't an option in KSB1.  Is there a way that it can be imported, or another report that we can use?
    We need the tax code in order to be able to report on expenditure and tax paid / not paid for HMRC.
    Thanks,
    Michelle

    Hi,
    Cost reports KSB1 show only CO documents posted on cost centres. You can reconcile CO data with FI only for accounts which are relevant for CO, that is accounts defined as cost elements (normally, these are P&L accounts). If you want to see all CO documents, it's better to use KSB5 transaction as it shows all CO object postings, and not only cost centres. If you have some internal CO postings (manual postings, allocation, etc.), then they won't be shown in FBL3N and you have to consider this also.
    Regards,
    Eli

  • Role and Privileges for OLAP metadata

    Hi,
    Is there any document which specifies what all roles and privileges are required for creating any OLAP meta data ( Dimension, Cube, Measure and Catalog etc)?
    I think these are impt roles:-
    SELECT_CATALOG_ROLE
    EXECUTE_CATALOG_ROLE
    DELETE_CATALOG_ROLE
    RECOVERY_CATALOG_OWNER
    OLAP_DBA
    OLAP_USER
    Through system/manager I created one user TEST_BI_OLAP and granted CONNECT.
    After login as TEST_BI_OLAP I am able to create dimension. Why it is possible whereas doc says user should have OLAP_USER or OLAP_DBA role associated with it.
    OR only CONNECT is sufficient for creating OLAP metadata!!!!!
    regds
    P

    The difference is in what the end user sees. Say you want to deploy an analytical workspace based off of a ROLAP dimensional cube. Here is how I've been approaching the problem:
    1. Create a new user with the OLAP_USER role to hold the AW (say "AW_USER")
    2. Now log in with a userid that has OLAP_DBA role, and create the AW utilizing the ROLAP cube - but direct the AW to be stored in the AW_USER schema. Note that because it is in a separate schema from the ROLAP cube, you will not need to append characters to the dimension or measure names.
    3. Have end users log in using the AW_USER name. Then they will see the AW information, but they will not have access to the ROLAP cube data.
    Hope this helps,
    Scott

  • Delete all inactive objects in a Transport Request

    Hi,
    I want to delete all the inactive objects in a transport Request . How can i do this ? I have many inactive objects in a request so i want to delete them first and then transport it . How can i do this . Please help..

    Hi,
      go to transaction se10 click on display individually enter teh request and click display and then you would get the list of all objects in that request so you can check which one are inactive and delete.
    Or you can also go to se80 in the repository browser you can choose inactive objects so it would show all inactive objects for a user from there also you can delete objects.
    Regards,
    Himanshu

  • View all local object

    hii
    is there a transaction or a place in SE09 itself where i can view all my local object (e.g. programm created)

    Hi,
    Go to t code SE80 and there from the drop down menu click 'LOCAL OBJECTS' and in the below text box give the name of the user. It will display all the local objects created...
    OR go to se11 give the table name "TADIR" and execute. In the devclass give the name $TMP and execute. It will show all the objects.

  • Roles/System privileges/Object privileges

    Oracle 10g. we created a role and assigned this role to the user. We also assigned some system privileges and Object privileges directly to the same user. Now the company's new policy is that the user's permissions have to be assigned only via role. system privileges and Object privileges cannot be assigned directly to the user. So I have to alter the role. The steps are:
    1. grant system privileges and Object privileges to role. (this will be executed as a script)
    These privileges were directly assigned to the user.
    2. revoke all privileges which were directly assigned to the user.
    Do I miss anything?
    Please advise.
    Thanks
    S.

    Object privileges cannot be assigned directly to the user.Privileges acquired via ROLE do not apply within PL/SQL procedures.
    You may face some coding challenges in the future due to this policy.

  • Execute Process Task showing all the SSIS Config variables in SQL Job History

    Hi,
    Am using an Execute Process task to execute my child package. And executing the Parent package from a SQL JOB.
    I am using the same config file for both Parent and Child packages.
    After the Job execution was Successful / Failure, in Job history it is showing all the variables from Config file which are not using in Child package. With the below message.
    "The package path referenced an object that cannot be found"
    I don't want to catch all the Variables information in Job History. Instead I need only the Success / Failure message.
    PFA Screen.
    Thanks,
    Sailaja

    see
    http://www.mssqltips.com/sqlservertip/1417/custom-logging-in-sql-server-integration-services-ssis/
    https://www.simple-talk.com/sql/ssis/ssis-event-handlers-basics/
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to show all privileges from a view?

    Hi. I´m new to PL/SQL developing. So I have two questions:
    Is there a sql statement that shows me all privileges the actual user have of a view?
    Or can I show all views where the actual user can do a select?
    Thanks for help.

    Hi.
    The problem is, we have a view in the database and a form application. And when we log in with a special user, some information are not shown in the form.
    Now we have the suggestion, that the user has no privileges to make a SELECT of a special view, but he need to do this select, to show the information in the form.
    So I need a sql statement that shows me all privileges that the user xyz has of this view. If he can make a select for example from this view. I hope this explanation would be better!? :)
    Message was edited by:
    ulfk

  • How can I show all the results returned by a sql query?

    Hi guys,
    I need your help.
    Let's say I have one table: TableA. Fields of TableA are aleg, anon, apes. The following sentence can return, in general, several rows: select anon from TableA where aleg = somevalue. I'd like to show the result of column anon but no luck. If I try to show the results in a TextArea and the origin is an sql query only shows the first row value. I tried Show as: show as text (based in PLSQL) and coding an anonymous plsql block as
    DECLARE
    v_anon TableA.anon%TYPE;
    CURSOR v_cur IS
         select anon from TableA where aleg = somevalue;
    BEGIN
    OPEN v_cur;
    LOOP
    FETCH v_cur INTO v_anon;
    EXIT WHEN v_cur%NOTFOUND;
    :FIELD_IN_FORM := v_anon;
    END LOOP;
    CLOSE v_cur;
    END;
    but in this case it's not shown any result.
    So the first question is what kind of field should I use to show the result. And the second one is what can I do to being able to show all the results returned by the query (provided that is more than one single row).
    regards

    Hi Denes,
    Just starting with apex. I think I know how to show the results in a report region. I've simplified the posted question.
    A more detailed question would be: Suppose you have a region where you have put several text areas to accommodate the result of a multi-column query (lets say for TableA) that only returns one row, each column value returned put in a different text area. Also you want to show the values of other fields in TableB that depends on some value just retrieved from TableA and that you want all values retrieved (from TableA and the linked TableB) to be show in the same region. Is that possible? If yes, how?
    Thank you in advance

  • Analysis does not show all rows returned by SQL

    Hi.
    OBIEE 11.1.1.7.0
    I have a strange problem.  I have a simple table that should return customer number and sales.  The report will show all of the sales, but it does not show all the customer numbers.  The SQL that OBIEE creates does return all of the customer numbers.  When I remove the sales and just include the customer number, the report only shows a couple of the customer numbers (it should show several hundred).
    I guess what I'm looking for is any advice for how to debug this.  I have spent about 3 days on this problem, so I have tried to look at it from every angle (data, RPD, report).
    Any suggestions are appreciated.
    Thank you.

    Thank you for your reply.
    New development.  The issue has to do with a descriptor ID column.  The customer number column is a varchar field and I set the descriptor ID column to the column_ID field.  When I remove the descriptor ID setting, I received all custom numbers.

  • Is there a report showing all the DDL objects for one APP?

    Hi,
    Is there a report showing all the DDL objects for one APP?
    I need to move an app to my workspace. The workspace I need to move it from has approx 20 applications in it, thus all the tables, procedures, etc are too many.
    What way is the easiest?
    I've looked at exporting the DDL and the app. and look to see what the app needs. But it has many pages.
    Thank you, BillC

    Hello Bill,
    You might find the report in the following location to be helpful:
    Home>Application Builder>Application XXX>Application Reports>Shared Components>Application Database Object Dependencies
    Regards,
    Arie.

  • My young kids have ipads and since I updated the software, but they have their own icloud account, predictive text within their messages shows all my contacts from my iphone but the contacts are not listed as their contacts, how do I stop this?

    My young kids have ipads and since I updated the software, but they have their own icloud account, predictive text within their messages shows all my contacts from my iphone but the contacts are not listed as their contacts, how do I stop this?

    I have deleted the iCloud account under my name on their iPads and replaced with their ones. Apple support said yesterday I needed to click the small 'I' by each name as it came up in the TO box and remove it. After doing rid for each contact under each letter of the alphabet it should remove them from latest contacts. Having done this, although I could not remove groups I had sent, I am not convinced they will not return once I have written a few texts, any ideas?

Maybe you are looking for