Partition pruning doesn't work

Hi all,
in this query I've joined 3 tables, each of them partitioned along the field PARTITION_KEY_PRE:
SELECT *
FROM t_cp_pp_basdat basdat LEFT OUTER JOIN t_cp_pp_custom custom
ON basdat.pre_processing_id = custom.pre_processing_id
AND basdat.partition_key_pre = custom.partition_key_pre
AND basdat.customer_unique_id_f = custom.customer_unique_id_f
LEFT OUTER JOIN t_cp_pp_groups groups
ON basdat.partition_key_pre = groups.partition_key_pre
AND basdat.pre_processing_id = groups.pre_processing_id
AND custom.customer_group_id = groups.customer_group_id
WHERE basdat.partition_key_pre = '111100361A0700';
The problem is that the T_CP_PP_GROUPS table don't prune; if I remove the condition
custom.customer_group_id = groups.customer_group_id
the prune works, but obviously the query is wrong. Here it is the explain plan
Operation                    Object Name          Cost     Object Node     In/Out     PStart          PStop
SELECT STATEMENT Optimizer Mode=ALL_ROWS               6156                     
PX COORDINATOR                                        
PX SEND QC (RANDOM)          SYS.:TQ10003          6156      :Q1003          P->S      QC (RANDOM)
HASH JOIN OUTER                         6156      :Q1003          PCWP           
PX RECEIVE                              50      :Q1003          PCWP           
PX SEND PARTITION (KEY)          SYS.:TQ10002          50      :Q1002          P->P      PART (KEY)     
VIEW                              50      :Q1002          PCWP           
HASH JOIN RIGHT OUTER BUFFERED               50      :Q1002          PCWP           
PX RECEIVE                         5      :Q1002          PCWP           
PX SEND HASH          SYS.:TQ10000          5      :Q1000          P->P      HASH      
PX BLOCK ITERATOR                    5      :Q1000          PCWC      KEY     KEY
TABLE ACCESS FULL     TUKB103.T_CP_PP_CUSTOM     5      :Q1000          PCWP      466     466
PX RECEIVE                         44      :Q1002          PCWP           
PX SEND HASH          SYS.:TQ10001          44      :Q1001          P->P      HASH      
PX BLOCK ITERATOR                    44      :Q1001          PCWC      KEY     KEY
TABLE ACCESS FULL     TUKB103.T_CP_PP_BASDAT     44      :Q1001          PCWP      1437     1437
PX PARTITION LIST ALL                         6013      :Q1003          PCWC      1     635
TABLE ACCESS FULL          TUKB103.T_CP_PP_GROUPS     6013      :Q1003          PCWP      1     635
Can anyone help me to tune this query?
Thanks,
Davide

Please learn to use { code } tags. Since that makes you code to read much better in the forum. See the FAQ for further instructions on that.
About the pruning question.
You could experiment with different types of joins.
a) Join the GROUPS table with the columns from CUSTOM
SELECT *
FROM t_cp_pp_basdat basdat
LEFT OUTER JOIN t_cp_pp_custom custom
   ON basdat.pre_processing_id = custom.pre_processing_id
   AND basdat.partition_key_pre = custom.partition_key_pre
   AND basdat.customer_unique_id_f = custom.customer_unique_id_f
LEFT OUTER JOIN t_cp_pp_groups groups
  ON custom.partition_key_pre = groups.partition_key_pre
  AND custom.pre_processing_id = groups.pre_processing_id
  AND custom.customer_group_id = groups.customer_group_id
WHERE basdat.partition_key_pre = '111100361A0700'; b) Put the partion key into each on clause.
SELECT *
FROM t_cp_pp_basdat basdat
LEFT OUTER JOIN t_cp_pp_custom custom
   ON basdat.pre_processing_id = custom.pre_processing_id
   AND custom.partition_key_pre = '111100361A0700'
   AND basdat.customer_unique_id_f = custom.customer_unique_id_f
LEFT OUTER JOIN t_cp_pp_groups groups
  ON custom.partition_key_pre = '111100361A0700'
  AND basdat.pre_processing_id = groups.pre_processing_id
  AND custom.customer_group_id = groups.customer_group_id
WHERE basdat.partition_key_pre = '111100361A0700'; Did you consider to add subpartions to your tables? You could profit from some partition wise joins. Customer_Unique_ID would be a candidate for a hash subpartition.

