Subsidies on views

Hello

Is it possible to find all grants in a particular vision and no table.

Thank you

Is it possible to find all grants in a particular vision and no table.

Combine this the other answering machine said with a filter to limit the results to the views using DBA_VIEWS:

Select * from all_tab_privs

where table_name in

(select view_name from dba_views)

and table_schema = 'SCOTT '.

LICENSOR, DEALER, TABLE_SCHEMA, TABLE_NAME, PRIVILEGE, GRANT OPPORTUNITIES, HIERARCHY

SCOTT, PUBLIC, SCOTT, V_DBA_VIEWS, SELECT, NO, NO.

SCOTT, PUBLIC, SCOTT, V_DBA_TRIGGERS, SELECT, NO, NO.

SCOTT, PUBLIC, SCOTT, V_DBA_TAB_SUBPARTITIONS, SELECT, NO, NO.

SCOTT, PUBLIC, SCOTT, V_DBA_TAB_PARTITIONS, SELECT, NO, NO.

SCOTT, PUBLIC, SCOTT, V_DBA_TAB_COLUMNS, SELECT, NO, NO.

SCOTT, PUBLIC, SCOTT, V_DBA_CONSTRAINTS, SELECT, NO, NO.

NOTE: the * _PRIVS use view (s) "column in TABLE_NAME and TABLE_SCHEMA but these columns names represent the tables not only of all the appropriate objects.

Tags: Database

