Select is running slow on indexed column

Hi All,
I have a table with 11 partitions defined .
Number of rows in the table is 698 Million rows.
I have created one index on this table on a single field like below
create index on router(org) nologging parallel 8;
org is a 15 byte width varchar2 column.
index is successsfully created .But when i try to query like below
select count(1) from router where org='134FGT';
It takes long time . running for more than 3 mins and still waiting .
When i checked   explain plan for above statement , its taking index path and cpu time shown as 00:00:01 and cost 2
Oracle version Ora 10gR2 , installed on Solaris 10 , 16 Dual core machine.
can any one tell me what is the issue here ???
Thanks

Hello, what is your partitioning strategy, i.e., range, hash, or composite?
Can you post:
a) The exact DDL of your index creation statement
b) An explain plan, using:
EXPLAIN PLAN FOR
SELECT...
SELECT * FROM TABLE(dbms_xplan.display);c) Preferably a trace (tkprof) of the operation.

Similar Messages

  • Mbp w/ mavericks running slow

    hi-
    everythign has been running slow since installed mavericks... wondering if i should do a clean install?? i've already repaired and fixed disk and permissions. delted software don't use. backed-up. archived to external drive some files. any ideas??
    here's the etrecheck report.
    Hardware Information:
              MacBook Pro (15-inch, Early 2011)
              MacBook Pro - model: MacBookPro8,2
              1 2.2 GHz Intel Core i7 CPU: 4 cores
              4 GB RAM
    Video Information:
              Intel HD Graphics 3000 - VRAM: 384 MB
              AMD Radeon HD 6750M - VRAM: 1024 MB
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 1.9 - SDK 10.9
              AppleAVBAudio: Version: 2.0.0 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    System Software:
              OS X 10.9 (13A603) - Uptime: 0 days 0:48:27
    Disk Information:
              TOSHIBA MK7559GSXF disk0 : (750.16 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        tsume (disk0s2) /: 749.3 GB (672.18 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-898 
    USB Information:
              Apple Inc. FaceTime HD Camera (Built-in)
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Inc. BRCM2070 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Computer, Inc. IR Receiver
    FireWire Information:
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Kernel Extensions:
    Problem System Launch Daemons:
    Problem System Launch Agents:
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist
              [loaded] com.adobe.SwitchBoard.plist
              [loaded] com.google.keystone.daemon.plist
              [loaded] com.microsoft.office.licensing.helper.plist
              [loaded] com.oracle.java.Helper-Tool.plist
              [loaded] net.sourceforge.MonolingualHelper.plist
    Launch Agents:
              [not loaded] com.adobe.AAM.Updater-1.0.plist
              [loaded] com.google.keystone.agent.plist
              [loaded] com.oracle.java.Java-Updater.plist
              [loaded] com.wacom.wacomtablet.plist
    User Launch Agents:
              [loaded] com.adobe.AAM.Updater-1.0.plist
              [loaded] com.adobe.ARM.[...].plist
    User Login Items:
              None
    3rd Party Preference Panes:
              Flash Player
              Java
              WacomTablet
    Internet Plug-ins::
              o1dbrowserplugin: Version: 4.9.1.16010
              WacomNetscape: Version: 1.1.1-1
              Default Browser: Version: 537 - SDK 10.9
              AdobeExManDetect: Version: AdobeExManDetect 1.1.0.0 - SDK 10.7
              WacomTabletPlugin: Version: WacomTabletPlugin 2.0.0.4
              FlashPlayer-10.6: Version: 11.9.900.170 - SDK 10.6
              Flash Player: Version: 11.9.900.170 - SDK 10.6
              QuickTime Plugin: Version: 7.7.3
              googletalkbrowserplugin: Version: 4.9.1.16010
              SharePointBrowserPlugin: Version: 14.0.0
              AdobePDFViewer: Version: 10.1.1
              npgtpo3dautoplugin: Version: 0.1.44.29 - SDK 10.5
              JavaAppletPlugin: Version: Java 7 Update 45
    Bad Fonts:
              None
    Old applications:
              AU Lab:          Version: 2.2.1 - SDK 10.0
                        /Developer/Applications/Audio/AU Lab.app
              Accessibility Inspector:          Version: 3.0 - SDK 10.0
                        /Developer/Applications/Utilities/Accessibility Tools/Accessibility Inspector.app
              Accessibility Verifier:          Version: 1.3 - SDK 10.0
                        /Developer/Applications/Utilities/Accessibility Tools/Accessibility Verifier.app
              Clipboard Viewer:          Version: 3.0 - SDK 10.0
                        /Developer/Applications/Utilities/Clipboard Viewer.app
              Core Image Fun House:          Version: 2.1.46 - SDK 10.0
                        /Developer/Applications/Graphics Tools/Core Image Fun House.app
              CrashReporterPrefs:          Version: 10.7 - SDK 10.0
                        /Developer/Applications/Utilities/CrashReporterPrefs.app
              FileMerge:          Version: 2.5 - SDK 10.0
                        /Developer/Applications/Utilities/FileMerge.app
              HALLab:          Version: 1.6 - SDK 10.0
                        /Developer/Applications/Audio/HALLab.app
              Help Indexer:          Version: 4.1 - SDK 10.0
                        /Developer/Applications/Utilities/Help Indexer.app
              IORegistryExplorer:          Version: 2.1 - SDK 10.0
                        /Developer/Applications/Utilities/IORegistryExplorer.app
              Icon Composer:          Version: 2.2 - SDK 10.0
                        /Developer/Applications/Utilities/Icon Composer.app
              Instruments:          Version: 4.2 - SDK 10.0
                        /Developer/Applications/Instruments.app
              OpenGL Driver Monitor:          Version: 1.6 - SDK 10.0
                        /Developer/Applications/Graphics Tools/OpenGL Driver Monitor.app
              OpenGL ES Performance Detective:          Version: 1.1 - SDK 10.0
                        /Developer/Applications/Graphics Tools/OpenGL ES Performance Detective.app
              OpenGL Profiler:          Version: 4.5 - SDK 10.0
                        /Developer/Applications/Graphics Tools/OpenGL Profiler.app
              OpenGL Shader Builder:          Version: 2.1 - SDK 10.0
                        /Developer/Applications/Graphics Tools/OpenGL Shader Builder.app
              PackageMaker:          Version: 3.0.5 - SDK 10.0
                        /Developer/Applications/Utilities/PackageMaker.app
              Pixie:          Version: 2.5 - SDK 10.0
                        /Developer/Applications/Graphics Tools/Pixie.app
              Quartz Composer:          Version: 4.5 - SDK 10.0
                        /Developer/Applications/Quartz Composer.app
              Quartz Composer Visualizer:          Version: 1.3 - SDK 10.0
                        /Developer/Applications/Graphics Tools/Quartz Composer Visualizer.app
              Quartz Debug:          Version: 4.2 - SDK 10.0
                        /Developer/Applications/Performance Tools/Quartz Debug.app
              SA Color Finesse 3 UI:          Version: 3.0.6(275) - SDK 10.5
                        /Applications/Adobe After Effects CS6/Plug-ins/Effects/Synthetic Aperture/(CF3 Support)/SA Color Finesse 3 UI.app
              SRLanguageModeler:          Version: 1.9 - SDK 10.0
                        /Developer/Applications/Utilities/Speech/SRLanguageModeler.app
              SleepX:          Version: 3.1.1 - SDK 10.0
                        /Developer/Applications/Utilities/SleepX.app
              Spin Control:          Version: 0.9.1 - SDK 10.0
                        /Developer/Applications/Performance Tools/Spin Control.app
              Syncrospector:          Version: 6.0 - SDK 10.0
                        /Developer/Applications/Utilities/Syncrospector.app
              USB Prober:          Version: 4.4.0 - SDK 10.0
                        /Developer/Applications/Utilities/USB Prober.app
              Wondershare Helper Compact:          Version: 2.2.5.6 - SDK 10.5
                        /Users/mayte_eme/Library/Application Support/Helper/Wondershare Helper Compact.app
              Xcode:          Version: 4.2.1 - SDK 10.0
                        /Developer/Applications/Xcode.app
              Xcode SSH Authentication Agent:          Version: 4.2.1 - SDK 10.0
                        /Developer/Library/PrivateFrameworks/IDEFoundation.framework/Versions/A/Re sources/Xcode SSH Authentication Agent.app
              dynamiclinkmanager:          Version: 6.0.0 - SDK 10.5
                        /Library/Application Support/Adobe/Common/dynamiclink/CS6/dynamiclinkmanager.app
              dynamiclinkmediaserver:          Version: 6.0.1 - SDK 10.5
                        /Library/Application Support/Adobe/Common/dynamiclinkmediaserver/1.0/dynamiclinkmediaserver.app
    Time Machine:
              Skip System Files: NO
              Mobile backups: OFF
              Auto backup: NO
              Volumes being backed up:
                        tsume: Disk size: 697.84 GB Disk used: 71.82 GB
              Destinations:
                        kikuchi [Local] (Last used)
                        Total size: 465.14 GB
                        Total number of backups: 2
                        Oldest backup: 2012-04-15 21:58:00 +0000
                        Last backup: 2013-12-12 03:57:50 +0000
                        Size of backup disk: Adequate
                                  Backup size 465.14 GB > (Disk used 71.82 GB X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
    Top Processes by CPU:
                   4%          WindowServer
                   2%          EtreCheck
                   1%          Google Chrome
                   0%          TextEdit
                   0%          mds
    Top Processes by Memory:
              160 MB          com.apple.IconServicesAgent
              156 MB          Google Chrome
              98 MB          Finder
              78 MB          mds_stores
              74 MB          WindowServer
    Virtual Memory Statistics:
              255 MB          Free RAM
              1.60 GB          Active RAM
              1.13 GB          Inactive RAM
              1.01 GB          Wired RAM
              630 MB          Page-ins
              0 B          Page-outs

    First, back up all data immediately unless you already have a current backup. If you can't back up, stop here. Do not take any of the steps below.
    Step 1
    This diagnostic procedure will query the log for messages that may indicate a system issue. It changes nothing, and therefore will not, in itself, solve your problem.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Triple-click anywhere in the line below on this page to select it:
    syslog -k Sender kernel -k Message CReq 'GPU |hfs: Ru|I/O e|find tok|n Cause: -|NVDA\(|pagin|timed? ?o' | tail | awk '/:/{$4=""; print}' | open -ef
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key.
    The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
    A TextEdit window will open with the output of the command. Normally the command will produce no output, and the window will be empty. If the TextEdit window (not the Terminal window) has anything in it, stop here and post it — the text, please, not a screenshot. The title of the TextEdit window doesn't matter, and you don't need to post that.
    Step 2
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Reset the System Management Controller.
    Run Software Update. If there's a firmware update, install it.
    If you're booting from an aftermarket SSD, see whether there's a firmware update for it.
    If you have a portable computer, check the cycle count of the battery. It may be due for replacement.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane. See whether there's any change.
    Check your keychains in Keychain Access for excessively duplicated items.
    Boot into Recovery mode, launch Disk Utility, and run Repair Disk.
    If you have a MacBook Pro with dual graphics, disable automatic graphics switching in the Energy Saverpreference pane for better performance at the cost of shorter battery life.
    Step 3
    When you notice the problem, launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Activity Monitor in the icon grid.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the View menu or the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for User, System, and Idle at the bottom of the window.
    Select the Memory tab. What value is shown in the bottom part of the window for Swap used?
    Next, select the Disk tab. Post the approximate values shown for Reads in/sec and Writes out/sec (not Reads in andWrites out.)
    Step 4
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard by pressing the key combinationcommand-C. Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • Parallel hint causes a query to run slower?

    I have an insert...select query where the select is a join between a table with one billion rows (although there is a where clause on an indexed column that restricts it to "only" 300 million), a table with 30 million rows, and a table with about 100,000 rows, where the result is about 20 rows. When I first ran it, it took about 2 hours. I added a Parallel hint, and explain plan showed that it was being used (and v$session showed that I had about 30 additional connections while it ran). but not it takes four hours.
    Is there a reason parallel processing would cause a query to run slower?
    insert /*+ append */ into employees_by_age_group
      pay_plan
    , age_range
    , pay_level
    , fy
    , employee_count
    select /*+ parallel */
           emp.pay_plan
         , to_char(d.min_age) || '-' || to_char(d.max_age) as age_range
         , emp.pay_level
         , pay.fy
         , count(pay.employee_id) as employee_count
    from
      select /*+ index(pay_info pay_info_index_on_site) */
             employee_id
           , extract(year from (dte_ppe_end + 92)) as fy
           , count(employee_id) as num_recs
      from pay_info
      where extract(month from dte_ppe_end) = 10
      and   extract(day from dte_ppe_end) between 14 and 27
      and   substr(pay_type, 1, 1) IN ('A', 'B', 'C')
      and   site like 'Z%'
      group by employee_id, extract(year from (dte_ppe_end + 92))
    ) pay
    join
      select employee_id
           , pay_plan
           , pay_grade
           , pay_step
           , file_date
      from
        select /*+ index(employee_info employee_info_index_on_site) */
               employee_id
             , pay_level
             , file_date
             , max(file_date)
               over (partition by extract(year from (file_date + 61)))
               as last_file_date
        from employee_info
        where site like 'Z%'
      where file_date = last_file_date
    ) emp
    on (
         emp.employee_id = pay.employee_id
         and extract(year from emp.file_date) = pay.fy - 1
    join (
           select employee_id
                , dob
           from (
                  select employee_id
                       , date_birth
                       , row_number() over (partition by employee_id order by date_file desc) as r
                  from employee_birthdates
                  where site like 'Z%'
           where r = 1
         ) dob
    on dob.employee_id = pay.employee_id
    join
                select 20 as min_age, 24 as max_age from dual
      union all select 25 as min_age, 29 as max_age from dual
      union all select 30 as min_age, 34 as max_age from dual
      union all select 35 as min_age, 39 as max_age from dual
      union all select 40 as min_age, 44 as max_age from dual
      union all select 45 as min_age, 49 as max_age from dual
      union all select 50 as min_age, 54 as max_age from dual
      union all select 55 as min_age, 59 as max_age from dual
      union all select 60 as min_age, 64 as max_age from dual
      union all select 65 as min_age, 69 as max_age from dual
      union all select 70 as min_age, 74 as max_age from dual
      union all select 75 as min_age, 79 as max_age from dual
      union all select 80 as min_age, 84 as max_age from dual
      union all select 85 as min_age, 89 as max_age from dual
      union all select 90 as min_age, 94 as max_age from dual
      union all select 95 as min_age, 99 as max_age from dual
    ) d
    group by emp.pay_plan, d.min_age, d.max_age, emp.pay_level, pay.fy;

    Paul - here are three different explain plans
    First, the original one (without the parallel hint):
    INSERT STATEMENT  ALL_ROWS                                              Cost: 26,684,255  Bytes: 114  Cardinality: 1                     
      35 LOAD AS SELECT EMPLOYEES_BY_AGE_GROUP                  
        34 HASH GROUP BY                                                    Cost: 26,684,255  Bytes: 114  Cardinality: 1                 
          33 NESTED LOOPS                                                   Cost: 26,684,254  Bytes: 114  Cardinality: 1               
            14 HASH JOIN                                                    Cost: 26,684,222  Bytes: 108  Cardinality: 1             
              9 MERGE JOIN                                                  Cost: 4,408,803  Bytes: 8,322  Cardinality: 146           
                3 VIEW DONBOT_DBA.                                          Cost: 114,863  Bytes: 29,625,180  Cardinality: 987,506         
                  2 WINDOW SORT PUSHED RANK                                 Cost: 114,863  Bytes: 35,550,216  Cardinality: 987,506       
                    1 TABLE ACCESS FULL TABLE EMPLOYEE_BIRTHDATES           Cost: 108,983  Bytes: 35,550,216  Cardinality: 987,506     
                8 SORT JOIN                                                 Cost: 4,293,940  Bytes: 3,645  Cardinality: 135         
                  7 VIEW DONBOT_DBA.                                        Cost: 4,293,939  Bytes: 3,645  Cardinality: 135       
                    6 SORT GROUP BY                                         Cost: 4,293,939  Bytes: 4,185  Cardinality: 135     
                      5 TABLE ACCESS BY INDEX ROWID TABLE PAY_INFO          Cost: 4,293,938  Bytes: 4,185  Cardinality: 135   
                        4 INDEX RANGE SCAN INDEX PAY_INFO_INDEX_ON_SITE     Cost: 487,124  Cardinality: 402,683,034 
              13 VIEW DONBOT_DBA                                            Cost: 22,275,300  Bytes: 1,160,143,257  Cardinality: 22,747,907           
                12 WINDOW SORT                                              Cost: 22,275,300  Bytes: 841,672,559  Cardinality: 22,747,907         
                  11 TABLE ACCESS BY INDEX ROWID TABLE EMPLOYEE_INFO        Cost: 22,137,046  Bytes: 841,672,559  Cardinality: 22,747,907       
                    10 INDEX RANGE SCAN INDEX EMPLOYEE_INFO_INDEX_ON_SITE   Cost: 50,419  Cardinality: 38,019,281     
            32 VIEW DONBOT_DBA
              31 UNION-ALL           
                15 FAST DUAL  Cost: 2  Cardinality: 1         
                16 FAST DUAL  Cost: 2  Cardinality: 1         
                17 FAST DUAL  Cost: 2  Cardinality: 1         
                18 FAST DUAL  Cost: 2  Cardinality: 1         
                19 FAST DUAL  Cost: 2  Cardinality: 1         
                20 FAST DUAL  Cost: 2  Cardinality: 1         
                21 FAST DUAL  Cost: 2  Cardinality: 1         
                22 FAST DUAL  Cost: 2  Cardinality: 1         
                23 FAST DUAL  Cost: 2  Cardinality: 1         
                24 FAST DUAL  Cost: 2  Cardinality: 1         
                25 FAST DUAL  Cost: 2  Cardinality: 1         
                26 FAST DUAL  Cost: 2  Cardinality: 1         
                27 FAST DUAL  Cost: 2  Cardinality: 1         
                28 FAST DUAL  Cost: 2  Cardinality: 1         
                29 FAST DUAL  Cost: 2  Cardinality: 1         
                30 FAST DUAL  Cost: 2  Cardinality: 1          Next, one with the parallel hint:
    INSERT STATEMENT  ALL_ROWS                                                                              Cost: 26,507,111  Bytes: 114  Cardinality: 1                                       
      51 LOAD AS SELECT EMPLOYEES_BY_AGE_GROUP
        50 PX COORDINATOR                                          
          49 PX SEND QC (RANDOM) PARALLEL_TO_SERIAL SYS.:TQ10005 :Q1005                                     Cost: 26,507,111  Bytes: 114  Cardinality: 1                                 
            48 HASH GROUP BY PARALLEL_COMBINED_WITH_PARENT :Q1005                                           Cost: 26,507,111  Bytes: 114  Cardinality: 1                               
              47 PX RECEIVE PARALLEL_COMBINED_WITH_PARENT :Q1005                                            Cost: 26,507,111  Bytes: 114  Cardinality: 1                             
                46 PX SEND HASH PARALLEL_TO_PARALLEL SYS.:TQ10004 :Q1004                                    Cost: 26,507,111  Bytes: 114  Cardinality: 1                           
                  45 HASH GROUP BY PARALLEL_COMBINED_WITH_PARENT :Q1004                                     Cost: 26,507,111  Bytes: 114  Cardinality: 1                         
                    44 NESTED LOOPS PARALLEL_COMBINED_WITH_PARENT :Q1004                                    Cost: 26,507,111  Bytes: 114  Cardinality: 1                       
                      25 HASH JOIN PARALLEL_COMBINED_WITH_PARENT :Q1004                                     Cost: 26,507,109  Bytes: 108  Cardinality: 1                     
                        17 PX RECEIVE PARALLEL_COMBINED_WITH_PARENT :Q1004                                  Cost: 4,301,500  Bytes: 4,104  Cardinality: 72                   
                          16 PX SEND HASH PARALLEL_TO_PARALLEL SYS.:TQ10003 :Q1003                          Cost: 4,301,500  Bytes: 4,104  Cardinality: 72                 
                            15 HASH JOIN PARALLEL_COMBINED_WITH_PARENT :Q1003                               Cost: 4,301,500  Bytes: 4,104  Cardinality: 72               
                              7 BUFFER SORT PARALLEL_COMBINED_WITH_CHILD :Q1003           
                                6 PX RECEIVE PARALLEL_COMBINED_WITH_PARENT :Q1003                           Cost: 4,293,939  Bytes: 1,809  Cardinality: 67           
                                  5 PX SEND BROADCAST PARALLEL_FROM_SERIAL SYS.:TQ10000                     Cost: 4,293,939  Bytes: 1,809  Cardinality: 67         
                                    4 VIEW DONBOT_DBA.                                                      Cost: 4,293,939  Bytes: 1,809  Cardinality: 67       
                                      3 SORT GROUP BY                                                       Cost: 4,293,939  Bytes: 2,077  Cardinality: 67     
                                        2 TABLE ACCESS BY INDEX ROWID TABLE PAY_INFO                        Cost: 4,293,938  Bytes: 2,077  Cardinality: 67   
                                          1 INDEX RANGE SCAN INDEX PAY_INFO_INDEX_ON_SITE                   Cost: 487,124  Cardinality: 199,756,151 
                              14 VIEW PARALLEL_COMBINED_WITH_PARENT DONBOT_DBA. :Q1003                      Cost: 7,561  Bytes: 29,625,180  Cardinality: 987,506             
                                13 WINDOW SORT PUSHED RANK PARALLEL_COMBINED_WITH_PARENT :Q1003             Cost: 7,561  Bytes: 35,550,216  Cardinality: 987,506           
                                  12 PX RECEIVE PARALLEL_COMBINED_WITH_PARENT :Q1003                        Cost: 7,561  Bytes: 35,550,216  Cardinality: 987,506         
                                    11 PX SEND HASH PARALLEL_TO_PARALLEL SYS.:TQ10002 :Q1002                Cost: 7,561  Bytes: 35,550,216  Cardinality: 987,506       
                                      10 WINDOW CHILD PUSHED RANK PARALLEL_COMBINED_WITH_PARENT :Q1002      Cost: 7,561  Bytes: 35,550,216  Cardinality: 987,506     
                                        9 PX BLOCK ITERATOR PARALLEL_COMBINED_WITH_CHILD :Q1002             Cost: 7,557  Bytes: 35,550,216  Cardinality: 987,506   
                                          8 TABLE ACCESS FULL TABLE PARALLEL_COMBINED_WITH_PARENT EMPLOYEE_BIRTHDATES :Q1002     Cost: 7,557  Bytes: 35,550,216  Cardinality: 987,506 
                        24 BUFFER SORT PARALLEL_COMBINED_WITH_CHILD :Q1004                 
                          23 PX RECEIVE PARALLEL_COMBINED_WITH_PARENT :Q1004                                Cost: 22,205,605  Bytes: 575,504,145  Cardinality: 11,284,395                 
                            22 PX SEND HASH PARALLEL_FROM_SERIAL SYS.:TQ10001                               Cost: 22,205,605  Bytes: 575,504,145  Cardinality: 11,284,395               
                              21 VIEW DONBOT_DBA.                                                           Cost: 22,205,605  Bytes: 575,504,145  Cardinality: 11,284,395             
                                20 WINDOW SORT                                                              Cost: 22,205,605  Bytes: 417,522,615  Cardinality: 11,284,395           
                                  19 TABLE ACCESS BY INDEX ROWID TABLE EMPLOYEE_INFO                        Cost: 22,137,046  Bytes: 417,522,615  Cardinality: 11,284,395         
                                    18 INDEX RANGE SCAN INDEX EMPLOYEE_INFO_INDEX_ON_SITE                   Cost: 50,419  Cardinality: 18,859,958       
                      43 VIEW PARALLEL_COMBINED_WITH_PARENT DONBOT_DBA. :Q1004                              Cost: 32  Bytes: 6  Cardinality: 1                     
                        42 UNION-ALL PARALLEL_COMBINED_WITH_PARENT :Q1004                 
                          26 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          27 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          28 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          29 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          30 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          31 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          32 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          33 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          34 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          35 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          36 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          37 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          38 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          39 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          40 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          41 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                  Finally, one without the parallel hint, and without the index hint on PAY_TABLE:
    INSERT STATEMENT  ALL_ROWS                                              Cost: 23,348,654  Bytes: 114  Cardinality: 1                   
      34 LOAD AS SELECT ARMYMP.EMPLOYEES_BY_AGE                
        33 HASH GROUP BY                                                    Cost: 23,348,654  Bytes: 114  Cardinality: 1               
          32 NESTED LOOPS                                                   Cost: 23,348,653  Bytes: 114  Cardinality: 1             
            13 HASH JOIN                                                    Cost: 23,348,621  Bytes: 108  Cardinality: 1           
              8 MERGE JOIN                                                  Cost: 1,073,202  Bytes: 8,322  Cardinality: 146         
                3 VIEW DONBOT_DBA.                                          Cost: 114,863  Bytes: 29,625,180  Cardinality: 987,506       
                  2 WINDOW SORT PUSHED RANK                                 Cost: 114,863  Bytes: 35,550,216  Cardinality: 987,506     
                    1 TABLE ACCESS FULL TABLE EMPLOYEE_BIRTHDATES           Cost: 108,983  Bytes: 35,550,216  Cardinality: 987,506   
                7 SORT JOIN                                                 Cost: 958,339  Bytes: 3,645  Cardinality: 135       
                  6 VIEW DONBOT_DBA.                                        Cost: 958,338  Bytes: 3,645  Cardinality: 135     
                    5 SORT GROUP BY                                         Cost: 958,338  Bytes: 4,185  Cardinality: 135   
                      4 TABLE ACCESS FULL TABLE PAY_INFO                    Cost: 958,337  Bytes: 4,185  Cardinality: 135 
              12 VIEW DONBOT_DBA.                                           Cost: 22,275,300  Bytes: 1,160,143,257  Cardinality: 22,747,907         
                11 WINDOW SORT                                              Cost: 22,275,300  Bytes: 841,672,559  Cardinality: 22,747,907       
                  10 TABLE ACCESS BY INDEX ROWID TABLE EMPLOYEE_INFO        Cost: 22,137,046  Bytes: 841,672,559  Cardinality: 22,747,907     
                    9 INDEX RANGE SCAN INDEX EMPLOYEE_INFO_UIC              Cost: 50,419  Cardinality: 38,019,281   
            31 VIEW DONBOT_DBA.                                             Cost: 32  Bytes: 6  Cardinality: 1           
              30 UNION-ALL         
                14 FAST DUAL  Cost: 2  Cardinality: 1       
                15 FAST DUAL  Cost: 2  Cardinality: 1       
                16 FAST DUAL  Cost: 2  Cardinality: 1       
                17 FAST DUAL  Cost: 2  Cardinality: 1       
                18 FAST DUAL  Cost: 2  Cardinality: 1       
                19 FAST DUAL  Cost: 2  Cardinality: 1       
                20 FAST DUAL  Cost: 2  Cardinality: 1       
                21 FAST DUAL  Cost: 2  Cardinality: 1       
                22 FAST DUAL  Cost: 2  Cardinality: 1       
                23 FAST DUAL  Cost: 2  Cardinality: 1       
                24 FAST DUAL  Cost: 2  Cardinality: 1       
                25 FAST DUAL  Cost: 2  Cardinality: 1       
                26 FAST DUAL  Cost: 2  Cardinality: 1       
                27 FAST DUAL  Cost: 2  Cardinality: 1       
                28 FAST DUAL  Cost: 2  Cardinality: 1       
                29 FAST DUAL  Cost: 2  Cardinality: 1        I am surprised the cost without the index is less than the cost with it, considering that it is replacing a Table Access By Index Rowid with a Table Access Full on a table with 1 billion (1000 million) records.
    Igor - two questions:
    One - I cannot find "Materialize" in the hints in the SQL Reference anywhere. What does it do?
    Two - does replacing subqueries with With clauses make that much of a difference?

  • My mac takes a long time to log on, running slow

    my imac is running slow & takes a long time logging on, anyone knows why this happens?

    If you have more than ten or so files or folders on your Desktop, move them, temporarily at least, somewhere else in your home folder.
    Disconnect all wired peripherals except keyboard, mouse, and monitor, if applicable. Launch the usual set of applications you use when you notice the problem.
    Step 1
    Launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Activity Monitor in the page that opens.
    Select the CPU tab.
    Select All Processes from the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Step 2
    Launch the Console application in the same way as above, and select “kernel.log” from the file list. Post the dozen or so most recent messages in the log — the text, please, not a screenshot.
    If there are runs of repeated messages, post only one example of each. Do not post many repetitions of the same message.

  • MacBook Pro Stalls/Running slow since Mavericks Installation

    On the advice of the more experienced here is a new thread.
    Since installing Mavericks my MBP has gone from pretty much an instant response to requests, to stalling, the spinning pinwheel, longer startup and shutdown times, as well as slower access to websites (Chrome and Safari, though Safari appears slower). 
    I have been advised to run EtreCheck when I first joined a post regarding the same problem.  I posted the results and was advised to work through some of the issues.  This is the initial test result and the very much appreciated advice.
    NOTE - EXTENSIVE TEXT TO FOLLOW.
    I don't have a specific fix from your report, but I can point out what other users have had issues with.
    JonUK_LTD wrote:
    Kernel Extensions:
    com.Cycling74.driver.Soundflower (1.5.1)
    com.paragon-software.filesystems.ntfs (82)
    Problem System Launch Agents:
    [System] com.paragon.NTFS.trial.plist 3rd-Party support link
    [System] com.paragon.NTFS.upd.plist 3rd-Party support link
    Launch Daemons:
    [System] com.adobe.fpsaud.plist 3rd-Party support link
    [System] com.sierrawireless.SwitchTool.plist 3rd-Party support link
    User Launch Agents:
    [not loaded] com.google.keystone.agent.plist 3rd-Party support link
    [not loaded] com.macpaw.CleanMyMac.helperTool.plist 3rd-Party support link
    [not loaded] com.macpaw.CleanMyMac.trashSizeWatcher.plist 3rd-Party support link
    [not loaded] com.macpaw.CleanMyMac.volumeWatcher.plist 3rd-Party support link
    [not loaded] uk.co.markallan.clamxav.freshclam.plist 3rd-Party support link
    User Login Items:
             Clocks
    FaceTab Pro for Facebook
    GrowlTunes
    Yoink
    Dropbox
    SpeechSynthesisServer
    Internet Plug-ins:
    LogMeInSafari64: Version: 1.0.730 3rd-Party support link
    Default Browser: Version: 537 - SDK 10.9
    Flip4Mac WMV Plugin: Version: 2.4.4.2 3rd-Party support link
    OfficeLiveBrowserPlugin: Version: 12.3.6 3rd-Party support link
    AdobePDFViewerNPAPI: Version: 10.1.6 3rd-Party support link
    FlashPlayer-10.6: Version: 12.0.0.70 - SDK 10.6 3rd-Party support link
    LogMeIn: Version: 1.0.730 3rd-Party support link
    Silverlight: Version: 5.1.20913.0 - SDK 10.6 3rd-Party support link
    Flash Player: Version: 12.0.0.70 - SDK 10.6 3rd-Party support link
    LogMeInSafari32: Version: 1.0.730 3rd-Party support link
    iPhotoPhotocast: Version: 7.0
    QuickTime Plugin: Version: 7.7.3
    AdobePDFViewer: Version: 10.1.6 3rd-Party support link
    JavaAppletPlugin: Version: 14.8.0 - SDK 10.9 Outdated! Update
    Safari Extensions:
    Add To Amazon Wish List: Version: 1.4
    User Internet Plug-ins:
    Google Earth Web Plug-in: Version: 7.1 3rd-Party support link
    fbplugin_1_0_1: Version: (null) 3rd-Party support link
    fbplugin_1_0_3: Version: (null) 3rd-Party support link
    3rd Party Preference Panes:
    Connect360  3rd-Party support link
    Flash Player  3rd-Party support link
    Flip4Mac WMV  3rd-Party support link
    Growl  3rd-Party support link
    MacFUSE  3rd-Party support link
    Paragon NTFS for Mac ® OS X 3rd-Party support link
    Old Applications:
    Plex Media Server:          Version: 0.9.3.4 - SDK 10.5 3rd-Party support link
    Plex Plug-in Installer: Version: 1.0 - SDK 10.5 3rd-Party support link
    HyperDesktop:          Version: 1.1 - SDK 10.0 3rd-Party support link
    Top Processes by CPU:
    3%          WindowServer
    2%          mdworker
    2%          MenuTab Pro for Facebook
    1%          EtreCheck
    0%          mds_stores
    Top Processes by Memory:
    176 MB          softwareupdated
    156 MB com.apple.IconServicesAgent
    123 MB          MenuTab Pro for Facebook
    115 MB          Google Chrome
    70 MB          Dropbox
    Red is the items I'd look at these are mostly 'system level' - they can alter a lot in the OS. Check the developers website, update or remove the apps if the developer doesn't say it supports 10.9 or if you can live without them.
    Soundflower is out of date & it is a 'kernel extension', the kernel is the core of the OS - you don't want any old code running here.
    The installer has a removal tool too https://code.google.com/p/soundflower/ so update or remove it if you don't use it.
    Update or remove Paragon's NTFS tool, it is running at a system level & it's background jobs seem to be in a 'problem state', it also has something running in the kernel.
    Adobe has an updater running, try to ensure Adobe's apps are all up to date, just incase they have stopped checking. Repeat with Google's apps, just launch the apps & look in the 'App menu' or the Help menu for updates. These companies tend to reinstall the updaters if you try to delete them, so there it little you can do but keep the apps updated.
    It's odd that all your User Launch Agents: are not loaded, these are background jobs that start on login (if they are in a loaded state). The same principle applies, update or remove the related apps if they are not needed.
    CleanMyMac is a concern - there are lots of posts here claiming it can break the OS - it can help you to remove files that are installed by Apple which is not the best idea. I am unconvinced that running 'maintenance utilities' all the time is a good idea, however the app removal tool may be OK for cases where a developer doesn't have an uninstaller. 'Cleaner apps' use RAM & can spend time scanning files which can slow other tasks. Search here for varied opinions on CleanMyMac. I also use ClamXAV, ensure that is upto date & so check it's engine & rules are current.
    The purple items are 'user level' items (run on login of your account).
    There is a simple way to see if your issues are because of 'user level' items, create a new test user account & login as that user. If the Mac is stable you can assume it is something within your 'user items'.
    Check that you need the Login Items running every time you login. They are listed in System Preferences> Users & groups > select your account… login items tab.
    You appear to have 3 LogMeIn internet plugins installed - is Safari behaving OK or running slow? I would consider removing most plugins & then installing them as you need them. You can look inside /Library/Internet Plug-Ins/ and ~/Library/Internet Plug-Ins/ to remove them manually.
    ~/Library is your 'home library' Use the Finders Go Menu > Open Folder… and enter ~/Library to reveal it. Apple hid this Library folder.
    I'd be tempted to remove the Java applet plugin - old Java is a real secuity risk & Safari has probably disabled this for you already.
    There seems to be 2 Facebook plugins installed (probably inside your ~/Library/Internet Plug-Ins/). Remove the oldest one & look for the newest release. Update the Safari Extension if it needs it too.
    The Preference Panes are installed in /Library/PreferencePanes/ and ~/Library/PreferencePanes/. Open System prefs & launch each third party pref pane (the bottom rows) & check for updates if possible. These also have an ability to modify the OS, so any errors could effect everything. You can usually right click (or ctrl+click) to remove them from the preferences (it removes them from the OS, but may leave any libraries or extra tools behind - see if the developer has removal instructions).
    I see you have Plex installed, does this run very often? I find it can drag a Mac to a slow crawl when it is indexing. I suspect Connect360 may do similar things, but I don't really know for sure what it does .
    MenuTab for Facebook seems to be doing something with RAM & CPU, update or remove if you don't need it.
    That may all be daunting, but it should help. Start with the system level items, and then look at updating the other items. You may find things improve after a cleanup & a reboot.
    This was extremely helpful and I have gone as far as my knowledge will allow for now.  I did make a bootable clone of the main HDD prior to doing anything, and now there seems to be little improvment following the suggestions made.  Also along the way MacFuse was deleted and well as Flip4Mac and NTFS.  
    Things are far from perfect though and the MBP still stalls and is performing very poorly. 
    I have run another EtreCheck, results below;
    Hardware Information:
              MacBook Pro (13-inch, Mid 2009)
              MacBook Pro - model: MacBookPro5,5
              1 2.26 GHz Intel Core 2 Duo CPU: 2 cores
              4 GB RAM
    Video Information:
              NVIDIA GeForce 9400M - VRAM: 256 MB
    System Software:
              OS X 10.9.2 (13C64) - Uptime: 0 days 22:21:3
    Disk Information:
              FUJITSU MJA2250BH FFS G1 disk0 : (250.06 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macintosh HD (disk0s2) / [Startup]: 249.2 GB (71.96 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              HL-DT-ST DVDRW  GS23N 
    USB Information:
              Apple Inc. Built-in iSight
              Western Digital Ext HDD 1021 2 TB
                        EFI (disk1s1) <not mounted>: 209.7 MB
                        TimeMachine BackUp (disk1s2) /Volumes/TimeMachine BackUp: 265.79 GB (101.83 GB free)
                        MAC OS (disk1s3) /Volumes/MAC OS: 1.22 TB (1.09 TB free)
                        MS DOS (disk1s4) /Volumes/MS DOS: 510.11 GB (509.98 GB free)
              Apple Internal Memory Card Reader
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Computer, Inc. IR Receiver
              Apple Inc. BRCM2046 Hub
                        Apple Inc. Bluetooth USB Host Controller
    FireWire Information:
    Thunderbolt Information:
    Problem System Launch Agents:
              [System] com.paragon.NTFS.trial.plist 3rd-Party support link
              [System] com.paragon.NTFS.upd.plist 3rd-Party support link
    Launch Daemons:
              [System] com.adobe.fpsaud.plist 3rd-Party support link
              [System] com.bombich.ccc.plist 3rd-Party support link
              [System] com.sierrawireless.SwitchTool.plist 3rd-Party support link
    User Launch Agents:
              [not loaded] com.adobe.ARM.[...].plist 3rd-Party support link
              [not loaded] com.google.keystone.agent.plist 3rd-Party support link
              [not loaded] com.macpaw.CleanMyMac.helperTool.plist 3rd-Party support link
              [not loaded] com.macpaw.CleanMyMac.trashSizeWatcher.plist 3rd-Party support link
              [not loaded] com.macpaw.CleanMyMac.volumeWatcher.plist 3rd-Party support link
              [not loaded] uk.co.markallan.clamxav.freshclam.plist 3rd-Party support link
    User Login Items:
              FaceTab Pro for Facebook
              Yoink
    Internet Plug-ins:
              FlashPlayer-10.6: Version: 12.0.0.70 - SDK 10.6 3rd-Party support link
              Flash Player: Version: 12.0.0.70 - SDK 10.6 3rd-Party support link
    Safari Extensions:
              Add To Amazon Wish List: Version: 1.4
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 2.0 - SDK 10.9
              AppleAVBAudio: Version: 203.2 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins:
              Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    User Internet Plug-ins:
              fbplugin_1_0_3: Version: (null) 3rd-Party support link
              Google Earth Web Plug-in: Version: 7.1 3rd-Party support link
    3rd Party Preference Panes:
              Connect360  3rd-Party support link
              Flash Player  3rd-Party support link
              Growl  3rd-Party support link
    Old Applications:
              Microsoft AutoUpdate:          Version: 2.3.6 - SDK 10.4 3rd-Party support link
                        /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app
              Epson Printer Utility 4:          Version: 9.17 - SDK 10.5 3rd-Party support link
                        /Library/Printers/EPSON/InkjetPrinter2/Utility/UT4/Epson Printer Utility 4.app
              /Library/Application Support/Microsoft/MERP2.0
                        Microsoft Error Reporting:          Version: 2.2.9 - SDK 10.4 3rd-Party support link
                        Microsoft Ship Asserts:          Version: 1.1.4 - SDK 10.4 3rd-Party support link
              /Users/[redacted]/Library/Application Support/Plex
                        Plex Media Server:          Version: 0.9.3.4 - SDK 10.5 3rd-Party support link
                        Plex Plug-in Installer:          Version: 1.0 - SDK 10.5 3rd-Party support link
              GrowlTunes:          Version: 1.2.2 - SDK 10.5 3rd-Party support link
              WePrint Server:          Version: 2.705 - SDK 10.4 3rd-Party support link
              HyperDesktop:          Version: 1.1 - SDK 10.0 3rd-Party support link
              iCamSource:          Version: 2.4.1 - SDK 10.4 3rd-Party support link
              SLLauncher:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Microsoft/Silverlight/OutOfBrowser/SLLauncher.app
    Time Machine:
              Skip System Files: NO
              Mobile backups: ON
              Auto backup: YES
              Volumes being backed up:
                        Macintosh HD: Disk size: 232.09 GB Disk used: 165.07 GB
              Destinations:
                        TimeMachine BackUp [Local] (Last used)
                        Total size: 247.53 GB
                        Total number of backups: 13
                        Oldest backup: 2014-02-24 19:18:34 +0000
                        Last backup: 2014-03-01 14:13:56 +0000
                        Size of backup disk: Too small
                                  Backup size 247.53 GB < (Disk used 165.07 GB X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
    Top Processes by CPU:
                   3%          WindowServer
                   1%          EtreCheck
                   1%          Folder Actions Dispatcher
                   0%          mdworker
                   0%          MenuTab Pro for Facebook
    Top Processes by Memory:
              152 MB          MenuTab Pro for Facebook
              115 MB          com.apple.WebKit.WebContent
              111 MB          mds_stores
              111 MB          Google Chrome
              98 MB          Mail
    Virtual Memory Information:
              1.04 GB          Free RAM
              1.47 GB          Active RAM
              176 MB          Inactive RAM
              660 MB          Wired RAM
              4.08 GB          Page-ins
              21 MB          Page-outs
    Also need to mention that the login items have all been disabled (though showing in these results).
    Any advice on these specific speed related issues and how to return to the "old ways" would be very much appreciated.
    Thanks in advance,
    Jon.

    Myth of the Dirty Mac
    I would un-install CleanMyMac. It has caused problems for others and in some cases has gone so far as to wreck their system.
    CleanMyMac - Uninstall
    CleanMyMac2 Un-install
    Some other things to look at/try.
    Activity Monitor - Mavericks
    Activity Monitor in Mavericks has significant changes
    Performance Guide
    Why is my computer slow
    Why your Mac runs slower than it should
    Slow Mac After Mavericks
    Things you can do to resolve slowdowns  see post by Kappy

  • My late 2008 MacBook Pro (2.53/4GB Ram) running Lion 10.7.3 seems to be running slower.  What should I do to improve performance?

    My Mac feels as if it is running slower these last couple of months.  I have thought of pursuing a commercially available "clean up" product, but thought I would try the community first and also for pointers using the Mac's own internal diagnostics or system improvement capabilities.  Any and all advice is most welcome.  I have a 250GB hard drive that is half full, I always update to latest revisions and have an extra high-speed internet connection.  Computer is not heavily loaded with apps and typically using Firefox for browsing.  (MS Office for Mac as well, but usually limited to one program such as MS Word or Excel at a time.)  No heavy graphics utilization.  Videos from the internet load slowly and some are choppy.  Even scrolling just doesn't seem "brisk".
    Thank you,
    Tom

    Disconnect all wired peripherals except keyboard, mouse, and monitor, if applicable. Launch the usual set of applications you use when you notice the slowdown.
    Step 1
    Launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Activity Monitor in the page that opens.
    Select the CPU tab. Select All Processes from the menu in the toolbar, if not already selected. Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Now select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Step 2
    Launch the Console application in the same way as above, and select “kernel.log” from the file list. Post the dozen or so most recent messages in the log – the text, please, not a screenshot. If there are repeats, please post only one example of each repeated message.

  • Mac running slow, what to do?

    My mac is running slow, what should I do to clean it up?

    Things You Can Do To Resolve Slow Downs
    If your computer seems to be running slower here are some things you can do:
    Start with visits to:     OS X Maintenance - MacAttorney;
                                      The X Lab: The X-FAQs;
                                      The Safe Mac » Mac Performance Guide;
                                      The Safe Mac » The myth of the dirty Mac;
                                      Mac maintenance Quick Assist.
    Boot into Safe Mode then repair your hard drive and permissions:
    Repair the Hard Drive and Permissions Pre-Lion
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    Repair the Hard Drive - Lion/Mountain Lion/Mavericks
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the Utilites Menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD disk icon and click on the arrow button below.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    Restart your computer normally and see if this has helped any. Next do some maintenance:
    For situations Disk Utility cannot handle the best third-party utility is Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible.
    Note: Alsoft ships DW on a bootable DVD that will startup Macs running Snow Leopard or earlier. It cannot start Macs that came with Lion or later pre-installed, however, DW will work on those models.
    Suggestions for OS X Maintenance
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or later and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive.
    Helpful Links Regarding Malware Protection
    An excellent link to read is Tom Reed's Mac Malware Guide.
    Also, visit The XLab FAQs and read Detecting and avoiding malware and spyware.
    See these Apple articles:
              Mac OS X Snow Leopard and malware detection
              OS X Lion- Protect your Mac from malware
              OS X Mountain Lion- Protect your Mac from malware
              About file quarantine in OS X
    If you require anti-virus protection I recommend using VirusBarrier Express 1.1.6 or Dr.Web Light both from the App Store. They're both free, and since they're from the App Store, they won't destabilize the system. (Thank you to Thomas Reed for these recommendations.)
    Troubleshooting Applications
    I recommend downloading a utility such as TinkerTool System, OnyX, Mavericks Cache Cleaner, or Cocktail that you can use for removing old log files and archives, clearing caches, etc. Corrupted cache, log, or temporary files can cause application or OS X crashes as well as kernel panics.
    If you have Snow Leopard or Leopard, then for similar repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. Applejack does not work with Lion and later.
    Basic Backup
    For some people Time Machine will be more than adequate. Time Machine is part of OS X. There are two components:
    1. A Time Machine preferences panel as part of System Preferences;
    2. A Time Machine application located in the Applications folder. It is
        used to manage backups and to restore backups. Time Machine
        requires a backup drive that is at least twice the capacity of the
        drive being backed up.
    Alternatively, get an external drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
      1. Carbon Copy Cloner
      2. Get Backup
      3. Deja Vu
      4. SuperDuper!
      5. Synk Pro
      6. Tri-Backup
    Visit The XLab FAQs and read the FAQ on backup and restore.  Also read How to Back Up and Restore Your Files. For help with using Time Machine visit Pondini's Time Machine FAQ for help with all things Time Machine.
    Referenced software can be found at MacUpdate.
    Additional Hints
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.
    Add more RAM. If your computer has less than 2 GBs of RAM and you are using OS X Leopard or later, then you can do with more RAM. Snow Leopard and Lion work much better with 4 GBs of RAM than their system minimums. The more concurrent applications you tend to use the more RAM you should have.
    Always maintain at least 15 GBs or 10% of your hard drive's capacity as free space, whichever is greater. OS X is frequently accessing your hard drive, so providing adequate free space will keep things from slowing down.
    Check for applications that may be hogging the CPU:
    Pre-Mavericks
    Open Activity Monitor in the Utilities folder.  Select All Processes from the Processes dropdown menu.  Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time (>=70,) then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Mavericks and later
    Open Activity Monitor in the Utilities folder.  Select All Processes from the View menu.  Click on the CPU tab in the toolbar. Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time (>=70,) then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Often this problem occurs because of a corrupted cache or preferences file or an attempt to write to a corrupted log file.

  • Macbook Pro runs slow after upgrade

    I have just upgraded to Mountain Lion 10.8.3 (from 10.6.8) on my 2011 i7 Macbook Pro.
    My computer now runs slower than ever. Boot up takes forever. Shut down takes for ever. I get constant beach ball.
    I am shocked at how horrible this OS is and though there are some "nifty" features, it runs so poorly It's hard to enjoy them.
    So my question is, is this a common issue with Mountain Lion or is it a coincidence and perhaps something is wrong with my computer?
    Thanks!

    First, back up all data immediately, as your boot drive might be failing.
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    Reset the System Management Controller.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Check your keychains in Keychain Access for excessively duplicated items.
    Otherwise, take the steps below when you notice the slowdown.
    Step 1
    Launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Activity Monitor in the icon grid.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Next, select the Disk Activity tab. Post the approximate values shown for Reads in/sec and Writes out/sec (not Reads in and Writes out.)
    Step 2
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • My mac is running slow, the spinning beach ball constantly appears. it seems that when i am in the apple store with fast wifi its a bit better. genius at the apple store checked the hard drive, it's all fine. what can it be?

    my mac is running slow, the spinning beach ball constantly appears. it seems that when i am in the apple store with fast wifi its a bit better. genius at the apple store checked the hard drive, it's all fine. what can it be? can it be a software issue with the wifi?
    also i noted that it has only been doing this since quite recently, before it was fine
    please help!

    First, back up all data immediately, as your boot drive might be failing.
    Step 1
    This diagnostic procedure will query the log for messages that may indicate a system issue. It changes nothing, and therefore will not, in itself, solve your problem.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Triple-click anywhere in the line below on this page to select it:
    syslog -k Sender kernel -k Message CReq 'GPU |hfs: Ru|I/O e|find tok|n Cause: -|NVDA\(|timed? ?o' | tail | open -ef
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key.
    The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
    A TextEdit window will open with the output of the command. Normally the command will produce no output, and the window will be empty. If the TextEdit window (not the Terminal window) has anything in it, stop here and post it — the text, please, not a screenshot. The title of the TextEdit window doesn't matter, and you don't need to post that.
    Step 2
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Reset the System Management Controller.
    Run Software Update. If there's a firmware update, install it.
    If you're booting from an aftermarket SSD, see whether there's a firmware update for it.
    If you have a portable computer, check the cycle count of the battery. It may be due for replacement.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane. See whether there's any change.
    Check your keychains in Keychain Access for excessively duplicated items.
    Boot into Recovery mode, launch Disk Utility, and run Repair Disk.
    If you have a MacBook Pro with dual graphics, disable automatic graphics switching in the Energy Saverpreference pane for better performance at the cost of shorter battery life.
    Step 3
    When you notice the problem, launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Activity Monitor in the icon grid.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the View menu or the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for User, System, and Idle at the bottom of the window.
    Select the Memory tab. What value is shown in the bottom part of the window for Swap used?
    Next, select the Disk tab. Post the approximate values shown for Reads in/sec and Writes out/sec (not Reads in andWrites out.)
    Step 4
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard by pressing the key combinationcommand-C. Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • I recently updated? to Lion from 10.6.8(snow leopard), and things seem to be running slower.  Has anyone had similar problems?  I have Feb 2011 Macbook pro 13" 2.3 Ghz.

    I recently updated? to Lion from 10.6.8(snow leopard), and things seem to be running slower.  Has anyone had similar problems?  I have Feb 2011 Macbook pro 13" 2.3 Ghz.

    As Shootist pointed out, the system uses more power.
    However, initially it will reindex the hard drive for spotlight, which will slow things down temporarily.
    It also must rebuild caches that eventually will speed things up.
    If it has completed indexing the hard drive (no dot pulsing in the spyglass), then there might be something wrong.
    Start by booting into the Recovery HD (a partition created with Lion that has Disk Utility and reinstallation options) by holding down cmd-r when you restart. You can let go when the gray screen appears.
    When it boots, select Disk Utility and Repair the drive.
    If that doesn't speed things up, try re-installing the OS from the same Recovery HD. It won't delete any of your files, but it has helped some people whose Macs ran slow after installing Lion.
    Also, how much memory do you have? Lion needs RAM so maxing your Mac out might also help.

  • Why oracle text index column taking long  time

    why oracle text index column is taking long time to return result.I created text index on a column if I run the query on a single table result is very fast.If I join table with other table (10 records only )
    it is taking long time but in explain plan it is searching by index only.
    I created this index for searching a varchar2 column,the data is comma seperated values like ( UK,US,IT,BR) and the table having records 20 lakhs.Normally if I query with like operater
    ( like '%US%' ) it is taking full table scan because I am using '%' both sides. Please help me on this regard how to search the data with less time. Here is may sample code and explain plan.
    SQL*Plus: Release 9.2.0.1.0 - Production on Wed Jan 28 16:54:22 2009
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    SQL&gt; set timing on
    SQL&gt; set linesize 180
    SQL&gt; explain plan for SELECT T.esongid FROM (SELECT A.ESONGID FROM wcmedeco.EDECO_ESONGS_TERR_CTRY 
    A WHERE CONTAINS(A.TERR_CTRY_NAMES,'US')&gt;0  
      2  GROUP BY A.ESONGID)K,T
      3  WHERE  K.ESONGID=T.ESONGID;
    Explained.
    Elapsed: 00:00:00.01
    SQL&gt; select *from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    | Id  | Operation                      |  Name                   | Rows  | Bytes | Cost  |
    |   0 | SELECT STATEMENT               |                         |     1 |    26 |     4 |
    |   1 |  NESTED LOOPS                  |                         |     1 |    26 |     4 |
    |   2 |   VIEW                         |                         |     1 |    13 |     4 |
    |   3 |    SORT GROUP BY               |                         |     1 |    89 |     4 |
    |   4 |     TABLE ACCESS BY INDEX ROWID| EDECO_ESONGS_TERR_CTRY  |     1 |    89 |     2 |
    |   5 |      DOMAIN INDEX              | IDX_TERR_CTRY_NAMES     |       |       |     0 |
    |   6 |   INDEX RANGE SCAN             | IDX_ESONGID_T           |     1 |    13 |     1 |
    PLAN_TABLE_OUTPUT
    Note: cpu costing is off, 'PLAN_TABLE' is old version
    14 rows selected.
    Elapsed: 00:00:00.00
    SQL&gt; Regards,
    Rajasekhar

    You have not formatted your code properly so we cannot see the query you're executing. Please put some line breaks in.
    Secondly, how fresh are the statistics on those tables? Are you really returning one record out of twenty million?
    Cheers, APC
    blog: http://radiofreetooting.blogspot.com

  • Gather_table_stats with a method opt of "for all indexed columns size 0"

    I have 9 databases I support that contain the same structure, and very similar data concentrations. We are seeing inconsistent performance in the different databases due to bind variable peeking.. I have tracked it down to the Min and Max values that are gathered during the analyze. I analyze from one cluster, and export/import those statistics into the other clusters.. I then go about locking down the stats gathered. Some of the statistics are on tables that contain transient data (the older data is purged, and new data gets a new PK sequence number).
    Since I am gathering statistics with a 'FOR ALL INDEXED COLUMNS SIZE 1', a min and max value are grabbed. This value is only appropriate for a short period of time, and only for a specific database. I do want oracle to know the density to help calculate, but I don't want cardinality based on whether the current bind values fall in this range..
    Example
    COLUMN PK
    When I analyze the min is 1 and max is 5. I then let the database run, and the new min is 100 and max is 105.. same number of rows, but different min/max. At first a select * from table where pk>=1 and pk <=5 would return a cardinality of 5.. Later, a seelct * from tables where pk>=100 and pk<=105 would return a cardinaility 1.
    Any ideas how to avoid this other than trying set min and max to something myself (like min =1 max = 99999999). ??

    MarkDPowell wrote:
    The Oracle documentation on bind variable peeking said it did not peek without histograms and I cannot remember ever seeing on 9.2 where the trace showed otherwise. Mark,
    see this simple test case run on 9.2.0.8. No histograms, but bind variable peeking, as you can see that the EXPLAIN PLAN output generated by AUTOTRACE differs from the estimated cardinality of the actual plan used at runtime.
    Which documentation do you refer to?
    SQL>
    SQL> alter session set nls_language = 'AMERICAN';
    Session altered.
    SQL>
    SQL> drop table bind_peek_test;
    Table dropped.
    SQL>
    SQL> create table bind_peek_test
      2  as
      3  select
      4             100 as n1
      5           , cast(dbms_random.string('a', 20) as varchar2(20)) as filler
      6  from
      7             dual
      8  connect by
      9             level <= 1000;
    Table created.
    SQL>
    SQL> exec dbms_stats.gather_table_stats(null, 'bind_peek_test', method_opt=>'FOR ALL COLUMNS SIZE 1')
    PL/SQL procedure successfully completed.
    SQL>
    SQL> variable n number
    SQL>
    SQL> variable n2 number
    SQL>
    SQL> alter system flush shared_pool;
    System altered.
    SQL>
    SQL> exec :n := 1; :n2 := 50;
    PL/SQL procedure successfully completed.
    SQL>
    SQL> set autotrace traceonly
    SQL>
    SQL> select * from bind_peek_test where n1 >= :n and n1 <= :n2;
    no rows selected
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=2 Card=1000 Bytes=24
              000)
       1    0   FILTER
       2    1     TABLE ACCESS (FULL) OF 'BIND_PEEK_TEST' (Cost=2 Card=100
              0 Bytes=24000)
    Statistics
            236  recursive calls
              0  db block gets
             35  consistent gets
              0  physical reads
              0  redo size
            299  bytes sent via SQL*Net to client
            372  bytes received via SQL*Net from client
              1  SQL*Net roundtrips to/from client
              4  sorts (memory)
              0  sorts (disk)
              0  rows processed
    SQL>
    SQL> set autotrace off
    SQL>
    SQL> select
      2             cardinality
      3  from
      4             v$sql_plan
      5  where
      6             cardinality is not null
      7  and      hash_value in (
      8    select
      9            hash_value
    10    from
    11            v$sql
    12    where
    13            sql_text like 'select * from bind_peek_test%'
    14    );
    CARDINALITY
              1
    SQL>
    SQL> alter system flush shared_pool;
    System altered.
    SQL>
    SQL> exec :n := 100; :n2 := 100;
    PL/SQL procedure successfully completed.
    SQL>
    SQL> set autotrace traceonly
    SQL>
    SQL> select * from bind_peek_test where n1 >= :n and n1 <= :n2;
    1000 rows selected.
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=2 Card=1000 Bytes=24
              000)
       1    0   FILTER
       2    1     TABLE ACCESS (FULL) OF 'BIND_PEEK_TEST' (Cost=2 Card=100
              0 Bytes=24000)
    Statistics
            236  recursive calls
              0  db block gets
            102  consistent gets
              0  physical reads
              0  redo size
          34435  bytes sent via SQL*Net to client
           1109  bytes received via SQL*Net from client
             68  SQL*Net roundtrips to/from client
              4  sorts (memory)
              0  sorts (disk)
           1000  rows processed
    SQL>
    SQL> set autotrace off
    SQL>
    SQL> select
      2             cardinality
      3  from
      4             v$sql_plan
      5  where
      6             cardinality is not null
      7  and      hash_value = (
      8    select
      9            hash_value
    10    from
    11            v$sql
    12    where
    13            sql_text like 'select * from bind_peek_test%'
    14    );
    CARDINALITY
           1000
    SQL>
    SQL> spool offRegards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Macbook pro running slow, macbook pro running slow

    Hi.  My Macbook pro is about three years old and running slower and slower.  I'm not savvy with computers.  Are there any things I can do to speed things up?

    Things You Can Do To Resolve Slow Downs
    If your computer seems to be running slower here are some things you can do:
    Start with visits to:     OS X Maintenance - MacAttorney;
                                      The X Lab: The X-FAQs;
                                      The Safe Mac » Mac Performance Guide;
                                      The Safe Mac » The myth of the dirty Mac;
                                      Mac maintenance Quick Assist.
    Boot into Safe Mode then repair your hard drive and permissions:
    Repair the Hard Drive and Permissions Pre-Lion
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    Repair the Hard Drive - Lion/Mountain Lion/Mavericks
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the Utilites Menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD disk icon and click on the arrow button below.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    Restart your computer normally and see if this has helped any. Next do some maintenance:
    For situations Disk Utility cannot handle the best third-party utility is Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible.
    Note: Alsoft ships DW on a bootable DVD that will startup Macs running Snow Leopard or earlier. It cannot start Macs that came with Lion or later pre-installed, however, DW will work on those models.
    Suggestions for OS X Maintenance
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or later and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive.
    Helpful Links Regarding Malware Protection
    An excellent link to read is Tom Reed's Mac Malware Guide.
    Also, visit The XLab FAQs and read Detecting and avoiding malware and spyware.
    See these Apple articles:
              Mac OS X Snow Leopard and malware detection
              OS X Lion- Protect your Mac from malware
              OS X Mountain Lion- Protect your Mac from malware
              About file quarantine in OS X
    If you require anti-virus protection I recommend using VirusBarrier Express 1.1.6 or Dr.Web Light both from the App Store. They're both free, and since they're from the App Store, they won't destabilize the system. (Thank you to Thomas Reed for these recommendations.)
    Troubleshooting Applications
    I recommend downloading a utility such as TinkerTool System, OnyX, Mavericks Cache Cleaner, or Cocktail that you can use for removing old log files and archives, clearing caches, etc. Corrupted cache, log, or temporary files can cause application or OS X crashes as well as kernel panics.
    If you have Snow Leopard or Leopard, then for similar repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. Applejack does not work with Lion and later.
    Basic Backup
    For some people Time Machine will be more than adequate. Time Machine is part of OS X. There are two components:
    1. A Time Machine preferences panel as part of System Preferences;
    2. A Time Machine application located in the Applications folder. It is
        used to manage backups and to restore backups. Time Machine
        requires a backup drive that is at least twice the capacity of the
        drive being backed up.
    Alternatively, get an external drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
      1. Carbon Copy Cloner
      2. Get Backup
      3. Deja Vu
      4. SuperDuper!
      5. Synk Pro
      6. Tri-Backup
    Visit The XLab FAQs and read the FAQ on backup and restore.  Also read How to Back Up and Restore Your Files. For help with using Time Machine visit Pondini's Time Machine FAQ for help with all things Time Machine.
    Referenced software can be found at MacUpdate.
    Additional Hints
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.
    Add more RAM. If your computer has less than 2 GBs of RAM and you are using OS X Leopard or later, then you can do with more RAM. Snow Leopard and Lion work much better with 4 GBs of RAM than their system minimums. The more concurrent applications you tend to use the more RAM you should have.
    Always maintain at least 15 GBs or 10% of your hard drive's capacity as free space, whichever is greater. OS X is frequently accessing your hard drive, so providing adequate free space will keep things from slowing down.
    Check for applications that may be hogging the CPU:
    Pre-Mavericks
    Open Activity Monitor in the Utilities folder.  Select All Processes from the Processes dropdown menu.  Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time (>=70,) then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Mavericks and later
    Open Activity Monitor in the Utilities folder.  Select All Processes from the View menu.  Click on the CPU tab in the toolbar. Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time (>=70,) then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Often this problem occurs because of a corrupted cache or preferences file or an attempt to write to a corrupted log file.

  • Older but upgraded MBP running slow... no obvious cause.

    Hello all and thanks in advance for anything you have to share.
    My mid-2007 15" MBP has gotten slow in basic finder functions and opening/switching/closing programs with no obvious bottleneck.  I use Activity Monitor regularly, and there is often a very low CPU load, never any RAM pressure (which I find suspicious, but I do have 6 GB installed), and I'm not running any particularly high demand software (usually Safari with a few tabs open, mail, Word or maybe Excel).
    I'm considering doing a clean install of Yosemite (currently running Mav), but I wish I knew if there were anything else causing a particular bottleneck at the moment.  If you can tell me exactly what/why I'm running slow (i.e. some hardware issue that will force me to upgrade), that's fine, I just want to know what it is.  Even as I'm typing these letters, I'm typing 2 or 3 words faster than the text appears on the screen, yet the CPU is running around 20% and RAM indicates 3.6 out of 6 GB used.
    System profile below from EtreCheck.  Thanks in advance for any help!
    Problem description:
    General slowness and lag opening programs, switching windows/programs, etc.  Not related to download speeds.  No obvious cause, processor usage and memory pressure (RAM) both appear fine/low most of the time, yet computer is just slow.
    EtreCheck version: 2.1.8 (121)
    Report generated February 15, 2015 at 10:18:22 PM EST
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook Pro (15-inch  2.4/2.2GHz) (Verified)
        MacBook Pro - model: MacBookPro3,1
        1 2.4 GHz Intel Core 2 Duo CPU: 2-core
        6 GB RAM Upgradeable
            BANK 0/DIMM0
                2 GB DDR2 SDRAM 667 MHz ok
            BANK 1/DIMM1
                4 GB DDR2 SDRAM 667 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 155
    Video Information: ℹ️
        GeForce 8600M GT     - VRAM: 256 MB
            Color LCD 1440 x 900
    System Software: ℹ️
        OS X 10.9.5 (13F34) - Time since boot: 4:44:45
    Disk Information: ℹ️
        ST9500420AS disk0 : (500.11 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Darrah's 500GB HD (disk0s2) / : 499.25 GB (43.30 GB free)
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
    USB Information: ℹ️
        Apple Inc. Built-in iSight
        Apple Inc. Bluetooth USB Host Controller
        Apple Computer Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /Library/Application Support/VirtualBox
        [loaded]    org.virtualbox.kext.VBoxDrv (4.3.12) [Click for support]
        [loaded]    org.virtualbox.kext.VBoxNetAdp (4.3.12) [Click for support]
        [loaded]    org.virtualbox.kext.VBoxNetFlt (4.3.12) [Click for support]
        [loaded]    org.virtualbox.kext.VBoxUSB (4.3.12) [Click for support]
            /Library/Extensions
        [loaded]    com.globaldelight.driver.BoomDevice (1.3 - SDK 10.9) [Click for support]
            /System/Library/Extensions
        [loaded]    com.avatron.AVExFramebuffer (1.7 - SDK 10.8) [Click for support]
        [loaded]    com.avatron.AVExVideo (1.7 - SDK 10.8) [Click for support]
        [not loaded]    com.novatelwireless.driver.3G (3.0.2) [Click for support]
        [not loaded]    com.novatelwireless.driver.DisableAutoInstall (2.0.6) [Click for support]
        [not loaded]    com.sierrawireless.driver.SierraSupport (1.4.11) [Click for support]
        [not loaded]    com.sierrawireless.driver.SierraSwitch (1.2.2) [Click for support]
        [not loaded]    com.sierrawireless.driver.SierraSwitchKicker (1.0.0) [Click for support]
        [not loaded]    com.smithmicro.driver.SMSIWirelessModem (3.2.6) [Click for support]
            /System/Library/Extensions/NovatelWireless3G.kext/Contents/PlugIns
        [not loaded]    com.novatelwireless.driver.3GData (3.0.2) [Click for support]
            /System/Library/Extensions/SMSIWirelessModem.kext/Contents/PlugIns
        [not loaded]    com.smithmicro.driver.SMSIWirelessCDC (3.2.6) [Click for support]
        [not loaded]    com.smithmicro.driver.SMSIWirelessSerial (3.2.6) [Click for support]
    Launch Agents: ℹ️
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [loaded]    com.oracle.java.Java-Updater.plist [Click for support]
        [loaded]    org.macosforge.xquartz.startx.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.google.keystone.daemon.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [loaded]    com.oracle.java.Helper-Tool.plist [Click for support]
        [loaded]    com.timesoftware.timemachineeditor.helper.plist [Click for support]
        [loaded]    org.macosforge.xquartz.privileged_startx.plist [Click for support]
        [not loaded]    org.virtualbox.startup.plist [Click for support]
        [loaded]    org.wireshark.ChmodBPF.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.citrixonline.GoToMeeting.G2MUpdate.plist [Click for support]
        [not loaded]    org.virtualbox.vboxwebsrv.plist [Click for support]
    User Login Items: ℹ️
        Flux    Application  (/Applications/Utilities/Flux.app)
        ScreenCapture    UNKNOWN  (missing value)
        AdobeResourceSynchronizer    Application Hidden (/Applications/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app)
        AirDisplayStatusItem    UNKNOWN  (missing value)
    Internet Plug-ins: ℹ️
        xo1dbrowserplugin: Version: 5.2.4.18058 [Click for support]
        o1dbrowserplugin: Version: 5.40.2.0 - SDK 10.8 [Click for support]
        Default Browser: Version: 537 - SDK 10.9
        Flip4Mac WMV Plugin: Version: 3.2.0.16   - SDK 10.8 [Click for support]
        AdobePDFViewerNPAPI: Version: 10.1.13 [Click for support]
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Click for support]
        Flash Player: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        googletalkbrowserplugin: Version: 5.40.2.0 - SDK 10.8 [Click for support]
        SharePointBrowserPlugin: Version: 14.4.7 - SDK 10.6 [Click for support]
        AdobePDFViewer: Version: 10.1.13 [Click for support]
        iPhotoPhotocast: Version: 7.0
        JavaAppletPlugin: Version: Java 8 Update 25 Check version
    User internet Plug-ins: ℹ️
        CitrixOnlineWebDeploymentPlugin: Version: 1.0.105 [Click for support]
        Unity Player: Version: UnityPlayer version 1.6.2 [Click for support]
    Safari Extensions: ℹ️
        AdBlock
        Reddit Enhancement Suite
    3rd Party Preference Panes: ℹ️
        Flash Player  [Click for support]
        Flip4Mac WMV  [Click for support]
        Java  [Click for support]
        Perian  [Click for support]
    Time Machine: ℹ️
        Skip System Files: NO
        Mobile backups: ON
        Auto backup: YES
        Volumes being backed up:
            Darrah's 500GB HD: Disk size: 499.25 GB Disk used: 455.95 GB
        Destinations:
            Data [Network]
            Total size: 2.00 TB
            Total number of backups: 86
            Oldest backup: 2013-05-26 02:24:05 +0000
            Last backup: 2015-02-16 02:17:03 +0000
            Size of backup disk: Excellent
                Backup size 2.00 TB > (Disk size 499.25 GB X 3)
    Top Processes by CPU: ℹ️
            14%    WindowServer
            13%    Safari
            10%    com.apple.WebKit.Networking
             3%    backupd
             2%    fontd
    Top Processes by Memory: ℹ️
        322 MB    Safari
        219 MB    mds_stores
        135 MB    com.apple.IconServicesAgent
        122 MB    Mail
        102 MB    com.apple.WebKit.WebContent
    Virtual Memory Information: ℹ️
        1.06 GB    Free RAM
        2.96 GB    Active RAM
        1.53 GB    Inactive RAM
        887 MB    Wired RAM
        623 MB    Page-ins
        0 B    Page-outs
    Diagnostics Information: ℹ️
        Feb 15, 2015, 05:30:56 PM    Self test - passed

    You don't have enough storage space.
    Go step by step and test.
    1. Start up in Safe Mode.
        http://support.apple.com/kb/PH11212
    2. Empty Trash.
       http://support.apple.com/kb/PH13806
    3. Disk space / Time Machine ?/ Local Snapshots
      Local backups
       http://support.apple.com/kb/ht4878
    4. Delete old iOS Devices Backup.
        iTunes > Preferences > Devices
        Highlight the old Backups , press “Delete Backup” and then “OK”.
        http://support.apple.com/kb/HT4946?viewlocale=en_US&locale=en_US
    5. Re-index Macintosh HD.
        This will take a while. Wait until it is finished.
        System Preferences > Spotlight > Privacy
        http://support.apple.com/kb/ht2409
    6.Try OmniDiskSweeper. This will give the storage size details of the items.
       https://www.omnigroup.com/more
       Select Macintosh HD and click  “Sweep Selected Drive” at the bottom.
       Delete the files yo don’t want to keep.
       Be careful. Delete only the files that can be safely be deleted.
    7. Move iTunes, iPhoto and iMovie media folders to an external drive.
        iTunes
        http://support.apple.com/en-us/HT201562
        iPhoto
        http://support.apple.com/kb/PH2506
        iMovie
        http://support.apple.com/kb/ph2289

  • APEX report running slow

    Hi
    the following query runs slow in APEX (:P10_start_date => 01-sep-08, :P10_end_date=>10-sep-08) but in pl/sql developer it takes a second only
    (11g, APEX 3.1.1) any suggestions
    select /*+ index (jane_don pre_test_idx)*/
    stud_mode, stud_nr, test_nr, pre_date,
    timestamp, wr_dur, lec_nr,
    lec_part_nr, lec_dist,
    lec_out, lec_out_in, lec_tl_nr
    from john.jane_don
    where pre_date >= to_date(:P10_start_date,'dd-mon-rrrr') and
    pre_date <= to_date(:P10_end_date,'dd-mon-rrrr')
    and test_2 = to_char(:P10_test)
    order by pre_date , timestamp, test_nr
    Mel

    Hi,
    the first thing to do when you are experiencing a slow page rendering, is to click on the debug link at the bottom of the page (you need to be logged on in the APP builder, otherwise it will not show up). If you don't see the link, you can still activate debug mode by entering YES after the fourth semicolon in the URL (unless you disabled the debugging option in the application definition in which case you need to re-enable it first), for instance:
    http://apex.oracle.com/pls/otn/f?p=38250:13:0::YES
    And you'll see the timings of each component.
    Did you already perform this action?
    Did you already identify the query as the slowest component in your page?
    May be there is some other process that is causing the delay?
    Bye,
    Flavio
    http://www.oraclequirks.com

Maybe you are looking for