Why Isn't xmlindex being used in slow query on binary xml table eval?

I am running a slow simple query on Oracle database server 11.2.0.1 that is not using an xmlindex. Instead, a full table scan against the eval binary xml table occurs. Here is the query:
select -- /*+ NO_XMLINDEX_REWRITE no_parallel(eval)*/
      defid from eval,
      XMLTable(XMLNAMESPACES(DEFAULT 'http://www.cigna.com/acme/domains/eval/2010/03',
      'http://www.cigna.com/acme/domains/derived/fact/2010/03' AS "ns7"),
      '$doc/eval/derivedFacts/ns7:derivedFact' passing eval.object_value as "doc" columns defid varchar2(100) path 'ns7:defId'
       ) eval_xml
where eval_xml.defid in ('59543','55208'); The predicate is not selective at all - the returned row count is the same as the table row count (325,550 xml documents in the eval table). When different values are used bringing the row count down to ~ 33%, the xmlindex still isn't used - as would be expected in a purely relational nonXML environment.
My question is why would'nt the xmlindex be used in a fast full scan manner versus a full table scan traversing the xml in each eval table document record?
Would a FFS hint be applicable to an xmlindex domain-type index?
Here is the xmlindex definition:
CREATE INDEX "EVAL_XMLINDEX_IX" ON "EVAL" (OBJECT_VALUE)
  INDEXTYPE IS "XDB"."XMLINDEX" PARAMETERS
  ('XMLTable eval_idx_tab XMLNamespaces(DEFAULT ''http://www.cigna.com/acme/domains/eval/2010/03'',
  ''http://www.cigna.com/acme/domains/derived/fact/2010/03'' AS "ns7"),''/eval''
       COLUMNS defId VARCHAR2(100) path ''/derivedFacts/ns7:derivedFact/ns7:defId''');Here is the eval table definition:
CREATE
  TABLE "N98991"."EVAL" OF XMLTYPE
    CONSTRAINT "EVAL_ID_PK" PRIMARY KEY ("EVAL_ID") USING INDEX PCTFREE 10
    INITRANS 4 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT
    1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1
    FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE
    DEFAULT) TABLESPACE "ACME_DATA" ENABLE
  XMLTYPE STORE AS SECUREFILE BINARY XML
    TABLESPACE "ACME_DATA" ENABLE STORAGE IN ROW CHUNK 8192 CACHE NOCOMPRESS
    KEEP_DUPLICATES STORAGE(INITIAL 106496 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS
    2147483645 PCTINCREASE 0 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
    CELL_FLASH_CACHE DEFAULT)
  ALLOW NONSCHEMA ALLOW ANYSCHEMA VIRTUAL COLUMNS
    "EVAL_DT" AS (SYS_EXTRACT_UTC(CAST(TO_TIMESTAMP_TZ(SYS_XQ_UPKXML2SQL(
    SYS_XQEXVAL(XMLQUERY(
    'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03"; (::)
/eval/@eval_dt'
    PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
    16777216,0),50,1,2),'SYYYY-MM-DD"T"HH24:MI:SS.FFTZH:TZM') AS TIMESTAMP
WITH
  TIME ZONE))),
    "EVAL_CAT" AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
    'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03";/eval/@category'
    PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
    16777216,0),50,1,2) AS VARCHAR2(50))),
    "ACME_MBR_ID" AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
    'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03";/eval/@acmeMemberId'
    PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
    16777216,0),50,1,2) AS VARCHAR2(50))),
    "EVAL_ID" AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
    'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03";/eval/@evalId'
    PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
    16777216,0),50,1,2) AS VARCHAR2(50)))
  PCTFREE 0 PCTUSED 80 INITRANS 4 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE
    INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0
    FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
    CELL_FLASH_CACHE DEFAULT
  TABLESPACE "ACME_DATA" ; Sample cleansed xml snippet:
<?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?><eval createdById="xxxx" hhhhMemberId="37e6f05a-88dc-41e9-a8df-2a2ac6d822c9" category="eeeeeeee" eval_dt="2012-02-11T23:47:02.645Z" evalId="12e007f5-b7c3-4da2-b8b8-4bf066675d1a" xmlns="http://www.xxxxx.com/vvvv/domains/eval/2010/03" xmlns:ns2="http://www.cigna.com/nnnn/domains/derived/fact/2010/03" xmlns:ns3="http://www.xxxxx.com/vvvv/domains/common/2010/03">
   <derivedFacts>
      <ns2:derivedFact>
         <ns2:defId>12345</ns2:defId>
         <ns2:defUrn>urn:mmmmrunner:Medical:Definition:DerivedFact:52657:1</ns2:defUrn>
         <ns2:factSource>tttt Member</ns2:factSource>
         <ns2:origInferred_dt>2012-02-11T23:47:02.645Z</ns2:origInferred_dt>
         <ns2:factValue>
            <ns2:type>boolean</ns2:type>
            <ns2:value>true</ns2:value>
         </ns2:factValue>
      </ns2:derivedFact>
      <ns2:derivedFact>
         <ns2:defId>52600</ns2:defId>
         <ns2:defUrn>urn:ddddrunner:Medical:Definition:DerivedFact:52600:2</ns2:defUrn>
         <ns2:factSource>cccc Member</ns2:factSource>
         <ns2:origInferred_dt>2012-02-11T23:47:02.645Z</ns2:origInferred_dt>
         <ns2:factValue>
            <ns2:type>string</ns2:type>
            <ns2:value>null</ns2:value>
         </ns2:factValue>
      </ns2:derivedFact>
      <ns2:derivedFact>
         <ns2:defId>59543</ns2:defId>
         <ns2:defUrn>urn:ddddunner:Medical:Definition:DerivedFact:52599:1</ns2:defUrn>
         <ns2:factSource>dddd Member</ns2:factSource>
         <ns2:origInferred_dt>2012-02-11T23:47:02.645Z</ns2:origInferred_dt>
         <ns2:factValue>
            <ns2:type>string</ns2:type>
            <ns2:value>INT</ns2:value>
         </ns2:factValue>
      </ns2:derivedFact>
            With the repeating <ns2:derivedFact> element continuing under the <derivedFacts>The Oracle XML DB Developer's Guide 11g Release 2 isn't helping much...
Any assitance much appreciated.
Regards,
Rick Blanchard

odie 63, et. al.;
Attached is the reworked select query, xmlindex, and 2ndary indexes. Note: though namespaces are used; we're not registering any schema defns.
SELECT /*+ NO_USE_HASH(eval) +/ --/*+ NO_QUERY_REWRITE no_parallel(eval)*/
eval_xml.eval_catt, df.defid FROM eval,
--df.defid FROM eval,
XMLTable(XMLNamespaces( DEFAULT 'http://www.cigna.com/acme/domains/eval/2010/03',
                        'http://www.cigna.com/acme/domains/derived/fact/2010/03' AS "ns7" ),
        '/eval' passing eval.object_value
         COLUMNS
           eval_catt VARCHAR2(50) path '@category',
           derivedFact XMLTYPE path '/derivedFacts/ns7:derivedFact')eval_xml,
XMLTable(XMLNamespaces('http://www.cigna.com/acme/domains/derived/fact/2010/03' AS "ns7",
                          DEFAULT 'http://www.cigna.com/acme/domains/eval/2010/03'),
        '/ns7:derivedFact' passing eval_xml.derivedFact
         COLUMNS
           defid VARCHAR2(100) path 'ns7:defId') df
WHERE df.defid IN ('52657','52599') AND eval_xml.eval_catt LIKE 'external';
--where df.defid = '52657';
SELECT /*+ NO_USE_HASH(eval +/ --/*+ NO_QUERY_REWRITE no_parallel(eval)*/
eval_xml.eval_catt, df.defid FROM eval,
--df.defid FROM eval,
XMLTable(XMLNamespaces( DEFAULT 'http://www.cigna.com/acme/domains/eval/2010/03',
                        'http://www.cigna.com/acme/domains/derived/fact/2010/03' AS "ns7" ),
        '/eval' passing eval.object_value
         COLUMNS
           eval_catt VARCHAR2(50) path '@category',
           derivedFact XMLTYPE path '/derivedFacts/ns7:derivedFact')eval_xml,
XMLTable(XMLNamespaces('http://www.cigna.com/acme/domains/derived/fact/2010/03' AS "ns7",
                          DEFAULT 'http://www.cigna.com/acme/domains/eval/2010/03'),
        '/ns7:derivedFact' passing eval_xml.derivedFact
         COLUMNS
           defid VARCHAR2(100) path 'ns7:defId') df
WHERE df.defid IN ('52657','52599') AND eval_xml.eval_catt LIKE 'external';
--where df.defid = '52657'; create index defid_2ndary_ix on eval_idx_tab_II (defID);
     eval_catt VARCHAR2(50) path ''@CATEGORY''');
