Insane performance issue. GPU not being used at all for cropping.

I regularly record my screen and later open the resulting file in Pr and export only a square on it. I import the video, maybe cut away some fluff, and export, choosing to crop it.
The result is a painful ordeal that cripples my computer for hours every single day, where Premiere Pro CC uses almost 100% CPU constantly, but 0% of the GPU. It's really extremely slow. Other export tasks seem to be as quick as you expect them to be. But not this particular job, which I rely on every day. Very annoying.
There is simply no way that this is intended. The GPU seems to be made for things like this. Why isn't Pr using it?
I have 20 GB RAM, a very powerful quad core Xeon, a new Nvidia GPU, solid state disk, etc. Windows 8.1 Update 1. My computer is never slow for other tasks. This is really a very annoying issue as it makes using the computer nearly impossible for hours a day. For no good reason. It needs to use the graphics card to crop!

It just really annoys me that this kind of thing is ever turned off, hidden away and just... ambiguous.
Its hardly hidden away.  Its in the NEW PROJECT Settings page and first setting drop down option.
There are reasons why its an option... buts its ON by default on any new project I start.

Similar Messages

  • GPU not being used at all. (gtx 860M). Lenovo Y50-70 laptop.

    Hello!
    I recently upgraded to windows 10 via windows update and did a clean install after the upgrade. Installed all the neccesary drivers etc etc. The usual drill. I consider myself rather tech savy.
    After a few days of casual gaming with LoL i noticed that my Nvidia GTX 860M GPU was not being used AT ALL, only the integrated Intel HD 4600.
    This was further proved to be right after I installed Path of Exile and kept getting BSODs each time after around 10 minute of playing with various error messages revolving around the file "igdkmd64.sys". I've tried completely deleting the drivers using safe mode and the driver cleaner program and reinstalling other drivers (ex. the lenovo driver dated 14/7. ) with no luck.
    I've tried all the settings within intel hd graphics and nvidia controlpanel. I've also tried checking BIOS. No luck there either.
    Both of the GPU's also show up in device management without any issues.
    I also tried disabling the intel hd graphics within device managent which resulted in the basic adapters being used and my screen looks bad...  My current Nvidia driver is 353.62. I'll post some various screenshots here:
    Device management with both activated:
    http://bildr.no/image/Rjk3ZFpK.jpeg
    Nvidia control panel with both GPUs active in device management:
    http://bildr.no/image/L3lYb1ZC.jpeg
    This shows up when I try to check Nvidia display settings when intel HD graphics is DISABLED in device management. It basically translates to:
    "Nvidia displays ettings are not available. You're not using a display connected to a Nvidia GPU"
    http://bildr.no/image/TS85TTZp.jpeg
    My display settings options with intel HD graphics being disabled:
    http://bildr.no/image/ZUh2SVJV.jpeg
    Can provide further information if required. Not sure what you need to know, but bottom line is that my GTX 860M GPU is not being used for anything at all.
    i'm assuming that all I can do for now is to either wait for updated drivers from lenovo or to roll back to windows 8.1 (Works fine in win 8.1)?

    More than a fix I think it has more to do with the graphics drivers and in some cases Windows 10 installation issues.
    About the Graphics drivers,
    Try uninstalling the NVIDIA GPU in Control Panel > Device manager
    Uninstall everything related to NVIDIA in Control Panel > Prgrams & Features
    Restart the system and wait for it to install the NVIDIA GPU again.
    I would also advise that you try older drivers, if they are available.
    About Windows 10 Installation,
    I have installed Win 10 twice now. In my previous Win 10 installation my system was running slow, Cortana was not working and couple more issues.
    In current installation, everything is working great till now.
    What I did different in second installation -
    I installed all drivers upgrades for Win 8.1
    All windows updates for Win 8.1 before upgrading to Win 10
    I downloaded Win 10 ISO and started Win 10 setup from a bootable USB (by running Setup file while logged into windows 8.1)
    During upgrade, I did not Apply Updates for Win 10 (Selected the bottom option)
    Then windows installed normally
    Updates to Win 10 were applied after installation.
     

  • Performance issue - Index not being used

    Hi,
    I have the following scenario
    - I have a table Account with a PK -Account_ID, for which there is a index PK_ACCOUNT_ID_IDX
    - Another table Account_fact has a PK - Account_ID, Month_Year, for which there is a index PK_ACCOUNT_FACT_IDX
    I have a join in these two table. The query is
    select a.ACCOUNT_ID, b.Cost
    From Account a, Account_fact b
    Where a.account_id = b.Account_id
    and a.Include_flag = 'Y'
    The explain plan for this query tells me its doing a Full table scan and not using the index and the cost of query is very high.
    Can any one suggest what is wrong here.
    Regards
    Deepak

    >> Shud I be creating a bit map index.
    Bit map index is not for this case.
    http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96533/data_acc.htm#8131
    Also bitmaps are very dangerous for Transactional tables. They are not meant for them.
    As I told you in this case create index on all the columns you are using in the query.
    For example INCLUDE_FLAG, ACCOUNT_ID in ACCOUNT table
    ACCOUNT_ID, COST in the other table.
    But keep in mind that if you are selecting any other column from these tables then again it might opt for full table scan......

  • Ultra low frame rates, GPU not being used

    While using After effects during playback, I am getting about 10-4 FPS. With frame rates that low it's basically impossible to make any videos. I am using a desktop gadget to monitor GPU usage. I noticed that my GPU is not being used at all, 0% usage and only a few MB of memory being consumed out of 4 gigs of GDDR5. I called Adobe customer service and basically I was told that After effects only uses as much GPU power as it needs to. Ok, that makes since and If I was getting 30+ FPS then I wouldn't care, but it seems odd to me that After effects is running so poorly and not using my GPU. If my GPU was maxed out, then I would understand I need a more powerful GPU to improve frame rates, but since my GPU is not being used at all, not even a bit then I don't think it's a hardware problem, but some sort of setting that is not right. The only thing I could think of is that my HDD is pretty slow or that GTX cards are not designed to run Open Gl and maybe that's the problem, but I double checked the Adobe website and GTX cards are supported.  Also I downloaded some other GPU monitoring software to double check and both the Desktop gadget and the GPU software monitor show no activity. I am really new to After effects.  Thanks for help.
    Specs:
    64bit win7
    8 gigs
    760
    4670k

    That's because it appears that you're using AE incorrectly.  I bet you're assuming that if you hit the space bar, AE plays back video like a video editing application.
    Well, it doesn't.
    AE is an effects, motion graphics and compositing application.  It's designed to do completely different things than an editing application does.  Hence, it doesn't work like an editing application does.  For example, IT DOESN'T PLAY BACK VIDEO IN REAL TIME.  That's why you got that getting started link.  At least do yourself the favor of reading how AE works. 
    And for the purposes of this thread, it wouldn't hurt you to learn how to RAM Preview: hit zero on the numeric keypad and see what happens.  It's just one of the many basics you need to know before you jump into the deep end of the pool with AE.

  • CE500 CFS Disk is not being used at all

    This is a new installation using WCCP v2. Even though the engine is registered with the IOS router and the router is definitely forwarding traffic to the CE, no disk space is being utilized at all and my savings is reported as 0. I've verified that the CFS volume is mounted successfully. Here is my current CFS disk stats:
    Volume0 49.754 G 0 K 0 K 0 K 0 K 0 K
    Thanks in advance.

    This happens when you get a lot of disk errors . This is most likely the cause of the problem. Reconfigure the disks and reboot. Once the CE comes back up, let it run for sometime after which you could check if you are getting any logs on your CFS disk.

  • GPU Not Being Used By LR

    I have just updated to latest version of LR and it is not using my GPU.  In LR system info it says it is but if I monitor my GPU clock speed then I can see it is not using it.
    If i run PS i can clearly see my GPU clock speed increase so I know it does work.
    Any ideas?

    More than a fix I think it has more to do with the graphics drivers and in some cases Windows 10 installation issues.
    About the Graphics drivers,
    Try uninstalling the NVIDIA GPU in Control Panel > Device manager
    Uninstall everything related to NVIDIA in Control Panel > Prgrams & Features
    Restart the system and wait for it to install the NVIDIA GPU again.
    I would also advise that you try older drivers, if they are available.
    About Windows 10 Installation,
    I have installed Win 10 twice now. In my previous Win 10 installation my system was running slow, Cortana was not working and couple more issues.
    In current installation, everything is working great till now.
    What I did different in second installation -
    I installed all drivers upgrades for Win 8.1
    All windows updates for Win 8.1 before upgrading to Win 10
    I downloaded Win 10 ISO and started Win 10 setup from a bootable USB (by running Setup file while logged into windows 8.1)
    During upgrade, I did not Apply Updates for Win 10 (Selected the bottom option)
    Then windows installed normally
    Updates to Win 10 were applied after installation.
     

  • An index can not being used and still afect a query performance?

    Hi i have a query with a high cost so i created two indexes, A and B, to improve its performance.
    After the creation of the indexes when i reviewed the execution plan of the query the cost had been reduced, but i noticed that the index B is not being used,
    and if i try to force the query to use index B with a HINT the cost increases, so i decided to drop the index B.
    Once i droped the index B i checked the execution plan again and then i noticed that the cost of the query increased, if i recreate the index B the explain plan
    shows a lower cost even though its not being used by the execution plan.
    Does anyone know why is this happening?
    An index can, not being used by the execution plan and still affect a query performance?

    user11173393 wrote:
    Hi i have a query with a high cost so i created two indexes, A and B, to improve its performance.
    After the creation of the indexes when i reviewed the execution plan of the query the cost had been reduced, but i noticed that the index B is not being used,
    and if i try to force the query to use index B with a HINT the cost increases, so i decided to drop the index B.
    Once i droped the index B i checked the execution plan again and then i noticed that the cost of the query increased, if i recreate the index B the explain plan
    shows a lower cost even though its not being used by the execution plan.
    Does anyone know why is this happening?
    An index can, not being used by the execution plan and still affect a query performance?You said that is what is happening, & I believe you.

  • HBOgo "StageVideo is not being used"

    I just updated flash today, November 25 2013, which gives me version 11,9,900,152.  The problem I'm having seems specific to the HBOgo.com site.
    The problem occurs in all three browsers that I've tried, Firefox (my preferred browser), Chrome, and IE 9.  Also, I've tried the various suggested troubleshooting suggested on the Adobe site as far as enabling Flash addon in IE after disabling (unchecking) the choice for ActiveX filtering.  I've tried uninstalling/reinstalling all 3 browsers, reinstalling flash, resetting all video card settings to default, going through the Device Manager and uninstalling the device entirely, making sure it has no errors or conflicts anywhere and the same thing for the network devices, they all indicate that they are working properly.
    My device is an HP Pavilion dv7 Notebook PC running Vista Home Premium Service Pack 2.  It has 4 GB of memory and the video card is an NVIDIA GeForce 9600M GT.  The drivers are all up to date and so is every application and its associated add-ons that I will mention.  Also, it shipped with a Blu-Ray player which I've used to display Blu-Ray content on an external monitor with no issue.  (If it can do that, then shouldn't it just be some software issue preventing it from playing back a video stream of inferior quality from hbogo?)
    Regarding Flash Player, I've watched videos on YouTube and Hulu (and countless other sites which stream Flash Video) at resolutions of 720 and 1080 which played at framerates between 25 and 30 fps and which also did not use hardware acceleration but nevertheless maintained CPU usage of less than 70%.  So, the computer can certainly do it even without the help of the GPU, and it can do it from other sites that use flash, but not from HBOgo.  That's a second problem, even when flash video plays well, it's still not using hardware acceleration, but first I want to know why HBOgo's flash player is so much worse than everyone else's player.
    Here is the specific issue:  I navigate to HBOgo.com, pick any video to play and begin playback.  Playback usually begins at a relatively low resolution (I'd guess 480 or so based on its obvious pixelation), and then steps up the resolution gradually.  Usually after a minute or so, it will have reached its best resolution and that's when it starts dropping frames like crazy and pinning the CPU at 100%.  The video looks terribly choppy and the audio skips the more choppy the video is.  When I click pause or hit the spacebar for a pause, it will take two or three seconds as it spits out the last few video frames before finally showing the paused icon on the last frame.  Those two seconds seem to corrolate with CPU processing since there is no noticable delay when pausing video anywhere else under any other conditions.  Of course, CPU useage will drop back to 5 or 10 while the video is paused.
    Right-clicking the screen lets me choose "Show Video Debug" which in turn tells me:
         StageVideo enabled in OSMF: Yes
         StageVideo is supported.
         StageVideo is not being used, regular video 'probably' is.
    This is where I got the information about dropped frames.  If it matters, when paused, the buffer will fill to about 400 Mb plus or minus about 10 percent of that, perhaps.  Also, during playback, the buffer maintains approximately the same amount, indicating that my ISP has no problem sending that much data to my device.  The buffer seems fill to a lenght of time, about 60 seconds; so, as the video resolution goes down, the total buffer drops accordingly... sometimes it is at 200 Mb for 60 seconds with lower resolution, etc...
    Speaking of my ISP, I have Verizon FiOS (I don't know why it would matter, but I'm in King of Prussia, which is near Philadelphia, PA).  I just tested my bandwidth and it tells me that my IP is 71.175.97.244 and my download rate is 57.98 Mbps from some server in Matawan, NJ.  I don't think networking issues factor into this at all.  I say that because, digging into the developer tools (all 3 browsers show the same network activity: Firefox, Chrome, and IE) and clicking on the "Network" column, it consistently shows low latency for all the stream components.  For example:
         path: http://hds.pro12.lv3.hbogo.com/videos/PRO12/e2/hbo/feature/728425/hbo_821867_PRO12_f4m/hbo _821867_PRO12_8-Seg1-Frag858
         method: get
         type: video/f4f
    Timing Tab show:
         Sending: 0     Waiting: 89mg     Recieving: 159ms
    This seems to indicate that I'm getting the data sent to me without any problem, so forget about network issues, right?
    Also, regarding information available in Developer Tools, I can see that the flash video object has the paramater "wmode" set to "transparent".  I already wasted time messing with this before I realized that the paramater is irrelavent while in fullscreen mode -- besides the fact that even when it is changed to direct or gpu when not in full screen, it does nothing to help matters.  I think this was covered in one of the last discussions talking about lack of hardware acceleration on HBOgo -- the same discussion that ended with a few people saying that they were going to "throw in to towel".
    What am I missing here?  Why is StageVideo supported but not used?  Why do other players which use flash play videos with better quality despite still not using hardware acceleration?
    Windows Vista = updated
    NVIDIA Video Drivers = updated
    Flash Player = updated
    Flash Addons (pepper flash, etc...) = updated
    Firefox, Chrome, IE = all updated
    There's got to be something I can do.  What is it?

    Hello Sarvanan,
    What do you mean by "the respective field not having the Unit/Curr Objects"..?..some of them are of the type "number" whereas others are CHARS.
    Everytime when i add some field i cannot re-create the whole transformation. There has to be some inconsistency as my mapping of source-target field is correct. I have also raised this to OSS but as usual they are taking thier own sweet time to reply.
    Surprisingly the transformation got activated yesterday and the dataload too was successful. Today again the same ols problem of "parameter is not being used"..!!
    still could you pls throw some light on Unit/Currency objects that u mentioned..??
    Thanks in adv.
    Sucheta

  • GPU not in use

    Hi so I've been trying to get Arch working on my Y510p machine. It has 2 GPUs but since SLI isn't really a thing on linux I can only use 1 GPU.
    I came here from Debian, and there the GPU worked out of the box, installed the drivers and boom epic performance. However on Arch this is not the case. I've followed the guide on how to install Nvidia drivers correctly, and my machine seems to recognize that they exist, but they're not being used.
    I've tried bumblebee, but whenever I used optirun my screen would turn into a light spectrum, causing it to be inoperatable. Anyway so I've uninstalled Bumblebee again and I'm currently using the following drivers:
    [clonix@Clonix ~]$ pacman -Qs nvidia
    local/lib32-nvidia-utils 346.59-1
    NVIDIA drivers utilities (32-bit)
    local/libcl 1.1-4
    OpenCL library and ICD loader from NVIDIA
    local/nvidia 346.59-1
    NVIDIA drivers for linux
    local/nvidia-utils 346.59-1
    NVIDIA drivers utilities
    And this is the output of lspci | grep -i --color 'vga':
    01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT 750M] (rev a1)
    I tried lspci | grep -i --color 'vga|3d|2d' but it gave no output. Furthermore, I've tried running a few applications that need 3d rendering in order to run, and I was presented with a big fat error message telling me:
    No card selector available for card vendor 0000 (using GL_RENDERER "Gallium 0.4 on llvmpipe (LLVM 3.6, 256 bits)").
    and a popup box saying no GPU didn't support 3d rendering.
    Bottomline, it's not working and I'd appreciate any help given since I cannot find a solution myself.
    Regards, Paludan

    dragonn wrote:You need to get bumblebee working because this is the only way to get dGPU working since the Nvidia GPU-s are not physical connected to the screen, so you need to passthrough the output of nvidia GPU-s to the integrated GPU to display it - and this it what bumblebee does and the same way it works on Windows too. Eventuality you can use this way https://wiki.archlinux.org/index.php/NVIDIA_Optimus but this will render the entire desktop on Nvidia GPU and  passthrough it through the iGPU.
    I tried using bumblebee but it didn't seem to function corrently. You said "but this will render the entire desktop on Nvidia GPU and  passthrough it through the iGPU", what consequences does this have? Would you mind helping me setting bumblebee up?

  • Materialized view not being used in the report

    I have had a materialized view (MV) for a particular report. Recently, the report definition has changed little bit, so the existing MV is not being used by the report anymore. I copied the code Discoverer's SQL Inspection and recreated the materialized view. But still it is not working. Obviously, I am missing something at the database level. Does anyone have any idea? The database is 9i and Discoverer is 9.0.2. Thank you!

    The SQL that you see from the Inspect SQL option will provide you with the SQL that Discoverer sends to the database. The database then may do a query rewrite to point to an available materialized view if available. This rewrite won't be seen from the inspect sql option. You need to check at the database level to verify if a query rewrite did in fact take place.
    You may want to check the section titled "Query Rewrite with Materialized Views" from Ch1 - "Introduction to the Optimizer" in the Oracle9i Database Performance Tuning Guide and Reference, Release 2 (9.2), Part Number A96533-02, available at http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96533/optimops.htm#37287
    Regards
    Abhinav Agarwal
    Oracle Business Intelligence Product Management
    http://www.oracle.com/bi
    http://www.oracle.com/technology/documentation/bi_ee.html
    http://www.oracle.com/technology/software/products/ias/htdocs/101320bi.html
    http://oraclebi.blogspot.com/

  • Index not being used in group by.

    Here is the scenario with examples. Big table 333 to 500 million rows in the table. Statistics are gathered. Histograms are there. Index is not being used though. Why?
      CREATE TABLE "XXFOCUS"."some_huge_data_table"
       (  "ORG_ID" NUMBER NOT NULL ENABLE,
      "PARTNERID" VARCHAR2(30) NOT NULL ENABLE,
      "EDI_END_DATE" DATE NOT NULL ENABLE,
      "CUSTOMER_ITEM_NUMBER" VARCHAR2(50) NOT NULL ENABLE,
      "STORE_NUMBER" VARCHAR2(10) NOT NULL ENABLE,
      "EDI_START_DATE" DATE,
      "QTY_SOLD_UNIT" NUMBER(7,0),
      "QTY_ON_ORDER_UNIT" NUMBER(7,0),
      "QTY_ON_ORDER_AMT" NUMBER(10,2),
      "QTY_ON_HAND_AMT" NUMBER(10,2),
      "QTY_ON_HAND_UNIT" NUMBER(7,0),
      "QTY_SOLD_AMT" NUMBER(10,2),
      "QTY_RECEIVED_UNIT" NUMBER(7,0),
      "QTY_RECEIVED_AMT" NUMBER(10,2),
      "QTY_REQUISITION_RDC_UNIT" NUMBER(7,0),
         "QTY_REQUISITION_RDC_AMT" NUMBER(10,2),
         "QTY_REQUISITION_RCVD_UNIT" NUMBER(7,0),
         "QTY_REQUISITION_RCVD_AMT" NUMBER(10,2),
         "INSERTED_DATE" DATE,
         "UPDATED_DATE" DATE,
         "CUSTOMER_WEEK" NUMBER,
         "CUSTOMER_MONTH" NUMBER,
         "CUSTOMER_QUARTER" NUMBER,
         "CUSTOMER_YEAR" NUMBER,
         "CUSTOMER_ID" NUMBER,
         "MONTH_NAME" VARCHAR2(3),
         "ORG_WEEK" NUMBER,
         "ORG_MONTH" NUMBER,
         "ORG_QUARTER" NUMBER,
         "ORG_YEAR" NUMBER,
         "SITE_ID" NUMBER,
         "ITEM_ID" NUMBER,
         "ITEM_COST" NUMBER,
         "UNIT_PRICE" NUMBER,
          CONSTRAINT "some_huge_data_table_PK" PRIMARY KEY ("ORG_ID", "PARTNERID", "EDI_END_DATE", "CUSTOMER_ITEM_NUMBER", "STORE_NUMBER")
      USING INDEX TABLESPACE "xxxxx"  ENABLE,
          CONSTRAINT "some_huge_data_table_CK_START_DATE" CHECK (edi_end_date - edi_start_date = 6) ENABLE
    SQL*Plus: Release 11.2.0.2.0 Production on Fri Sep 14 12:11:16 2012
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> SELECT num_rows FROM user_tables s WHERE s.table_name = 'some_huge_data_table';
      NUM_ROWS                                                                     
    333338434                                                                     
    SQL> SELECT MAX(edi_end_date)
      2    FROM some_huge_data_table p
      3   WHERE p.org_id = some_number
      4     AND p.partnerid = 'some_string';
    MAX(EDI_E                                                                      
    13-MAY-12                                                                      
    Elapsed: 00:00:00.00
    SQL> explain plan for
      2  SELECT MAX(edi_end_date)
      3    FROM some_huge_data_table p
      4   WHERE p.org_id = some_number
      5     AND p.partnerid = 'some_string';
    Explained.
    SQL> /
    PLAN_TABLE_OUTPUT                                                                                  
    Plan hash value: 2104157595                                                                        
    | Id  | Operation                    | Name        | Rows  | Bytes | Cost (%CPU)| Time     |       
    |   0 | SELECT STATEMENT             |             |     1 |    22 |     4   (0)| 00:00:01 |       
    |   1 |  SORT AGGREGATE              |             |     1 |    22 |            |          |       
    |   2 |   FIRST ROW                  |             |     1 |    22 |     4   (0)| 00:00:01 |       
    |*  3 |    INDEX RANGE SCAN (MIN/MAX)| some_huge_data_table_PK |     1 |    22 |     4   (0)| 00:00:01 |       
    SQL> explain plan for
      2  SELECT MAX(edi_end_date),
      3         org_id,
      4         partnerid
      5    FROM some_huge_data_table
      6   GROUP BY org_id,
      7            partnerid;
    Explained.
    PLAN_TABLE_OUTPUT                                                                                  
    Plan hash value: 3950336305                                                                        
    | Id  | Operation          | Name     | Rows  | Bytes | Cost (%CPU)| Time     |                    
    |   0 | SELECT STATEMENT   |          |     2 |    44 |  1605K  (1)| 05:21:03 |                    
    |   1 |  HASH GROUP BY     |          |     2 |    44 |  1605K  (1)| 05:21:03 |                    
    |   2 |   TABLE ACCESS FULL| some_huge_data_table |   333M|  6993M|  1592K  (1)| 05:18:33 |                    
    -------------------------------------------------------------------------------                     Why wouldn't it use the index in the group by? If I write a loop to query for different partnerid (there are only three), the whole things takes less than a second. Any help is appreciated.
    btw, I gave the index hint too. Didn't work. Version mentioned in the example.
    Edited by: RPuttagunta on Sep 14, 2012 11:24 AM
    Edited by: RPuttagunta on Sep 14, 2012 11:26 AM
    the actual names are 'scrubbed' for obvious reasons. Don't worry, I didn't name the tables in mixed case.

    Jonathan,
    Thank you for your input. Forgot about this issue since ended up creating an MV since, the view was slower. But either way, I am curious. Here are the results for your questions.
    SQL> SELECT last_analyzed,
      2         blocks
      3    FROM user_tables s
      4   WHERE s.table_name = 'huge_data';
    LAST_ANAL     BLOCKS
    14-MAY-12    5869281
    SQL> SELECT last_analyzed,
      2         leaf_blocks
      3    FROM user_indexes i
      4   WHERE i.table_name = 'huge_data';
    LAST_ANAL LEAF_BLOCKS
    14-MAY-12     2887925
    SQL>It looks like stale statistics from the last_analyzed, but, they really aren't. This is a development database and that was the last time around which it was refreshed. And the stats are right (at least the approx_no_of_blocks and num_rows etc).
    No other data came into the table after.
    Also,
    1). I thought I don't have any particular optimizer parameters, but, checking back I do. fastfull_scan_enabled = false. Could that be it?
    SQL> SELECT a.name,
      2         a.value,
      3         a.display_value,
      4         a.isdefault,
      5         a.isses_modifiable
      6    FROM v$parameter a
      7   WHERE a.name LIKE '\_%' ESCAPE '\';
    NAME                           VALUE                          DISPLAY_VALUE   ISDEFAULT       ISSES
    _disable_fast_validate         TRUE                           TRUE            FALSE           TRUE
    _system_trig_enabled           TRUE                           TRUE            FALSE           FALSE
    _sort_elimination_cost_ratio   5                              5               FALSE           TRUE
    _b_tree_bitmap_plans           FALSE                          FALSE           FALSE           TRUE
    _fast_full_scan_enabled        FALSE                          FALSE           FALSE           TRUE
    _index_join_enabled            FALSE                          FALSE           FALSE           TRUE
    _like_with_bind_as_equality    TRUE                           TRUE            FALSE           TRUE
    _optimizer_autostats_job       FALSE                          FALSE           FALSE           FALSE
    _connect_by_use_union_all      OLD_PLAN_MODE                  OLD_PLAN_MODE   FALSE           TRUE
    _trace_files_public            TRUE                           TRUE            FALSE           FALSE
    10 rows selected.
    SQL>As, you might have guessed, I am not the dba for this db. Should pay more attention to these optimizer parameters.
    I know why we had to set connectby_use_union_all hint (due to a bug in 11gR2).
    Also, vaguely remember something about the disablefast_validate (something about another major db bug in 11gR2 again), but, not sure why those other parameters are set.
    2). Also, I have tried this
    SQL> SELECT /*+ index_ss(huge_data_pk) gather_plan_statistics*/
      2   MAX(edi_end_date),
      3   org_id,
      4   partnerid
      5    FROM huge_data
      6   GROUP BY org_id,
      7            partnerid;
    MAX(EDI_E     ORG_ID PARTNERID
    2 rows
    SQL> SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY_CURSOR(null,null,'ALLSTATS LAST'));
    PLAN_TABLE_OUTPUT
    SQL_ID  f3kk8skdyvz7c, child number 0
    SELECT /*+ index_ss(huge_data_pk) gather_plan_statistics*/
    MAX(edi_end_date),  org_id,  partnerid   FROM huge_data  GROUP BY
    org_id,           partnerid
    Plan hash value: 3950336305
    | Id  | Operation          | Name     | Starts | E-Rows | A-Rows |   A-Time   | Buffers | Reads  |  OMem |  1Mem | Used-Mem |
    PLAN_TABLE_OUTPUT
    |   0 | SELECT STATEMENT   |          |      1 |        |      2 |00:05:11.31 |    5905K|   5897K|    |  |          |
    |   1 |  HASH GROUP BY     |          |      1 |      2 |      2 |00:05:11.31 |    5905K|   5897K|   964K|   964K| 2304K (0)|
    |   2 |   TABLE ACCESS FULL| hug_DATA |      1 |    333M|    334M|00:04:31.44 |    5905K|   5897K|    |  |          |
    16 rows selected.But, then, I tried this too.
    SQL> alter session set "_fast_full_scan_enabled"=true;
    Session altered.
    SQL> SELECT MAX(edi_end_date),
      2         org_id,
      3         partnerid
      4    FROM hug_data
      5   GROUP BY org_id,
      6            partnerid;
    MAX(EDI_E     ORG_ID PARTNERID
    2 rowsAnd this took around 5 minutes too.
    PS: This has nothing to do with original question, but, it is plausible to derive the 'huge_data' table name from the sql_id? Just curious.

  • IMac (Oct 2009) keeps shutting down and restarting when not being used.

    At least once a day, usually when not being used, I will see a dialog box that say computer had to restart due to a problem. data in problem report does not clearly state problem - many multi-page entries
    Have reinstalled OS 10.8.2 once
    this morning tried to restart with safe boot and had spinning beach ball for more than 15 minutes. shut down and restarted nin recovery mode. verified and repaired permissions (all seem to be related to Canon Pronter plug-ins- had an error message yesteday asking if I wanted to repair printer software and I said yes). Printer seems to be working. Had one statement that indicated a screensaver issue-see below
    a while back, iTunes album art screensaver hung up with just two album covers flipping in all rows and columns.
    after a few restarts, it started working correctly again..- yesterday I set screen saver to never, but still had a crash this morning

    Here's the latest panic report. BTW, I ran  for a while from an external system boot - very sloww (thumbdrive), but nothing happened. However, when I retarted I tried to restart in Safe Mode and the launch never completed (30 minutes without start)
    Tue Jan  1 07:15:40 2013
    panic(cpu 0 caller 0xffffff8002443908): "zalloc: \"buf.8192\" (878 elements) retry fail 3, kfree_nop_count: 0"@/SourceCache/xnu/xnu-2050.18.24/osfmk/kern/zalloc.c:1826
    Backtrace (CPU 0), Frame : Return Address
    0xffffff800aafb2b0 : 0xffffff800241d626
    0xffffff800aafb320 : 0xffffff8002443908
    0xffffff800aafb400 : 0xffffff80024de8d8
    0xffffff800aafb450 : 0xffffff80024de395
    0xffffff800aafb500 : 0xffffff80024dd64b
    0xffffff800aafb530 : 0xffffff80024dd7f7
    0xffffff800aafb550 : 0xffffff80026e7766
    0xffffff800aafb5c0 : 0xffffff800272024c
    0xffffff800aafb5e0 : 0xffffff8002721314
    0xffffff800aafb680 : 0xffffff800271d2a0
    0xffffff800aafb790 : 0xffffff800271959c
    0xffffff800aafb840 : 0xffffff800271936a
    0xffffff800aafb8c0 : 0xffffff80025137df
    0xffffff800aafb910 : 0xffffff8002509fe1
    0xffffff800aafb950 : 0xffffff800252685c
    0xffffff800aafba00 : 0xffffff8002526679
    0xffffff800aafba30 : 0xffffff8002712518
    0xffffff800aafbaa0 : 0xffffff8002511c46
    0xffffff800aafbae0 : 0xffffff800250936c
    0xffffff800aafbb90 : 0xffffff80024fbb49
    0xffffff800aafbc40 : 0xffffff80024fc314
    0xffffff800aafbf50 : 0xffffff80027e182a
    0xffffff800aafbfb0 : 0xffffff80024ced33
    BSD process name corresponding to current thread: mdworker
    Mac OS version:
    12C60
    Kernel version:
    Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64
    Kernel slide:     0x0000000002200000
    Kernel text base: 0xffffff8002400000
    System model name: iMac10,1 (Mac-F2268DC8)
    System uptime in nanoseconds: 39390380895329
    vm objects:17562048
    vm object hash entri:2264400
    VM map entries:6216720
    pv_list:19034112
    vm pages:74043792
    kalloc.32:1826816
    kalloc.64:170766336
    kalloc.128:649785344
    kalloc.256:648183808
    kalloc.512:2285568
    kalloc.1024:2637824
    kalloc.4096:2387968
    kalloc.8192:3989504
    ipc ports:2168672
    threads:1166880
    vnodes:16507128
    namecache:6952320
    HFS node:21840864
    HFS fork:6352896
    decmpfs_cnode:2244312
    buf.8192:7192576
    ubc_info zone:3559464
    vnode pager structur:1978800
    Kernel Stacks:1982464
    PageTables:44011520
    Kalloc.Large:12347186
    Backtrace suspected of leaking: (outstanding bytes: 236544)
    0xffffff80024435b9
    0xffffff80024245ed
    0xffffff80027ee1bd
    0xffffff80028507f7
    0xffffff800285075b
    0xffffff7f82b6b1ac
    0xffffff7f82b72922
    0xffffff7f82ab138b
    0xffffff7f82ab49b0
    0xffffff7f829f843c
    0xffffff800243dcde
          Kernel Extensions in backtrace:
             com.apple.iokit.IOSCSIArchitectureModelFamily(3.5.1)[4CCC048B-060B-3C07-8D85-A8 4CEA02CD25]@0xffffff7f829f2000->0xffffff7f82a1cfff
             com.apple.iokit.IOSCSIBlockCommandsDevice(3.5.1)[E4EAAA05-F607-3299-AE72-998D19 A5EA17]@0xffffff7f82aae000->0xffffff7f82ac3fff
                dependency: com.apple.iokit.IOSCSIArchitectureModelFamily(3.5.1)[4CCC048B-060B-3C07-8D85-A8 4CEA02CD25]@0xffffff7f829f2000
                dependency: com.apple.iokit.IOStorageFamily(1.8)[5BA4CD36-E96D-3A9E-ADFF-A863BBD63BC7]@0xff ffff7f8297c000
             com.seagate.driver.PowSecDriverCore(5.2.2)[F1208D07-4D35-0191-3638-3D7CA8C9D5CF ]@0xffffff7f82b69000->0xffffff7f82ba1fff
                dependency: com.apple.iokit.IOUSBFamily(5.4.0)[C3094550-7F58-3933-A4F7-CD33AE83F8B9]@0xffff ff7f82a4c000
                dependency: com.apple.iokit.IOSCSIBlockCommandsDevice(3.5.1)[E4EAAA05-F607-3299-AE72-998D19 A5EA17]@0xffffff7f82aae000
                dependency: com.apple.iokit.IOStorageFamily(1.8)[5BA4CD36-E96D-3A9E-ADFF-A863BBD63BC7]@0xff ffff7f8297c000
                dependency: com.apple.iokit.IOSCSIArchitectureModelFamily(3.5.1)[4CCC048B-060B-3C07-8D85-A8 4CEA02CD25]@0xffffff7f829f2000
                dependency: com.apple.iokit.IOFireWireSBP2(4.2.0)[2B060BAD-9A9B-3A52-A742-A37CDFC59570]@0xf fffff7f82b4b000
    last loaded kext at 1223700924328: com.apple.driver.AppleUSBCDC          4.1.22 (addr 0xffffff7f84440000, size 16384)
    last unloaded kext at 1481342745694: com.apple.driver.AppleUSBCDC          4.1.22 (addr 0xffffff7f84440000, size 12288)
    loaded kexts:
    com.pogoplug.filesystems.ppfs          2010.10.7
    com.seagate.driver.PowSecLeafDriver_10_5          5.2.2
    com.seagate.driver.PowSecDriverCore          5.2.2
    com.apple.driver.AppleMikeyHIDDriver          122
    com.apple.driver.AudioAUUC          1.60
    com.apple.driver.AppleHDA          2.3.1f2
    com.apple.driver.AppleBluetoothMultitouch          75.15
    com.apple.driver.AppleHWSensor          1.9.5d0
    com.apple.iokit.IOUserEthernet          1.0.0d1
    com.apple.iokit.IOBluetoothSerialManager          4.0.9f33
    com.apple.Dont_Steal_Mac_OS_X          7.0.0
    com.apple.driver.AGPM          100.12.69
    com.apple.driver.AppleMikeyDriver          2.3.1f2
    com.apple.filesystems.autofs          3.0
    com.apple.iokit.BroadcomBluetoothHCIControllerUSBTransport          4.0.9f33
    com.apple.driver.ApplePolicyControl          3.2.11
    com.apple.driver.ACPI_SMC_PlatformPlugin          1.0.0
    com.apple.driver.AppleLPC          1.6.0
    com.apple.driver.AppleBacklight          170.2.3
    com.apple.driver.AppleUpstreamUserClient          3.5.10
    com.apple.driver.AppleMCCSControl          1.0.33
    com.apple.kext.AMDFramebuffer          8.0.0
    com.apple.ATIRadeonX2000          8.0.0
    com.apple.driver.AppleUSBCardReader          3.1.0
    com.apple.driver.AppleIRController          320.15
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless          1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib          1.0.0d1
    com.apple.BootCache          34
    com.apple.iokit.SCSITaskUserClient          3.5.1
    com.apple.driver.XsanFilter          404
    com.apple.iokit.IOAHCIBlockStorage          2.2.2
    com.apple.driver.AppleUSBHub          5.2.5
    com.apple.driver.AppleFWOHCI          4.9.6
    com.apple.driver.AirPort.Atheros40          600.70.23
    com.apple.driver.AppleAHCIPort          2.4.1
    com.apple.nvenet          2.0.19
    com.apple.driver.AppleUSBEHCI          5.4.0
    com.apple.driver.AppleUSBOHCI          5.2.5
    com.apple.driver.AppleEFINVRAM          1.6.1
    com.apple.driver.AppleRTC          1.5
    com.apple.driver.AppleHPET          1.7
    com.apple.driver.AppleACPIButtons          1.6
    com.apple.driver.AppleSMBIOS          1.9
    com.apple.driver.AppleACPIEC          1.6
    com.apple.driver.AppleAPIC          1.6
    com.apple.driver.AppleIntelCPUPowerManagementClient          196.0.0
    com.apple.nke.applicationfirewall          4.0.39
    com.apple.security.quarantine          2
    com.apple.driver.AppleIntelCPUPowerManagement          196.0.0
    com.apple.driver.AppleBluetoothHIDKeyboard          165.5
    com.apple.driver.AppleHIDKeyboard          165.5
    com.apple.driver.DspFuncLib          2.3.1f2
    com.apple.driver.IOBluetoothHIDDriver          4.0.9f33
    com.apple.driver.AppleMultitouchDriver          235.28
    com.apple.iokit.IOSurface          86.0.3
    com.apple.iokit.IOSerialFamily          10.0.6
    com.apple.iokit.IOBluetoothFamily          4.0.9f33
    com.apple.kext.triggers          1.0
    com.apple.iokit.IOFireWireIP          2.2.5
    com.apple.iokit.AppleBluetoothHCIControllerUSBTransport          4.0.9f33
    com.apple.driver.AppleUSBAudio          2.9.0f6
    com.apple.iokit.IOAudioFamily          1.8.9fc10
    com.apple.kext.OSvKernDSPLib          1.6
    com.apple.driver.AppleHDAController          2.3.1f2
    com.apple.iokit.IOHDAFamily          2.3.1f2
    com.apple.driver.AppleSMC          3.1.4d2
    com.apple.driver.IOPlatformPluginLegacy          1.0.0
    com.apple.driver.AppleSMBusPCI          1.0.10d0
    com.apple.driver.IOPlatformPluginFamily          5.2.0d16
    com.apple.driver.AppleGraphicsControl          3.2.11
    com.apple.driver.AppleBacklightExpert          1.0.4
    com.apple.driver.AppleSMBusController          1.0.10d0
    com.apple.iokit.IONDRVSupport          2.3.5
    com.apple.kext.AMD4600Controller          8.0.0
    com.apple.kext.AMDSupport          8.0.0
    com.apple.iokit.IOGraphicsFamily          2.3.5
    com.apple.iokit.IOUSBHIDDriver          5.2.5
    com.apple.iokit.IOUSBMassStorageClass          3.5.0
    com.apple.driver.AppleUSBMergeNub          5.2.5
    com.apple.driver.AppleUSBComposite          5.2.5
    com.apple.iokit.IOSCSIMultimediaCommandsDevice          3.5.1
    com.apple.iokit.IOBDStorageFamily          1.7
    com.apple.iokit.IODVDStorageFamily          1.7.1
    com.apple.iokit.IOCDStorageFamily          1.7.1
    com.apple.iokit.IOFireWireSBP2          4.2.0
    com.apple.iokit.IOSCSIBlockCommandsDevice          3.5.1
    com.apple.iokit.IOAHCISerialATAPI          2.5.0
    com.apple.iokit.IOSCSIArchitectureModelFamily          3.5.1
    com.apple.iokit.IOUSBUserClient          5.2.5
    com.apple.iokit.IOFireWireFamily          4.5.5
    com.apple.iokit.IO80211Family          500.15
    com.apple.iokit.IOAHCIFamily          2.2.1
    com.apple.iokit.IONetworkingFamily          3.0
    com.apple.iokit.IOUSBFamily          5.4.0
    com.apple.driver.NVSMU          2.2.9
    com.apple.driver.AppleEFIRuntime          1.6.1
    com.apple.iokit.IOHIDFamily          1.8.0
    com.apple.iokit.IOSMBusFamily          1.1
    com.apple.security.sandbox          220
    com.apple.kext.AppleMatch          1.0.0d1
    com.apple.security.TMSafetyNet          7
    com.apple.driver.DiskImages          344
    com.apple.iokit.IOStorageFamily          1.8
    com.apple.driver.AppleKeyStore          28.21
    com.apple.driver.AppleACPIPlatform          1.6
    com.apple.iokit.IOPCIFamily          2.7.2
    com.apple.iokit.IOACPIFamily          1.4
    com.apple.kec.corecrypto          1.0

  • Linguistic index not being used

    I am using 10G database and am having an issue that my linguistic index is not being used during sorting.
    Any help will be appreciated.
    Table structure.
    create table TEST
    ID CHAR(256) not null,
    NAME VARCHAR2(100) not null,
    DESIGNATION VARCHAR2(200)
    alter table TEST add constraint ID primary key (ID)
    create index TEST_IDX on TEST (NLSSORT(NAME,'nls_sort=''GENERIC_M'''))
    Number of rows - 1 million
    Query being run.
    alter session set nls_sort='Generic_M';
    select * from test order by name;
    Explain plan
    PLAN_TABLE_OUTPUT
    | 0 | SELECT STATEMENT | | 1001K| 270M| | 70194 (1)| 00:14:0
    3 |
    | 1 | SORT ORDER BY | | 1001K| 270M| 579M| 70194 (1)| 00:14:0
    3 |
    | 2 | TABLE ACCESS FULL| TEST | 1001K| 270M| | 9163 (1)| 00:01:5
    0 |
    --------------------------------------------------------------------------------

    I don't think that's true, at least with the nls_sort function. I'm running into the same problem now, and I've traced with and without the use of the index, and it's definitely better with the index.
    Here it is, not using the index:
    SQL> select * from test where col2='sfs';
    no rows selected
    Execution Plan
    Plan hash value: 1357081020
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 366 | 2 (0)| 00:00:01 |
    |* 1 | TABLE ACCESS FULL| TEST | 1 | 366 | 2 (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    1 - filter(NLSSORT("COL2",'nls_sort=''BINARY_CI''')=HEXTORAW('7366730
    0') )
    Note
    - dynamic sampling used for this statement
    Statistics
    87 recursive calls
    0 db block gets
    21 consistent gets
    0 physical reads
    0 redo size
    339 bytes sent via SQL*Net to client
    327 bytes received via SQL*Net from client
    1 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    0 rows processed
    And here it is WITH the index:
    SQL> select /*+ index_asc(test index1) */ * from test where col2='adsfas';
    no rows selected
    Execution Plan
    Plan hash value: 2960817241
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time
    |
    | 0 | SELECT STATEMENT | | 1 | 366 | 2 (0)| 00:0
    0:01 |
    | 1 | TABLE ACCESS BY INDEX ROWID| TEST | 1 | 366 | 2 (0)| 00:0
    0:01 |
    |* 2 | INDEX FULL SCAN | INDEX1 | 1 | | 1 (0)| 00:0
    0:01 |
    Predicate Information (identified by operation id):
    2 - access(NLSSORT("COL2",'nls_sort=''BINARY_CI''')=HEXTORAW('6164736661730
    0') )
    filter(NLSSORT("COL2",'nls_sort=''BINARY_CI''')=HEXTORAW('6164736661730
    0') )
    Note
    - dynamic sampling used for this statement
    Statistics
    11 recursive calls
    0 db block gets
    7 consistent gets
    0 physical reads
    0 redo size
    339 bytes sent via SQL*Net to client
    327 bytes received via SQL*Net from client
    1 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    0 rows processed
    Oddly enough, the optimizer chooses not to use the index on this example table I created.

  • Structured XMLIndex is not being used

    I have a table defined as "TABLE OF XMLTYPE" with XML Binary storage with a structured XMLIndex under Oracle 11.2.0.3.4. The query that I am using on this table is virtually the same as the XMLIndex, but it's not being used. I searched the forums for similar issues and found this:
    XMLIndex is not getting used
    However, the post is a couple of years old, and I think that the solution was really specific to the problem. Not that mine isn't. ;)
    Per the forum guidelines, the data/DDL is confidential, and should not be posted, so I opened a SR for it - SR 3-7160281751.
    May I please have some help understanding why the structured XMLIndex is not being used?
    Thanks...

    OK, I did the best I could to clean this up. The last query in this script is the one not using the index. The tables "book_master" and "book_join_temp" are populated, though I didn't include the data here. Do you see anything wrong?
    --Create tables...
    CREATE TABLE book_master OF XMLTYPE
    XMLTYPE STORE AS SECUREFILE BINARY XML
    VIRTUAL COLUMNS
      isbn_nbr AS ( XmlCast(
                    XmlQuery('declare namespace plh="http://www.mrbook.com/InventoryData/Listing";
                              declare namespace invtdata="http://www.mrbook.com/Inventory";
                              /invtdata:INVENTORY/plh:LIST/plh:ISBN_NBR'
                              PASSING object_value RETURNING CONTENT) AS VARCHAR2(64)) ),
      book_id AS ( XmlCast(
                    XmlQuery('declare namespace plh="http://www.mrbook.com/InventoryData/Listing";
                              declare namespace invtdata="http://www.mrbook.com/Inventory";
                              /invtdata:INVENTORY/plh:LIST/plh:BOOK_ID'
                              PASSING object_value RETURNING CONTENT) AS VARCHAR2(64)) )
    CREATE GLOBAL TEMPORARY TABLE book_join_temp
       isbn_nbr VARCHAR2(64),
       book_id VARCHAR2(64),
       row_num INT,
       PRIMARY KEY(row_num)
    ) ON COMMIT DELETE ROWS;
    --Create indices....
    CREATE INDEX bkm_xmlindex_ix ON book_master (OBJECT_VALUE) INDEXTYPE IS XDB.XMLIndex PARAMETERS ('PATH TABLE path_tab');
    BEGIN
       DBMS_XMLINDEX.registerParameter(
          'myparam',
          'ADD_GROUP GROUP book_record
             XMLTable bk_idx_tab
             XmlNamespaces(''http://www.mrbook.com/InventoryData/Listing'' AS "plh",
                      ''http://www.mrbook.com/Inventory'' AS "invtdata",
                      ''http://www.mrbook.com/BookInfo'' AS "idty",
                      ''http://www.mrbook.com/References'' AS "lclone",
                      ''http://www.mrbook.com/Publishing'' AS "trd",
                      ''http://www.mrbook.com'' AS "mrbook"),
             ''/invtdata:INVT_DATA''
               COLUMNS
                    xml_id    RAW(16)     PATH ''/@XML_ID'',
                    isbn_nbr  VARCHAR(64) PATH ''/plh:LIST/plh:ISBN_NBR'',
                    book_id   VARCHAR(64) PATH ''/plh:LIST/plh:BOOK_ID'',
                    seller_loc_id NUMBER(13,0) PATH ''/plh:LIST/plh:SELLER_LOC_ID'',
                    catg_typ_cd NUMBER(7,0) PATH ''/idty:BK_INFO/idty:CATG_TYP_CD'',
                    CTRY_MKT_LOC NUMBER(7,0) PATH ''/idty:BK_INFO/idty:CTRY_MKT_LOC'',
                    bk_out_of_print_cd NUMBER(7,0) PATH ''/idty:BK_INFO/idty:BK_OUT_OF_PRINT_CD'',
                    reprint_isbn_nbr VARCHAR2(64) PATH ''/idty:BK_INFO/idty:REPRINT_ISBN_NBR'',
                    reprint_book_id VARCHAR2(64) PATH ''/idty:BK_INFO/idty:REPRINT_BOOK_ID'',
                    orig_ed_isbn_nbr VARCHAR2(64) PATH ''/lclone:REFERENCES/lclone:PRINT[child::lclone:PRINT_TYP_CD="160"]/lclone:ISBN_NBR'',
                    orig_ed_book_id VARCHAR2(64) PATH ''//lclone:REFERENCES/lclone:PRINT[child::lclone:PRINT_TYP_CD="160"]/lclone:BOOK_ID'',
                    last_mod_dt TIMESTAMP PATH ''/node()[local-name()="LAST_MOD_DT"]'',
                    subject_catg_code  NUMBER(7) PATH ''/idty:BK_INFO/idty:SUBJECT_CATG_CODE[child::idty:CATG_REF_LVL=1]/idty:SUBJECT_CATG_CODE'',
                    catg_code VARCHAR2(48) PATH ''/idty:BK_INFO/idty:SUBJECT_CATG_CODE[child::idty:CATG_REF_LVL=1]/idty:CATG_CODE'',
                    pub_summ  XMLType   PATH ''/trd:PUB_SUMM'' VIRTUAL
                XMLTable trd_summ_entr_ix
                XmlNamespaces(''http://www.mrbook.com/InventoryData/Listing'' AS "plh",
                      ''http://www.mrbook.com/Inventory'' AS "invtdata",
                      ''http://www.mrbook.com/BookInfo'' AS "idty",
                      ''http://www.mrbook.com/References'' AS "lclone",
                      ''http://www.mrbook.com/Publishing'' AS "trd",
                      ''http://www.mrbook.com'' AS "mrbook"),
                   ''/trd:PUB_SUMM/trd:PUBLC'' PASSING pub_summ
                COLUMNS
                    pub_yrmo  VARCHAR2(6) PATH ''/@PUBLC_YRMO''
    END;
    ALTER INDEX bk_xmlindex_ix PARAMETERS('PARAM myparam');
    CREATE INDEX ejt_isbn ON book_join_temp(isbn_nbr);
    CREATE INDEX ejt_book ON book_join_temp(book_id);
    --Using the PATH table instead of structured index???
    SELECT
        ej.row_num,
        e.xml_id,
        e.isbn_nbr,
        e.book_id,
        e.seller_loc_id,
        e.seller_loc_id AS mkt_seller_id,
        e.catg_typ_cd,
        e.CTRY_MKT_LOC,
        e.bk_out_of_print_cd,
        e.reprint_isbn_nbr,
        e.reprint_book_id,
        e.orig_ed_isbn_nbr,
        e.orig_ed_book_id,
        g.OBJECT_VALUE AS invt_data
    FROM
        book_master g,
        book_join_temp ej,
        XmlTable(
        XmlNamespaces('http://www.mrbook.com/InventoryData/Listing' AS "plh",
                      'http://www.mrbook.com/Inventory' AS "invtdata",
                      'http://www.mrbook.com/BookInfo' AS "idty",
                      'http://www.mrbook.com/References' AS "lclone",
                      'http://www.mrbook.com' AS "mrbook"),
          '/invtdata:INVENTORY'
        PASSING g.OBJECT_VALUE
        COLUMNS
           xml_id PATH '@XML_ID',
           isbn_nbr VARCHAR2(64) PATH 'plh:LIST/plh:ISBN_NBR',
           book_id VARCHAR2(64) PATH 'plh:LIST/plh:BOOK_ID',
           seller_loc_id NUMBER PATH 'plh:LIST/plh:SELLER_LOC_ID',
           catg_typ_cd NUMBER PATH 'idty:BK_INFO/idty:CATG_TYP_CD',
           CTRY_MKT_LOC NUMBER PATH 'idty:BK_INFO/idty:CTRY_MKT_LOC',
           bk_out_of_print_cd NUMBER PATH 'idty:BK_INFO/idty:BK_OUT_OF_PRINT_CD',
           reprint_isbn_nbr NUMBER PATH 'idty:SUBJ_DTL/idty:SUCSR_DUNS_NBR',
           reprint_book_id NUMBER PATH 'idty:SUBJ_DTL/idty:SUCSR_SUBJ_ID',
           orig_ed_isbn_nbr VARCHAR2(64) PATH '/lclone:REFERENCES/lclone:PRINT[child::lclone:PRINT_TYP_CD="160"]/lclone:ISBN_NBR',
           orig_ed_book_id VARCHAR2(64) PATH '/lclone:REFERENCES/lclone:PRINT[child::lclone:PRINT_TYP_CD="160"]/lclone:BOOK_ID'
    ) e
    WHERE
         ej.isbn_nbr = e.isbn_nbr
    OR  ej.book_id = e.book_id;

  • All of a sudden my new iphone will not hold a charge even when it is not being used and I can't figure out why???

    my battery drains even when iphone is not being used.  It is a relatively new phone and this battery draining just started and I can't figure out why????

    Yes, thank you.  My apologies, I was typing one handed and did not add that. 
    Anyway, I have tried deleting the cache, deleting my pics and then re-syncing, etc. and nothing is working This is very frustrating, as I had no problems up until about 2 weeks ago, and now all of a sudden, I have this issue......UGH!

Maybe you are looking for