How to merg these query

I have these 2 queries I am creating a summaries report Please help me how to merg these 2 queries?
Q#1 : select f.ppno, f.subpp, sum(s.quantity) DQTY
from sub_fabric_delivered s, fabric_delivered f
where s.fdno = f.fdno
group by f.ppno, f.subpp
Q#2: select p.ppno, p.subpp, sum(sp.req_kgs) RQTY
from sub_program sp, program p
where sp.jobno=p.jobno
group by p.ppno, p.subpp
Please note I created a query but it is not showing proper result.
Query is :
SELECT f.ppno, f.subpp, p.item, sum(sp.req_kgs) RKGS,SUM (s.quantity) qty, s.fdno
FROM sub_fabric_delivered s, fabric_delivered f, program p,
sub_program sp
WHERE s.fdno = f.fdno
AND sp.jobno = p.jobno
AND f.ppno = p.ppno
and s.color = sp.color
GROUP BY s.fdno,sp.req_kgs, f.ppno, f.subpp, p.item
ORDER BY f.ppno,f.subpp;

HI
use UNION ALL between both quiers then check
Rizwan

Similar Messages

  • How to merge these patches EBS: R12.1 Oracle Financials Recommended Patches

    Dear Experts,
    Please note that we have implemented the following modules on E-Business Suit 11.5.10.2 .
    SCM Modules:
    1.     Inventory
    2.     Purchasing
    3.     Order Management
    Finance Modules:
    1.     General Ledger
    2.     Fixed Assets
    3.     Accounts Receivables
    4.     Accounts Payables
    5.     Cash Management
    We have also upgraded our database from 9.2.0.6 to 11g R2 as per the latest metalink interoperablity notes. Currently our EBS Version on test Enviroment is 11.5.10.2 with 11g R2
    please note that as per the metalink note id EBS: R12.1 Oracle Financials Recommended Patches [ID 954704.1], We are in process of analysing the patches.
    Please let us know how to merge these patches and proceed with our R12.1 upgrade driver.
    Please also let us know are there any steps which needs to be performed after the below steps.
    Run the Accounting Health Check and resolve data issues (Note 416699.1)
    Complete all Period Close Actions/Processes. Validate and account as much data as possible and make sure everything is transferred to GL.
    Run your standard reconciliation and account balance reports after period close and resolve issues.
    Run the Accounting Health Check again. Resolve all remaining data issues (Note 416699.1)
    If upgrading to R12.0.x, apply Patch 7653100 (Note 557869.1)
    If upgrading to R12.1.x, apply Patch 8773483:R12.FIN_PF.B (Note 880275.1)
    Proceed with the next steps of the upgrade.
    Your quick action in this regards will be highly appreciated.
    Regards
    Mohammed.

    Mohammed,
    I am not an expert although I have significant experience upgrading the database and applications from 11.5.10.2 to 12.1.1 and 12.1.3 in both test and production environments. The following are a few thoughts as you continue down the upgrade path:
    Patch 8773483 will need to be installed in pre-install mode along with a number of other pre-install mode patches. If you haven't looked at the following note you will need to since it contains information you need:
    Oracle Applications Release Notes, Release 12.1.1 [ID 798258.1]
    Pay particular attention to the README.txt instructions for patch 9179588 since it wants you to merge other patches with it before applying.
    Another note you need to be aware of, especially if you want reconcile past the 6 month window used for accrual write offs during the upgrade, is:
    R12.0 and R12.1: FAQ for the SLA Upgrade: SLA Pre-Upgrade, Post-Upgrade, and Hot Patch [ID 604893.1]
    Other good sources of information for financials are:
    Impact of R12 Design in Procure To Pay Accounting Flow [ID 429105.1]
    Projects Uptake of the TCA Architecture in Release 12 [ID 417511.1] <--- AR/TCA (HZ) table join information that is very good
    Payments In Order Management In R12 [ID 1164613.1]
    If you don't have XLE and ZX currently licensed in your 11.5.10.2 instance, you will need to license them so the tax conversion runs successfully.
    If you have legal entity identifications that are more than 30 characters, you will want to be aware of the size limitation imposed on the column LEGAL_ENTITY_IDENTIFIER in the table XLE.XLE_ENTITY_PROFILES, The following job will fail if the combined values exceed the LEGAL_ENTITY_IDENTIFIER column length which is shortened in R12:
    xleupg01.sql
    There are lots of potential pitfalls in an R12 upgrade. You simply need to test, test, and test again everything you use, read the RCD's and R12 documentation as much as possible, etc ... Having said that, there are many good things about an R12 upgrade too, from both the functional and technical perspectives.
    Riley

  • How to merge two Oracle SSO IDs?

    As many have noticed, I have 2 SSO ids: 'Hans Forbrich' that I have had for many years; and Hans Forbrich (alt ID) that was created by the OU group for SSO access to OU sites.
    I'm wondering how to merge these two IDs while retaining the Oracle University Single Sign On capability.

    Have you tried to sign in to OU with the other ID? I
    would think that you would be able to since OU uses
    SSO as well (it may not have in the past).Oh yes. Does not work.
    >
    It may be just a matter of having some OU folks add
    your other account to the database.Not quite that simple. They have a few extra settings, and permissions, tied to the user id. And effective and expiry dates. And ...

  • HOW TO DELETE INFOSET QUERY

    HI ALL,
    I created zqm infoset and using 3 tables. now i want to delete 1 teble from them.
    when i am deleting it getiing mess.
    ""  Field QAVE-PRUEFLOS is used in queries
    Message no. AQ606
    Diagnosis
    You attempted to delete a field used in queries from the functional area.
    Procedure
    Before deleting a field from the functional area, you must ensure that the field is not used in any queries. Select Environment -> Directories -> All queries to display a list of queries which use this field. Either modify the queries so that the field is no longer used or delete the queries altogether. Then, you can delete the field from the functional area.  ""
    i can see query group and query.
    how to delete these query.??????

    Hi,
    Try to use  Note 781193 - SAP Query: Remove field from InfoSet => AQ606.
    We have solved our issue with deleting fields in tables.
    With best regards,
    Kamila.

  • I have 2 apple IDs from which I've bought different aps.  How do I merge these?

    By mistake I've made two different apple IDs and bought aps from both of them.  How do I merge these into one ID so i can use them all with my iphone?  Thanks!

    You cannot merge them.  Sorry.
    Authorize your computer for both accounts.

  • I cannot find a photo I did a lot of work to create. I have several library files that look similar but I found that at least one photo is not in both. Can I somehow merge these libraries. Can someone tell me how.

    I cannot find a photo I did a lot of work to create. I have several libraries that look similar but I found at least one photo that was in one and not the others. Can someone tell me if I can merge these libraries, and how, and what to watch for that might cause problems.

    the paid version of iPhoto library manager can merge libraries safely
    Why do you have several libraries? Why are you not just using the one that has what you want?
    LN

  • Hi, when I upload music into itunes from a cd it sometimes appears in itunes as two different albums and split up the music in 2 or even three albums....how can i merge these albums...this is particularly true when one album may have different composers?

    Hi, when I upload music into itunes from a cd it sometimes appears in itunes as two different albums and split up the music in 2 or even three albums....how can i merge these albums...this is particularly true when one album may have different composers?

    Generally setting a common Album title and Album Artist will fix things.
    For compilations that aren't, select all tracks, Get Info, and on the option tab set Part of a Compilation to No. If it already says No tick the box alongside, then click OK.
    For deeper problems see Grouping tracks into albums.
    tt2

  • How to merge text attribute in query designer

    Hi,
    please does anybody know, how to merge, let say, two text attributes of one characteristic into one long text? I know, that it is possible with method, which is finally called in the Web Application Designer. But I need to proceed this on the query level. It means, when I display result of query in query designer, I need to have two attributes merged into one long text. Is there some exit, method or something else, where can I do it?
    Thank you very much
    Best Regards
    J.

    Hello,
    I don't think so we have string concatenation at query level.
    You have to create / use existing info object and use string functions to achieve this.
    Might be you could wait for some time to get more replies.
    Regards,
    Venkat

  • Hi. I have (stupidly) managed to create two iCloud accounts.... How can I merge these?

    Hi guys.. Can anyone help me merge these two accounts or take sensible steps to get rid of one account.. So that I can see all my music from one account?

    You cannot merge Appleaccounts. Delete the one you do not wish to use from the device.

  • How Can I write Query like this

    My Dears:
    I want to reduce some formula in my report by merge these formula in my query
    I want to know how can I wrirte a query in query
    for example
    select empno,ename,(select sal from emp ee where ee.empno=mm.empno ) from emp mm
    the previous query I know it not logic but I need the way
    my DB 10G r2
    thanks in advance

    Apart your remark nothing seems to be wrong with your query. Did you try it?
    Regards
    Etbin

  • How to merge in to a table based on partition

    Hi,
    we have a mapping in which we use partitioned table as target and we call the mapping in loop sending partition keys as input parameters.this mapping works as merge on target based on some 4 columns, for just 20 records it take more than 7 minutes, i tried running that merge statement directly against DB it took same time, then i used the partition keys in the merge to match it finished in 1 second. my question is can i have some kind of parameter setting which will enable to use the input parameters while merging so that it can go against single partition instead of searching the whole table,
    how to merge based on partition key values along with merge keys
    Suresh

    Hi David,
    here is my original merge statement from mapping
    MERGE INTO GL_JE_LINE_DETAIL
    USING (SELECT "GL_JE_LINES_STG"."JE_LINE_ID" "JE_LINE_ID",
    '4' "SOURCE",
    "XXGL_AP_DRILLDOWN_V"."VENDOR_NUMBER" "VENDOR_NUMBER",
    "XXGL_AP_DRILLDOWN_V"."VENDOR_NAME" "VENDOR_NAME",
    "XXGL_AP_DRILLDOWN_V"."INVOICE_NUMBER" "INVOICE_NUMBER",
    "XXGL_AP_DRILLDOWN_V"."PO_NUMBER" "PO_NUMBER",
    "XXGL_AP_DRILLDOWN_V"."DOC_REF" "DOC_REF",
    "XXGL_AP_DRILLDOWN_V"."AMOUNT" "AMOUNT",
    "GL_JE_LINES_STG"."CREATION_DATE" "CREATION_DATE",
    "GL_JE_LINES_STG"."LAST_UPDATE_DATE" "LAST_UPDATE_DATE",
    "GL_JE_LINES_STG"."PERIOD_YEAR" "PERIOD_YEAR",
    "GL_JE_LINES_STG"."PERIOD_MONTH" "PERIOD_MONTH",
    "GL_JE_LINES_STG"."ENTITY_CODE" "ENTITY_CODE",
    "XXGL_AP_DRILLDOWN_V"."DESCRIPTION" "DESCRIPTION",
    '6' "ORIG_SOURCE",
    "XXGL_AP_DRILLDOWN_V"."AP_SOURCE" "AP_SOURCE",
    "XXGL_AP_DRILLDOWN_V"."AE_LINE_ID" "AE_LINE_ID",
    "XXGL_AP_DRILLDOWN_V"."JE_HEADER_ID" "JE_HEADER_ID_1",
    "XXGL_AP_DRILLDOWN_V"."JE_LINE_NUM" "JE_LINE_NUM_1"
    FROM datarepdb."GL_JE_LINES_STG" "GL_JE_LINES_STG",
    datarepdb."XXGL_AP_DRILLDOWN_V" "XXGL_AP_DRILLDOWN_V"
    WHERE ("GL_JE_LINES_STG"."PERIOD_YEAR" = 2009)
    AND ("GL_JE_LINES_STG"."PERIOD_MONTH" = 9)
    AND ("GL_JE_LINES_STG"."ENTITY_CODE" = 'GPC')
    AND ("GL_JE_LINES_STG"."USER_JE_SOURCE_NAME" = 'Payables')
    AND ("GL_JE_LINES_STG"."JE_HEADER_ID" = "XXGL_AP_DRILLDOWN_V"."JE_HEADER_ID")
    AND ("GL_JE_LINES_STG"."JE_LINE_NUM" = "XXGL_AP_DRILLDOWN_V"."JE_LINE_NUM")) merge_subquery
    ON ( "GL_JE_LINE_DETAIL"."PERIOD_YEAR" = "MERGE_SUBQUERY"."PERIOD_YEAR"
    AND "GL_JE_LINE_DETAIL"."PERIOD_MONTH" = "MERGE_SUBQUERY"."PERIOD_MONTH"
    AND "GL_JE_LINE_DETAIL"."ENTITY_CODE" = "MERGE_SUBQUERY"."ENTITY_CODE"
    AND "GL_JE_LINE_DETAIL"."AE_LINE_ID" = "MERGE_SUBQUERY"."AE_LINE_ID")
    I am merging based on the 4 columns you see at the end , i specified that on target table, this query is costly
    when i change the merge part as
    ON ( "GL_JE_LINE_DETAIL"."PERIOD_YEAR" = "MERGE_SUBQUERY"."PERIOD_YEAR"
    AND "GL_JE_LINE_DETAIL"."PERIOD_MONTH" = "MERGE_SUBQUERY"."PERIOD_MONTH"
    AND "GL_JE_LINE_DETAIL"."ENTITY_CODE" = "MERGE_SUBQUERY"."ENTITY_CODE"
    AND "GL_JE_LINE_DETAIL"."AE_LINE_ID" = "MERGE_SUBQUERY"."AE_LINE_ID")
    AND "GL_JE_LINE_DETAIL"."PERIOD_YEAR" = 2009
    AND "GL_JE_LINE_DETAIL"."PERIOD_MONTH" = 9
    AND "GL_JE_LINE_DETAIL"."ENTITY_CODE" = 'GPC')
    The lines in bold in the first sql are input parameters i added the same in to merge statement then the query finished in 1 second,and i see in the explain plan that its going to single partition in other case it was doing multiple partitions
    how can i add these input parameters in to the mapping.
    Suresh.
    Edited by: Suresh_G on Sep 22, 2009 9:34 AM
    Edited by: Suresh_G on Sep 22, 2009 9:56 AM

  • I accidentally created an iCloud account using the wrong email address for my username - I already have an iCloud account with a different email address username. Is there any way I can merge these accounts?

    I just upgraded my MacBook from OS X 10.6.8 to Mountain Lion so that I could stream from my other devices (iPhone and iPad) to my MacBook.  After making it through the upgrade process, I realized that I used the wrong email address for my iCloud username when starting up on the MacBook.  My iPhone, iPad, and iTunes are under my Hotmail email address and I accidently used my Gmail email address for the MacBook.  Is there any way I can merge these two icloud accounts together? I tried changing my account information to add the other email address, but wasn't allowed because another account was using the name (duh).  If I can't merge them, how could I change the MacBook from the Gmail address to the Hotmail address so that all my devices are on the same icloud account?  It'd be nice if I could keep the free 5GB of storage that comes with my purchase of the software, but I'd rather lose the storage than not be able to stream.

    To change accounts on your Mac, go to System Preferences, sign out of the current account, then sign into the new account.  When you sign out of the current account it will delete synced data from your Mac.  Assuming your data (such as contacts, calendars, etc.) is in the other iCloud account, it will be synced to your Mac when you sign into this account.

  • How to improve the query performance or tune query from Explain Plan

    Hi
    The following is my explain plan for sql query. (The plan is generated by Toad v9.7). How to fix the query?
    SELECT STATEMENT ALL_ROWSCost: 4,160 Bytes: 25,296 Cardinality: 204                                         
         8 NESTED LOOPS Cost: 3 Bytes: 54 Cardinality: 1                                    
              5 NESTED LOOPS Cost: 2 Bytes: 23 Cardinality: 1                               
                   2 TABLE ACCESS BY INDEX ROWID TABLE AR.RA_CUSTOMER_TRX_ALL Cost: 1 Bytes: 13 Cardinality: 1                          
                        1 INDEX UNIQUE SCAN INDEX (UNIQUE) AR.RA_CUSTOMER_TRX_U1 Cost: 1 Cardinality: 1                     
                   4 TABLE ACCESS BY INDEX ROWID TABLE AR.HZ_CUST_ACCOUNTS Cost: 1 Bytes: 10 Cardinality: 1                          
                        3 INDEX UNIQUE SCAN INDEX (UNIQUE) AR.HZ_CUST_ACCOUNTS_U1 Cost: 1 Cardinality: 1                     
              7 TABLE ACCESS BY INDEX ROWID TABLE AR.HZ_PARTIES Cost: 1 Bytes: 31 Cardinality: 1                               
                   6 INDEX UNIQUE SCAN INDEX (UNIQUE) AR.HZ_PARTIES_U1 Cost: 1 Cardinality: 1                          
         10 TABLE ACCESS BY INDEX ROWID TABLE AR.RA_CUSTOMER_TRX_ALL Cost: 1 Bytes: 12 Cardinality: 1                                    
              9 INDEX UNIQUE SCAN INDEX (UNIQUE) AR.RA_CUSTOMER_TRX_U1 Cost: 1 Cardinality: 1                               
         15 NESTED LOOPS Cost: 2 Bytes: 29 Cardinality: 1                                    
              12 TABLE ACCESS BY INDEX ROWID TABLE AR.RA_CUSTOMER_TRX_ALL Cost: 1 Bytes: 12 Cardinality: 1                               
                   11 INDEX UNIQUE SCAN INDEX (UNIQUE) AR.RA_CUSTOMER_TRX_U1 Cost: 1 Cardinality: 1                          
              14 TABLE ACCESS BY INDEX ROWID TABLE ONT.OE_ORDER_HEADERS_ALL Cost: 1 Bytes: 17 Cardinality: 1                               
                   13 INDEX RANGE SCAN INDEX (UNIQUE) ONT.OE_ORDER_HEADERS_U2 Cost: 1 Cardinality: 1                          
         21 FILTER                                    
              16 TABLE ACCESS FULL TABLE ONT.OE_TRANSACTION_TYPES_TL Cost: 2 Bytes: 1,127 Cardinality: 49                               
              20 NESTED LOOPS Cost: 2 Bytes: 21 Cardinality: 1                               
                   18 TABLE ACCESS BY INDEX ROWID TABLE AR.RA_CUSTOMER_TRX_ALL Cost: 1 Bytes: 12 Cardinality: 1                          
                        17 INDEX UNIQUE SCAN INDEX (UNIQUE) AR.RA_CUSTOMER_TRX_U1 Cost: 1 Cardinality: 1                     
                   19 INDEX RANGE SCAN INDEX (UNIQUE) ONT.OE_ORDER_HEADERS_U2 Cost: 1 Bytes: 9 Cardinality: 1                          
         23 TABLE ACCESS BY INDEX ROWID TABLE AR.RA_CUSTOMER_TRX_ALL Cost: 1 Bytes: 12 Cardinality: 1                                    
              22 INDEX UNIQUE SCAN INDEX (UNIQUE) AR.RA_CUSTOMER_TRX_U1 Cost: 1 Cardinality: 1                               
         45 NESTED LOOPS Cost: 4,160 Bytes: 25,296 Cardinality: 204                                    
              42 NESTED LOOPS Cost: 4,150 Bytes: 23,052 Cardinality: 204                               
                   38 NESTED LOOPS Cost: 4,140 Bytes: 19,992 Cardinality: 204                          
                        34 NESTED LOOPS Cost: 4,094 Bytes: 75,850 Cardinality: 925                     
                             30 NESTED LOOPS Cost: 3,909 Bytes: 210,843 Cardinality: 3,699                
                                  26 PARTITION LIST ALL Cost: 2,436 Bytes: 338,491 Cardinality: 14,717 Partition #: 29 Partitions accessed #1 - #18          
                                       25 TABLE ACCESS BY LOCAL INDEX ROWID TABLE XLA.XLA_AE_HEADERS Cost: 2,436 Bytes: 338,491 Cardinality: 14,717 Partition #: 29 Partitions accessed #1 - #18     
                                            24 INDEX SKIP SCAN INDEX XLA.XLA_AE_HEADERS_N1 Cost: 264 Cardinality: 1,398,115 Partition #: 29 Partitions accessed #1 - #18
                                  29 PARTITION LIST ITERATOR Cost: 1 Bytes: 34 Cardinality: 1 Partition #: 32           
                                       28 TABLE ACCESS BY LOCAL INDEX ROWID TABLE XLA.XLA_AE_LINES Cost: 1 Bytes: 34 Cardinality: 1 Partition #: 32      
                                            27 INDEX RANGE SCAN INDEX (UNIQUE) XLA.XLA_AE_LINES_U1 Cost: 1 Cardinality: 1 Partition #: 32
                             33 PARTITION LIST ITERATOR Cost: 1 Bytes: 25 Cardinality: 1 Partition #: 35                
                                  32 TABLE ACCESS BY LOCAL INDEX ROWID TABLE XLA.XLA_DISTRIBUTION_LINKS Cost: 1 Bytes: 25 Cardinality: 1 Partition #: 35           
                                       31 INDEX RANGE SCAN INDEX XLA.XLA_DISTRIBUTION_LINKS_N3 Cost: 1 Cardinality: 1 Partition #: 35      
                        37 PARTITION LIST SINGLE Cost: 1 Bytes: 16 Cardinality: 1 Partition #: 38                     
                             36 TABLE ACCESS BY LOCAL INDEX ROWID TABLE XLA.XLA_EVENTS Cost: 1 Bytes: 16 Cardinality: 1 Partition #: 39 Partitions accessed #2               
                                  35 INDEX UNIQUE SCAN INDEX (UNIQUE) XLA.XLA_EVENTS_U1 Cost: 1 Cardinality: 1 Partition #: 40 Partitions accessed #2          
                   41 PARTITION LIST SINGLE Cost: 1 Bytes: 15 Cardinality: 1 Partition #: 41                          
                        40 TABLE ACCESS BY LOCAL INDEX ROWID TABLE XLA.XLA_TRANSACTION_ENTITIES Cost: 1 Bytes: 15 Cardinality: 1 Partition #: 42 Partitions accessed #2                    
                             39 INDEX UNIQUE SCAN INDEX (UNIQUE) XLA.XLA_TRANSACTION_ENTITIES_U1 Cost: 1 Cardinality: 1 Partition #: 43 Partitions accessed #2               
              44 TABLE ACCESS BY INDEX ROWID TABLE GL.GL_CODE_COMBINATIONS Cost: 1 Bytes: 11 Cardinality: 1                               
                   43 INDEX UNIQUE SCAN INDEX (UNIQUE) GL.GL_CODE_COMBINATIONS_U1 Cost: 1 Cardinality: 1

    damorgan wrote:
    Tuning is NOT about reducing the cost of i/o.
    i/o is only one of many contributors to cost and only one of many contributors to waits.
    Any time you would like to explore this further run this code:
    SELECT 1 FROM dual
    WHERE regexp_like(' ','^*[ ]*a');but not on a production box because you are going to experience an extreme tuning event with zero i/o.
    And when I say "extreme" I mean "EXTREME!"
    You've been warned.I think you just need a faster server.
    SQL> set autotrace traceonly statistics
    SQL> set timing on
    SQL> select 1 from dual
      2  where
      3  regexp_like   (' ','^*[ ]*a');
    no rows selected
    Elapsed: 00:00:00.00
    Statistics
              1  recursive calls
              0  db block gets
              0  consistent gets
              0  physical reads
              0  redo size
            243  bytes sent via SQL*Net to client
            349  bytes received via SQL*Net from client
              1  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              0  rows processedRepeated from an Oracle 10.2.0.x instance:
    SQL> SELECT DISTINCT SID FROM V$MYSTAT;
           SID
           310
    SQL> ALTER SESSION SET EVENTS '10053 TRACE NAME CONTEXT FOREVER, LEVEL 1';
    Session altered.
    SQL> select 1 from dual
      2  where
      3  regexp_like   (' ','^*[ ]*a');The session is hung. Wait a little while and connect to the database using a different session:
    COLUMN STAT_NAME FORMAT A35 TRU
    SET PAGESIZE 200
    SELECT
      STAT_NAME,
      VALUE
    FROM
      V$SESS_TIME_MODEL
    WHERE
      SID=310;
    STAT_NAME                                VALUE
    DB time                                   9247
    DB CPU                                    9247
    background elapsed time                      0
    background cpu time                          0
    sequence load elapsed time                   0
    parse time elapsed                        6374
    hard parse elapsed time                   5997
    sql execute elapsed time                  2939
    connection management call elapsed        1660
    failed parse elapsed time                    0
    failed parse (out of shared memory)          0
    hard parse (sharing criteria) elaps          0
    hard parse (bind mismatch) elapsed           0
    PL/SQL execution elapsed time               95
    inbound PL/SQL rpc elapsed time              0
    PL/SQL compilation elapsed time              0
    Java execution elapsed time                  0
    repeated bind elapsed time                  48
    RMAN cpu time (backup/restore)               0Seems to be using a bit of time for the hard parse (hard parse elapsed time). Wait a little while, then re-execute the query:
    STAT_NAME                                VALUE
    DB time                                   9247
    DB CPU                                    9247
    background elapsed time                      0
    background cpu time                          0
    sequence load elapsed time                   0
    parse time elapsed                        6374
    hard parse elapsed time                   5997
    sql execute elapsed time                  2939
    connection management call elapsed        1660
    failed parse elapsed time                    0
    failed parse (out of shared memory)          0
    hard parse (sharing criteria) elaps          0
    hard parse (bind mismatch) elapsed           0
    PL/SQL execution elapsed time               95
    inbound PL/SQL rpc elapsed time              0
    PL/SQL compilation elapsed time              0
    Java execution elapsed time                  0
    repeated bind elapsed time                  48
    RMAN cpu time (backup/restore)               0The session is not reporting additional CPU usage or parse time.
    Let's check one of the session's statistics:
    SELECT
      SS.VALUE
    FROM
      V$SESSTAT SS,
      V$STATNAME SN
    WHERE
      SN.NAME='consistent gets'
      AND SN.STATISTIC#=SS.STATISTIC#
      AND SS.SID=310;
         VALUE
           163Not many consistent gets after 20+ minutes.
    Let's take a look at the plan:
    SQL> SELECT SQL_ID,CHILD_NUMBER FROM V$SQL WHERE SQL_TEXT LIKE 'select 1 from du
    al%';
    SQL_ID        CHILD_NUMBER
    04mpgrzhsv72w            0
    SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY_CURSOR('04mpgrzhsv72w',0,'TYPICAL'))
    select 1 from dual where regexp_like   (' ','^*[ ]*a')
    NOTE: cannot fetch plan for SQL_ID: 04mpgrzhsv72w, CHILD_NUMBER: 0
          Please verify value of SQL_ID and CHILD_NUMBER;
          It could also be that the plan is no longer in cursor cache (check v$sql_p
    lan)No plan...
    Let's take a look at the 10053 trace file:
    Registered qb: SEL$1 0x19157f38 (PARSER)
      signature (): qb_name=SEL$1 nbfros=1 flg=0
        fro(0): flg=4 objn=258 hint_alias="DUAL"@"SEL$1"
    Predicate Move-Around (PM)
    PM: Considering predicate move-around in SEL$1 (#0).
    PM:   Checking validity of predicate move-around in SEL$1 (#0).
    CBQT: Validity checks failed for 7uqx4guu04x3g.
    CVM: Considering view merge in query block SEL$1 (#0)
    CBQT: Validity checks failed for 7uqx4guu04x3g.
    Subquery Unnest
    SU: Considering subquery unnesting in query block SEL$1 (#0)
    Set-Join Conversion (SJC)
    SJC: Considering set-join conversion in SEL$1 (#0).
    Predicate Move-Around (PM)
    PM: Considering predicate move-around in SEL$1 (#0).
    PM:   Checking validity of predicate move-around in SEL$1 (#0).
    PM:     PM bypassed: Outer query contains no views.
    FPD: Considering simple filter push in SEL$1 (#0)
    FPD:   Current where clause predicates in SEL$1 (#0) :
              REGEXP_LIKE (' ','^*[ ]*a')
    kkogcp: try to generate transitive predicate from check constraints for SEL$1 (#0)
    predicates with check contraints:  REGEXP_LIKE (' ','^*[ ]*a')
    after transitive predicate generation:  REGEXP_LIKE (' ','^*[ ]*a')
    finally:  REGEXP_LIKE (' ','^*[ ]*a')
    apadrv-start: call(in-use=592, alloc=16344), compile(in-use=37448, alloc=42256)
    kkoqbc-start
                : call(in-use=592, alloc=16344), compile(in-use=38336, alloc=42256)
    kkoqbc-subheap (create addr=000000001915C238)Looks like the query never had a chance to start executing - it is still parsing after 20 minutes.
    I am not sure that this is a good example - the query either executes very fast, or never has a chance to start executing. But, it might still make your point physical I/O is not always the problem when performance problems are experienced.
    Charles Hooper
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • Multiple Apple ID's - How to merge?

    I currently have 2 Apple ID's that i want to merge together so they both fall under 1 account and not 2, how do i merge these together?

    Thanks Dah veed
    I appreciate the feedback.  How would i then change my Apple ID on my phone - Apple 4S to be my latest and the one i would like to use going forward?

  • How to build a query based on(UNION) 3 vendor InfoObject

    Dear Experts:
    I have a requirement to build one query based on 3 vendor InfoObjct: 0VENDOR + 0VEN_COMPC + 0VEN_PURORG.
    I tried to build a multiprovider upon these 3 infoobjects, but when I Identify(Assign) the key for each InfoObject, supposely there should be 3 InfoObject for me to check (0VENDOR, 0VEN_COMPC and 0VEN_PURORG) so that I can UNION these 3 infoobjects together on vendor number. But since the reference infoobject of these 3 vendor master data is different, I can not check the 3 together.
    Can anybody let me know how to build that query? I only need vendor number show once, and the attributes of 0VEN_COMPC and 0VEN_PURORG can be union to 0vENDOR.
    Any post would be appreciated and thank you all in advance!
    Best Regards!
    Tim

    Hi,
    you can create a link between the vendor objects itself, means link 0vendor with 0ven_compc and 0ven_purorg. This should give you a list of all vendors multiplied with the comp codes multiplied with the purch. org. May be here it is possible to create another link between a attribute (eg. comp_code of 0ven_purorg with comp_code of 0ven_compc). In case it is not possible you need to add this link information somehow. Another option might be to create 2 queries. One on a infoset of 0vendor and 0ven_purorg and another one on 0vendor and 0ven_compc.
    regards
    Siggi

Maybe you are looking for

  • Pk files no longer being drawn

    Hello, First time poster here. I tried to read as many posts as possible about my issue, but unfortunately, I didn't see anything that might help me out. I recently noticed last night that each time I would import a stereo wave file in AA3, it would

  • Text substitution does not work on all apps

    Text substituiton feature works fine in Mac Mail, but does not work in Microsoft Word, excel and others. How can I fix this?

  • Iphoto won't email or export

    I choose my pictures click email, choose my options, it says "preparing photos for email", then nothing. No email opens with the attached pics. So I try to export the pictures and manually add them to an email. I chose file, export, choose jpeg forma

  • "Use Local Fonts" setting seems to switch while viewing PDF

    I open up a pdf with no embedded fonts, and the text looks fine. Then after a few seconds of paging through the document, all of the sudden the next page is shown with adobe-substituted fonts like "Adobe Serif MM" instead of "ArialNarrow,BoldItalic".

  • Adobe Form - dynamic object selection/control

    Hi, I am very new to using the Acrobat Form building tool. I am currently using it in conjunction with Adobe LifeCycle designer 8. I would like to create a form which behaves like an xHTML doc, and client-side JavaScript. I would like to be able to c