Performance issue: View query is calculating a column value before filterin

Hi,
I have a view like this.(My view is more complex than this..I just tried to imitate the situation )
Select emp_id, emp_name, calculate_salary(emp_id) salary
  From employees
Where nvl(department, '@@##$$') = nvl(get_global.department, '@@##$$')When I execute the below query
select emp_name from my_view where salary=10000 by setting a value to get_globals.department I found that it first calls the calculate_salary instead of applying the filter for departments. By somehow the cost base analyzer thinks that calling the function is cheaper than applying the filter. I wonder whether there is way to direct the cba and say to first apply the filters before calculating column values.
Any suggestions ?
Thanks

I don't think it's possible.
Before a WHERE clause can be applied the data has to be collected for the row so Oracle, I would imagine, isn't going to differentiate between what is a database column and a function, fetch just the columns, do the filtering and then go back to calculate the rest of the columns; it's just going to get all the columns, including the calculated ones, and then apply the filters.
The only option would be to do...
select emp_id, emp_name, calculate_salary(emp_id) salary
from (select emp_id, emp_name
      from employees
      where nvl(deparment, '@@##$$') = nvl(get_global.department, '@@##$$')
      )as your view

Similar Messages

  • Performance issue on query. Help needed.

    This is mainly a performance issue. I hope someone can help me on this.
    Basically I have four tables Master (150000 records), Child1 (100000+ records), Child2 (50 million records !), Child 3 (10000+ records)
    (please pardon the aliases).
    Now every record in master has more than one corresponding record in each of the child tables (one to many).
    Also there may not be any record in any or all of the tables for a particular master record.
    Now, I need to fetch the max of last_updated_date for every master record in each of the 3 child tables and then find the maximum of
    the three last_active_dates obtained from the 3 tables.
    eg: for Master ID 100, I need to query Child1 for all the records of Master ID 100 and get the max last_updated_date.
    Same for the other 2 tables and then get the maximum of these three values.
    (I also need to take care of cases where no record may be found in a child table for a Master ID)
    Writing a procedure that uses cursors that fetches the value from each of the child table hits performance
    badly. And thing is I need to find out the last_updated_date for every Master record (all 150000 of them). It'll probably take days to do this.
    SELECT MAX (C1.LAST_UPDATED_DATE)
    ,MAX (C2.LAST_UPDATED_DATE)
    ,MAX (C3.LAST_UPDATED_DATE)
    FROM CHILD1 C1
    ,CHILD2 C2
    ,CHILD3 C3
    WHERE C1.MASTER_ID = 100
    OR C2.MASTER_ID = 100
    OR C3.MASTER_ID = 100
    I tried the above but I got a temp tablespace error. I don't think the query is good enough at all.
    (The OR clause is to take care of no records in any child table. If there's an AND, then the join and hence select will
    fail even if there is no record in one child table but valid values in the other 2 tables).
    Thanks a lot.
    Edited by: user773489 on Dec 16, 2008 11:49 AM

    Not sure I understand the problem. The max you are getting from the above is already the greatest out of the three - that's why we do the UNION ALL.
    Here's sample code without output, maybe this will clear it up:
    with a as (
    select 10 MASTER_ID, to_date('12/15/2008', 'MM/DD/YYYY') LAST_DTE from dual UNION ALL
    select 20 MASTER_ID, to_date('12/01/2008', 'MM/DD/YYYY') LAST_DTE from dual UNION ALL
    select 30 MASTER_ID, to_date('12/02/2008', 'MM/DD/YYYY') LAST_DTE from dual
    b as (
    select 10 MASTER_ID, to_date('12/14/2008', 'MM/DD/YYYY') LAST_DTE from dual UNION ALL
    select 20 MASTER_ID, to_date('12/02/2008', 'MM/DD/YYYY') LAST_DTE from dual UNION ALL
    select 40 MASTER_ID, to_date('11/15/2008', 'MM/DD/YYYY') LAST_DTE from dual
    c as (
    select 10 MASTER_ID, to_date('12/07/2008', 'MM/DD/YYYY') LAST_DTE from dual UNION ALL
    select 30 MASTER_ID, to_date('11/29/2008', 'MM/DD/YYYY') LAST_DTE from dual UNION ALL
    select 40 MASTER_ID, to_date('12/13/2008', 'MM/DD/YYYY') LAST_DTE from dual
    select MASTER_ID, MAX(LAST_DTE)
    FROM
    (select MASTER_ID, LAST_DTE from a UNION ALL
    select MASTER_ID, LAST_DTE from b UNION ALL
    select MASTER_ID, LAST_DTE from c)
    group by MASTER_ID;
    MASTER_ID              MAX(LAST_DTE)            
    30                     02-DEC-08                
    40                     13-DEC-08                
    20                     02-DEC-08                
    10                     15-DEC-08                
    4 rows selectedEdited by: tk-7381344 on Dec 16, 2008 12:38 PM

  • Performance issues while query data from a table having large records

    Hi all,
    I have a performance issues on the queries on mtl_transaction_accounts table which has around 48,000,000 rows. One of the query is as below
    SQL ID: 98pqcjwuhf0y6 Plan Hash: 3227911261
    SELECT SUM (B.BASE_TRANSACTION_VALUE)
    FROM
    MTL_TRANSACTION_ACCOUNTS B , MTL_PARAMETERS A  
    WHERE A.ORGANIZATION_ID =    B.ORGANIZATION_ID 
    AND A.ORGANIZATION_ID =  :b1 
    AND B.REFERENCE_ACCOUNT =    A.MATERIAL_ACCOUNT 
    AND B.TRANSACTION_DATE <=  LAST_DAY (TO_DATE (:b2 ,   'MON-YY' )  )  
    AND B.ACCOUNTING_LINE_TYPE !=  15  
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      3      0.02       0.05          0          0          0           0
    Fetch        3    134.74     722.82     847951    1003824          0           2
    total        7    134.76     722.87     847951    1003824          0           2
    Misses in library cache during parse: 1
    Misses in library cache during execute: 2
    Optimizer mode: ALL_ROWS
    Parsing user id: 193  (APPS)
    Number of plan statistics captured: 1
    Rows (1st) Rows (avg) Rows (max)  Row Source Operation
             1          1          1  SORT AGGREGATE (cr=469496 pr=397503 pw=0 time=237575841 us)
        788242     788242     788242   NESTED LOOPS  (cr=469496 pr=397503 pw=0 time=337519154 us cost=644 size=5920 card=160)
             1          1          1    TABLE ACCESS BY INDEX ROWID MTL_PARAMETERS (cr=2 pr=0 pw=0 time=59 us cost=1 size=10 card=1)
             1          1          1     INDEX UNIQUE SCAN MTL_PARAMETERS_U1 (cr=1 pr=0 pw=0 time=40 us cost=0 size=0 card=1)(object id 181399)
        788242     788242     788242    TABLE ACCESS BY INDEX ROWID MTL_TRANSACTION_ACCOUNTS (cr=469494 pr=397503 pw=0 time=336447304 us cost=643 size=4320 card=160)
       8704356    8704356    8704356     INDEX RANGE SCAN MTL_TRANSACTION_ACCOUNTS_N3 (cr=28826 pr=28826 pw=0 time=27109752 us cost=28 size=0 card=7316)(object id 181802)
    Rows     Execution Plan
          0  SELECT STATEMENT   MODE: ALL_ROWS
          1   SORT (AGGREGATE)
    788242    NESTED LOOPS
          1     TABLE ACCESS   MODE: ANALYZED (BY INDEX ROWID) OF
                    'MTL_PARAMETERS' (TABLE)
          1      INDEX   MODE: ANALYZED (UNIQUE SCAN) OF
                     'MTL_PARAMETERS_U1' (INDEX (UNIQUE))
    788242     TABLE ACCESS   MODE: ANALYZED (BY INDEX ROWID) OF
                    'MTL_TRANSACTION_ACCOUNTS' (TABLE)
    8704356      INDEX   MODE: ANALYZED (RANGE SCAN) OF
                     'MTL_TRANSACTION_ACCOUNTS_N3' (INDEX)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      row cache lock                                 29        0.00          0.02
      SQL*Net message to client                       2        0.00          0.00
      db file sequential read                    847951        0.40        581.90
      latch: object queue header operation            3        0.00          0.00
      latch: gc element                              14        0.00          0.00
      gc cr grant 2-way                               3        0.00          0.00
      latch: gcs resource hash                        1        0.00          0.00
      SQL*Net message from client                     2        0.00          0.00
      gc current block 3-way                          1        0.00          0.00
    ********************************************************************************On a 5 node rac environment the program completes in 15 hours whereas on a single node environemnt the program completes in 2 hours.
    Is there any way I can improve the performance of this query?
    Regards
    Edited by: mhosur on Dec 10, 2012 2:41 AM
    Edited by: mhosur on Dec 10, 2012 2:59 AM
    Edited by: mhosur on Dec 11, 2012 10:32 PM

    CREATE INDEX mtl_transaction_accounts_n0
      ON mtl_transaction_accounts (
                                   transaction_date
                                 , organization_id
                                 , reference_account
                                 , accounting_line_type
    /:p

  • Performance Issue in Query using = and =

    Hi,
    I have a performance issue in using condition like:
    SELECT * FROM A WHERE ITEM_NO>='M-1130' AND ITEM_NO<='M-9999'.
    Item_No is a varchar2 field and the field contains Numberical as well as string values.
    Can anyone help to solve the issue.
    Thanks and Regards

    How can you say it is a performance issue with the condition? Do you have execution plan? If yes, post it between [pre] and [/pre] tags. Like this.
    [pre]SQL> explain plan for
      2  select sysdate
      3  from dual
      4  /
    Explained.
    SQL> select * from table(dbms_xplan.display)
      2  /
    PLAN_TABLE_OUTPUT
    Plan hash value: 1546270724
    | Id  | Operation        | Name | Rows  | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT |      |     1 |     2   (0)| 00:00:01 |
    |   1 |  FAST DUAL       |      |     1 |     2   (0)| 00:00:01 |
    8 rows selected.
    SQL>
    [/pre]

  • Performance issue with query when generated from an ODS

    I am generating a query from an ODS. The run time is very high. How do I improve the performance of the query ?

    Hi Baruah,
    Steps:
    1. Build the Secondary Index.
    2. divide the data in to 2 ODS where Historical and Present data ODS's and then build a Multiprovider and build the query on multiprovider.
    3.  Build the Indexing on the Table level (ODS table level).
    We cannot make much faster performance for the ODS's that too with huge data...
    The above are very few of them...
    Hope you understood ..
    Regards,
    Ravi Kanth

  • Some hierarchy related issues, SQL Query is including unselected columns?

    Hello Guys...
    I have something strange happening in my report.. First of all, the RPD I have is built according to JDE model.
    There is a schema which looks like this:
    BU Dim ------->Fact<---------Account Dim <--------BU Account Dim (Indeed a copy of BU Dim)
    A dim hierarchy is created as AccountDim with Account Desc at the lowest bottom level, the dimension key at that level is AcctID which is the unique identifier.
    The issue comes when I created a report using Account, Account Desc, Fact Measures. The measures are not displayed as per account even if the joins and aggr levels are all defined correctly at the proper level..
    I checked the sql that is generately, it is interested that whenever I include Account Desc column in the report, the SQL will include Actid column in the select and groupby part, which results in data being at the wrong level..
    When I remove Actid from Account Hierarchy as the key, the report runs correctly and the SQL query won't include Actid column.. However, since the removal of the ACTid key from Account Hierarchy will cause other reports not running properly, I have to revert the change back to normal.. I'd like to know what to do in order to investigate more deeply as what's going on and as why the SQL will include columns fields that are not selected at answer levels..
    Any suggestions will be greatly appreciately.. I'd like to provide the rpd file, but not sure how to..
    Many Thanks

    Hi, Vikeng,
    Why use the salary table at all, if you're not ever getting any information from it?
    Why not:
    SELECT  EmpName
    ,      DeptName
    ,      'N/A'          AS SalaryValue
    FROM     Employee
    ,     Department
    WHERE      Employee.EmployeeId     = Department.EmployeeId
    Are you saying that somethimes there is a relationship, but not with this sample data?
    If so, post some different sample data (CREATE TABLE and INSERT statements) that has a relationship for some rows, and not for others. Post the results you want from that data, and explain, with specific examples, how you get those results from that data.
    You might just need an outer join.

  • Performance issue with Query

    11g
    Hi there experts,
      I have an issue with performance with a simple SQL which I thought cannot be tuned but just wanted to check with the experts here. We are running a query to get a persons ID based on his logged in email address from a Parties table which is huge (Millions of records). The query takes about 30 seconds to return a value. Was wondering is there a way to optimize this
    The query is
    {code}
    select par.party_id
    from parties party, users users
    where
    lower(party.email_address) = lower(:USER_EMAIL)
    and party.system_reference = to_char(users.person_id)
    and users.active_flag ='Yes';
    {code}
    The emails are stored in upper and lower, hence the lower functions
    IS creating a function based index the only way?
    Thanks,
    Ryan

    Hi Everyone.
    Thanks and apologies, first post on tuning as such. Here is the explain plan generated through SQL DEVELOPER. IT showed the output in XML
    By the way, looks like the {code} tag does not work?
    {code}
      SELECT STATEMENT
      84903
         HASH JOIN
      84903
         Access Predicates
         PARTY.ORIG_SYSTEM_REFERENCE=TO_CHAR(PERSON_ID)
         TABLE ACCESS
         PER_USERS
      STORAGE FULL
      1059
         Access Predicates
         AND
         ACTIVE_FLAG='Y'
         OR
         OR
         BUSINESS_GROUP_ID=0
         BUSINESS_GROUP_ID=1
         BUSINESS_GROUP_ID=DECODE(SYS_CONTEXT('FND_VPD_CTX','FND_ENTERPRISE_ID'),NULL,BUSINESS_GROUP_ID,TO_NUMBER(SYS_CONTEXT('FND_VPD_CTX','FND_ENTERPRISE_ID')))
         Filter Predicates
         AND
         ACTIVE_FLAG='Y'
         OR
         OR
         BUSINESS_GROUP_ID=0
         BUSINESS_GROUP_ID=1
         BUSINESS_GROUP_ID=DECODE(SYS_CONTEXT('FND_VPD_CTX','FND_ENTERPRISE_ID'),NULL,BUSINESS_GROUP_ID,TO_NUMBER(SYS_CONTEXT('FND_VPD_CTX','FND_ENTERPRISE_ID')))
         TABLE ACCESS
         HZ_PARTIES
      STORAGE FULL
      83843
         Access Predicates
         LOWER(PARTY.EMAIL_ADDRESS)='[email protected]'
         Filter Predicates
         LOWER(PARTY.EMAIL_ADDRESS)='[email protected]'
    {code}
    Purvesh, around 50% are 'Yes'
    Thanks!

  • Performance issues with query input variable selection in ODS

    Hi everyone
    We've upgraded from BW 3.0B to NW04s BI using SP12.
    There is a problem encountered with input variable selection. This happens regardless of using BEx (new or old 3.x) or using RSRT. When using the F4 search help (or "Select from list" in BEx context) to list possible values, this takes forever for large ODS (containing millions of records).
    Using ST01 and SM50 to trace the code in the same query, we see a difference here:
    <u>NW04s BI SQL command</u>
    SELECT                                                                               
    "P0000"."COMP_CODE" AS "0000000032" ,"T0000"."TXTMD" AS "0000000032_TXTMD"                             
    FROM                                                                               
    ( "/BI0/PCOMP_CODE" "P0000" ) LEFT OUTER JOIN "/BI0/TCOMP_CODE" "T0000" ON  "P0000"."COMP_CODE" = "T0000
      "."COMP_CODE"                                                                               
    WHERE                                                                               
    "P0000"."OBJVERS" = 'A' AND "P0000"."COMP_CODE" IN ( SELECT "O"."COMP_CODE" AS "KEY" FROM              
      "/BI0/APY_PP_C100" "O" )                                                                               
    ORDER BY                                                                               
    "P0000"."COMP_CODE" ASC#                                                                               
    <u>BW 3.0B SQL command:</u>
    SELECT ROWNUM < 500 ....
    In 3.0B, rownum is limited to 500 and this results in a speedy, though limited query. In the new NW04s BI, this renders the selection screen unusable as ABAP dumps for timing out will occur first due to the large data volume searched using sequential read.
    It will not be feasible to create indexes for every single query selection parameter (issues with oerformance when loading, space required etc.). Is there a reason why SAP seems have fallen back on a less effective code for this?
    I have tried to change the number of selected rows to <500 in BEx settings but one must reach a responsive screen in order to get to that setting and it is not always possible or saved for the next run.
    Anyone with similar experience or can provide help on this?

    here is a reason why the F4 help on ODS was faster in BW 3.x.
    In BW 3.x the ODS did not support the read mode "Only values in
    InfoProvider". So If I compare the different SQL statements I propose
    to change the F4 mode in the InfoProvider specific properties to
    "About master data". This is the fastest F4 mode.
    As an alternative you can define indexes on your ODS to speed up F4.
    So would need a non-unique index on InfoObject 0COMP_CODE in your ODS
    Check below for insights
    https://forums.sdn.sap.com/click.jspa?searchID=6224682&messageID=2841493
    Hope it Helps
    Chetan
    @CP..

  • Performance issue in query on reguh

    Hi,
    The following query on table REGUH is taking a lot of time..
        SELECT laufd laufi xvorl
               zbukr lifnr kunnr
               empfg vblnr znme1
               znme2 rbetr
            FROM reguh
              INTO TABLE i_reguh_vendor
                 FOR ALL ENTRIES IN i_lfa1
                   WHERE laufd IN s_laufd AND
                         zbukr EQ i_lfa1-bukrs AND
                         lifnr EQ i_lfa1-lifnr AND
                         rzawe IN s_rzawe AND
                         uzawe IN s_uzawe AND
                         xvorl IN s_xvorl.
    The company code is available on the selection screen as select-option.

    Check out the OSS Note numbers # 597984 ( Create Index )
    and 145647
    597984 ( Create Index )
    Solution
    Solve the performance problem by importing Support Packages for Release 4.6C and 4.70. You can implement an advance correction. For this purpose implement the attached program corrections and create the following index in table REGUH:
    Transaction SE11
    Display Database table REGUH
    Goto -> Indexes...
    In the standard system no indexes have been defined yet, so answer the displayed question "Do you want to create an index? " with "Yes". If customer-specific indexes have already been created, click on "Create" (F5) for the creation of a new index in the dialog box.
    Index Name:     PMW
    Short description: Logical database FPMF of Payment Medium Workbench
    Index flds:       MANDT
                     FPM_KEY
                     GRPNO
                     SRTF1
    Index -> Activate
    Consequently, the index exists in the ABAP Dictionary. Finally, the index must be activated in the database.
    If you cannot activate the index via "Utilities -> Database utility -> Create database index", let your database administrator create the index.
    Note that follow-up actions can be required depending on the database, so that the new index is used.
    For example, with DB2/390 a RUNSTATS must be carried out on table REGUH using Transaction DB13.
    Hope this`ll help you .
    Good Luck !
    Thanks
    Message was edited by: Saquib Khan

  • Performance issue in query

    Hi,
    I have this query in my program, it’s taking so much time to execute. Can you pls look at this query and tell me whats wrong with it. ITAB which is used in for all enteries has around 3000 records.  
        SELECT * FROM regup
                 INTO CORRESPONDING FIELDS OF TABLE itab1
                  FOR ALL ENTRIES IN itab
                 WHERE bukrs = itab-bukrs
                   AND  belnr = itab-belnr
                   AND  lifnr = itab-lifnr
                   AND  gjahr = itab-gjahr
                   AND  vblnr NE space.
    Can you tell me how I can optimize this?
    Your answers will be rewarded.
    Thanks

    In addition to sorting the itab as Rich suggested, you should then delete adjacent duplicates from itab comparing bukrs belnr lifnr gjahr. This will create the smallest possible itab for selecting. if you need this table for other processing, create another work table and use it instead.
    But since you are not using an index, it will still take time.
    Rob

  • Issue in query created on infoset - characterstic values are not displayed

    Hi,
    We have created a query based on an infoset(customized). In this query, values of only one object(sold-to-party) is not displayed. Where as for the same object, values are displayed in the other query created based on the respective ODS.
    note : Query based on infoset is alone not coming.
    This is the description of the error -
    System error in program CL_RSMD_RS and IF_RSMD_RS-READ_META_DATA-02. and it is showing (No entries found).
    And apart from that, the values of their respective attributes are also not displayed in the report.
    I even verified the object in RSA1 where data is available for that.
    Need Help to solve ....
    Regards,
    Chandru..

    Can any one answer for Issue-2. Even I am also facing the same.
    Thanks in Advance.

  • Issue in Query to find the Cumulative Values

    Hi All,
    I am developing one Query in which i have to show plant wise last 12 months status of audit.
    In this audit i am able to show the types of audits say X,Y,Z perfectly.
    But the thiing i want to calculate is the cumulative values of X,Y,Z before the last 12 months.
    For Ex: Audit         X         Y       Z       Formula(X+Y-Z)
               month1       10       20      30     0
               month2       10       30      10   30
               month12     20        40     20    40
               month13    ***(X)  ***(Y)   ***(Z)..till
    Like this i want to develop the report as per the requirement.
    Please help how to resolve this issue.
    Thanks in Advance.

    Hi All,
    I am developing one Query in which i have to show plant wise last 12 months status of audit.
    In this audit i am able to show the types of audits say X,Y,Z perfectly.
    But the thiing i want to calculate is the cumulative values of X,Y,Z before the last 12 months.
    For Ex: Audit         X         Y       Z       Formula(X+Y-Z)
               month1       10       20      30     0
               month2       10       30      10   30
               month12     20        40     20    40
               month13    ***(X)  ***(Y)   ***(Z)..till
    Like this i want to develop the report as per the requirement.
    Please help how to resolve this issue.
    Thanks in Advance.

  • Query- not to repeat  column value

    Hello,
    tried find the solution from the forum... but no luck ....if it repeation please excuse me.
    Data on the Table.
    ID       U_ID     NAME     
    100     1          AAA
    100     3          BBB
    200     1          CC
    200     2          DDD
    200     3          EEEEMy output Should be
    ID       U_ID     NAME     
    100     1          AAA
              3          BBB
    200     1          CC
              2          DDD
              3          EEEENo repetation of ID
    Kindly suggest me.
    Thanks,
    Amuly

    with t as
    (select '100' ID,'1' U_ID,'AAA' NAME from dual union all
    select '100','3','BBB' from dual union all
    select '200','1','CC' from dual union all
    select '200','2','DDD' from dual union all
    select '200','3','EEEE' from dual)
    select decode(row_number() over(partition by ID order by name),1,id) ID,u_id,name
    from t;
    ID U NAME
    100 1 AAA
    3 BBB
    200 1 CC
    2 DDD
    3 EEEE
    Thanks,
    Ramadurga
    Edited by: 968136 on Nov 2, 2012 12:20 PM

  • Send email with column values before and after change with workflow

    I am trying to send an email to specified users when a column in a list changes in MOSS 2007 with workflow. I have a comments column in a list and whenever any user updates that comment, a mail should go to the creator and specific group stating what has
    changed.
    I saw a response which states to create 2 lists and keep them in sync and compare values of comments from the two lists. But that is not a perfect solution.
    Please help. Thanks in advance.

    Hi,
    If we want to compare a column with itself, we need the help of another column. We can create a column in the same list
    named Comment2 for example, and it’s the backup copy of
    comments.
    The workflow conditions can be set that if
    comments not equal Comment2, in Actions set send an email (we can get the previous value in
    Comment2 and new value in comments), and then update the
    Comment2 to comments.
    Thanks,
    Emir

  • Query giving performance issues.

    Hi All,
    Following query is giving performance issues. Query execution is taking around 11 minutes. Our client requirement is to get the data for the query in 30 sec to 1 min. Please suggest.
    SELECT
    DISTINCT r.rptid, p.product_id, p.vnd_dscr, p.vendor_cd, p.Firm_Cd, a.is_mm_sweep IsMoneyMarket
    FROM
    dev.ac_cube a,
    dev.rpt_master_rep_list_view r,
    dev.cur_ps_cube p
    WHERE a.repid = r.rep_id
    AND a.accountkey = p.accountkey
    AND p.product_id IS NOT NULL
    AND p.product_id != 'CASH'
    AND r.RPTID = '42817'
    Number of distinct records fetched by above query : 34445
    Number of records in dev.ac_cube table : 13.6 million
    Number of records in dev.cur_ps_cube table : 7 million
    Number of records in dev.rpt_master_rep_list_view for RPTID '42817' : 118354
    repid, product_id is indexed column in dev.ac_cube table. accountkey is primary key in dev.ac_cube table.
    rep_id is indexed column in base table on which dev.rpt_master_rep_list_view view is created

    The output is not complete as i expected. Have you followed the steps I have mentioned in my earlier post
    Also when posting output enclose between two {*code*} ...{*code*} (remove * within braces). It displays everything between the tags as proper formatted output otherwise its really hard to read and understand
    See sample below. However you need to get the session id, sql id, display_cursor output exactly in same way as mentioned in my previous post
    SQL> set arraysize 200 timing on serveroutput on linesize 200;
    SQL> set autotrace traceonly explain statistics;
    SQL> select level from dual  connect by level <= 10000;
    10000 rows selected.
    Elapsed: 00:00:00.09
    Execution Plan
    Plan hash value: 1236776825
    | Id  | Operation                    | Name | Rows  | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT             |      |     1 |     2   (0)| 00:00:01 |
    |   1 |  CONNECT BY WITHOUT FILTERING|      |       |            |          |
    |   2 |   FAST DUAL                  |      |     1 |     2   (0)| 00:00:01 |
    Statistics
              1  recursive calls
              0  db block gets
              0  consistent gets
              0  physical reads
              0  redo size
          57406  bytes sent via SQL*Net to client
            919  bytes received via SQL*Net from client
             51  SQL*Net roundtrips to/from client
              1  sorts (memory)
              0  sorts (disk)
          10000  rows processed
    SQL>
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • Photoshop CS4  shuts down only when creating new project.

    I've had CS4 web premium since nov. 08 and everything worked fine until the most recent update from adobe. I ONLY have this problem with Photoshop cs4: when creating a new project after selecting the aspects (name, width, hight, etc.) when you press

  • Veriface and Windows 8

    Hi i just bought your Lenovo G780 laptop... it runs preinstalled Windows 8  I have now spended the entire evening trying to find out how to get the veriFace to start and Work. WHERE is it. This is the reason i choosed your laptop so i really want it

  • Doubt about Sync and Async process

    hi experts i have one small doubt if we r having the scenario like file to rfc iam passing the input parameter like material number through file  adapter and then i want to get the material details response from rfc sap r/3 to file system this is the

  • Importing new data in a j2me game

    We are currently developing a game (Zelda) in j2me and we have a problem : We made a very cool map editor in J2RE but we don't find any solutions to import new map in the game. For the moment we are putting it before the compilation of the project bu

  • Appraisal document for further participant

    Hi, We are using Objective setting and Appraisal on EHP4.  We are using the standard web dynpro iview. The process flows between Employee and Manager and the Higher manager is able to view the appraisal template.  Our problem is that Employee and Man