Similar Messages

  • VMWare Fusion partition software doesn't work in Yosemite, why?

    VMWare Fusion partition software doesn't work in Yosemite, why?

    Very outdated. You need V7
    And FYI, this software has nothing to do with partitioning, it neither creates nor needs one.

  • USB Headset doesn't work on Mac OSX but does on my WinXP Bootcamp partition

    Hi all,
    I bought my FIRST Mac 2 days ago and am very excited about the migration. My reality is that I need WinXP for work-related activities and so I successfully installed Bootcamp and both WinXP and Mac OSX is working fine.
    My problem is with a brand new Logitech USB Stereo Headset 250. It works just fine on the Windows XP side, but I can't get it to work on the Mac OSX side. Is there something I should be 'turning on' to get the headset to work? Like I said, it just 'worked' when I started up with the WinXP partition but when I restarted in the Mac OSX partition, it doesn't work.
    Apologies if this is a simple thing that the veteran Mac crowd is snickering at as they read this, but I truly want to use the Mac OS as much as possible and if I can't get the headset to work on the Mac side it won't be a good thing.
    Any suggestions?

    Got it (sorry all) - I went into the System Preferences and selected the USB headset from the 'output' tab.

  • Partition pruning not working for partitioned table joins

    Hi,
    We are joining  4 partitioned tables on partition column & other key columns. And we are filtering the driving table on partition key. But explain plan is showing that all tables except the driving table are not partition pruning and scanning all partitions.Is there any limitation that filter condition cannot be dynamic?
    Thanks a lot in advance.
    Here are the details...
    SELECT a.pay_prd_id,
                  a.a_id,
                  a.a_evnt_no
      FROM b,
                c,
                a,
                d
    WHERE  (    a.pay_prd_id = b.pay_prd_id ---partition range all
                AND a.a_evnt_no  = b.b_evnt_no
                AND a.a_id       = b.b_id
       AND (    a.pay_prd_id = c.pay_prd_id---partition range all
            AND a.a_evnt_no  = c.c_evnt_no
            AND a.a_id       = c.c_id
       AND (    a.pay_prd_id = d.pay_prd_id---partition range all
            AND a.a_evnt_no  = d.d_evnt_no
            AND a.a_id       = d.d_id
       AND (a.pay_prd_id =  ---partition range single
               CASE '201202'
                  WHEN 'YYYYMM'
                     THEN (SELECT min(pay_prd_id)
                                      FROM pay_prd
                                     WHERE pay_prd_stat_cd = 2)
                  ELSE TO_NUMBER ('201202', '999999')
               END
    DDLs.
    create table pay_prd
    pay_prd_id number(6),
    pay_prd_stat_cd integer,
    pay_prd_stat_desc varchar2(20),
    a_last_upd_dt DATE
    insert into pay_prd
    select 201202,2,'OPEN',sysdate from dual
    union all
    select 201201,1,'CLOSE',sysdate from dual
    union all
    select 201112,1,'CLOSE',sysdate from dual
    union all
    select 201111,1,'CLOSE',sysdate from dual
    union all
    select 201110,1,'CLOSE',sysdate from dual
    union all
    select 201109,1,'CLOSE',sysdate from dual
    CREATE TABLE A
    (PAY_PRD_ID    NUMBER(6) NOT NULL,
    A_ID        NUMBER(9) NOT NULL,
    A_EVNT_NO    NUMBER(3) NOT NULL,
    A_DAYS        NUMBER(3),
    A_LAST_UPD_DT    DATE
    PARTITION BY RANGE (PAY_PRD_ID)
    INTERVAL( 1)
      PARTITION A_0001 VALUES LESS THAN (201504)
    ENABLE ROW MOVEMENT;
    ALTER TABLE A ADD CONSTRAINT A_PK PRIMARY KEY (PAY_PRD_ID,A_ID,A_EVNT_NO) USING INDEX LOCAL;
    insert into a
    select 201202,1111,1,65,sysdate from dual
    union all
    select 201202,1111,2,75,sysdate from dual
    union all
    select 201202,1111,3,85,sysdate from dual
    union all
    select 201202,1111,4,95,sysdate from dual
    CREATE TABLE B
    (PAY_PRD_ID    NUMBER(6) NOT NULL,
    B_ID        NUMBER(9) NOT NULL,
    B_EVNT_NO    NUMBER(3) NOT NULL,
    B_DAYS        NUMBER(3),
    B_LAST_UPD_DT    DATE
    PARTITION BY RANGE (PAY_PRD_ID)
    INTERVAL( 1)
      PARTITION B_0001 VALUES LESS THAN (201504)
    ENABLE ROW MOVEMENT;
    ALTER TABLE B ADD CONSTRAINT B_PK PRIMARY KEY (PAY_PRD_ID,B_ID,B_EVNT_NO) USING INDEX LOCAL;
    insert into b
    select 201202,1111,1,15,sysdate from dual
    union all
    select 201202,1111,2,25,sysdate from dual
    union all
    select 201202,1111,3,35,sysdate from dual
    union all
    select 201202,1111,4,45,sysdate from dual
    CREATE TABLE C
    (PAY_PRD_ID    NUMBER(6) NOT NULL,
    C_ID        NUMBER(9) NOT NULL,
    C_EVNT_NO    NUMBER(3) NOT NULL,
    C_DAYS        NUMBER(3),
    C_LAST_UPD_DT    DATE
    PARTITION BY RANGE (PAY_PRD_ID)
    INTERVAL( 1)
      PARTITION C_0001 VALUES LESS THAN (201504)
    ENABLE ROW MOVEMENT;
    ALTER TABLE C ADD CONSTRAINT C_PK PRIMARY KEY (PAY_PRD_ID,C_ID,C_EVNT_NO) USING INDEX LOCAL;
    insert into c
    select 201202,1111,1,33,sysdate from dual
    union all
    select 201202,1111,2,44,sysdate from dual
    union all
    select 201202,1111,3,55,sysdate from dual
    union all
    select 201202,1111,4,66,sysdate from dual
    CREATE TABLE D
    (PAY_PRD_ID    NUMBER(6) NOT NULL,
    D_ID        NUMBER(9) NOT NULL,
    D_EVNT_NO    NUMBER(3) NOT NULL,
    D_DAYS        NUMBER(3),
    D_LAST_UPD_DT    DATE
    PARTITION BY RANGE (PAY_PRD_ID)
    INTERVAL( 1)
      PARTITION D_0001 VALUES LESS THAN (201504)
    ENABLE ROW MOVEMENT;
    ALTER TABLE D ADD CONSTRAINT D_PK PRIMARY KEY (PAY_PRD_ID,D_ID,D_EVNT_NO) USING INDEX LOCAL;
    insert into c
    select 201202,1111,1,33,sysdate from dual
    union all
    select 201202,1111,2,44,sysdate from dual
    union all
    select 201202,1111,3,55,sysdate from dual
    union all
    select 201202,1111,4,66,sysdate from dual

    Below query generated from Business Objects and submitted to Database (the case statement is generated by BO). Cant we use Case/Subquery/Decode etc for the partitioned column? We are assuming that  the case causing the issue to not to dynamic partition elimination on the other joined partitioned tables (TAB_B_RPT, TAB_C_RPT).
    SELECT TAB_D_RPT.acvy_amt,
           TAB_A_RPT.itnt_typ_desc,
           TAB_A_RPT.ls_typ_desc,
           TAB_A_RPT.evnt_no,
           TAB_C_RPT.pay_prd_id,
           TAB_B_RPT.id,
           TAB_A_RPT.to_mdfy,
           TAB_A_RPT.stat_desc
      FROM TAB_D_RPT,
           TAB_C_RPT fee_rpt,
           TAB_C_RPT,
           TAB_A_RPT,
           TAB_B_RPT
    WHERE (TAB_B_RPT.id = TAB_A_RPT.id)
       AND (    TAB_A_RPT.pay_prd_id = TAB_D_RPT.pay_prd_id -- expecting Partition Range Single, but doing Partition Range ALL
            AND TAB_A_RPT.evnt_no    = TAB_D_RPT.evnt_no
            AND TAB_A_RPT.id         = TAB_D_RPT.id
       AND (    TAB_A_RPT.pay_prd_id = TAB_C_RPT.pay_prd_id -- expecting Partition Range Single, but doing Partition Range ALL
            AND TAB_A_RPT.evnt_no    = TAB_C_RPT.evnt_no
            AND TAB_A_RPT.id         = TAB_C_RPT.id
       AND (    TAB_A_RPT.pay_prd_id = fee_rpt.pay_prd_id -- expecting Partition Range Single
            AND TAB_A_RPT.evnt_no    = fee_rpt.evnt_no
            AND TAB_A_RPT.id         = fee_rpt.id
       AND (TAB_A_RPT.rwnd_ind = 'N')
       AND (TAB_A_RPT.pay_prd_id =
               CASE '201202'
                  WHEN 'YYYYMM'
                     THEN (SELECT DISTINCT pay_prd.pay_prd_id
                                      FROM pay_prd
                                     WHERE pay_prd.stat_cd = 2)
                  ELSE TO_NUMBER ('201202', '999999')
               END
    And its explain plan is...
    Plan
    SELECT STATEMENT ALL_ROWS Cost: 79 K Bytes: 641 M Cardinality: 3 M
    18 HASH JOIN Cost: 79 K Bytes: 641 M Cardinality: 3 M
    3 PART JOIN FILTER CREATE SYS.:BF0000 Cost: 7 K Bytes: 72 M Cardinality: 3 M
    2 PARTITION RANGE ALL Cost: 7 K Bytes: 72 M Cardinality: 3 M Partition #: 3 Partitions accessed #1 - #1048575
    1 TABLE ACCESS FULL TABLE TAB_D_RPT Cost: 7 K Bytes: 72 M Cardinality: 3 M Partition #: 3 Partitions accessed #1 - #1048575
    17 HASH JOIN Cost: 57 K Bytes: 182 M Cardinality: 874 K
    14 PART JOIN FILTER CREATE SYS.:BF0001 Cost: 38 K Bytes: 87 M Cardinality: 914 K
    13 HASH JOIN Cost: 38 K Bytes: 87 M Cardinality: 914 K
    6 PART JOIN FILTER CREATE SYS.:BF0002 Cost: 8 K Bytes: 17 M Cardinality: 939 K
    5 PARTITION RANGE ALL Cost: 8 K Bytes: 17 M Cardinality: 939 K Partition #: 9 Partitions accessed #1 - #1048575
    4 TABLE ACCESS FULL TABLE TAB_C_RPT Cost: 8 K Bytes: 17 M Cardinality: 939 K Partition #: 9 Partitions accessed #1 - #1048575
    12 HASH JOIN Cost: 24 K Bytes: 74 M Cardinality: 957 K
    7 INDEX FAST FULL SCAN INDEX (UNIQUE) TAB_B_RPT_PK Cost: 675 Bytes: 10 M Cardinality: 941 K
    11 PARTITION RANGE SINGLE Cost: 18 K Bytes: 65 M Cardinality: 970 K Partition #: 13 Partitions accessed #KEY(AP)
    10 TABLE ACCESS FULL TABLE TAB_A_RPT Cost: 18 K Bytes: 65 M Cardinality: 970 K Partition #: 13 Partitions accessed #KEY(AP)
    9 HASH UNIQUE Cost: 4 Bytes: 14 Cardinality: 2
    8 TABLE ACCESS FULL TABLE PAY_PRD Cost: 3 Bytes: 14 Cardinality: 2
    16 PARTITION RANGE JOIN-FILTER Cost: 8 K Bytes: 106 M Cardinality: 939 K Partition #: 17 Partitions accessed #:BF0001
    15 TABLE ACCESS FULL TABLE TAB_C_RPT Cost: 8 K Bytes: 106 M Cardinality: 939 K Partition #: 17 Partitions accessed #:BF0001
    Thanks Again.

  • Can't lower voice memo volume. My decrease button doesn't work anymore. Any other way i can lower it without disabling speaker

    Own an iphone 5. Can't control voice memo volume from anywhere that deals with volume on my phone. My decrease button doesn't work. I have to listen to my voice memos on full blown volume. Can't lower it from settings or from music. Help please!

    Hi,
    thanks for your answer. 
    The Size of all disks is: 6 x 4 TB.
    In the Pool are 5 x 4 TB plus 1 x Hot Spare. 
    It comes up to about 14,6 TB of Data formatable.
    But tried it also with just 3 x 4 TB to see if it works. 
    I just made a Raid5EE on the controller and then used Storage Spaces with simple, all worked fine. 
    Here the results of my tests: 
    1) your command had to be modified (typoe in usemaximumsize, and had to add -ResiliencySettingName Parity. 
    new-virtualdisk -friendlyname testpsh -storagepoolfriendlyname test -ResiliencySettingName Parity -usemaximumsize
    But anyway, my problem is not creating the virtual disk, but formatting the partition if it's parity only. 
    I added a screenshot: 
    Here you see my storage pool, and I added 3 virtual disk. 
    1 simple, 1 mirror, 1 parity. Only the parity cannot be formatted. The others can. No mather which size I do. 
    About a testserver, I added 4 x 4 TB to a VM (VHDX-files) and could do parity without problems. So it seems it is this server specific.
    As it worked with another controller, I really wonder if the controller could break parity of Storage Pools?
    The other weird part is, it sais "Raid" as BUS, but it's set to pass through, in details I see the serial of the attached HDD. 
    This is what properties shows on this volume. Always RAW. 
    I also tried Software Raid5 within the server. 
    This also worked fine. So really only parity. 
    Thanks
    Patrick

  • Canon mini Disk camera doesn't work if external drive connected

    A long story.      Anyway, I have a MacPro Intel Dual Core 266 Ghz with 5 Gbs RAM,  4 internal hard drives HD1~HD4 (HD1 OSX 250 and three 500Gb) and two external HD5 (two partitions~HD5 & Time Machine Backups) and HD6 (1 Tb each).
    I've been using a Canon mini DV video camera FV-M10 (Firewire 400) for live video (Skype/iChat) and also for importing video into Final Cut Express, After Effects or iMovie up until a few days ago.  Both "live" video and from the recorded mini cassette tape.  Then all of a sudden not one of the software recognized my camera anymore.  I tried both Firewire 800/400 and USB2 connections using a few different cables. In Skype...(sometimes) it automatically shows the name FV-M10 in the camera slot, but the screen is black.  No, I checked if I left the cover on.  I checked my Sony WX-5 digital camera and see if that is recognized.  Yes, both pics and AVCHD videos are seen using the USB connection. 
    The problem started like this.
    I was downloading a file.  Had to work for an hour and when I came back upstairs.  I noticed that the screen was frozen.   So, I shut the Mac down.  And when I started it again, well nothing happened except for a grey screen.  A half~sized cursor was stuck up in the top left.  But, my mouse also had a cursor which was movable.  
    It wouldn't even recognize the OSX Install Disk holding down "C" or "Option".  Only starting with "Shift" held down, "Safe Boot"  could I use the basics like Mail, Safari, Firefox.   NO sound and no video. Tried a few times as well as cleaned my OSX HD1 hard drive and re-installed from "Safe Boot" mode".   So, I had it sent into Apple Tokyo for repairs.   Apple put in a new board.     Great!      I came it back in two days.   I cleaned the OSX hard drive and re-installed Mac OSX with the up-dates as well and got some of my main backed up stuff Mail, bookmarks, address book etc.   It started fine.     But, when I went to use Skype, iChat, iMovie or Final Cut Express  they still couldn't recognize my camera.  I had been using the Canon FV M10 camera for a few years with both external hard drives on.  There were never any problems until just before I sent it into the shop.
    There was only one way to use my camera.  Un-Plug the external HD6.  Then the camera functions fine.  but remember I had been using this camera with both HD's for around two years without any problems.
    Notes on symptoms:  and what actions I took.  
    Front connections: FW400 Canon camera.  FW800 (Tried connecting HD6)  
    Rear Connections: USB2 1) MidiMan 2 x2   2) mouse  3) Canon Printer
                                   FW400 HD5  FW800 (tried HD6)
    With HD6 Connected.
    iMovie 11 9.02 : Start iMovie  O.K.  No camera on.   Turned camera "on" then "No Camera Connected" notice came up.   (did this a few times)   Turned camera off.   Quit iMovie. 
    2nd start:  Camera On.   iMovie freezes.   Spinning Colored beach ball.   I then Force Quit Option-Apple-ESC
    iMovie shows (not responding)  When I turn off the camera.  (not responding) disappears and iMovie is working again.  But, "No Camera Connected" shows again.  Quit!
    Un-Plugged (Ejected) HD6.
    When I un-plugged HD6,    (tried both the front and rear connections).   iMovie still on.  
    "No Camera Connected"  I Quit iMovie.
    Re-start iMovie:  Camera on… Live video and record miniDV tape can both be seen. 
    Skype:  Both live video and mini DV tape recording even plays back over Skype screen.
    iChat (same as Skype) O.K.
    Since Apple replaced the board 661-3932 Card Video, NVIDIA GeForce 7300 GT which cost just about $X00.00  (¥XX,000).   I assume that they don't also check all the connections etc. I mean from the connector to the video board.
    The call to Apple Tokyo today.  
    Just talked to Apple (Mac) Tokyo about my computer problem.  Seems like they're trying to squeeze their way of more repairs by saying I have a hard drive configuration problem.   But it doesn't seem like that!   I worked with it 2~3 hours today...and  here is the basic problem.
    I've used the Canon FV M10 mini DV camera with Skype, iChat, iMovie and FCEx for few  years  (HD6) is over a year old-the most recent add on) with no problem.    With both external 1Tb hard drives.  And Apple said that it's a 3-party problem.  (different makers etc.)  But, it's NOT!     Yes, they put in a new board.   But, I'd say the problem is from the connection (where I plug the cable into the Mac)  to the board. 
    When I connect HD6 (1Tb ext hard drive).   FW 800 (either back or front connection) the video camera doesn't work in  Skype, iChat, iMovie, or Final Cut Express.     If I eject and Un-Plug HD6  all of them work fine.  The camera "live" or the camera playing back the mini DV tape video.
    Wouldn't this be a problem between the connections (front & back) to the new video board?  Or does anyone have an answer.   Apple seems to have said, "We can't help you".   Please someone help!  thanks

    +My mini isn't responding to startup commands like "C" or "D" from the keyboard.+
    You'll need a wired usb keyboard for these commands to work -- and the Apple Aluminum keyboard won't work either.
    But just about any PC usb keyboard will work. Alt maps to Option and Win-key to CMD.

  • When I move a harddrive with Bootcamp from my mac pro to my macbook, windows doesn't work

    I have a 13" Intel Core 2 Duo MacBook and the topcase-keyboard doesn't work and so for some reason, it makes it impossible for me to install windows on the bootcamp partition. While the windows installer is running, it doesn't recognize usb keyboards. So I decided to install windows 7 professional on that same drive using my Mac Pro. The installation worked perfectly.
    Then I take that harddrive and I move it back to my MacBook and windows won't start up correctly, stating that something has changed (of course!...duh).
    Can anyone help me with a workaround for this?
    Has anyone had similar problems moving a windows partition in bootcamp from one mac to another?
    How can I install windows on a MacBook without a working topcase?
    I've posted this question to the Snow Leopard community because that's the OS I'm using.

    With the Lion it is essentially unnecessary to resort to external driver disks. What's more, most of those disks are incompatible with the OS and should not be used. The system already carries a wide variety of printer description files (aka PPDs, which is what modern printing systems use as "drivers") for a lot of brands. And there was an HP printer update just two days ago.
    Just checked in mine and did indeed find that the HP OfficeJet 6200 Series, with or without Fax, is covered with the latest update.
    So just go thru the motions of creating a proper printer instance:
    Make sure the Mac "sees" the printer on the network.
    System Preferences / Print & Scan
    Click on the + button on the left column
    Select the appropriate type of printer, will use IP for the rest of this
    Select HP Jetdirect - Socket, default for HP network printers
    Type the IP address or look it up
    Name the printer for easy identification on the print dialog
    Let the Mac identify the printer model or manually choose the driver
    Click Add.
    Once the instance pops up in the list, can click on Options & Supplies for further config.

  • Trackpad in bootcamp doesn't work all the time

    Hi, so I just bought a brand new MacBook Pro because out of my own stupidity, I destroyed my old one. I decided when I got the new one, that I would BootCamp it and run Windows 7 on a partition. I've been pretty happy with it so far, but occasionally, the trackpad doesn't work. Normally when I reboot into Windows the next time, it'll work. I don't know exactly what is causing it, but the settings within BootCamp tell me that it should be scrolling, right clicking, etc, and it simply isn't.... Any reason why this would be? It shouldn't be the drivers unless this came out with new ones between now and this past Saturday...
    Thanks

    my magic pad works fine under win8 but to use it I have to click on it first
    as to activate it just start grouping it don't work

  • Time Machine Just Doesn't Work Anymore

    I was a happy Time Machine (with Time Capsule) user for months. But it just doesn't work anymore. It takes longer than an hour to do every hourly backup so it is backing up 24 hours a day. It finds hundreds of thousands of files changed every hour and tries to back them up. Finders says only tens of files have been modified all of today. I have tried rebuilding my spotlight indexes, repairing my Time Capsule with Disk Utility and starting over with a brand new backup. But it just backs up hundreds of thousands of files every hour. So I am turning off Time capsule since it is clearly broken. If anyone has any suggestions at all I would welcome them.

    Marcia,
    Consider the following, it might give you some ideas:
    Time Machine performs backups at the file level. If a single bit in a large file is changed, the WHOLE file is backed up again. This is a problem for programs that save data to monolithic virtual disk files that are modified frequently. These include Parallels, VMware Fusion, Aperture vaults, or the databases that Entourage and Thunderbird create. These should be excluded from backup using the Time Machine Preference Exclusion list. You will, however, need to backup these files manually to another external disk.
    One poster observed regarding Photoshop: “If you find yourself working with large files, you may discover that TM is suddenly backing up your scratch disk's temp files. This is useless, find out how to exclude these (I'm not actually sure here). Alternatively, turn off TM whilst you work in Photoshop.” (http://discussions.apple.com/thread.jspa?threadID=1209412)
    If you do a lot of movie editing, unless these files are excluded, expect Time Machine to treat revised versions of a single movie as entirely new files.
    If you frequently download software or video files that you only expect to keep for a short time, consider excluding the folder these are stored in from Time Machine backups.
    If you have recently created a new disk image or burned a DVD, Time Machine will target these files for backup unless they are deleted or excluded from backup.
    Installing new software, upgrading existing software, or updating Mac OS X system software can created major changes in the structure of your directories. Time Machine will backup every file that has changed since the installation.
    Files or folders that are simply moved or renamed are counted as NEW files or folders. If you rename any file or folder, Time Machine will back up the ENTIRE file or folder again no matter how big or small it is.
    George Schreyer describes this behavior: “If you should want to do some massive rearrangement of your disk, Time Machine will interpret the rearranged files as new files and back them up again in their new locations. Just renaming a folder will cause this to happen. This is OK if you've got lots of room on your backup disk. Eventually, Time Machine will thin those backups and the space consumed will be recovered. However, if you really want recover the space in the backup volume immediately, you can. To do this, bring a Finder window to the front and then click the Time Machine icon on the dock. This will activate the Time Machine user interface. Navigate back in time to where the old stuff exists and select it. Then pull down the "action" menu (the gear thing) and select "delete all backups" and the older stuff vanishes.” (http://www.girr.org/mac_stuff/backups.html)
    *TechTool Pro Directory Protection*
    This disk utility feature creates backup copies of your system directories. Obviously these directories are changing all the time. So, depending on how it is configured, these backup files will be changing as well which is interpreted by Time Machine as new data to backup. Excluding the folder these backups are stored in will eliminate this effect.
    *Backups WAY Too Large*
    If an initial full backup or subsequent incremental backup is tens or hundreds of Gigs larger than expected, check to see that all unwanted external hard disks are still excluded from Time Machine backups.
    This includes the Time Machine backup drive ITSELF. Normally, Time Machine is set to exclude itself by default. But on rare occasions it can forget. When your backup begins, Time Machine mounts the backup on your desktop. (For Time Capsule users it appears as a white drive icon labeled something like “Backup of (your computer)”.) If, while it is mounted, it does not show up in the Time Machine Prefs “Do not back up” list, then Time Machine will attempt to back ITSELF up. If it is not listed while the drive is mounted, then you need to add it to the list.
    *FileVault / Boot Camp / iDisk Syncing*
    Note: Leopard has changed the way it deals with FileVault disk images, so it is not necessary to exclude your Home folder if you have FileVault activated. Additionally, Time Machine ignores Boot Camp partitions as the manner in which they are formatted is incompatible. Finally, if you have your iDisk Synced to your desktop, it is not necessary to exclude the disk image file it creates as that has been changed to a sparsebundle as well in Leopard.
    Let us know if any of this helps.
    Cheers!

  • Ethernet card doesn't work with new arch install?

    Hi guys,
    so this is kinda my first post, not that I'm new to arch i just never had an issue i couldn't figure out on my own... But i love arch i have been using it for about a year now and have had no serious problems except for this. I have had arch running on an older dell vostro 200 desktop before i reinstalled with a vary similar issue except that the fix i came up with doesn't work anymore. I will tell you about the first issue first because i ALMOST posted on here about it originally but i figured out a way to make it work even though it was a hassle.
    After cold/rebooting my computer the network card doesn't work at all. lspci reported that the kernel module e1000e was the correct one (i have verified this) and that the kernel has loaded it, i verified that with dmesg but still it wouldn't work. After much much anguish and hairpulling, I realized that it had to have something to do with the module so i tried forcing it to reload with rmmod e1000e and modprobe e1000e and it still wouldn't work until i physically unpluged the ethernet cord and pluged it back in until the light on the NIC turned on. After that everything works as normal i could even unplug and plug it back in with no problems. So eventually i wrote a script that did this for me (except for the uplugging and plugging part)  and i used that when i cold/rebooted.
    But now i have the exact same issue after reinstalling arch to the T except for the fact that the (crazy) fix i came up with doesn't work now. I used my "fix" after booting from the arch cd and it worked just like it always has. And now after rebooting into my fresh system the fix doesn't work anymore. So now i'm back where i was to begin with but i have no idea what to try next. I didn't do anything particularly different during installation except i added a udev rule for the e1000e module just to see if somehow that would fix the problem... it didnt and i have since deleted that (to see if it was the problem). The only other thing that is different is the root and home are now btrfs partitions instead of ext4.
    I have booted several other live cds and dvds (diferent distros) including arch derivatives such as manjaro and they all worked just fine, using the same kernel module (e1000e).  I'm not sure what that could mean but i know that it means there is a fix for this some way or another. I am going to hook up a wifi adapter and connect that computer to the internet to put some more information up if it's needed (asked for) but for now  lspci -vnn | grep -i -A 10 net reports
    00:19.0 Ethernet controller [0200]: Intel Corporation 82562V-2 10/100 Network Connection [8086:10c0] (rev 02)
    Subsystem: Dell Device 0238
    Flags: bus master, fast devsel, latency 0, IRQ 42
    Memory at fdfc0000 (32-bit non-prefetchable) [size=128k]
    Memory at fdfff000 (32-bit non-prefetchable) [size=4k]
    I/0 ports at ff00 [size=32]
    Capabilities: [c8] Power Management version 2
    Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Capabilities: [e0] Vendor Specific Information: Len=06 <?>
    Kernel driver in use: e1000e
    Kernel modules: e1000e
    ip a reports:
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
    valid_lft forever preferred_lft forever
    3: enp0s25: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:1d:09:8c:36:f6 brd ff:ff:ff:ff:ff:ff
    4: wlp0s29f7u3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 64:66:b3:16:92:10 brd ff:ff:ff:ff:ff:ff
    inet 172.16.1.55/16 brd 172.16.255.255 scope global wlp0s29f7u3
    valid_lft forever preferred_lft forever
    inet6 fe80::6666:b3ff:fe16:9210/64 scope link
    valid_lft forever preferred_lft forever
    lsmod | grep e1000e
    e1000e 215644 0
    ptp 17692 1 e1000e
    any help on what to do next would be greatly appreciated.
    Last edited by mvheart/dev/null (2014-08-18 04:02:12)

    Sorry I was thinking that it was say "state up" after that, I was looking in the wrong place... It's been a long time since I was playing around with this. So it is as i thought it was before?
    [aaron@arch-box Arch-Linux]$ sudo systemctl start [email protected]
    [sudo] password for aaron:
    Job for [email protected] failed. See 'systemctl status [email protected]' and 'journalctl -xn' for details.
    [aaron@arch-box Arch-Linux]$ systemctl status -l [email protected]
    ● [email protected] - dhcpcd on enp0s25
    Loaded: loaded (/usr/lib/systemd/system/[email protected]; disabled)
    Active: failed (Result: exit-code) since Mon 2014-08-18 11:20:29 EDT; 4min 11s ago
    Process: 17650 ExecStart=/usr/bin/dhcpcd -q -w %I (code=exited, status=1/FAILURE)
    Aug 18 11:19:59 arch-box dhcpcd[17650]: version 6.4.3 starting
    Aug 18 11:19:59 arch-box dhcpcd[17650]: enp0s25: adding address fe80::ae3:ee04:7099:77c5
    Aug 18 11:19:59 arch-box systemd[1]: Starting dhcpcd on enp0s25...
    Aug 18 11:19:59 arch-box dhcpcd[17650]: enp0s25: waiting for carrier
    Aug 18 11:20:29 arch-box systemd[1]: [email protected]: control process exited, code=exited status=1
    Aug 18 11:20:29 arch-box systemd[1]: Failed to start dhcpcd on enp0s25.
    Aug 18 11:20:29 arch-box systemd[1]: Unit [email protected] entered failed state.
    Last edited by mvheart/dev/null (2014-08-18 15:50:10)

  • I bought an external hard drive for backups to use with Time Machine, but however when I try to connect it with the other windows laptop it doesn't work ? intact it doesn't work on any other device except my MAC ?

    I bought an external hard drive for backups to use with Time Machine, but however when I try to connect it with the other windows laptop it doesn't work ? intact it doesn't work on any other device except my MAC ?

    Do not worry about it.
    Time Machine needs that your external drive is formatted in HFS+, or better known as "Mac OS Extended (Journaled)". This filesystem is used by Apple on Macs and Windows cannot read or write drives formatted with this filesystem, being this the reason why all your devices do not read the external drive except your Mac.
    You can only use your external drive to make Time Machine drives. If you store anything different, you may damage the Time Machine structure, so it is better not to use it as a drive to store other data. Instead, get another external drive to do it or create a second partition on the external drive formatted in FAT32 by using Disk Utility > http://pondini.org/OSX/DU3.html FAT32 can be read by Windows PCs

  • Do I need to install boot camp on Windows 7 as well as on Lion? I already installed it some years ago on Leopard when installing Windows Vista on my Macbook Pro. But now after installing Windows 7, many things in windows doesn't work (sound etc.)

    Do I need to install boot camp on Windows 7 as well as on Lion? I already installed it some years ago on Leopard when installing Windows Vista on my Macbook Pro. But now after installing Windows 7, many things in windows doesn't work (sound etc.). I made a clean installation because I needed to go from 32 bit to 64 bit.
    Or should I just update bootcamp in Lion? (cause when I search for "boot camp" in Windows 7 there's no result)

    Installation Guide
    Instructions for all features and settings.
    Boot Camp 4.0 FAQ Get answers to commonly asked Boot Camp questions.
    Windows 7 FAQ Answers to commonly asked Windows 7 questions.
    Apple Boot Camp Support
    Lion's Boot Camp Assistant 4.x should have downloaded Apple drivers as part of also partitioning.
    You need Apple drivers. And you then need to add on your own audio driver.
    You can run Assistant at any time to download and save a set of drivers.

  • Plymouth doesn't work [SOLVED]

    Hello!
    Plymouth doesn't work.
    I installed plymouth, added plymouth to HOOKS array in /etc/mkinitcpio.conf file, added "quiet splash" to /etc/default/grub file and ran "sudo grub-mkconfig -o /boot/grub/grub.cfg" followed by "sudo plymouth-set-default-theme -R solar".
    File /etc/mkinitcpio.conf
    # vim:set ft=sh
    # MODULES
    # The following modules are loaded before any boot hooks are
    # run. Advanced users may wish to specify all system modules
    # in this array. For instance:
    # MODULES="piix ide_disk reiserfs"
    MODULES=""
    # BINARIES
    # This setting includes any additional binaries a given user may
    # wish into the CPIO image. This is run last, so it may be used to
    # override the actual binaries included by a given hook
    # BINARIES are dependency parsed, so you may safely ignore libraries
    BINARIES=""
    # FILES
    # This setting is similar to BINARIES above, however, files are added
    # as-is and are not parsed in any way. This is useful for config files.
    FILES=""
    # HOOKS
    # This is the most important setting in this file. The HOOKS control the
    # modules and scripts added to the image, and what happens at boot time.
    # Order is important, and it is recommended that you do not change the
    # order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
    # help on a given hook.
    # 'base' is _required_ unless you know precisely what you are doing.
    # 'udev' is _required_ in order to automatically load modules
    # 'filesystems' is _required_ unless you specify your fs modules in MODULES
    # Examples:
    ## This setup specifies all modules in the MODULES setting above.
    ## No raid, lvm2, or encrypted root is needed.
    # HOOKS="base"
    ## This setup will autodetect all modules for your system and should
    ## work as a sane default
    # HOOKS="base udev autodetect block filesystems"
    ## This setup will generate a 'full' image which supports most systems.
    ## No autodetection is done.
    # HOOKS="base udev block filesystems"
    ## This setup assembles a pata mdadm array with an encrypted root FS.
    ## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
    # HOOKS="base udev block mdadm encrypt filesystems"
    ## This setup loads an lvm2 volume group on a usb device.
    # HOOKS="base udev block lvm2 filesystems"
    ## NOTE: If you have /usr on a separate partition, you MUST include the
    # usr, fsck and shutdown hooks.
    HOOKS="base udev plymouth autodetect modconf block filesystems keyboard fsck nvidia"
    # COMPRESSION
    # Use this to compress the initramfs image. By default, gzip compression
    # is used. Use 'cat' to create an uncompressed image.
    #COMPRESSION="gzip"
    #COMPRESSION="bzip2"
    #COMPRESSION="lzma"
    #COMPRESSION="xz"
    #COMPRESSION="lzop"
    #COMPRESSION="lz4"
    # COMPRESSION_OPTIONS
    # Additional options for the compressor
    #COMPRESSION_OPTIONS=""
    File /etc/default/grub
    GRUB_DEFAULT=0
    GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR="Arch"
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    GRUB_CMDLINE_LINUX=""
    # Preload both GPT and MBR modules so that they are not missed
    GRUB_PRELOAD_MODULES="part_gpt part_msdos"
    # Uncomment to enable Hidden Menu, and optionally hide the timeout count
    #GRUB_HIDDEN_TIMEOUT=5
    #GRUB_HIDDEN_TIMEOUT_QUIET=true
    # Uncomment to use basic console
    GRUB_TERMINAL_INPUT=console
    # Uncomment to disable graphical terminal
    #GRUB_TERMINAL_OUTPUT=console
    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo'
    GRUB_GFXMODE=auto
    # Uncomment to allow the kernel use the same resolution used by grub
    GRUB_GFXPAYLOAD_LINUX=keep
    # Uncomment if you want GRUB to pass to the Linux kernel the old parameter
    # format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
    #GRUB_DISABLE_LINUX_UUID=true
    # Uncomment to disable generation of recovery mode menu entries
    GRUB_DISABLE_RECOVERY=true
    # Uncomment and set to the desired menu colors. Used by normal and wallpaper
    # modes only. Entries specified as foreground/background.
    #GRUB_COLOR_NORMAL="light-blue/black"
    #GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
    # Uncomment one of them for the gfx desired, a image background or a gfxtheme
    #GRUB_BACKGROUND="/path/to/wallpaper"
    #GRUB_THEME="/path/to/gfxtheme"
    # Uncomment to get a beep at GRUB start
    #GRUB_INIT_TUNE="480 440 1"
    #GRUB_SAVEDEFAULT="true"
    No sucess. Any help?
    Last edited by joseribeiro (2014-06-11 12:15:30)

    I disagree.
    I don't need to run mkinitcpio -p linux if I ran plymouth-set-default-theme -R solar.
    See the following terminal output:
    # mkinitcpio -p linux
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    ==> Starting build: 3.14.6-1-ARCH
    -> Running build hook: [base]
    -> Running build hook: [udev]
    -> Running build hook: [plymouth]
    -> Running build hook: [autodetect]
    -> Running build hook: [modconf]
    -> Running build hook: [block]
    -> Running build hook: [filesystems]
    -> Running build hook: [keyboard]
    -> Running build hook: [fsck]
    -> Running build hook: [nvidia]
    Building nvidia modules for 3.14.6-1-ARCH kernel...
    Module nvidia/337.25 already installed on kernel 3.14.6-1-ARCH/x86_64
    Ok.
    ==> Generating module dependencies
    ==> Creating gzip initcpio image: /boot/initramfs-linux.img
    ==> Image generation successful
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    ==> Starting build: 3.14.6-1-ARCH
    -> Running build hook: [base]
    -> Running build hook: [udev]
    -> Running build hook: [plymouth]
    -> Running build hook: [modconf]
    -> Running build hook: [block]
    ==> WARNING: Possibly missing firmware for module: aic94xx
    ==> WARNING: Possibly missing firmware for module: smsmdtv
    -> Running build hook: [filesystems]
    -> Running build hook: [keyboard]
    -> Running build hook: [fsck]
    -> Running build hook: [nvidia]
    Building nvidia modules for 3.14.6-1-ARCH kernel...
    Module nvidia/337.25 already installed on kernel 3.14.6-1-ARCH/x86_64
    Ok.
    ==> Generating module dependencies
    ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
    ==> Image generation successful
    # plymouth-set-default-theme -R solar
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    ==> Starting build: 3.14.6-1-ARCH
    -> Running build hook: [base]
    -> Running build hook: [udev]
    -> Running build hook: [plymouth]
    -> Running build hook: [autodetect]
    -> Running build hook: [modconf]
    -> Running build hook: [block]
    -> Running build hook: [filesystems]
    -> Running build hook: [keyboard]
    -> Running build hook: [fsck]
    -> Running build hook: [nvidia]
    Building nvidia modules for 3.14.6-1-ARCH kernel...
    Module nvidia/337.25 already installed on kernel 3.14.6-1-ARCH/x86_64
    Ok.
    ==> Generating module dependencies
    ==> Creating gzip initcpio image: /boot/initramfs-linux.img
    ==> Image generation successful
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    ==> Starting build: 3.14.6-1-ARCH
    -> Running build hook: [base]
    -> Running build hook: [udev]
    -> Running build hook: [plymouth]
    -> Running build hook: [modconf]
    -> Running build hook: [block]
    ==> WARNING: Possibly missing firmware for module: aic94xx
    ==> WARNING: Possibly missing firmware for module: smsmdtv
    -> Running build hook: [filesystems]
    -> Running build hook: [keyboard]
    -> Running build hook: [fsck]
    -> Running build hook: [nvidia]
    Building nvidia modules for 3.14.6-1-ARCH kernel...
    Module nvidia/337.25 already installed on kernel 3.14.6-1-ARCH/x86_64
    Ok.
    ==> Generating module dependencies
    ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
    ==> Image generation successful
    They are equivalents.
    Last edited by joseribeiro (2014-06-10 18:37:29)

  • Partition Pruning - Dimension and FACT tables..

    Hi
    I have a DWH environment where we have partitioned the FACT table by a date column. This is RANGE partition. The TIME dimension table joins to the FACT table based on this date. However the end user queries will typically be fired using a different column in the time dimension that will hold more VIEWABLE date values (e.g.) in format MON-YYYY or YYYY-MM etc..
    The query is autogenerated by the viewer tool. The SQL has something like
    select sum(balance), MONTH from fact a, dim_time b
    where a.date = b.date and <-- this the partitioned key in fact
    b.month_year_col = 'Apr-2006' <-- Dimension filter.
    In the above case, Oracle is not doing PARTITION PRUNING. I have 24 period data and in the explain plan i can see it goes to the entire 24 periods. However if i change the query to
    select sum(balance), MONTH from fact a, dim_time b
    where a.date = b.date and <-- this the partitioned key in fact
    b.date = '31-Apr-2006' <-- Dimension filter.
    it does partition pruning. The explain plan shows that i goes to only one partition.
    Any help on this please. I would need the first query to use PARTITION PRUNING.
    Thanks
    bala

    Hi All
    Got it to work with these 3 parameters
    alter system set "_subquery_pruning_enabled" = true
    alter session set "_subquery_pruning_cost_factor"=1;
    alter session set "_subquery_pruning_reduction"=100;
    Thanks for all those who had a look into my question.
    Regards
    bala

  • [SOLVED] pm-suspend doesn't work since Linux 3.7.6-1

    Hi,
    I have 8 GB RAM and no swap partition and use thus pm-suspend, but since Linux 3.7.6-1-ARCH, it doesn't work properly anymore.
    Suspending works fine, but if I want to resume, my external monitor stays black (my laptop monitor is always deactivated by me, when I am working with an external monitor).
    Any ideas where this comes from?
    Regards
    Steffo
    Last edited by Steffo (2013-02-12 15:22:07)

    1. Check your journalctl logs for any errors
    2. Try and figure out if your machine is actually locked up, or if the backlight is just off. You could ssh in, or try tying commands blindly into a terminal (like reboot or something with a known result)
    3. Try Ctrl-Alt-Fx to switch away from your X session VT and then back again. This is what I have to do right now, as I also get a black screen on resume from suspend.
    4. Try 'systemctl suspend' instead of pm-suspend.
    Good luck!
    Scott

Maybe you are looking for