create index eval_catt_2ndary_ix on eval_idx_tab_I (eval_catt);The xmlindex is getting picked up but a couple of problesm:
1. In the developemnt environment, no xml source records for defid '52657' or '52599' are being displayed - just an empty output set occurs; in spite of these values being present and stored in the source xml.
This really has me stumped, as can query the eval table to see the actual xml defid vaues '52657' and '52599' exist. Something appears off with the query - which didn't return records even before the corrresponding xml index was created.
2. The query still performs slowly, in spite of using the xmlindex. The execution plan shows a full table scan of eval occurring whether or not a HASH JOIN or MERGE JOIN (gets used in place of the HASH JOIN when the NO_USE_HASH(eval) int is used.
3. Single column 2ndary indexes created respectively for eval_catt and defid are not used in the execution plan - which may be expected upon further consideration.
In the process of running stats at this moment, to see if performance improves....
At this point, really after why item '1.' is occurring?
Edited by: RickBlanchardSRSCigna on Apr 16, 2012 1:33 PM

Similar Messages

  • Migrate B-Tree Indexes of XML O-R Table to XMLIndex on Binary XML Table

    We need slight help on how to migrate existing B-TREE Indexes from XML Obj-Rel Tables to XMLIndex on new XML Binary Tables
    We use searches on Nested Collection Elements (defined unbounded in XSD)
    and related DDL for XML Obj-Rel Tables is shown below:
    CREATE TABLE TNMAB_AGREEMENT_XML
    AGREEMENT_XML xmltype,
    CREATE_BY     VARCHAR2(15) NULL ,
    CREATE_DT_GMT     TIMESTAMP NULL ,
    CREATE_CLIENT_ID VARCHAR2(65) NULL ,
    UPDATE_BY     VARCHAR2(15) NULL ,
    UPDATE_DT_GMT     TIMESTAMP NULL ,
    UPDATE_CLIENT_ID VARCHAR2(65) NULL ,
    PIC_VERSION_NUM     NUMBER(20) NULL
    XMLTYPE COLUMN AGREEMENT_XML XMLSCHEMA "AB_Agreement_V1_XMLDB.xsd" ELEMENT "Agreement"
    VARRAY AGREEMENT_XML.XMLDATA."SHIPPING_PARTY_GROUPS"
    STORE AS TABLE SHIPPING_PARTY_GROUPS_NT
    (PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX) ENABLE)
    VARRAY SHIPPING_PARTIES
    STORE AS TABLE SHIPPING_PARTIES_NT
    (PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX) ENABLE)
    VARRAY AGREEMENT_XML.XMLDATA."SALES_OFFICE_CODES"."STRING_WRAPPERS"
    STORE AS TABLE SALES_OFFICE_CODES_NT
    (PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX) ENABLE)
    TABLESPACE TNMAB_XMLDB_ME_DATA;
    Table has PK and Unique Index which for the Binary XML Table, it will be setup on Virtual Columns (to enforce
    Unique Constraints)
    We have 6 more Normal Indexes on this Table, some created on Nested Elements as shown below:
    -- 4 Normal B-TREE Indexes on Leaf level Elements
    create index TNMAB_AGREEMENT_XML_IDX1 on TNMAB_AGREEMENT_XML (AGREEMENT_XML.XMLDATA."AGREEMENT_VERSION")
    tablespace TNMAB_XMLDB_ME_INDX;
    create index TNMAB_AGREEMENT_XML_IDX2 on TNMAB_AGREEMENT_XML (AGREEMENT_XML.XMLDATA."LAST_UPDATED_BY")
    tablespace TNMAB_XMLDB_ME_INDX;
    create index TNMAB_AGREEMENT_XML_IDX3 on TNMAB_AGREEMENT_XML (AGREEMENT_XML.XMLDATA."LAST_UPDATED")
    tablespace TNMAB_XMLDB_ME_INDX;
    create index TNMAB_AGREEMENT_XML_IDX4 on TNMAB_AGREEMENT_XML (AGREEMENT_XML.XMLDATA."CREATION_DATE")
    tablespace TNMAB_XMLDB_ME_INDX;
    --2 Indexes created on Nested Table (Collection)
    create index TNMAB_AGREEMENT_XML_NT_IDX1 on SALES_OFFICE_CODES_NT NT(NT.STR_VAL, NT.NESTED_TABLE_ID)
    tablespace TNMAB_XMLDB_ME_INDX;
    create index TNMAB_AGREEMENT_XML_NT_IDX2 on SHIPPING_PARTIES_NT NT(NT.CUSTOMER_HOLDER.SAP_ID, NT.NESTED_TABLE_ID)
    tablespace TNMAB_XMLDB_ME_INDX;
    Could you please let us know how we should migrate above Indexes to XMLIndex format.
    Specifically, not sure how the last 2 Indexes on Nested Tables is to be defined.
    Any help or resources pointing to this would be greatly appreciated.
    Thanks for the help,
    Auro

    Can't tell due to using XMLDATA pseudocolumn. Would need a sample XML document structure that can be used to define the XPATH structure and ALSO need the database version you are using (ALL digits) to see if you would need / can use STRUCTURED or UNSTRUCTURED XMLINDEX indexes.
    See the XML Index section (http://www.liberidu.com/blog/?page_id=441) on for guidance and/or of course the XMLDB Developers Guide for your database version
    http://www.liberidu.com/blog/?page_id=441
    XMLIndex (part 1) – The Concepts
    XMLIndex (Part 2) – XMLIndex Path Subsetting
    XMLIndex (Part 3) – XMLIndex Syntax Dissected
    XMLIndex Performance and Fuzzy XPath Searches
    Structured XMLIndex (Part 1) – Rules of Numb
    Structured XMLIndex (Part 2) – Howto build a structured XMLIndex
    Structured XMLIndex (Part 3) – Building Multiple XMLIndex Structures

  • Why is index not being used?

    I need some help in trying to work out why an index isn't being used. I hope someone here can help.
    Table definition for ACT_TOTALS includes
    STARTTIME TIMESTAMP(6)
    There is an index on to_char(starttime, 'YYYY-MM-DD HH24')
    There is a vew definition ACT_TOTALS_HOURLY2 which includes
    select to_char(starttime, 'YYYY-MM-DD HH24') STARTTIMSE
    from ACT_TOTALS
    group by to_char(starttime, 'YYYY-MM'DD HH24'), TRANSTYPE
    I have run a query
    select starttime from ACT_TOTALS_HOURLY2
    where starttime <= to_char(sysdate, 'YYYY-MM-DD HH24');
    The table access comes out as full despite there being > 2 million rows in the table.
    The predicate looks like
    TO_CHAR(INTERNAL_FUNCTION(''STARTTIME''), 'YYYY-MM-DD HH24')<= ..........
    I thinkg the INTERNAL_FUNCTION is an implicit cast from DATE to TIMESTAMP.
    Can anyone please throw any light on why the index on the table wouldn't be used in this case?
    Thanks in advance for any help.

    Can you supply a test case for that?
    This is what I have done to engeneer your case
    drop table t1;
    create table t1 (n1 number, d1 date, STARTTIME TIMESTAMP(6));
    insert into t1(n1,d1, starttime)  select rownum, trunc(sysdate) + rownum, sysdate
    from dual connect by level <= 2e6;
    create or replace view t1_v as select n1, d1, to_char(starttime, 'YYYY-MM-DD HH24') starttimse
    from t1;
    SQL> explain plan for
      2  select starttimse from t1_v
      3  where starttimse <= to_char(sysdate, 'YYYY-MM-DD HH24');
    Explained.
    SQL> select * from table(dbms_xplan.display);
    Plan hash value: 838529891
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |      |   109K|  1394K|  2004  (14)| 00:00:12 |
    |*  1 |  TABLE ACCESS FULL| T1   |   109K|  1394K|  2004  (14)| 00:00:12 |
    Predicate Information (identified by operation id):
       1 - filter(TO_CHAR(INTERNAL_FUNCTION("STARTTIME"),'YYYY-MM-DD
                  HH24')<=TO_CHAR(SYSDATE@!,'YYYY-MM-DD HH24'))
    Note
       - dynamic sampling used for this statement
    SQL> create index t1_ind on t1 (to_char(starttime, 'YYYY-MM-DD HH24'));
    Index created.
    SQL> explain plan for
      2  select starttimse from t1_v
      3  where starttimse <= to_char(sysdate, 'YYYY-MM-DD HH24');
    Explained.
    SQL> select * from table(dbms_xplan.display);
    Plan hash value: 3884685049
    | Id  | Operation        | Name   | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT |        |   109K|  1394K|    68   (2)| 00:00:01 |
    |*  1 |  INDEX RANGE SCAN| T1_IND |   109K|  1394K|    68   (2)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - access(TO_CHAR(INTERNAL_FUNCTION("STARTTIME"),'YYYY-MM-DD
                  HH24')<=TO_CHAR(SYSDATE@!,'YYYY-MM-DD HH24'))
    Note
       - dynamic sampling used for this statement
    The above selects are done against the view t1_v.
    While the following one is done against the table t1
    SQL> set autotrace traceonly explain
    SQL> select starttime from t1
      2  where starttime <= to_char(sysdate, 'YYYY-MM-DD HH24');
    Execution Plan
    Plan hash value: 838529891
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |      | 29875 |   379K|  1790   (4)| 00:00:11 |
    |*  1 |  TABLE ACCESS FULL| T1   | 29875 |   379K|  1790   (4)| 00:00:11 |
    Predicate Information (identified by operation id):
       1 - filter("STARTTIME"<=TO_TIMESTAMP(TO_CHAR(SYSDATE@!,'YYYY-MM-DD
                  HH24')))
    If you can post a clear test case of your issue may be one of us can help you
    Best regards
    Mohamed Houri
    www.hourim.wordpress.com

  • Why isn't the CBO using my indexes?

    Why isn't Oracle using my indexes to join 2 big tables? I ran statistics last night before kicking off this job. I don't want to have to use hints.
    STAGING_TXN_081 has Primary Key on VSYS_STAGE_ROW_ID
    TRANSACTION has an index on STAGING_RECORD_ID
    Record counts are as follows:
    SQL> select count(*) from STAGING_TXN_081;
    COUNT(*)
    613071
    1* select distinct count(staging_record_id) from transaction
    SQL> /
    COUNT(STAGING_RECORD_ID)
    10,662,828
    1* select distinct count(*) from transaction where staging_record_id is null
    SQL> /
    COUNT(*)
    1,150,819
    So 1,150,819 / 10,662,828 = approximately 10.8% of the rows are null.
    This is the Query
    select
        st.*,
        rlog.reject_code as rlogRejectCode
    from       
        STAGING_TXN_081 st
        join transaction t
            on st.VSYS_STAGE_ROW_ID = t.STAGING_RECORD_ID
        left outer join txn_reject_log rlog
            on t.transaction_id = rlog.transaction_id
    where
        not exists
        (select 1
        from
            rl_loyalty_txn_trans rl
            join loyalty_txn lt
                on lt.loyalty_txn_id=rl.loyalty_txn_id
        where
            rl.transaction_id=t.transaction_id)
    order by st.VSYS_STAGE_ROW_ID, rlog.reject_code Here is the execution plan.
    Execution Plan
    Plan hash value: 447420266
    | Id  | Operation                     | Name                    | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT              |                         |     1 |   223 |       |   144K  (6)| 00:29:00 |
    |   1 |  SORT ORDER BY                |                         |     1 |   223 |       |   144K  (6)| 00:29:00 |
    |   2 |   NESTED LOOPS OUTER          |                         |     1 |   223 |       |   144K  (6)| 00:29:00 |
    |*  3 |    HASH JOIN ANTI             |                         |     1 |   203 |   121M|   144K  (6)| 00:29:00 |
    |   4 |     VIEW                      |                         |   613K|   114M|       | 84466   (7)| 00:16:54 |
    |*  5 |      HASH JOIN                |                         |   613K|    71M|    72M| 84466   (7)| 00:16:54 |
    |   6 |       TABLE ACCESS FULL | STAGING_TXN_081         |   613K|    65M|       |  3237   (5)| 00:00:39 |
    |*  7 |       TABLE ACCESS FULL | TRANSACTION             |    10M|   111M|       | 65229   (7)| 00:13:03 |
    |   8 |     VIEW                      | VW_SQ_1                 |    10M|    69M|       | 44389   (6)| 00:08:53 |
    |*  9 |      HASH JOIN                |                         |    10M|   197M|   192M| 44389   (6)| 00:08:53 |
    |  10 |       INDEX FAST FULL SCAN    | PK_LOYALTY_TXN          |    10M|    71M|       |  7314   (7)| 00:01:28 |
    |  11 |       INDEX FAST FULL SCAN    | PK_RL_LOYALTY_TXN_TRANS |    10M|   128M|       | 13947   (4)| 00:
    |  12 |    TABLE ACCESS BY INDEX ROWID| TXN_REJECT_LOG          |     1 |    20 |       |     3   (0)| 00:00:01 |
    |* 13 |     INDEX RANGE SCAN          | VIDX_309                |     1 |       |       |     2   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       3 - access("TRANSACTION_ID"="from$_subquery$_003"."TRANSACTION_ID")
       5 - access("ST"."VSYS_STAGE_ROW_ID"="T"."STAGING_RECORD_ID")
       7 - filter("T"."STAGING_RECORD_ID" IS NOT NULL)
       9 - access("RL"."LOYALTY_TXN_ID"="LT"."LOYALTY_TXN_ID")
      13 - access("T"."TRANSACTION_ID"="RLOG"."TRANSACTION_ID"(+))
    Statistics
            467  recursive calls
              0  db block gets
         324842  consistent gets
         249318  physical reads
              0  redo size
            955  bytes sent via SQL*Net to client
            240  bytes received via SQL*Net from client
              1  SQL*Net roundtrips to/from client
              1  sorts (memory)
              0  sorts (disk)
              0  rows processed

    Hi,
    Take these points in consideration
    - STAGING_TXN_081 has to be full table scanned as there is NO filter on that
    - if all the matching 613071 rows from the TRANSACTION table are in different blocks, it might be equivallant to reading full TRANSACTION table (Oracle read blocks not rows)
    - if we are reading all blocks from TRANSACTION table anyway, why waste resources in reading the index blocks
    - How can we tell Oracle that, required TRANSACTION records are not located like 'each row in different block' ??? if that is really the case !!!
    - Your 'not exists' clause, how may records from TRANSACTION table will be filtered out because of that
    - If the 'not exists' will take out huge number of rows, I would suggest creating a in-line view of TRANSACTION table and the 'not exist' logic and then joining that with the STAGING*** table
    - Try to minimise the number of rows taking part in these joins (I know, I am not telling anything new here !!!)
    Cheers

  • Why is 6GB ram being used with barely anything going on?

    So I'm looking at my Activity Monitor for the first time since I got the late 2013 Macbook Pro.
    To my amazement it's showing 6GB being used or 75% of my 8GB?!
    But looking at the activity monitor is showing that the highest ram use is Kernel Monitor at 600MB.
    After that it's com.apple.ServiceAgent @ 170MB and Google Chrome at 140MB.
    Than there are like 15 "Google Chrome Helpers" ranging from like 100-30MB. What in the world is "Google Chrome Helpers" this seems like some kind of operating system bug to me...
    I have about 13 Google Chrome tabs open but even more Helpers than tabs in the Activity Monitor...
    There's no way a small Google Chrome session should take up well over 1gb ram?!
    Even still, if I estimate all the Memory usage displayed in my Activity monitor it should be low 2GB, defenitely less than 3GB.
    So why is it saying 6GB in use? The MAC OS couldn't possibly be 3 GB right???
    This is crazy and I've noticed my MAC is pretty sluggish today while I'm trying to work. What in the world is going on here?
    Can I manually cancel all those " Google Chrome Helpers" for starters?
    On Windows 7 I could have literally 100's of internet tabs open and see less than 6GB ram useage no joke! Need help here please.

    That all sounds great in theory but I'm looking at my Activity Monitor right now and it says:
    Compressed: 0 bytes
    So it sounds like I'm not getting any of the benefits with the compression from that article?
    My other stats are looking like:
    App Memory: 3.41 GB
    File Cache : 2.05 GB
    Wired Memory: ~1GB
    My memory pressure looks about 20% at least even with 6.65 GB active.
    Is there a reason why I have no compressed memory? It sounds like that was the whole point of this system but it's not doing anything for me? Or does that only kick in once you use up all 8GB?
    I'm not sure about all this. I've been a PC guy all my life and overall I'm EXTREMELY satisfied with both my macbook pro and the iPad air I just got. But I got this stuff so I can develope games for iOS using Unity 3D, and I need a laptop. So I didn't make this purchase for the heck of it, this is business to me. And recently I've noticed that Unity 3D and Monodevelop are becoming increasingly sluggish. Because I'm having some lag problems even with just using Monodevelop which is a simple IDE for my C# work, I have been trying to figure out what's the problem here.
    Apparently lots of others are having trouble with Mac OS Maverick when using Unity 3D. I'm just hoping this stuff gets sorted out and doing my best to see if I can improve the performance.
    Are there any guides for optimizing a macbook pro for faster performance? It's not acceptable for me to have lag while I work. Right now I'm trying to work only on the macbook pro so I get used to it and can hopefully work nearly as fast as the PC even without using duel monitors so I can work on the go.
    Just such a big difference from PC where I am quite profficient. On MAC I have no clue what I can do to fix lag.
    Is there a way to modify what progams launch on start up similar to on PC typing "msconfig" in start bar allows you to edit this kind of thing?
    Unity 3D is a pretty big deal for iOS and MAC development so hopefully if it is just some kind of code problems with Unity and Maverick this get's sorted out ASAP. Until then I'm doing my best to see if there's any thing I can do on my end.
    The huge RAM usage was a big red flag to me on first glance, but I guess you guys are saying this is fine. Still seems strange to me how much RAM is being used, on PC I can't imagine ever needing more than 8GB Ram, on Mac it seems like this could be pretty easy to accomplish, which explains why there is 16GB RAM models which to me seemed excessive.
    So I'm guessing it's normal to have that many "Google Chrome Helpers" active at once?

  • How to know if a specific InfoObject is being used in any Query

    Dear SDN members,
    I have an InfoObject which is being used for one of the InfoCube. This specific Infocube has more than 100 queries created. Is there any way I can find out if above mentioned Info Object is being used anywhere in one of those queries without manually checking one by one.
    I tried where used list which appears on the InfoObject screen. This is just showing Cubes, ODS, TRs, Infosources... but not covering the queries.
    Your help is much appreciated.
    many thanks
    Shanthi

    Hi Shanti,
    You can see this in the Metadata repository.
    Select infoobject and the the specific infoobject.
    It will show you a list of queries where the infoobject is used.
    Success
    Udo

  • Slow query due to large table and full table scan

    Hi,
    We have a large Oracle database, v 10g. Two of the tables in the database have over one million rows.
    We have a few queries which take a lot of time to execute. Not always though, it that seems when load is high the queries tend
    to take much longer. Average time may be 1 or 2 seconds, but maxtime can be up to 2 minutes.
    We have now used Oracle Grid to help us examine the queries. We have found that some of the queries require two or three full table scans.
    Two of the full table scans are of the two large tables mentioned above.
    This is an example query:
    SELECT table1.column, table2.column, table3.column
    FROM table1
    JOIN table2 on table1.table2Id = table2.id
    LEFT JOIN table3 on table2.table3id = table3.id
    WHERE table1.id IN(
    SELECT id
    FROM (
    (SELECT a.*, rownum rnum FROM(
    SELECT table1.id
    FROM table1,
    table2,
    table3
    WHERE
    table1.table2id = table2.id
    AND
    table2.table3id IS NULL OR table2.table3id = :table3IdParameter
    ) a
    WHERE rownum <= :end))
    WHERE rnum >= :start
    Table1 and table2 are the large tables in this example. This query starts two full table scans on those tables.
    Can we avoid this? We have, what we think are, the correct indexes.
    /best regards, Håkan

    >
    Hi Håkan - welcome to the forum.
    We have a large Oracle database, v 10g. Two of the tables in the database have over one million rows.
    We have a few queries which take a lot of time to execute. Not always though, it that seems when load is high the queries tend
    to take much longer. Average time may be 1 or 2 seconds, but maxtime can be up to 2 minutes.
    We have now used Oracle Grid to help us examine the queries. We have found that some of the queries require two or three full table scans.
    Two of the full table scans are of the two large tables mentioned above.
    This is an example query:Firstly, please read the forum FAQ - top right of page.
    Please format your SQL using tags [code /code].
    In order to help us to help you.
    Please post table structures - relevant (i.e. joined, FK, PK fields only) in the form - note use of code tags - we can just run table create script.
    CREATE TABLE table1
      Field1  Type1,
      Field2  Type2,
    FieldN  TypeN
    );Then give us some table data - not 100's of records - just enough in the form
    INSERT INTO Table1 VALUES(Field1, Field2.... FieldN);
    ..Please post EXPLAIN PLAN - again with tags.
    HTH,
    Paul...
    /best regards, Håkan

  • Why is WPA2 still being used??

    This a message I wrote recently in a forum that brought up my idea from a couple of years and every year I see new products/WIFI being released, but not changes so here it is again....and hopefully someone who works with the WIFI alliance can bring this to the table.
    I think WPA 3 or 4 needs to come out...I have written on this in different areas and attempted to contact the Wifi Alliance (Austin Texas) with no luck because I can't afford a $15,000 membership... Also linked a stack exchange post I made talking about the SIMPLE change/additions and the post was deleted....SO here it goes
    Current PSK formula is
    DK = PBKDF2(HMAC−SHA1, passphrase, ssid, 4096, 256)
    What this means is it uses HMAC-SHA1 with your passphrase/ssid, 4096 iterations, and produces a 256 bit key
    So for the past 10+ years people have been able to create databases/rainbow tables, etc because your only solving for 1 piece of the formula.
    First thing that needs to change is the number of iterations, 10+ years ago hardware could only bruteforce 100-300 passwords a second. The number of iterations needs to be increased in order to bring that change back in effect. Currently with GPU's this number reaches the 10's of thousands (actually more).
    The next thing would be to change the salt to include the mac of the ***router or client/both so that each router brute forced would require starting from scratch
    DK = PBKDF2(HMAC−SHA1, passphrase, ssid + Router mac***, 4096000, 256) *iterations are 100 times current..not sure if hardware can take this, again it would have to be tested, the number shown is just for illustration purposes.
    Next we need to take the HUMAN element out of the Equation.
    1) a password of 12 or more needs to be implemented
    2) if not already present in the password entered, the router would then GIVE the user a couple of permutations that include at least TWO upper/TWO lower/TWO special characters/TWO numbers and make them choose one. In other words the router would not allow anything less than a more "sophisticated" password.
    Another option would be that after the first formula is used and the client connects successfully the FIRST TIME.... the router then "remembers" that mac address and now the formula changes to
    DK = PBKDF2(HMAC−SHA1, passphrase, ssid + Router Mac, RND, 256)
    Where RND is a random number generated by the router 6-8 digits long for the iterations. Unless a "Hacker" just happened to catch the first handshake and then ran through the set standard 500,000 iteration formula and happened to find the password (being able to decrypt the aes256 exchange of RND), from that point on the formula would be different. This could be the same for the router, or even more secure, for each client connected. So the router would keep a table of Client macs and RND so when the client says "HELLO I want to connect" it would be done using the RND value/formula. If someone was to find how the RND value was saved on the client (physical access to the client) then it would be different for each client. After X many days/X many hours this could be re-set/established again using the first formula and AES256 as an option.
    So this is just some Ideas, with todays technology/hardware it shouldn't be that hard to do. WPA2 is old and getting easier to crack. Many wordlists have been created that easily go up to 10 if not more... "hackers" have been generating wordlists for YEARS. Making the first formula iterations high enough to slow down the brute force attack, and then making the hacker start from scratch with the combination of SSID + Router Mac, PLUS add the fact that after the client is first set up/connected to that router making the number of iterations RND (6-8+ digits)........this just makes it VERY VERY VERY difficult for a wardriver to accomplish finding the password.
    One last thing to add would be to encrypt the DEAUTH packets.. Currently a "wardriver" can deauth the client and when the connection is regained it captures the 4 way handshake...prevent this and again it would be a little more difficult to capture that handshake. Also even if it is captured and its not the FIRST time... it would be a RND value so the "wardriver" wouldn't know where to start, but from scratch. This time with every combination of a 12 character min password, and for each RND 6-8* digit of iterations...
    Honestly with something like this implemented (which isn't too far fetched, especially the simple formula change adding router mac***), and possibly the Random Iterations, wardriving would almost become worthless. Currently a wardriver knows the formula and nothing changes so there is SOME hope that the user used a really easy password, but with the option above even trying the correct password wouldn't work (unless was the first time or a re-authentication time). Even still it would be with a new formula that uses 12 min password/more iterations.
    Hopefully I don't get trashed on this post, all criticisms/ideas/opinions are open.

    thank you for your reply..
    Hopefully it will change... back when this idea was originally thought of (when attempting to vb.net a PSK just for fun), I took into account costs...thats why the changes are pretty simple depending on hardware.  I remember when WPA, WPA 2 first came out it, it was just the cost of a router/new devices (back then lots of money, now routers/hardware is less expensive), depending on the current hardware a simple coding could just be updated (firmware)...example the new WIFI Passport system could be implemented on older hardware once tested/certified...at least according to WiFi alliance.
    The other reason for the change again is the 10+ years of using the same system, i understand it "secure" but with all the computer breaches/security breaches this is just one method to prevent it.  I would definitely upgrade if a newer secure encryption came out...however this really isn't a new encryption, same scheme, basically same formula with a different implementation, which is why I think a simple upgrade would be great...
    so a real world example of the implementation..
    Client says "Hello"
    Router uses DK1 = PBKDF2(HMAC−SHA1, passphrase, ssid + Router Mac, 24576, 256) to encrypt a random number between 15000-30000 and uses it to send its message AES(16745 & message authentication, DK1).
    Client uses DK1 to reverse it to get 16745/message authentication and now uses DK2 = PBKDF2(HMAC−SHA1, passphrase, ssid + Router Mac, 16745, 256) to AES(original message, DK2) in order to show the router that I have the original key/and have recived the new iterations.
    The router now stores 16745 and the client stores 16745 from that point on when wanting to communicate with that mac address.  makes it totally random except the first formula.
    anyway just a concept.. thanks for your reply again.

  • Why isn't my iMac using all of my RAM

    Hi,
    I've recently upgraded the RAM in my iMac (System details below) from 4GB to 12GB as it was running a little slow, I have found this has made no difference and at times seems even slower.
    I was doing some work with video files and was converting a video using MPEG Streamclip and so this would be quite a memory intensive task. As it was progressing very slowly I checked my Activity Monitor and it was only using 4.49GB of the memory overall and of that only 97MB seemed to be dedicated to the MPEG Streamclip task.
    Does anyone know why the system isn't using the rest of the RAM that is installed?
    The highest usage process is 'kernal_task' with 838.9MB but I don't know what that is, There are a lot of items in the process list but I don't know how to remove them or even if I can or should remove them?
    Any help would be greatly appreciated
    Thanks
    Dan
    System Details:
    iMac (21.5-inch, Mid 2010)
    Processor - 3.06 GHz Intel Core i3
    Memory - 12 GB 1333 MHz DDR3
    OSX - Yosemite 10.10.2

    Thanks for the help:
    Problem description:
    I checked my Activity Monitor and it was only using 4.49GB of the 12GB memory overall
    EtreCheck version: 2.1.8 (121)
    Report generated 14 April 2015 23:08:13 BST
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Click the [Adware! - Remove] links for help removing adware.
    Hardware Information: ℹ️
        iMac (21.5-inch, Mid 2010) (Technical Specifications)
        iMac - model: iMac11,2
        1 3.06 GHz Intel Core i3 CPU: 2-core
        12 GB RAM Upgradeable
            BANK 0/DIMM0
                4 GB DDR3 1333 MHz ok
            BANK 1/DIMM0
                4 GB DDR3 1333 MHz ok
            BANK 0/DIMM1
                2 GB DDR3 1333 MHz ok
            BANK 1/DIMM1
                2 GB DDR3 1333 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
        ATI Radeon HD 4670 - VRAM: 256 MB
            iMac 1920 x 1080
    System Software: ℹ️
        OS X 10.10.2 (14C109) - Time since boot: 3:48:23
    Disk Information: ℹ️
        ST3500418AS disk0 : (500.11 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) /  [Startup]: 499.25 GB (15.36 GB free) (Low!)
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
        HL-DT-STDVDRW  GA32N 
    USB Information: ℹ️
        PI-239 USB 2.0 Drive 500.11 GB
            EFI (disk2s1) <not mounted> : 210 MB
            Windows (disk2s2) /Volumes/Windows : 499.76 GB (75.63 GB free)
        Apple Inc. Built-in iSight
        Apple Computer, Inc. IR Receiver
        Samsung D3 Station 2 TB
            EFI (disk1s1) <not mounted> : 210 MB
            Time Machine (disk1s2) /Volumes/Time Machine : 2.00 TB (1.07 TB free)
        Apple Internal Memory Card Reader
        Apple Inc. BRCM2046 Hub
            Apple Inc. Bluetooth USB Host Controller
    Gatekeeper: ℹ️
        Anywhere
    Adware: ℹ️
        Geneio [Adware! - Remove]
    Kernel Extensions: ℹ️
            /Applications/Parallels Desktop.app
        [not loaded]    com.parallels.kext.hidhook (9.0 24172.951362) [Click for support]
        [not loaded]    com.parallels.kext.hypervisor (9.0 24172.951362) [Click for support]
        [not loaded]    com.parallels.kext.netbridge (9.0 24172.951362) [Click for support]
        [not loaded]    com.parallels.kext.usbconnect (9.0 24172.951362) [Click for support]
        [not loaded]    com.parallels.kext.vnic (9.0 24172.951362) [Click for support]
            /System/Library/Extensions
        [loaded]    com.Cycling74.driver.Soundflower (1.6.6 - SDK 10.6) [Click for support]
        [not loaded]    com.NCHSoftware.driver.SoundTapVirtualAudioDevice (1.0.0d1) [Click for support]
        [loaded]    com.delantis.kext.tcpblocknke (2.2.6 - SDK 10.6) [Click for support]
        [loaded]    com.logmein.driver.LogMeInSoundDriver (1.0.3 - SDK 10.5) [Click for support]
        [not loaded]    com.mice.driver.Wireless360Controller (1.0.0d12 - SDK 10.8) [Click for support]
        [not loaded]    com.mice.driver.WirelessGamingReceiver (1.0.0d12 - SDK 10.8) [Click for support]
        [not loaded]    com.mice.driver.Xbox360Controller (1.0.0d12 - SDK 10.8) [Click for support]
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.CS5ServiceManager.plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [failed]    com.logmein.LMILaunchAgentFixer.plist [Click for support] [Click for details]
        [not loaded]    com.logmein.logmeingui.plist [Click for support]
        [not loaded]    com.logmein.logmeinguiagent.plist [Click for support]
        [not loaded]    com.logmein.logmeinguiagentatlogin.plist [Click for support]
        [loaded]    com.oracle.java.Java-Updater.plist [Click for support]
        [failed]    com.trusteer.rapport.rapportd.plist [Click for support] [Click for details]
        [loaded]    org.macosforge.xquartz.startx.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.adobe.SwitchBoard.plist [Click for support]
        [loaded]    com.delantis.tcbblocknke_load_kext.plist [Click for support]
        [not loaded]    com.delantis.TCPBlock.plist [Click for support]
        [loaded]    com.google.keystone.daemon.plist [Click for support]
        [not loaded]    com.logmein.logmeinblanker.plist [Click for support]
        [not loaded]    com.logmein.logmeinserver.plist [Click for support]
        [loaded]    com.logmein.raupdate.plist [Click for support]
        [running]    com.mice.360Daemon.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [loaded]    com.oracle.java.Helper-Tool.plist [Click for support]
        [running]    com.trusteer.rooks.rooksd.plist [Click for support]
        [loaded]    net.sourceforge.MonolingualHelper.plist [Click for support]
        [loaded]    org.macosforge.xquartz.privileged_startx.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [failed]    com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist [Click for details]
        [loaded]    com.divx.agent.postinstall.plist [Click for support]
        [loaded]    com.genieo.completer.download.plist [Adware! - Remove]
        [loaded]    com.genieo.completer.ltvbit.plist [Adware! - Remove]
        [running]    com.genieo.completer.update.plist [Adware! - Remove]
        [loaded]    com.valvesoftware.steamclean.plist [Click for support]
    User Login Items: ℹ️
        Dropbox    Application  (/Applications/Dropbox.app)
        AdobeResourceSynchronizer    Application  (/Applications/Adobe/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app)
        AirServer    UNKNOWN  (missing value)
    Internet Plug-ins: ℹ️
        GameFacePlugin: Version: GameFacePlugin 1.8.0.1 - SDK 10.5 [Click for support]
        OVSHelper: Version: 1.1 [Click for support]
        Default Browser: Version: 600 - SDK 10.10
        Flip4Mac WMV Plugin: Version: 2.4.4.2 [Click for support]
        OfficeLiveBrowserPlugin: Version: 12.3.1 [Click for support]
        Unity Web Player: Version: UnityPlayer version 4.6.1f1 - SDK 10.6 [Click for support]
        AdobePDFViewerNPAPI: Version: 10.1.12 [Click for support]
        FlashPlayer-10.6: Version: 17.0.0.169 - SDK 10.6 [Click for support]
        DivXBrowserPlugin: Version: 2.2 [Click for support]
        LogMeIn: Version: 1.0.935 - SDK 10.7 [Click for support]
        Flash Player: Version: 17.0.0.169 - SDK 10.6 [Click for support]
        LogMeInSafari32: Version: 1.0.935 - SDK 10.7 [Click for support]
        iPhotoPhotocast: Version: 7.0
        OnLiveGameClientDetector: Version: OnLiveGameClientDetector 1.0.0 [Click for support]
        AdobePDFViewer: Version: 10.1.12 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        SharePointBrowserPlugin: Version: 14.3.4 - SDK 10.6 [Click for support]
        Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Click for support]
        JavaAppletPlugin: Version: Java 8 Update 25 Check version
    User internet Plug-ins: ℹ️
        Google Earth Web Plug-in: Version: 7.1 [Click for support]
    Safari Extensions: ℹ️
        Open in Internet Explorer
        DivX Plus Web Player HTML5 <video>
        Omnibar [Adware! - Remove]
        Ebay Shopping Assistant [Adware! - Remove]
        Slick Savings [Adware! - Remove]
        Amazon Shopping Assistant [Adware! - Remove]
        Searchme [Adware! - Remove]
    3rd Party Preference Panes: ℹ️
        AirServer Preferences  [Click for support]
        Connect360  [Click for support]
        DivX  [Click for support]
        Flash Player  [Click for support]
        Java  [Click for support]
        TCPBlock  [Click for support]
        XBox 360 Controllers  [Click for support]
    Time Machine: ℹ️
        Skip System Files: NO
        Auto backup: YES
        Volumes being backed up:
            Macintosh HD: Disk size: 499.25 GB Disk used: 483.89 GB
        Destinations:
            SAMSUNG [Local]
            Total size: 2.00 TB
            Total number of backups: 33
            Oldest backup: 2015-01-22 01:17:29 +0000
            Last backup: 2015-04-14 20:57:20 +0000
            Size of backup disk: Excellent
                Backup size 2.00 TB > (Disk size 499.25 GB X 3)
    Top Processes by CPU: ℹ️
           119%    MPEG Streamclip
            17%    mds
             4%    WindowServer
             3%    syncdefaultsd
             1%    backupd
    Top Processes by Memory: ℹ️
        477 MB    softwareupdated
        180 MB    Google Chrome
        142 MB    Finder
        134 MB    Google Chrome Helper
        129 MB    MPEG Streamclip
    Virtual Memory Information: ℹ️
        7.60 GB    Free RAM
        3.48 GB    Active RAM
        749 MB    Inactive RAM
        1.06 GB    Wired RAM
        10.42 GB    Page-ins
        377 KB    Page-outs
    Diagnostics Information: ℹ️
        Apr 14, 2015, 08:29:49 PM    /Library/Logs/DiagnosticReports/fm_2015-04-14-202949_[redacted].cpu_resource.di ag [Click for details]
        Apr 14, 2015, 08:03:58 PM    /Library/Logs/DiagnosticReports/Final Cut Express_2015-04-14-200358_[redacted].cpu_resource.diag [Click for details]
        Apr 14, 2015, 07:21:54 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/rapportd_2015-04-14-192154_[re dacted].crash
        Apr 14, 2015, 07:17:33 PM    Self test - passed
        Apr 13, 2015, 08:10:27 PM    /Library/Logs/DiagnosticReports/Adobe Photoshop Elements_2015-04-13-201027_[redacted].cpu_resource.diag [Click for details]
        Apr 12, 2015, 11:36:09 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/rapportd_2015-04-12-233609_[re dacted].crash
        Apr 12, 2015, 07:43:45 PM    /Library/Logs/DiagnosticReports/Final Cut Express_2015-04-12-194345_[redacted].cpu_resource.diag [Click for details]
        Apr 12, 2015, 07:39:28 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/rapportd_2015-04-12-193928_[re dacted].crash
        Apr 12, 2015, 07:21:05 PM    /Library/Logs/DiagnosticReports/Final Cut Express_2015-04-12-192105_[redacted].cpu_resource.diag [Click for details]
        Apr 12, 2015, 06:29:56 PM    /Library/Logs/DiagnosticReports/MPEG Streamclip_2015-04-12-182956_[redacted].cpu_resource.diag [Click for details]
        Apr 12, 2015, 05:29:30 PM    /Library/Logs/DiagnosticReports/Final Cut Express_2015-04-12-172930_[redacted].cpu_resource.diag [Click for details]
        Apr 12, 2015, 04:17:13 PM    /Library/Logs/DiagnosticReports/Adobe Photoshop Elements_2015-04-12-161713_[redacted].cpu_resource.diag [Click for details]
        Apr 12, 2015, 12:36:19 PM    /Library/Logs/DiagnosticReports/Mp4Split_2015-04-12-123619_[redacted].cpu_resou rce.diag [Click for details]
        Apr 12, 2015, 11:38:28 AM    /Library/Logs/DiagnosticReports/HandBrake_2015-04-12-113828_[redacted].cpu_reso urce.diag [Click for details]
        Apr 12, 2015, 11:04:39 AM    /Users/[redacted]/Library/Logs/DiagnosticReports/rapportd_2015-04-12-110439_[re dacted].crash
        Apr 13, 2015, 11:19:51 PM    /Library/Logs/DiagnosticReports/OnyX_2015-04-13-231951_[redacted].hang
        Apr 14, 2015, 10:17:30 PM    /Library/Logs/DiagnosticReports/MPEG Streamclip_2015-04-14-221730_[redacted].cpu_resource.diag [Click for details]
        Apr 12, 2015, 11:35:09 AM    /Users/[redacted]/Library/Logs/DiagnosticReports/garcon_2015-04-12-113509_[reda cted].crash

  • Why is my ram being used up after mavericks was installed?

    My ram is being eaten by something and it doesn't come back with out running the free "memory clean" app. I have the following running all day:
    Finder
    Daylite (my station is not the server)
    Mail
    Safari (Lots of Google Maps all day)
    Acrobat Pro
    I jump in and out of Excel, Word, Evernote and Skitch
    I have 8 gigs of ram and it slowly dissappears over time... down to 7MB or less sometimes!
    I also noticed that many things are very slow the first time they are run each time after startup. When I click on a shortcut in Finder, it dissappears.
    This all started after Mavericks was installed. Before it was a smoking fast machine.
    When I started typeing this, I had over 2 gigs of ram free. Now I have 710 MB and it continues to drop.

    First get rid of the Memory Clean up app, uninstall following the developers instructions. Next I would recommend posting an EtreCheck report so we can tell more about how your computer is configured. If you use any "maintenance", anti-virus, malware checking apps those are not only unnecessary but are potentially the problem. Post the report in your next response please.

  • Why isn't store credit used for family purchases instead of billing to credit card?

    why arent family purchases dedcuted from store credit instead of billing the credit card?

    Hello, Musket451. 
    Thank you for visiting Apple Support Communities. 
    Here is some information that explains how iTunes purchases are billed when using Family Sharing. 
    How are Family Sharing purchases billed?
    When you initiate a new purchase, it will be billed directly to the family organizer's account, unless you have gift or store credit. First, your store credit will be used to pay the partial or total bill. The remainder will bill to the family organizer. iTunes Store credit on your account isn't shared with other family members. So if the family organizer has a $50 credit on their account and another family member initiates a purchase, it won't deduct from the organizer's iTunes Store credit, but will bill the organizer's credit or debit card.
    The family organizer will get the receipts for any of their family member's purchases.
    How iTunes Store purchases are billed
    http://support.apple.com/kb/HT5582
    Cheers,
    Jason H. 

  • Why isn't Premiere Pro using my renders in export?

    I have been clicking "Use Previews" in Media encoder to speed up export, but it doesn't seem to make a difference, it still takes half an hour to export 3 minutes no matter what I do. Since it is crashing when I try to export more then 3 minutes and also crashes when i try to render more than 3 minutes, I am really slogging through my long project an it's quite frustrating.

    Hi Steven,
    Here is some more detail on my project:
    ---what is your media,
    I am editing avi DV files (shot in 3x4 screen ratioo) layered with bmp file graphics (varied sizes) and avi animations, compositing to a standard DV widescreen NTSC format, lower field is chosen and if that is the mistake, I chose that on a whim. The dv was shot in 3x4 format and I am repositioning it.
    ---what are the rest of your settings, what are your preview files using for a codec?
    the previews are rendered in the codec "NTSC dv widescreen".
    When I choose the same for export, it accepts that. When I click on "use rendered previews" the codec changes to "custom". That seems fishy to me because the source film is the same codec too.
    I have set my preferences within the project.
    I have cleared the media cashe drawer within the preferences and rebooted the computer to no improvment except that it seems now I was able to update the program. Yesterday the updater wasn't working. But the updates did not fix my problems.
    As I am in the middle of a new export attempt I have not checked further but I will when it finishes and crashes again! Thanks for your input.

  • How can i determine if a UOM conversion is being used in a query?

    I need to find all the queries that are using a QTY UOM conversion.  i tried to do a where used and it didn't return anything.

    Hi,
    Check function module RSZ_I_BASIC_CHA_WHERE_USED
    also check this (try the program)
    Where-used list of an attribute (either display or navigational)
    From AHP
    Hope it would help.
    Regards,
    Satya

  • Slow Query: Join rows from table A with first match in table B

    Hi,
    I have been struggling with this for days. It is very slow:
    With table with 4.5 mio records it took over 2h.
    Records with anType 2 and 3 4 mio.
    Records with anType 1 and 4 500,000
    Different acWarehouse values: 20
    Different acIdent values: 9799
    Could this be written in any other way so that it would be faster.
    anId | acWarehouse | acIdent | anType | anQty | anTotalQuantity
    1| WarehouseA | IdentA | 1 | 100 | 100
    2| WarehouseA | IdentA | 1 | 100 | 200
    3| WarehouseA | IdentA | 1 | 100 | 300
    4| WarehouseA | IdentA | 1 | 100 | 400
    5| WarehouseA | IdentA | 2 | -100 | 100
    6| WarehouseA | IdentA | 2 | -100 | 200
    7| WarehouseA | IdentA | 2 | -100 | 300
    8| WarehouseA | IdentA | 2 | -100 | 400
    Result should be:
    anId | anEdge_Transaction_Id | anQuantity
    5| 1| 100
    6| 2 | 100
    7| 3 | 100
    8| 4 | 100
    Table definition:
    CREATE TABLE iPA_Transaction
         ANID     NUMBER(9,0) -- PRIMARY KEY
    ,     ACWAREHOUSE     VARCHAR2(30 CHAR)
    ,     ACIDENT     VARCHAR2(16 CHAR)
    ,     ANTYPE     NUMBER(1)
    ,     ANQTY     NUMBER(19,4)
    ,     ANTOTALQUANTITY NUMBER(19,4) -- RUNNING TOTAL
    ALTER TABLE iPA_Transaction ADD CONSTRAINT PK_Transaction PRIMARY KEY (anId);
    CREATE INDEX IX_Transaction_TEST4 ON iPA_Transaction(acIdent,acWarehouse,anType,anTotalQuantity);
    CREATE TYPE edge_transaction_data AS OBJECT (
         anId NUMBER(9,0)
    ,     anEdge_Transaction_Id NUMBER(9,0)
    ,     anQuantity NUMBER(19,4)
    CREATE TYPE edge_transaction AS TABLE OF edge_transaction_data;
    /Query:
         SELECT
              iPA_Transaction.anId
         ,     first_transaction.anEdge_Transaction_Id
         ,     first_transaction.anQuantity
         FROM
              iPA_Transaction
              INNER JOIN TABLE(
                   CAST(
                        MULTISET(
                             SELECT
                                  iPA_Transaction.anId
                             ,     MIN(transaction_stock.anId) KEEP (DENSE_RANK FIRST ORDER BY transaction_stock.anTotalQuantity) AS anEdge_Transaction_Id
                             ,     MIN(transaction_stock.anTotalQuantity) KEEP (DENSE_RANK FIRST ORDER BY transaction_stock.anTotalQuantity) AS anTotalQuantity
                             FROM
                                  iPA_Transaction transaction_stock
                             WHERE
                                  transaction_stock.anType IN (1,4)
                             AND transaction_stock.acIdent = iPA_Transaction.acIdent
                             AND transaction_stock.acWarehouse = iPA_Transaction.acWarehouse
                             AND transaction_stock.anTotalQuantity > (iPA_Transaction.antotalquantity + iPA_Transaction.anqty)
                        ) AS edge_transaction
              ) first_transaction ON (iPA_Transaction.anId = first_transaction.anId)
         WHERE
              iPA_Transaction.anType IN (2,3)
         ;-- EXECUTION PLAN
    PLAN_TABLE_OUTPUT
    Plan hash value: 1731335374
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 6634 | 362K| 107M (1)|357:36:32 |
    | 1 | NESTED LOOPS | | 6634 | 362K| 107M (1)|357:36:32 |
    |* 2 | TABLE ACCESS FULL | IPA_TRANSACTION | 3946K| 203M| 15004 (1)| 00:03:01 |
    |* 3 | COLLECTION ITERATOR SUBQUERY FETCH| | 1 | 2 | 27 (0)| 00:00:01 |
    | 4 | VIEW | | 1 | 39 | 6 (0)| 00:00:01 |
    | 5 | SORT AGGREGATE | | 1 | 50 | | |
    | 6 | INLIST ITERATOR | | | | | |
    | 7 | TABLE ACCESS BY INDEX ROWID | IPA_TRANSACTION | 1 | 50 | 6 (0)| 00:00:01 |
    |* 8 | INDEX RANGE SCAN | IX_TRANSACTION_TEST4 | 1 | | 5 (0)| 00:00:01 |
    Query Block Name / Object Alias (identified by operation id):
    1 - SEL$80EA2A9E
    2 - SEL$80EA2A9E / IPA_TRANSACTION@SEL$1
    3 - SEL$80EA2A9E / KOKBF$@SEL$2
    4 - SEL$4 / KOKSDML$@SEL$540AC7B0
    5 - SEL$4
    7 - SEL$4 / TRANSACTION_STOCK@SEL$4
    8 - SEL$4 / TRANSACTION_STOCK@SEL$4
    Predicate Information (identified by operation id):
    2 - filter("IPA_TRANSACTION"."ANTYPE"=2 OR "IPA_TRANSACTION"."ANTYPE"=3)
    3 - filter("IPA_TRANSACTION"."ANID"=SYS_OP_ATG(VALUE(KOKBF$),1,2,2))
    8 - access("TRANSACTION_STOCK"."ACIDENT"=:B1 AND "TRANSACTION_STOCK"."ACWAREHOUSE"=:B2 AND
    ("TRANSACTION_STOCK"."ANTYPE"=1 OR "TRANSACTION_STOCK"."ANTYPE"=4) AND
    "TRANSACTION_STOCK"."ANTOTALQUANTITY">:B3+:B4 AND "TRANSACTION_STOCK"."ANTOTALQUANTITY" IS NOT NULL)
    Column Projection Information (identified by operation id):
    1 - (#keys=0) "IPA_TRANSACTION"."ANID"[NUMBER,22],
    "IPA_TRANSACTION"."ACWAREHOUSE"[VARCHAR2,120], "IPA_TRANSACTION"."ACIDENT"[VARCHAR2,64],
    "IPA_TRANSACTION"."ANTYPE"[NUMBER,22], "IPA_TRANSACTION"."ANQTY"[NUMBER,22],
    "IPA_TRANSACTION"."ANTOTALQUANTITY"[NUMBER,22], VALUE(A0)[96]
    2 - "IPA_TRANSACTION"."ANID"[NUMBER,22], "IPA_TRANSACTION"."ACWAREHOUSE"[VARCHAR2,120],
    "IPA_TRANSACTION"."ACIDENT"[VARCHAR2,64], "IPA_TRANSACTION"."ANTYPE"[NUMBER,22],
    "IPA_TRANSACTION"."ANQTY"[NUMBER,22], "IPA_TRANSACTION"."ANTOTALQUANTITY"[NUMBER,22]
    3 - VALUE(A0)[96]
    4 - "KOKSDML$"."KOKSDML$_C00000"[NUMBER,22], "KOKSDML$"."ANEDGE_TRANSACTION_ID"[NUMBER,22],
    "KOKSDML$"."ANTOTALQUANTITY"[NUMBER,22]
    5 - (#keys=0) MIN("TRANSACTION_STOCK"."ANTOTALQUANTITY") KEEP (DENSE_RANK FIRST ORDER BY
    "TRANSACTION_STOCK"."ANTOTALQUANTITY")[22], MIN("TRANSACTION_STOCK"."ANID") KEEP (DENSE_RANK FIRST
    ORDER BY "TRANSACTION_STOCK"."ANTOTALQUANTITY")[22]
    6 - "TRANSACTION_STOCK".ROWID[ROWID,10], "TRANSACTION_STOCK"."ANID"[NUMBER,22],
    "TRANSACTION_STOCK"."ACWAREHOUSE"[VARCHAR2,120], "TRANSACTION_STOCK"."ACIDENT"[VARCHAR2,64],
    "TRANSACTION_STOCK"."ANTYPE"[NUMBER,22], "TRANSACTION_STOCK"."ANTOTALQUANTITY"[NUMBER,22]
    7 - "TRANSACTION_STOCK".ROWID[ROWID,10], "TRANSACTION_STOCK"."ANID"[NUMBER,22],
    "TRANSACTION_STOCK"."ACWAREHOUSE"[VARCHAR2,120], "TRANSACTION_STOCK"."ACIDENT"[VARCHAR2,64],
    "TRANSACTION_STOCK"."ANTYPE"[NUMBER,22], "TRANSACTION_STOCK"."ANTOTALQUANTITY"[NUMBER,22]
    8 - "TRANSACTION_STOCK".ROWID[ROWID,10], "TRANSACTION_STOCK"."ACIDENT"[VARCHAR2,64],
    "TRANSACTION_STOCK"."ACWAREHOUSE"[VARCHAR2,120], "TRANSACTION_STOCK"."ANTYPE"[NUMBER,22],
    "TRANSACTION_STOCK"."ANTOTALQUANTITY"[NUMBER,22]
    Edited by: 939464 on 08-Jun-2012 02:30
    Edited by: 939464 on 08-Jun-2012 02:32
    Edited by: 939464 on 08-Jun-2012 02:36
    Edited by: 939464 on 08-Jun-2012 04:39

    Additional to what has just been said by Hoek, which I also quote, I feel this could be a problem similar to the one posted here.
    [url:https://forums.oracle.com/forums/thread.jspa?threadID=2387388]SQL - Which positive covered the negative?
    Could you please let us know a bit more about the logic of the output?
    1) Do you want to know which transaction with positive quantity cover the current transaction with negative quantity?
    2) How does it need to be partitioned?
    3) Are the quantity always equal for corresponding transaction?
    If I just look at your data I can do something really simple but it might be not what you need.
    CREATE TABLE iPA_Transaction
    ANID NUMBER(9,0) -- PRIMARY KEY
    , ACWAREHOUSE VARCHAR2(30 CHAR)
    , ACIDENT VARCHAR2(16 CHAR)
    , ANTYPE NUMBER(1)
    , ANQTY NUMBER(19,4)
    , ANTOTALQUANTITY NUMBER(19,4) -- RUNNING TOTAL
    ALTER TABLE iPA_Transaction ADD CONSTRAINT PK_Transaction PRIMARY KEY (anId);
    CREATE INDEX IX_Transaction_TEST4 ON iPA_Transaction(acIdent,acWarehouse,anType,anTotalQuantity);
    INSERT INTO iPA_Transaction VALUES(1, 'WarehouseA', 'IdentA', 1 , 100, 100);
    INSERT INTO iPA_Transaction VALUES(2, 'WarehouseA', 'IdentA', 1 , 100, 200);
    INSERT INTO iPA_Transaction VALUES(3, 'WarehouseA', 'IdentA', 1 , 100, 300);
    INSERT INTO iPA_Transaction VALUES(4, 'WarehouseA', 'IdentA', 1 , 100, 400);
    INSERT INTO iPA_Transaction VALUES(5, 'WarehouseA', 'IdentA', 2 , -100, 100);
    INSERT INTO iPA_Transaction VALUES(6, 'WarehouseA', 'IdentA', 2 , -100, 200);
    INSERT INTO iPA_Transaction VALUES(7, 'WarehouseA', 'IdentA', 2 , -100, 300);
    INSERT INTO iPA_Transaction VALUES(8, 'WarehouseA', 'IdentA', 2 , -100, 400);
    SELECT a.anid, b.anid anedge_transaction_id, -a.anqty anqty
      FROM ipa_transaction a, ipa_transaction b
    WHERE     a.acwarehouse = b.acwarehouse
           AND a.acident = b.acident
           AND a.antype IN (2, 4)
           AND b.antype IN (1, 4)
           AND a.antotalquantity = b.antotalquantity;
          ANID ANEDGE_TRANSACTION_ID      ANQTY
             5                     1        100
             6                     2        100
             7                     3        100
             8                     4        100
    {code}
    Try to give additional details.
    Regards.
    Al                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Why Doesn't XMLIndex Create and Populate Upon Scale-Up For Eval Table?

    Presently working with Oracle release 11.2.0.1 using xmltype securefile binary xml tables.
    In a quandry here and hoping not to have to open an Oracle SR...
    Able to create a working xmlindex against an 'Acme Eval' table in our development environment against an Acme eval table (estimate ~ 5GB) containing 325,550 rows. Creation takes about 10 mins. No partitioning is being used.
    When trying the exact same xmlindex creation against our, much more powerful, pvs platform environment contaning 13,985,124 rows; the xmlindex object shows up as existing in the data dictionary, but the session never stops running after at least 24 hrs of runtime.
    The pvs hardware environment uses: (1.) 24 processor, (2.) Solaris-64 OS, (3.) 128GB memory.
    Two 1 hr AWR reports for the pvs environment shows a huge amount of logical read/writes. The foreground wait event; 'db file sequential read' dominates the DBTime @ 92%. There is about 4.6 GB physical reads/3.5GB physical writes - not too large relatively speaking. The I/O subsystem is having no problem handling the throughput. The top, by far,Time Model Statistics is the 'sql excute elapsed time' @ 99%. User I/O is the main foreground wait class @92%. These values are similar for both of the AWR report - except one report show the 'CREATE XMLINDEX...' statement as being the top sql. The other report shows ' INSERT INTO CROUTREACH.EVAL_IDX_TAB_I... ' As the top sql.
    Been several days since this post. Hoping someone might be able to provide some insight or share their experiences on xmlindexes scaling up to millions of records in the 5 - 10 gb xmltype table range...
    Regards,
    Rick Blanchard
    The frustration here is; there is no obvious database configuration, physical cpu, memory, or I/O issue - other than the logical gets centered around the db file sequential read' wait event.
    Can't do much as far as adjusting the create index statement and underlying attendent Oracle xml operations - the main frustration factor here...
    The xmlindex is still undergoing record insertions.
    Additionally, in the pvs environment; no dml is allowed on the xmlindex and the select statement that works fine using the xmlindex via the optimizer in the development environment doesnt pick up the xmlindex in the pvs environment - as would be expected if the xmlindex wasn't completely populated.
    Appears the xmlindex record population is stalled...
    In the pvs environment, when performing the dml 'alter index croutreach.eval_xmlindex_ix noparallel';
    get this error - typical when an xmlindex is being populated with records:
    ALTER INDEX croutreach.eval_xmlindex_ix NOPARALLEL
    Error report:
    SQL Error: ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
    00054. 00000 -  "resource busy and acquire with NOWAIT specified"
    *Cause:    Resource interested is busy.
    *Action:   Retry if necessary. xmlindex create statement used in both cases is
    (The underlying eval table is also set to a dop of 20):
    CREATE
      INDEX "EVAL_XMLINDEX_IX" ON "EVAL"
        OBJECT_VALUE
      INDEXTYPE IS "XDB"."XMLINDEX" PARAMETERS
        'XMLTable eval_idx_tab_I XMLNamespaces(''http://www.cigna.com/acme/domains/derived/fact/2010/03'' AS "ns7",  
    DEFAULT ''http://www.cigna.com/acme/domains/eval/2010/03''),''/eval''      
    COLUMNS        
    eval_catt VARCHAR2(50) path ''@category'',
    acne_mbr_idd VARCHAR2(50) path ''@acmeMemberId'',
    eval_idd VARCHAR2(50) path ''@evalId'',
    eval_dtt TIMESTAMP WITH TIME ZONE path ''@eval_dt'',
    derivedFact XMLTYPE path ''derivedFacts/ns7:derivedFact'' virtual 
    XMLTable eval_idx_tab_II XMLNamespaces(''http://www.cigna.com/acme/domains/derived/fact/2010/03'' AS "ns7", 
    DEFAULT ''http://www.cigna.com/acme/domains/eval/2010/03''),''/ns7:derivedFact'' passing derivedFact     
    COLUMNS         
    defId VARCHAR2(50) path ''ns7:defId'',
    factSource VARCHAR2(50) path ''ns7:factSource'',
    origInferred_dt TIMESTAMP WITH TIME ZONE path ''ns7:origInferred_dt'',
    typee VARCHAR2(20) path ''ns7:factValue/ns7:type'',
    valuee VARCHAR2(1000) path ''ns7:factValue/ns7:value'',
    defUrn VARCHAR2(100) path ''ns7:defUrn'''
      )parallel 20;The development environment eval table is:
    CREATE
      TABLE "N98991"."EVAL" OF XMLTYPE
        CONSTRAINT "EVAL_ID_PK" PRIMARY KEY ("EVAL_ID") USING INDEX PCTFREE 10
        INITRANS 4 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT
        1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1
        FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE
        DEFAULT) TABLESPACE "ACME_DATA" ENABLE
      XMLTYPE STORE AS SECUREFILE BINARY XML
        TABLESPACE "ACME_DATA" ENABLE STORAGE IN ROW CHUNK 8192 CACHE NOCOMPRESS
        KEEP_DUPLICATES STORAGE(INITIAL 106496 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS
        2147483645 PCTINCREASE 0 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
        CELL_FLASH_CACHE DEFAULT)
      ALLOW NONSCHEMA ALLOW ANYSCHEMA VIRTUAL COLUMNS
        "EVAL_DT" AS (SYS_EXTRACT_UTC(CAST(TO_TIMESTAMP_TZ(SYS_XQ_UPKXML2SQL(
        SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03"; (::)
    /eval/@eval_dt'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2),'SYYYY-MM-DD"T"HH24:MI:SS.FFTZH:TZM') AS TIMESTAMP
    WITH
      TIME ZONE))),
        "EVAL_CAT" AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03";/eval/@category'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2) AS VARCHAR2(50))),
        "ACME_MBR_ID" AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03";/eval/@acmeMemberId'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2) AS VARCHAR2(50))),
        "EVAL_ID" AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03";/eval/@evalId'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2) AS VARCHAR2(50)))
      PCTFREE 0 PCTUSED 80 INITRANS 4 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE
        INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0
        FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
        CELL_FLASH_CACHE DEFAULT
      TABLESPACE "ACME_DATA" PARALLEL 20 ;
    CREATE
      INDEX "N98991"."EVAL_XMLINDEX_IX" ON "N98991"."EVAL"
        OBJECT_VALUE
      INDEXTYPE IS "XDB"."XMLINDEX" PARAMETERS
        'XMLTable eval_idx_tab_I XMLNamespaces(''http://www.cigna.com/acme/domains/derived/fact/2010/03'' AS "ns7",  
    DEFAULT ''http://www.cigna.com/acme/domains/eval/2010/03''),''/eval''      
    COLUMNS        
    eval_catt VARCHAR2(50) path ''@category'',
    acne_mbr_idd VARCHAR2(50) path ''@acmeMemberId'',
    eval_idd VARCHAR2(50) path ''@evalId'',
    eval_dtt TIMESTAMP WITH TIME ZONE path ''@eval_dt'',
    derivedFact XMLTYPE path ''derivedFacts/ns7:derivedFact'' virtual 
    XMLTable eval_idx_tab_II XMLNamespaces(''http://www.cigna.com/acme/domains/derived/fact/2010/03'' AS "ns7", 
    DEFAULT ''http://www.cigna.com/acme/domains/eval/2010/03''),''/ns7:derivedFact'' passing derivedFact     
    COLUMNS         
    defId VARCHAR2(50) path ''ns7:defId'',
    factSource VARCHAR2(50) path ''ns7:factSource'',
    origInferred_dt TIMESTAMP WITH TIME ZONE path ''ns7:origInferred_dt'',
    typee VARCHAR2(20) path ''ns7:factValue/ns7:type'',
    valuee VARCHAR2(1000) path ''ns7:factValue/ns7:value'',
    defUrn VARCHAR2(100) path ''ns7:defUrn'''
    CREATE UNIQUE INDEX "N98991"."SYS_C00415365" ON "N98991"."EVAL"
        "SYS_NC_OID$"
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
        INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0
        FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
        CELL_FLASH_CACHE DEFAULT
      TABLESPACE "ACME_DATA" ;
    CREATE UNIQUE INDEX "N98991"."SYS_IL0000688125C00003$$" ON "N98991"."EVAL"
        PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 NEXT 1048576
        MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST
        GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
        TABLESPACE "ACME_DATA" PARALLEL (DEGREE 0 INSTANCES 0) ;
    CREATE UNIQUE INDEX "N98991"."EVAL_ID_PK" ON "N98991"."EVAL" ("EVAL_ID")
      PCTFREE 10 INITRANS 4 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536
      NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1
      FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE
      DEFAULT) TABLESPACE "ACME_DATA" ;The pvs environment's eval table and xmlindex defintion is:
    CREATE
      TABLE "CROUTREACH"."EVAL" OF XMLTYPE
        CONSTRAINT "EVAL_ID_PK" PRIMARY KEY ("EVAL_ID") USING INDEX PCTFREE 10
        INITRANS 4 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT
        1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1
        FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE
        DEFAULT) TABLESPACE "ACME_DATA" ENABLE
      XMLTYPE STORE AS SECUREFILE BINARY XML
        TABLESPACE "ACME_DATA" ENABLE STORAGE IN ROW CHUNK 8192 CACHE NOCOMPRESS
        KEEP_DUPLICATES STORAGE(INITIAL 106496 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS
        2147483645 PCTINCREASE 0 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
        CELL_FLASH_CACHE DEFAULT)
      ALLOW NONSCHEMA ALLOW ANYSCHEMA VIRTUAL COLUMNS
        "EVAL_DT" AS (SYS_EXTRACT_UTC(CAST(TO_TIMESTAMP_TZ(SYS_XQ_UPKXML2SQL(
        SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03"; (::)
    /eval/@eval_dt'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2),'SYYYY-MM-DD"T"HH24:MI:SS.FFTZH:TZM') AS TIMESTAMP
    WITH
      TIME ZONE))),
        "EVAL_CAT" AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03";/eval/@category'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2) AS VARCHAR2(50))),
        "ACME_MBR_ID" AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03";/eval/@acmeMemberId'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2) AS VARCHAR2(50))),
        "EVAL_ID" AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03";/eval/@evalId'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2) AS VARCHAR2(50)))
      PCTFREE 0 PCTUSED 80 INITRANS 4 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE
        INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0
        FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
        CELL_FLASH_CACHE DEFAULT
      TABLESPACE "ACME_DATA" PARALLEL 20 ;
    CREATE
      INDEX "CROUTREACH"."EVAL_IDX_MBR_ID_EVAL_CAT" ON "CROUTREACH"."EVAL"
        "ACME_MBR_ID",
        "EVAL_CAT"
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
        INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0
        FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
        CELL_FLASH_CACHE DEFAULT
      TABLESPACE "ACME_DATA" PARALLEL 16 ;
    CREATE UNIQUE INDEX "CROUTREACH"."SYS_C0018448" ON "CROUTREACH"."EVAL"
        "SYS_NC_OID$"
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
        INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0
        FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
        CELL_FLASH_CACHE DEFAULT
      TABLESPACE "ACME_DATA" ;
    CREATE UNIQUE INDEX "CROUTREACH"."SYS_IL0000094844C00003$$" ON "CROUTREACH".
      "EVAL"
        PCTFREE 10 INITRANS 2 MAXTRANS 255 NOLOGGING STORAGE(INITIAL 65536 NEXT
        1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1
        FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE
        DEFAULT) TABLESPACE "ACME_DATA" PARALLEL (DEGREE 0 INSTANCES 0) ;
    CREATE UNIQUE INDEX "CROUTREACH"."EVAL_ID_PK" ON "CROUTREACH"."EVAL" ("EVAL_ID"
      ) PCTFREE 10 INITRANS 4 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536
      NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1
      FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE
      DEFAULT) TABLESPACE "ACME_DATA" PARALLEL 16 ;
      CREATE
        INDEX "CROUTREACH"."EVAL_XMLINDEX_IX" ON "CROUTREACH"."EVAL"
          OBJECT_VALUE
        INDEXTYPE IS "XDB"."XMLINDEX" PARAMETERS
          'XMLTable eval_idx_tab_I XMLNamespaces(''http://www.cigna.com/acme/domains/derived/fact/2010/03'' AS "ns7",
    DEFAULT ''http://www.cigna.com/acme/domains/eval/2010/03''),''/eval''
    COLUMNS
    eval_catt VARCHAR2(50) path ''@category'',
    acne_mbr_idd VARCHAR2(50) path ''@acmeMemberId'',
    eval_idd VARCHAR2(50) path ''@evalId'',
    eval_dtt TIMESTAMP WITH TIME ZONE path ''@eval_dt'',
    derivedFact XMLTYPE path ''derivedFacts/ns7:derivedFact'' virtual
    XMLTable eval_idx_tab_II XMLNamespaces(''http://www.cigna.com/acme/domains/derived/fact/2010/03'' AS "ns7",
    DEFAULT ''http://www.cigna.com/acme/domains/eval/2010/03''),''/ns7:derivedFact'' passing derivedFact
    COLUMNS
    defId VARCHAR2(50) path ''ns7:defId'',
    factSource VARCHAR2(50) path ''ns7:factSource'',
    origInferred_dt TIMESTAMP WITH TIME ZONE path ''ns7:origInferred_dt'',
    typee VARCHAR2(20) path ''ns7:factValue/ns7:type'',
    valuee VARCHAR2(1000) path ''ns7:factValue/ns7:value'',
    defUrn VARCHAR2(100) path ''ns7:defUrn'''
        PARALLEL 20 ;Wondering if anyone has run into xmlindex creation and populating problems similar to this, when scaling up from thousands of records to millions of records.
    At this point, for my work to be useful; must be able to get the xmlindex to at least successfully create and populate @ the 13.9 million records.
    Any suggestions, much appreciated.
    Regards,
    Rick Blanchard
    Edited by: RickBlanchardSRS on May 29, 2012 1:03 PM

    We didn't use "XMLDB XMLType partitioning" actually, but something simple like
    CREATE TABLE P_DATA
    (    "ID" NUMBER(15,0),
          "DOC" "SYS"."XMLTYPE"
    ) SEGMENT CREATION IMMEDIATE
    NOCOMPRESS NOLOGGING
    TABLESPACE "XML_DATA"
    XMLTYPE COLUMN "DOC" STORE AS SECUREFILE BINARY XML
    (TABLESPACE "XML_DATA"
      NOCOMPRESS  KEEP_DUPLICATES)
    XMLSCHEMA "http://www.xxxxx.com/schema_v3.0.xsd"
    ELEMENT "RECORD"
    DISALLOW NONSCHEMA
    PARTITION BY RANGE(ID)
    (PARTITION Q_DATA_PART_01 VALUES LESS THAN  (100000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_02 VALUES LESS THAN  (200000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_03 VALUES LESS THAN  (300000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_04 VALUES LESS THAN  (400000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_05 VALUES LESS THAN  (500000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_06 VALUES LESS THAN  (600000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_07 VALUES LESS THAN  (700000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_08 VALUES LESS THAN  (800000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_09 VALUES LESS THAN  (900000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_10 VALUES LESS THAN (1000000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_11 VALUES LESS THAN (1100000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_12 VALUES LESS THAN (1200000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_13 VALUES LESS THAN (1300000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_14 VALUES LESS THAN (1400000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_15 VALUES LESS THAN (1500000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_16 VALUES LESS THAN (1600000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_17 VALUES LESS THAN (1700000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_18 VALUES LESS THAN (1800000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_19 VALUES LESS THAN (1900000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_20 VALUES LESS THAN (2000000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_21 VALUES LESS THAN (2100000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_22 VALUES LESS THAN (2200000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_23 VALUES LESS THAN (2300000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_24 VALUES LESS THAN (2400000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_25 VALUES LESS THAN (2500000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_26 VALUES LESS THAN (2600000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_27 VALUES LESS THAN (2700000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_28 VALUES LESS THAN (2800000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_29 VALUES LESS THAN (2900000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_30 VALUES LESS THAN (3000000000) TABLESPACE "XML_DATA" NOCOMPRESS
    ,PARTITION Q_DATA_PART_MAX VALUES LESS THAN  (MAXVALUE) TABLESPACE "XML_DATA" NOCOMPRESS
    );Could be mistaken, but if I remember correctly we ended up with 10mill record id ranges. We needed to do this anyway (=using partitioning), otherwise we would have reached the maximum amount of records in a column physical limit (for our used db_block_size)
    Edited by: Marco Gralike on May 29, 2012 10:02 PM

Maybe you are looking for