Similar Questions

  • How to exclude subsidies, the role_grant, the materialized view to expdp

    Hi all

    I am making the expdp on a 10g database and import it on 11g:

    Directory system/amandla expdp = respaldos_bd = logfile = nomina_dp.log patterns nomina_dp.dmp dumpfile = nomina exclude = grants, statistics, role_grant, db_link, materialized_view, materialized_view_log

    Now, on the import subsidies, role grants etc are present on dumpfile as seen on warnings such as these:

    ORA-39083: Fallo Creacia³n del tipo object OBJECT_GRANT con el error:

    ORA-01917: el usuario o rol 'NOMINA_ART_SSALUD' doesn't exist

    Procesando el tipo object SCHEMA_EXPORT/TABLE/SCHOLARSHIP/OWNER_GRANT/OBJECT_GRANT

    ORA-39083: Fallo Creacia³n del tipo object OBJECT_GRANT con el error:

    ORA-01917: el usuario o rol 'NOMINA_ART_EOS' doesn't exist

    GRANT SELECT ON "NOMINA". "' CONC_IVSS ' TO 'NOMINA_ART '.

    ORA-39083: Fallo Creacia³n del tipo object OBJECT_GRANT con el error:

    ORA-01917: el usuario o rol 'NOMINA_ART' doesn't exist

    What's not here?

    Thanks in advance!

    Hi Richard,

    Yes you are right, thank you. grant to exclude will remove all subsidies.

    just checked command OPs on 11.2.0.4 and exclure = grants work done and it failed object and system privileges granted to the user as well.

  • APEX access of other users db views

    Hello community!

    In a large application I would like to evaluate some function calls in the parts of the report. For this I can get one of the apex_application... views:

    select application_name, page_id, page_name, region_name, source_type, region_source
    from apex_application_page_regions
    where application_name = 'Our App'
      and source_type in ('Interactive Report','Report')
      and region_source like '%my_function%'
    

    .. who so far works great.

    Now however this report must be run from a different workspace that uses another db-user. And there, I don't get any results data.

    I tried to add this other scheme in the original workspace, I tried with subsidies or thesaurus - all made no difference.

    For further testing, I wrote this view:

    create or replace view ourApp_apeximplementierung_v as
    select application_name, page_id, page_name, region_name, source_type
    from apex_040200.apex_application_page_regions
    where application_name = 'Our App'
      and source_type in ('Interactive Report','Report')
      and region_source like '%my_function%'
      
    union 
    select 'application_name', 9999999, 'page_name', 'region_name', 'source_type'
    from dual;
    

    The last 'dual' - line gets very well displayed in the other schema.

    Maybe it has something to do with tables temporary golabl? Because when I create a table of this query, these data can be recalled.

    But data must be dynamically updated, and I will not conduct the re-creation of the table, each time an APEX region is updated.

    I took a look at the creation for APEX_040200.APEX_APPLICATION_PAGE_REGIONSscript. (What is this "APEX_040200" syntax? Is this some sort of schema under?) The table wwv_flow_page_plugs within this script, I can't access from outside. (Would be nice to be able to update the APEX-regions via DML ).

    Thus, any help and advice in this dilemma are welcome,.

    best regards, so long.

    Tobi

    TobiP wrote:

    In a large application I would like to evaluate some function calls in the parts of the report. For this I can get one of the apex_application... views:

    1. Select page_id page_name region_name, source_type, application_name, region_source
    2. of apex_application_page_regions
    3. where application_name = "Our App"
    4. and source_type in ('interactive report', 'Report')
    5. and region_source like '% ma_fonction % '.

    .. who so far works great.

    Now however this report must be run from a different workspace that uses another db-user. And there, I don't get any results data.

    I tried to add this other scheme in the original workspace, I tried with subsidies or thesaurus - all made no difference.

    For further testing, I wrote this view:

    1. create or replace view ourApp_apeximplementierung_v as
    2. Select page_id application_name, page_name, region_name, source_type
    3. of apex_040200.apex_application_page_regions
    4. where application_name = "Our App"
    5. and source_type in ('interactive report', 'Report')
    6. and region_source like '% ma_fonction % '.
    7. Union
    8. Select "application_name" 9999999 "page_name", "rated", "source_type.
    9. Double;

    The last 'dual' - line gets very well displayed in the other schema.

    Maybe it has something to do with tables temporary golabl? Because when I create a table of this query, these data can be recalled.

    It has nothing to do with global temporary tables. For security reasons the APEX views only display data for the applications in the workspace where the current schema is the schema of analysis for the application. If the application of the 'Our' App is not in the same workspace or has another scheme of analysis then the expected behavior is that no information links to the it is visible.

    I took a look at the creation for APEX_040200.APEX_APPLICATION_PAGE_REGIONSscript. (What is this "APEX_040200" syntax? Is this some sort of schema under?)

    No, it's just a standard schema that contains most of the APEX.

    The table wwv_flow_page_plugs within this script, I can't access from outside.

    This is also the behavior expected (and desirable).

    (Would be nice to be able to update the APEX-regions via DML).

    It would be simply a way to break your applications and your APEX installation (and potentially data bases) in an unsupported state.

    Thus, any help and advice in this dilemma are welcome,.

    What exactly are you trying to do? Why this application does not require the visibility of metadata of the application to another workspace?

    The patterns that are granted directly to the APEX_ADMINISTRATOR_ROLE database role can view all data in the views of the APEX. However, I would not recommend grant this privilege to an application to the analysis of schema. If you really need more broad access to the metadata in the views of the APEX then give the role to a schema that is not a scheme of analysis, set out the minimum possible information through functions of views/materialized views/pipelined and grant access to these for the application schema.

  • Internal error: catalog view incompatible when calling a stored procedure

    Hello

    I use JDeveloper 11.1.1.4

    When you call a stored procedure from AppModuleImpl, I get this error internal error: inconsistent display catalog

    I'll call the stored procedure of this way

    String lErrCode;

    String lErrMsg;

    Result of an integer;

    ARRAY inputArray = null;

    Table STRUCT that can be passed to a PLSQL PROCEDURE

    inputArray =

    JdbcSqlMapper.preparePlSqlArrayUsingVOAttrbs (conn, recordType,

    view, rm);

    OracleCallableStatement st =

    (OracleCallableStatement) conn.prepareCall ("{?}") = call ("+

    procedureName +.

    "(?,?,?))}");

    st.registerOutParameter (1, Types.INTEGER);

    st.setObject (2, inputArray, OracleTypes.ARRAY);

    st.registerOutParameter (2, OracleTypes.ARRAY,

    recordType.getTableType ());

    st.registerOutParameter (3, Types.VARCHAR);

    st.registerOutParameter (4, Types.VARCHAR);

    St.Execute ();

    I checked the subsidies for this package to all users. All users with grants to this package.

    I don't know where I start to debug this issue.

    Kindly help.

    Thank you and best regards,

    John.

    Have yo uchecked the right of the types of data used (at least the TABLE) to the user (referred to Pokusak blog: JPublisher - incompatible catalog display)?

    Timo

  • Procedure compilation error: Table or view does not exist

    I have privilege granted to me on some tables, SELECTION that I found thanks to view user_tab_privs.

    Now, I wrote a stored procedure that attempts to insert into a table that I created with the data of a query based on joins on tables, sure I have the right to SELECT.

    But when I compile my inside, it shows errors:

    • PL/SQL: ORA-00942: table or view does not exist

    What could be the problem?  Were breaking my head.

    Can someone help me please?

    (

    I found ask Tom & amp; quot; Procedures, roles and grant & amp; quot; that questioning the view of user_tab_privs with the DEALER = < me > gives the list of the privileges that have been granted directly to the me.

    If this is the case, I seem to have DIRECT subsidies on the tables, I've used in my procedure.

    Where is my confusion).

    **************************************CODE*********************

    CREATE OR REPLACE PROCEDURE USAGE_MODULE_INSERT
    IS
    CURSOR C1
    IS
    SELECT CALL_KEY IN THE DUMMY_DATE;

    VDATE_KEY C1. TYPE % CALL_KEY;

    BEGIN
    OPEN C1;
    LOOP
    FETCH C1 IN VDATE_KEY;
    WHEN EXIT C1% NOTFOUND;

    INSERT INTO TABLE_USAGE_MODULE (VNUMBER, START_DATE_KEY, POSTPAID_ACC_FLAG, DES_NWK_NAME, ONOFF_KEY, TEMPS_REEL, CHARGED_TIME, CHARGED_VOLUME, CALLS)
    (
    SELECT THE PDF FILE. VNUMBER,
    C_USG. START_DATE_KEY,
    C_USG. POSTPAID_ACC_FLAG,
    DES_NWK. DES_NWK_NAME,
    ONNET_OFFNET. ONOFF_KEY,
    SUM (C_USG. TEMPS_REEL),
    SUM (C_USG. CHARGED_TIME),
    SUM (C_USG. CHARGED_VOLUME),
    COUNT (CASE WHEN C_USG. TYPE_KEY = 15 THEN 1 0 OTHERWISE END)
    OF AM_WHM. CAL_USG C_USG
    JOIN INTERNAL AM_WHM. DES_NETWORK DES_NWK
    ON DES_NWK. DES_NWK_KEY = C_USG. DES_NWK_KEY
    JOIN INTERNAL AM_WHM. D_L_NUMBER PDF
    THE SUBJECT OF THE PDF FORMAT. L_NUMBER_KEY = C_USG. L_NUMBER_KEY
    WHERE C_USG. START_DATE_KEY = VDATE_KEY
    GROUP OF PDF. VNUMBER, C_USG. START_DATE_KEY, C_USG. POSTPAID_ACC_FLAG, DES_NWK. DES_NWK_NAME, ONNET_OFFNET. ONOFF_KEY

    );

    END LOOP;
    CLOSE C1;

    END;

    Note: Mark USER_TAB_PRIVS with the DEALER = < > says that I have the privilege of SELECT on all tables that I used in my procedure.

    Mark USER_SYS_PRIVS shows a single line like "UNLIMITED TABLESPACE"

    ******************************************************

    Post edited by: 3cd7ad85-b56c-4a9c-ae91-83be047aac2c Code of procedure included which gives a compile error

    In order to access the table in a procedure, select must have been granted to the user directly and not through a role.

  • Cannot create Materialized View using the PL/SQL procedure

    Hello

    I have a question related to the creation of materialized view.
    I have a stored procedure that creates the materialized view. When you try to perform this procedure, I get not enough privileges error: ORA-01031.

    When I run the content of this procedure as a PL/SQL block anonymous their materialized view is created without any complications.
    Can you please advice me on this subject?
    It is even possible to create a materialized view in the stored procedure as I found no info on this subject.

    Thank you
    Petr

    Hi chudapet,

    Whenever you make in procedure, you must have direct subsidies and not through a role.

    Most likely the grant to create a materialized view is available via a role to your username.
    Assign a direct grant to the user:

    grant create materialized view to scott;
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    
  • Custom in APPS Schema views

    I am looking for your practices copies/opinions on this issue.

    We have all our custom views (for custom applications that are defined as an extension of the oracle application - for example $XXMAR_TOP as an extension of the $AR_TOP)
    defined in the schema of APPS.

    It is important that these views are defined in the APPS schema or it is advisable to define custom views in the custom schema with subsidies for APPS?

    Thank you

    It is recommended to create custom views in the APPS schema (with XX prefix).
    For more details, refer to the standards of customization to http://docs.oracle.com/cd/E18727_01/doc.121/e12897/T302934T458264.htm

    Sandeep Gandhi

  • Copy the views and the procedure...

    Hello

    How to copy views and procedures of a schema into another schema with subsidies.

    Thank you

    How many views and functions are available in your database?

    If you want to copy only views & functions and also limited, then you can go to the metadata of objects and run... but I prefer you to use the entire schema views.

    You can use export & import schema objects or sqlfile option.

  • Creating views, dynamic SQL within stored procedure

    I'm having a problem with the creation of dynamic views of in a stored procedure. The following declare block works fine:

    DECLARE
    parameter i_nom_table varchar2 (200): = 'abc ';
    xyz cursor script, SELECT step
    STARTING from scripts
    WHERE table_name = i_nom_table parameter
    ORDER BY step CAD;
    l_sql scripts.script%TYPE;
    l_step scripts.step%TYPE;
    l_error VARCHAR2 (200);
    l_code VARCHAR2 (200);
    Start
    XYZ OPEN;
    LOOP
    XYZ-FETCH INTO l_step, l_sql;
    OUTPUT WHEN xyz % NOTFOUND;
    immediately run l_sql;
    insert into ingest_log values (null, sysdate, i_nom_table, l_step, l_sql, 'Success' parameter);
    END LOOP;
    CLOSE XYZ;
    insert into ingest_log values (null, sysdate, parameter i_nom_table, 0, "Accomplished all the steps.", "Success");
    EXCEPTION WHEN OTHERS THEN
    l_error: = substr (SQLERRM, 1, 200);
    l_code: = SQLCODE;
    insert into ingest_log values (null, sysdate, parameter i_nom_table, l_step, l_sql, l_code |) ' - ERROR - ' | l_error);
    END;

    However, if I create a procedure with this block and try to run it I get an insufficient privileges error. Do not know why. All tables, views, procedures are under the same user, and the user that I'm connected as the runtime of the declare block. The user has the following privileges:

    Connect, resource, xdbadmin, s/n

    Any reason you can think of for this? Script values are generally "CREATE OR REPLACE VIEW As.... » ;

    Permissions in Oracle to do indirectly through roles are not available when compiling packages, functions, and stored procedures. Direct subsidies are required during the creation of these objects in the database.

    http://articles.TechRepublic.com.com/5100-10878_11-6183799.html

  • ORA-12008: error path refresh materialized view

    Hello world

    I get a weird error when I try to do a quick refresh on my materialized view. My basic approach is simple, that I had a newspaper of MV on my fact table with all the columns required by the materialized view, sequence, including NEW rowid VALUES.

    I have my setup of materialized with a view my summary level, COUNT (*) and COUNT (EXP) for every SUM (EXP). I check the MV_CAPABILITIES_TABLE, and of course, it can be run with fast refresh. I have my fact table in the schema USER1 and my materialized in USER2 schema view.

    When I create the materialized view, there is no problem. If I immediately executes a fast refresh (EXEC DBMS_MVIEW. REFRESH ('MY_MV', 'F'); ), once again, no problem.

    However, if I run the ETLs that update the source fact table, and then I run the quick update again, I get ORA-120008.

    But if I do the exact same MV in the scheme of the User1, I have no problem making quick refreshes. What is happening with this? Is the owner of the table must be the one with the materialized view? User1 and USER2 are on the same PB and have the same table space. Should User2 also select additional subsidies on the source fact table? What I give to select on the MVIEW connect you somehow?

    Thanks for the help!

    -Joe

    The mview journal is a separate table. You must grant select, insert, update, delete on it to the user mview.

  • Table or view does not exist - ONLY in the procedure?

    I'm trying to write a procedure that is very simple - the only thing at this point, I'm trying to get it to do is an insert into a table - selected values from one schema to another user (on which I have select privileges to). When compiling, you receive an error ORA-942 - table or view does not exist. However, if I put the same insert statement in an anonymous PL/SQL block, it works as expected. What Miss me?

    Oracle 10.2.0.3.0 on AIX 5.3

    You are missing the explicit subsidies on the table.

    When you issue this through SQL * Plus, or through an anonymous block you use grants which are given by a role.
    Inside PL/SQL procedures, you cannot use the permissions that come with roles. Instead, the user must have appropriate subsidies being explicitly for the operations required on this object.

    GRANT SELECT / INSERT etc. on this table to the user explicitly and it will work.

  • Oracle Apps with custom EUL discoverer views

    Environment of Disco:
    OracleBI Discoverer 10g (10.1.2.2)
    Oracle Business Intelligence Discoverer Plus 10g (10.1.2.54.25)
    Discoverer of model - 10.1.2.54.25
    Discoverer Server - 10.1.2.54.25
    End user layer - 5.1.1.0.0.0
    End user layer Library - 10.1.2.54.25
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    Oracle Applications R12 EUL

    All,

    So far, we have put our customized views of discoverer in our apps schema. The 'monitoring' point of view and from the perspective of 'split views apps Disco', we tend to create a custom schema to place all our custom views of discoverer. I heard that Noetix does as well.

    To do this, we intend to provide a select grant for all tables, views, and synonyms (with an execute rights) limited for some packages.

    The best thing to do is to continue to do what we are doing. We have a naming in place scheme that allows us to quickly identify all custom views of Disco.

    Then I have people who have implemented a scheme customized to their point of view of Disco in apps made me know how it worked for them? This type of environment Disco seems to need a lot of communication between staff of the nightclub and the DBA to ensure that these subsidies are set up correctly.

    Thank you

    Patrick

    Hello

    All eBS sites I've worked on that have created the majority of their custom views in the scheme of APPS using a naming convention to separate seeded views. The reason is that the SQL in the view (including all function calls) is executed with the privileges of the owner of the view. If the view is defined in another schema, this diagram must have access to objects in database APPS that can be a lot of work to put in place because it is very difficult to identify the dependencies and needlessly opens the security on the APPS schema.

    Where the data in custom tables and there is point of view on these tables custom, then both tables and views are held in a separate schema.

    Rod West

  • Subsidies granted by user SYS and SYSTEM

    Hi all

    Please, help me to understand this problem.

    I have a few schema named maps_ref where I create a view. (table abc discovers abc01).
    Here, I have granted the create view, creates all privs view to maps_ref by linking the SYS as SYSDBA.
    He alllowed me to create the view.

    As a test, I revoked the privileges by connecting as a SYSTEM and he revoked the privileges granted by SYS as SYSDBA.
    Later, of course, I couldn't create the view.

    This means that subsidies granted by SYS as SYSDBA resumable system however SYSDBA is then more powerful SYSTEM?

    I'm a little confused how it worked? Please explain.

    Rgds,
    Aashish

    Hello

    SYS is not normal user and you are not able to connect without clause SYSDBA.

    sqlplus sys@test

    SQL * more: version 11.1.0.7.0 - Production on Wed Apr 8 09:48:37 2009

    Copyright (c) 1982, 2008, Oracle. All rights reserved.

    Enter the password:
    ERROR:
    ORA-28009: connection as SYS must be SYSDBA or SYSOPER

    Enter the user name:

    sqlplus sys@test as sysdba

    SQL * more: version 11.1.0.7.0 - Production on Wed Apr 8 09:48:55 2009

    Copyright (c) 1982, 2008, Oracle. All rights reserved.

    Enter the password:

    Connected to:
    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL >

    Kind regards
    Tom
    http://OracleDBA.cz

  • I have several new emails in the Inbox, but I'm unable to view or even see them?

    I have several new emails in the Inbox, but I'm unable to view or even see them?

    Hey CRB123,

    Thank you for being a part of the communities of Apple Support.

    If I understand your message, you see a badge that you have unread e-mails in your Inbox, but they are not appearing.  An easy way to separate the emails read from the unread macOS that Sierra is to click the button to filter in the list of messages, or sort by unread:

    • Activate the filters: Click the filter button at the top of the list of messages, click unread to display the list of available filters, and then select one or more filters. A check mark indicates a filter is active.

      If you use more than one email account in Mail, you can filter the Inbox into account - for example, only show emails from your iCloud account.

    • Disable an active filter: Click on the filter.

    • Disable all filters: Click the filter button .

      Mail remembers your filters and automatically applied the next time that you click the filter button to activate the filters.

    You can also sort the list of messages - just click on "sort by" at the top of the list of messages, then select an attribute, such as and a sort order. In a typical configuration, click on a column header.

    Mail for Mac: filter the list of messages in Mail

    If no unread messages, then I would like to confirm if you have emails unread looking webmail for your email account. If you see the unread messages in webmail, go back to the mail app, and then rebuild your Inbox:

    You may have to re-create a mailbox to update the list of the messages it contains. For example, if messages seem to be missing or garbled, or if you don't find any relevant messages when you search by using the entire Message search option.

    • Select a mailbox in the Mail sidebar, then choose BALL > rebuild.

    When you rebuild the mailbox for accountIMAP or Exchange messages and attachments stored on your computer are discarded and then downloaded again from the mail server to your Mac. Your mailbox is empty until the download is complete.

    Mail for Mac: rebuild the mailboxes

    Take care.

  • latesy update cannot view emails

    I can't view any of my emails after the last update. I press the real email and all I get is a white screen.

    Hi angiefromstrathmore,

    Thanks for posting in the Community Support from Apple. I understand that your email shows a white screen on your iPhone. I use email frequently and can understand how this could be a drawback, so I'm happy to help you.

    You can go to settings > mail > Threading and disable full Threads. This should get your mail operational return.

    Take care.

Maybe you are looking for