SELECT the view doesn't take long, short definition - no difference in execplans

[Plans Execuion | http://misc.adammuller.sk/execplan.png]

Hello

I have a strange problem and I ran out of ideas already.
I have a fairly complex vision that selects about 10 long tables (about 4 M records each) and the id of customer pre build a "sentence of customer. I always get only one line from this point of view, for example. Select * from my_view where party_id = XYZ. I will NEVER select the whole view.

The problem is that running a query:
Select * from my_view where party_id = XYZ really time consuming, while putting party_id = XYZ condition directly in the view runs in 0.0 seconds.

After putting a FIRST_ROWS hint (1) ORDERED in a view, the execution plans seems to be the same (or very similar) to the two motions. Unfortunately, I can't transfer anything the screenshot of the environment - this is why I stick plans exec as the screenshots only - pls, follow the link: http://misc.adammuller.sk/execplan.png

Any help is greatly appreciated. Version of DB is 11.2.0.1.0.

View DDL:
create or replace view my_view as
select /*+ ORDERED FIRST_ROWS(1) */  pt.party_id
           pt.party_id as id_klienta_mdm,
           pt.master_reference_no as id_klienta_ref_mdm,
           pt.client_type as fo_po,
           pt.prim_id as rodne_cislo_ico,
           pt.c_sid as sid,
           case pt.client_type when f_get_param('CLIENT_TYPE_PRIVATE_INDIVIDUAL') then 1 else 0 end as fi_info_klient_fo,
           1 as fi_meno_klienta,
           pt.p_title_prefix as titul_pred,
           pt.p_first_name as meno,
           pt.p_last_name as priezvisko,
           pt.p_title_suffix as titul_za,
           pt.p_nationality as statna_prislusnost,
           doc.document_type as druh_dokladu,
           doc.document_number as cislo_dokladu,
           pt.p_birth_date as datum_narodenia,
           pi.place_of_birth as miesto_narodenia,
           f_gender2bis(pt.p_gender) as pohlavie,
           case pt.client_type when f_get_param('CLIENT_TYPE_CORPORATE') then 1 else 0 end as fi_info_klient_po_mdm,
           case pt.client_type when f_get_param('CLIENT_TYPE_CORPORATE') then 1 else 0 end as fi_info_klient_po,
           pt.c_name as nazov,
           pt.c_name_short as skr_nazov,
           nico.identification_value as nico,
           corp.sector as sektor,
           corp.nace_code as odvetvie,
           corp.ownership_type as vlastnictvo,
           pt.c_legal_form as pravna_forma,
           pt.c_foundation_date as datum_zalozenia,
           substr(corp.registration_docu_type, 40) as doklad,
           corp.vat_payer as platca_dph,
           corp.tax_office_no as cislo_du,
           corp.accounting_type as uctovnictvo,
           corp.deposit_protection as ochrana_vkladov,
           corp.asset_amount as zakladne_imanie,
           to_number(corp.finantial_situation) as financna_situacia,
           to_number(corp.reporting_period) as periodicita_vykazov,
           corp.first_report_date as datum_vykazu_prvy,
           corp.last_provided_report_date as datum_vykazu_posledny,
           exe.execution_type,
           case when exe.execution_type is null then 0 else 1 end as v_likvidacii,
           exe.valid_from as v_likvidacii_od,
           1 as fi_info_profil,
           prof.business_allowance as zvyhodnenie,
           dic.identification_value as dic,
           null as marketing,
           null as prilohy_emailu,
           prof.aml_level as stupen_rizika,
           prof.relation_to_bank as vztah_k_banke,
           prof.client_category as kategoria,
           substr(pt.remark, 160) as poznamka,
           null as tuzemec,
           pt.tax_domicile as domicil,
           case when trvala.address_id is null then 0 else 1 end as fi_trvala_adresa,
           trvala.street_name_short as trvala_adresa_ulica,
           trvala.city_short as trvala_adresa_mesto,
           trvala.zip as trvala_adresa_psc,
           trvala.state as trvala_adresa_stat,
           case when prechodna.address_id is null then 0 else 1 end as fi_prechodna_adresa,
           prechodna.street_name_short as prechodna_adresa_ulica,
           prechodna.city_short as prechodna_adresa_mesto,
           prechodna.zip as prechodna_adresa_psc,
           prechodna.state as prechodna_adresa_stat,
           1 as fi_kontakt_klienta,
           tel1.contact_value as tel_cislo1,
           tel2.contact_value as tel_cislo2,
           fax.contact_value as fax_cislo,
           email.contact_value as email,
           email.contact_value as modem, -- ano, naschval posielam do modemu email
           prof.pref_service_point as kontaktne_miesto
      from ucd.party pt
 left join ucd.party_identification nico
        on nico.party_id = pt.party_id and nico.identification_type = f_get_param('CLIENT_ID_TYPE_NICO')
       and trunc(sysdate) between nvl(nico.valid_from, to_date('1900', 'YYYY')) and nvl(nico.valid_until, to_date('2900', 'YYYY'))
 left join ucd.party_identification dic
        on dic.party_id = pt.party_id and dic.identification_type = f_get_param('CLIENT_ID_TYPE_DIC')
       and trunc(sysdate) between nvl(dic.valid_from, to_date('1900', 'YYYY')) and nvl(dic.valid_until, to_date('2900', 'YYYY'))
 left join ucd.party_profile prof
        on prof.party_id = pt.party_id
 left join ucd.party_corp corp
        on corp.party_id = pt.party_id
 left join ucd.party_pi pi
        on pi.party_id = pt.party_id
 left join ucd.party_corp_execution exe
        on exe.party_id = pt.party_id
       and trunc(sysdate) between nvl(exe.valid_from, to_date('1900', 'YYYY')) and nvl(exe.valid_until, to_date('2900', 'YYYY'))
       and exe.execution_type = f_get_param('EXECUTION_TYPE_LIKVIDACIA')
       and rownum = 1
 left join ucd.address trvala
        on trvala.party_id = pt.party_id
       and trvala.address_type = f_get_param('ADDRESS_TYPE_PERMANENT')
 left join ucd.address prechodna
        on prechodna.party_id = pt.party_id
       and prechodna.address_type = f_get_param('ADDRESS_TYPE_SUBSIDIARY')
 left join (select party_id, document_type, document_number,
                   rank() over (partition by party_id order by document_type asc, issue_date desc, document_number desc nulls last) as rank
              from ucd.document
             where status = f_get_param('STATUS_ACTIVE')) doc
        on doc.party_id = pt.party_id
       and doc.rank = 1
 left join ucd.contact tel1
        on tel1.party_id = pt.party_id
       and tel1.contact_category = f_get_param('CONTACT_CATEGORY_TEL')
       and tel1.contact_subcategory = f_get_param('CONTACT_SUBCATEGORY_TEL_PRIMARNY')
 left join ucd.contact tel2
        on tel2.party_id = pt.party_id
       and tel2.contact_category = f_get_param('CONTACT_CATEGORY_TEL')
       and tel2.contact_subcategory = f_get_param('CONTACT_SUBCATEGORY_TEL_SEKUNDARNY')
 left join ucd.contact fax
        on fax.party_id = pt.party_id
       and fax.contact_category = f_get_param('CONTACT_CATEGORY_FAX')
       and fax.contact_subcategory = f_get_param('CONTACT_SUBCATEGORY_FAX_NA')
 left join ucd.contact email
        on email.party_id = pt.party_id
       and email.contact_category = f_get_param('CONTACT_CATEGORY_EMAIL')
       and email.contact_subcategory = f_get_param('CONTACT_SUBCATEGORY_EMAIL_PRIMARNY')
 where pt.tec_active_rec = f_get_param('TEC_ACTIVE_FLG_ACTIVE')
   and pt.source_system = f_get_param('SOURCESYSTEM_MDM')
Published by: adammsvk on 16.8.2012 23:34

Edit:
I managed to get around this by adding
and pt.party_id = SYS_CONTEXT ('cx_cs', 'party_id')
and defining the context before selecting view in a package (this is the only package selected from this point of view) but there is a very very dirty, I do not have much

Published by: adammsvk on 16.8.2012 23:51

Published by: adammsvk on 20.8.2012 0:57
Discover DDL added around barcode labels

If please repeat your post and was able to add tags to code around it
as in
{code}

  select * from dual;

{code}

Now to your problem.
I think that this use of rownum is a bug.
Sometimes it might work, but sometimes not. It can also be a reason for the problem you describe.

...
left join ucd.party_corp_execution exe
    on exe.party_id = pt.party_id
    and trunc(sysdate) between nvl(exe.valid_from, to_date('1900', 'YYYY')) and nvl(exe.valid_until, to_date('2900', 'YYYY'))
    and exe.execution_type = f_get_param('EXECUTION_TYPE_LIKVIDACIA')
    and rownum = 1 "do not use rownum in such a way!"

This use of rownum could be one of the reasons why the filter do not spread into the inner query.

Test what happens if you remove this join the query completely.

Tags: Database

Similar Questions

  • SELECT the view is long - select on the short view definition.

    Hello everyone-

    There is a view in Oracle called V$ LOCK.

    If I do a number or a select on this point of view I get a result * 45 seconds *.

    There are about 77 records.

    However - if I do a select statement or a statement on the definition of the view (found in V$ FIXED_VIEW_DEFINITION)
    I get a result without delay. Immediately.

    I'm registered consequence "sqlplus / as sysdba"

    What is going on??? My feable brain can't understand!

    Thanks for any help,

    BB

    >
    There is a view in Oracle called V$ LOCK.
    >
    On 11.2, is not correct. A query on "select * from dba_synonyms, where synonym_name like"% LOCK"shows"

    V$ _LOCK-ONLINE V_$ _LOCK
    V$ LOCK => V_LOCK
    GV$ _LOCK-ONLINE GV_$ _LOCK
    GV$ LOCK => GV_$ LOCK

    And a query on "SELECT * FROM DBA_OBJECTS WHERE OBJECT_NAME LIKE"% % LOCK"shows"

    GV_$ LOCK-VIEW ONLINE
    GV_$ _LOCK-VIEW ONLINE
    V_$ LOCK-VIEW ONLINE
    V_$ _LOCK-VIEW ONLINE

    V$ LOCK is a synonym. And you may be questioning the proper underlying display for each of your requests, but sometimes the queries may not be on the view as you think they are.
    >
    If I do a count or a select on this point of view I get a result in 45 seconds.

    There are about 77 records.

    However - if I do a select statement or a statement on the definition of the view (found in V$ FIXED_VIEW_DEFINITION)
    I get a result without delay. Immediately.
    >
    We will see the first time you query data (when maybe there nothing in the cache) it is slower than the second time that you query the same data (when maby there is something in the cache)?

    This is not unusual.
    >
    Well - that's interesting. Still it took 11 seconds to 15 records!
    >
    Reviews? There isn't any "writings." The V$ s are 'dynamic' performance not the tables view (s). And read consistency is not guaranteed for them. Data are updated continuously so if there is no update will not change the data in the view and based on the data display data updates can barely change.

    It is unlikely that much, changed data, between your two queries.

    See "views of dynamic Performance" in the doc database
    http://docs.Oracle.com/CD/B28359_01/server.111/b28320/dynviews_1001.htm#i1398692
    >
    Oracle contains a set of views underlying which are maintained by the database server and accessible to the administrator database SYS user. These views are called dynamic views because performance that they are continually being updated when a database is open and in use and their content are mainly related to the performance.

    Although these views seem to be normal database tables, they are not. These views provide data on internal disk structures and memory.
    You can choose from these points of view, but you can never update or change.
    >
    See the NOTE just below (as well as the section dealing with the V$ and the GV$ views)
    >
    Because the information contained in the views V$ dynamic, coherent reading is not guaranteed for SELECT on these points of view operations.

  • Select the view v - table

    Hi guys,.

    I was hoping just to get your opinion on something.
    I have a Production process that is taking longer and more time to complete, and sticks to a certain section of code.
    The code is an INSERT in the main dimension table.

    This procedure works well on the TEST and the code section end much more quickly.
    Traffic on the Production is much heavier and there are applications developed by people other than me who SELECT this dimension table. I am assuming, based on the fact that the Test and Production code are identical, this increase in traffic could be eating upwards of bandwidth and slows down the jobs.

    So I thought - if I create views and leave the other applications hit the opinions as opposed to the main table, this will help speed it up. I did it before on a Teradata platform using a "dirty read" that has worked very well, but Oracle does not offer this option.

    What do you think guys? Impossible this work or do I have to take a different approach.

    Thank you.

    You are welcome

  • SELECT the view queries do not run unless the shared_pool hot flashes

    Hello

    Need some urgent advice

    We have a system that we are trying to run a simple select statement on a view (nested).

    in a first time - it gives a result in less than a second. After that, it takes an hour.

    Flushing the shared_pool, she will run again in less then a second... and then again an hour.

    flushes of heat if the shared_pool will solve it for a single run.

    I have already increased the shared_pool and it did not help... linux db system is 11.2.0.3.

    parameters:

    SGA_MAX_SIZE 6509559808

    shared_pool_size 2147483648

    pga_aggregate_target 1887436800

    Thank you

    ORI

    You could get an execution plan different for various reasons. Maybe the comments of cardinality: you might try setting _optimizer_use_feedback = false.

  • attempts to cancel the query discoverer - it takes long time to cancel...

    Hello world

    I cancelled a beak of query. It took a long time to run

    Now it takes a long time to cancel

    The admin is out to lunch...

    all advice, pls, thx, sandra

    Hi, Sandra
    In general, the reason for the cancellation of a query is that it has worked too long - right?

    Behind the scenes, one of two things happening, either:

    1. the request was to have a hard time finding data and is always looking, or
    2. the query found some data but not enough to satisfy the query governor parameters

    For these, depending on the amount of data has so far been recovered, discoverer must these data somewhere. This is called a cache. The data you put in a cache more must be allowed to come out it should you decide not to go forward. This is probably what has happened to you.

    Also, when you cancel a query you are generally posed a question about whether discoverer must keep the last change but does not return any data. If you click Yes in response to this question is usually what triggers the compensation of the cache. Most of the time I just click No, even if I made a little change. I tend to get my quick return query.

    Finally, if your discoverer worksheet is a crosstab or use Page elements, or even both at the same time, it is one of the causes of a long-running query. In these scenarios, discoverer has buckets to calculate and he has no idea how many buckets to until he has read all the data.

    My Discoverer 10 g manual and in my training I speak on the motion of The Twilight Zone. These are queries than ever or never looks back all the data and either expire or must be stopped manually. Sometimes these runaway queries trying to return each row of data in the database, but more generally, they are caused by the use of overcasual of page elements or tables double entry.

    Let us hope that this logbook help
    Best wishes
    Michael

  • Select the list doesn't work is not in the report - see demo

    Ok..

    I have created a demo on APEX 4.1.1... and 4.2 and it fails when 10 characters or more are in the list, with 103 lines or more

    http://Apex.Oracle.com/pls/Apex/f?p=13679:1

    workspace: nzp
    username:demo
    password: demo

    Dean

    You use the apex_item.select_list_from_query method which returns a VARCHAR2 value that has a maximum of 4000 bytes size when it is retrieved in a SQL query.

    Go to the apex_item.select_list_from_query_xl method returns a CLOB value up to 32 K in size, such as discussed in the error report: ORA-06502: PL/SQL: digital or value error: character string b. (The problem, it was not a not clear exactly how the list was generated).

  • Cannot select the Dictionary view user USER_TAB_COMMENT?

    Hello.

    I have this weird problem in 11.2.0.3

    I cannot select the view of the USER_TAB_COMMENT of a user dictionary, but others can.
    If I try to describe it, I get ORA-00942 and ORA-04043 messages.

    Here is my attempt. I create a comment on a table, try desc or select the view from the dictionary. Then connect with SYS and select the comment in the view "dba" to check if the comment was created:
    SQL> conn RODOLFO
    Introduzca la contraseña:
    Conectado.
    SQL> show user
    USER es "RODOLFO"
    SQL> comment on table DOCUMENTILLOS is 'This is a comment';
    
    Comentario creado.
    
    SQL> select table_name, comments from user_tab_comments;
    select table_name, comments from user_tab_comments
                                     *
    ERROR en línea 1:
    ORA-00942: la tabla o vista no existe
    
    SQL> desc user_tab_comments;
    ERROR:
    ORA-04043: el objeto "SYS"."DBA_TAB_COMMENTS" no existe
    
    
    SQL> desc all_tab_comments;
    ERROR:
    ORA-04043: el objeto "SYS"."DBA_TAB_COMMENTS" no existe
    
    
    SQL> conn / as sysdba
    Conectado.
    SQL> show user
    USER es "SYS"
    SQL> select owner, table_name, comments from dba_tab_comments
      2  where owner = 'RODOLFO' and table_name = 'DOCUMENTILLOS'
      3  ;
    
    OWNER                          TABLE_NAME
    ------------------------------ ------------------------------
    COMMENTS
    --------------------------------------------------------------------------------
    RODOLFO                       DOCUMENTILLOS
    This is a comment
    
    
    SQL>
    Other users, I don't have this problem
    SQL> conn MANOLO
    Introduzca la contraseña:
    Conectado.
    SQL> show user
    USER es "MANOLO"
    SQL> comment on table DOCS is 'This is a comment';
    
    Comentario creado.
    
    SQL> select table_name, comments from user_tab_comments where table_name = 'DOCS';
    
    TABLE_NAME
    ------------------------------
    COMMENTS
    --------------------------------------------------------------------------------
    DOCS
    This is a comment
    Clues why this is happening?

    Kind regards.

    elvegaa_esp wrote:
    What do you think?

    OK, the question is in the place where he is not pointing?

    Edit:
    Oh, it looks that it points to dba_tab_comments. Since your original post:

    desc user_tab_comments;
    ERROR:
    ORA-04043: el objeto "SYS"."DBA_TAB_COMMENTS" no existe
    

    Who do not have the right of Rodolfo.

    Thus, final to get rid of him.

    And a good thing that you do not 'go to your DBA"as suggested. It was just to choose the wrong solution to an unknown problem.

    Concerning
    Peter

    Published by: Peter on March 11, 2013 08:49

  • The view table selection error external references

    Can someone explain why the error near the bottom of the code below? If USER1 grants SELECT on the external table to User2, then USER2 can select the view without any problem; However, I would like to avoid to give User2 access to all the columns in the external table. (I mean only to give USER2 access to two of the four columns).
    SQL> CONNECT sys AS SYSDBA
    Connected as SYS@ as sysdba
    
    SQL> CREATE USER user1 IDENTIFIED BY user1
    User created.
    
    SQL> CREATE USER user2 IDENTIFIED BY user2
    User created.
    
    SQL> GRANT CONNECT, CREATE TABLE, CREATE VIEW TO user1
    Grant complete.
    
    SQL> GRANT CONNECT TO user2
    Grant complete.
    
    SQL> GRANT READ, WRITE ON DIRECTORY EXT_DATA_DIR TO user1, user2
    Grant complete.
    
    SQL> CONNECT user1/user1
    Connected as USER1@ 
    
    SQL> CREATE TABLE emp_xt
    (
      emp_id     NUMBER,
      first_name VARCHAR2(30),
      last_name  VARCHAR2(30),
      phone      VARCHAR2(15)
    )
    ORGANIZATION EXTERNAL
    (
      TYPE ORACLE_LOADER
      DEFAULT DIRECTORY EXT_DATA_DIR 
      ACCESS PARAMETERS 
      (
        RECORDS DELIMITED BY NEWLINE
        FIELDS TERMINATED BY ','
        OPTIONALLY ENCLOSED BY '"'            
      )
      LOCATION ('emp.txt')
    )
    REJECT LIMIT 0
    Table created.
    
    SQL> SELECT COUNT(1) FROM emp_xt
    
      COUNT(1)
    ----------
             4
    1 row selected.
    
    SQL> CREATE OR REPLACE VIEW emp_xt_view AS SELECT first_name, last_name FROM emp_xt;
    View created.
    
    SQL> SELECT COUNT(1) FROM emp_xt_view
    
      COUNT(1)
    ----------
             4
    1 row selected.
    
    SQL> GRANT SELECT ON emp_xt_view TO user2
    Grant complete.
    
    SQL> CONNECT user2/user2
    Connected as USER2@ 
    
    SQL> SELECT COUNT(1) from user1.emp_xt_view
    SELECT COUNT(1) from user1.emp_xt_view
    *
    Error at line 0
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    ORA-04043: object "USER1"."EMP_XT" does not exist
    
    SQL> CONNECT user1/user1
    Connected as USER1@ 
    
    SQL> GRANT SELECT ON user1.emp_xt TO user2
    Grant complete.
    
    SQL> CONNECT user2/user2
    Connected as USER2@ 
    
    SQL> SELECT COUNT(1) from user1.emp_xt_view
    
      COUNT(1)
    ----------
             4
    1 row selected.
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    user503699 wrote:

    Sven wrote:
    You have an interesting point for the current user AUTHID. What would be the consequences for that?

    Published by: Sven w. on August 11, 2010 16:45

    I'm not quite familiar with the feature of the data cartridge, nor used TYPEs a lot. But as the external tables use a type defined by the system (ORACLE_LOADER), I think a SQL against an external table called the underlying type procedure/function, and it is where the user rights come into picture.

    This seems very likely. I'm just thinking if there is a way around the problem. An idea might be to select on the view with User1 instead of user2. Perhaps via a loopback database link.

    Complete shot in the dark:

    not tested syntax

    /* do this as user1!  */
    create database link myDb connect to user1 identified by user1 using 'myDB';
    
    create view testLink_view as select * from externalTable_view@myDB;
    
    grant select on testLink_view to user2;
    

    I do not know if you need create the link to the db, since these often telesignalisations are already in place.

  • Error ORA-01031 insufficient privilege when selecting a view

    OK, I think it's maybe a stupid question, but I can't understand it:

    The user John won the right to SELECT (directly, not by a database role) to the FRED.table1 schema.
    John user can issue select * from FRED.table1; and it works very well.

    User John then got the right to SELECT (directly, without going through a database role) to the schema
    MARK.view1;

    MARK.view1 selects only FRED.table1. No other table is in the View1.
    Schema MARK questionable views successfully. SELECT * FROM View1 returns results.
    I also checked the MARK scheme to ensure that she got the select on FRED.table1 directly that he has.

    Now, when you're logged in schema John, I try SELECT * to SCORE. VIEW1; and I get error ORA-01031 insufficient privileges.

    I don't know how to solve this. If John is granted SELECT a TABLE, it works of course but I don't want John to have this powerful private.

    As a reminder, SELECT these two brands a John. View1 and the table View1 selects from (FRED. (TABLE 1).
    John can select FRED. Table1: no problem but does not receive a privilege error even if John has SELECT on the BRAND. VIEW1.

    Any thoughts?

    Oh, Oracle 10.2.0.4 EA

    JSebastian wrote:
    OK, I think it's maybe a stupid question, but I can't understand it:

    The user John won the right to SELECT (directly, not by a database role) to the FRED.table1 schema.
    John user can issue select * from FRED.table1; and it works very well.

    User John then got the right to SELECT (directly, without going through a database role) to the schema
    MARK.view1;

    MARK.view1 selects only FRED.table1. No other table is in the View1.
    Schema MARK questionable views successfully. SELECT * FROM View1 returns results.
    I also checked the MARK scheme to ensure that she got the select on FRED.table1 directly that he has.

    Now, when you're logged in schema John, I try SELECT * to SCORE. VIEW1; and I get error ORA-01031 insufficient privileges.

    I don't know how to solve this. If John is granted SELECT a TABLE, it works of course but I don't want John to have this powerful private.

    As a reminder, SELECT these two brands a John. View1 and the table View1 selects from (FRED. (TABLE 1).
    John can select FRED. Table1: no problem but does not receive a privilege error even if John has SELECT on the BRAND. VIEW1.

    Any thoughts?

    Oh, Oracle 10.2.0.4 EA

    Are you sure that John was granted select on Mark.view1? In order for that to work, Mark would have had to select on the WITH GRANT OPTION Fred.table1... otherwise the grant to fail and then John would not be able to select the view because the grant was never issued successfully.

    Here is a basic test case (which I think is consistent with what you said) to make it work.

    drop user u1 cascade;
    drop user u2 cascade;
    drop user u3 cascade;
    
    create user u1 identified by u1;
    grant connect, resource to u1; 
    
    create user u2 identified by u2;
    grant connect, resource, create view to u2;
    
    create user u3 identified by u3;
    grant connect, resource to u3;
    
    connect u1/u1@orcl
    create table test1 (col1 number);
    grant select on test1 to u2 with grant option; --> this is the important part
    grant select on test1 to u3;
    
    connect u2/u2@orcl
    create view test2 as select * from u1.test1;
    grant select on test2 to u3;
    
    connect u3/u3@orcl
    select * from u2.test2;
    
  • SELECT the list of the table...?

    How to select the (view) on the list of all tables in the database, please?
    I forgot this command and you will not find anywhere? He drives me crazy... ((
    It was something like "SELECT (table names) of user tables.
    I work in SQL * more

    Thank you
    SELECT table_name
      FROM user_tables
    

    This will show you all the tables that has the current user. You can also query the DBA_TABLES or ALL_TABLES if you want to see all the tables you have access to or all tables in the database.

    Justin

  • Restrict the user to associate a specific type + definition assets

    Hello

    Is there a way to restrict user access to associate only active special definition for a type of asset to FatWire 7.6.2

    For example: If there are 2 definitions for a type of asset (flex), while creating the attribute type-active, I am able to select the type of assets but no particular definition.

    Any suggestions or ideas.

    Kind regards

    Guddu

    Unfortunately, out of the box this feature is not available in version 7.6.2 FatWire (available in 11 g).

    You must create a custom attribute Editor by extending the PickAsset attribute Editor to achieve this.

    Kind regards

    Ravi Guntuku

  • Open with options: I want to add a new application to the list right click on file-> open with and rearrange the list so my search app is first. I know that I can use open with-> other and select any application, but it takes too much time since I u

    I want to add a new application to the list right click on file-> open with

    and also reorder the list so my search app is first / top of the list.

    I know that I can use open with-> other and select any application, but it takes too long I should use my intended application in this way several times a day.

    Basically, I'm looking for a configurable way configure open with, something more to send to Windows.

    Thank you very much for all the advice offered.

    The operating system, not you, not control that open with the menu command.

  • Some hyperslinks in the exported PDF file takes the Viewer to the pages "broken/missing. For example, the hyperlinks to specific of Youtube videos does not work, they brought to a youtube page is missing.

    Some hyperslinks in the exported PDF file takes the Viewer to the pages "broken/missing. For example, the hyperlinks to specific of Youtube videos does not work, they brought to a youtube page is missing.

    Hi Sarah!

    I solved it! I had to use the original URL shorter links to create

    functional hyperlinks or try to short the links using Google URL Shortener.

    I don't know why it worked by doing this, but he did!

    With the friendly and happy greetings!

    Sonny. A

    2015-11-24 9:32 GMT + 01:00 aadeshs76610910 [email protected]>:

    You talked

    by aadeshs76610910

    https://forums.Adobe.com/people/aadeshs76610910?et=notification.mention> * in

    Re: A few hyperslinks in the exported PDF file takes the Viewer to

    pages "broken/missing. For example specific Hypertext to Youtube videos links

    does not work, they will bring to a youtube page is missing. in Adobe

    Community *-view aadeshs76610910 you reference

    https://forums.Adobe.com/message/8209923?et=notification.mention#8209923>

  • Purge the concurrent request and/or Manager Data - take long & end with error completed

    Purge the concurrent request and/or Manager Data - take long & end with error completed.

    What ever the age values 30,70,1000

    ****

    Select count (*) in the FND_CONCURRENT_PROCESSES;

    COUNT (*)

    -----

    32149

    ****

    Select count (*) from the FND_CONCURRENT_REQUESTS;

    COUNT (*)

    -----

    585499

    ****

    Request of min | Application of Max date | Date

    -------------------- --------------------

    SEPT. 13.-10 10 OCTOBER 13

    My problem is now solved

    the cause of the problem was:

    After the clone for the new Production Server FND_CONCURRENT_PROCESSES & FND_CONCURRENT_REQUESTS table 'old' lines were still talking to the node that is no longer available in the new production to LOGFILE_NAME and OUTFILE_NAME columns.

    And after the removal of these lines, executes the request was very quick and works as it should work now.

    Thanks for all the help I get here and with the SR team too

  • How to view several categories of items in the Web application list? Change list listbox to list box to select the category in the submission process?

    Hello!

    1.

    I'm trying to get my page for webapp of list items that are part of a few categories. I understand that if I want to see that one category, I just need to do the normal process to choose this category and put him outside. So my question is: How can I view several categories of items in a Web application on a single page. I tried this

    {module_webapps, WEBAPP_ID, c, CATEGORY_ID1, 10, 1} {module_webapps, WEBAPP_ID, c, CATEGORY_ID2, 10, 1}

    This displays only the whole of the first category, then all the other who will not succeed by date order.

    I also tried this for fun:

    {module_webapps, WEBAPP_ID, c, CATEGORY_ID1 & CATEGORY_ID2, 10, 1}

    How can I go to?

    2.

    I'm looking to allow users to enter a webapp item and allow them to select a category to link to this article.

    < label for = "CAT_Category" > category (you can choose more than 1) < span class = "req" > * </span > < / label >

    < select name = "CAT_Category" id = "CAT_Category" class = "cat_listbox" lines = "4" multiple = "multiple" style = "" height: 60px banner; ">"

    < option value = "CATEGORY_ID1" > - Option 1 < / option >

    < option value = "CATEGORY_ID2" > - Option 2 < / option >

    < / select >

    Is it possible for me to change the style of the listbox in a style box so that the user doesn't have to Ctrl + click on options?

    No answer to no. 1, but I really want to know also.

    N ° 2

    If you already know the category list & ID you can manually create a list of checkboxes

    something like this should work

Maybe you are looking for