Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Installation script fails on check_object_grants without access to dba_tab_privs #712

@Pazus

Description

@Pazus

We execute this select:

select listagg(' -  '||object_name,CHR(10)) within group(order by object_name)
    from (
  select column_value as object_name
    from table(:l_expected_grants)
   minus
  select table_name as object_name
    from ]'||get_view('dba_tab_privs')||q'[
   where grantee = SYS_CONTEXT('userenv','current_schema')
     and owner = 'SYS')]

but there is no owner column in all_tab_privs view.

There is table_schema column in all_tab_privs (11.2
https://docs.oracle.com/cd/E11882_01/server.112/e40402/statviews_2110.htm#REFRN20282
https://docs.oracle.com/database/121/REFRN/GUID-F3265681-6114-45C2-BE79-99C8D0DD517E.htm#REFRN20282
https://docs.oracle.com/en/database/oracle/oracle-database/12.2/refrn/ALL_TAB_PRIVS.html

and owner column in dba-tab_privs
https://docs.oracle.com/cd/E18283_01/server.112/e17110/statviews_5051.htm
https://docs.oracle.com/database/121/REFRN/GUID-4AC57A96-FF55-4788-9301-AFED23AE3934.htm#REFRN23282
http://www.dba86.com/docs/oracle/12.2/REFRN/DBA_TAB_PRIVS.htm

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions