Tuning- Swap issues

Hello All - Happy Spring
I was going through st02 and noticed that I am having high swaps on the CRM2007 system (Oracle 10g/Aix), particularly in the following SAP buffers:
Initial records      rsdb/ntab/irbdsize            6000
program         abap/buffersize               300000  
CUA       rsdb/cua/buffersize           3000       kB
Screen    zcsa/presentation_buffer_area 4400000    Byte
  Generic Key  zcsa/table_buffer_area        30000000    
Single record   rtbb/buffer_length            10000      kB 
Export/import  rsdb/obj/buffersize           4096 KB
PS.
when I run a check on the instance profile on the
I get a red error
E:ztta/parameter_area is smaller than default 32000 (actual is 8000)
If I increase the ztta/parameter_area would this improve the swaps issue or cause some underlying issues? 
thank you for your input and suggestions.
Edited by: thanu on Mar 27, 2008 12:58 AM

ztta/parameter_area: Buffer Size for SPA/GPA Parameters
Size of the shared memory buffer for SPA/GPA parameters
Extract from SAP Note 34533 - Error SET_PARAMETER_MEMORY_OVERFLOW
The memory area PARAMETER_MEMORY (or also the 'SPA/GPA area') is created once for each user when they log on and is used collectively by all sessions that arise from this logon. Each piece of information that is stored there can be read by all other sessions.
An important restriction: there is no synchronization mechanism between the sessions. This means that you cannot predict EXACTLY when a piece of information that has just been stored by a sesson can be read in another session. Therefore, this area must NOT be misused for data exchange. There are other means of doing this that are better suited to the purpose. If the error mentioned above occurs, it may be that an application is responding as described above by carrying out intensive data transfer using the SPA/GPA area.
Solution
If the error SET_PARAMETER_MEMORY_OVERFLOW occurs, the first approach to solving the problem should be to increase (for example double) the SPA/GPA area. To do this, increase the parameter 'ztta/parameter_area'. The new value of the parameter is only valid once you restart the system.
It is difficult to determine the minimum size of the SPA/GPA area. It depends on the variety of the applications to be run.
You can go ahead and set   ztta/parameter_area to its default size
Cheers
Shaji

Similar Messages

  • ExpressCard (PCIe) hot-swapping issue only happened in MacBook Pro 6.1

    ExpressCard (PCIe devices) with hot-swapping issue only happened in MacBook Pro 6.1. But there is no this issue at all in MacBook Pro 3.1 and MacBook Pro 5.2.
    I had tried ExpressCard to SATA2 Adapter (Silicon Image 3132 ASIC), ExpressCard to 1394 Adapter (TI XIO 2200 ASIC), ExpressCard to USB3.0 Adapter (NEC D720200 ASIC) and ExpressCard to SDXC/UHS-I Adapter (JMicron JMB389 ASIC). I had got Kernel Panic (Sytem Crashed) for ExpressCard to SATA2 Adapter, Other three devices can not be detected when we process hot-plug / hot-removal these ExpressCard (PCIe devices).
    We expect Apple can solve ExpressCard (PCIe) issue by updating EFI / OS Software. Awaiting for your kind reply~ Thanks in advance!

    http://discussions.apple.com/thread.jspa?threadID=2665060&start=0&tstart=0

  • Disk Swapping Issue: Error 1013000 loading application: Unable to Create Request Server Thread

    I am still getting the server thread issue (see earler posting), despite having increased the SERVERTHREADS parameter. We seem to hit a limit on the number of applications that can be loaded at any one time, and as soon as it is reached, the error appears. Unload a few applications and the error temporarily goes away.When looking at the disk swapping section in the "System Info" tab of the "Server Information" dialog, the status is "Enabled, File not Found". We have less than 4Gbs of memory (3,833,168), so Essbase should be able to display the swap file. The servers that we are experiencing this problem have Windows 2003 installed, with Essbase 6.5.5. The old server that does have this problem is running Windows 2000 and Essbase 6.5.5.On the compatibility section of the Hyperion web-site, they confirm that Essbase 6.5.5 and Windows 2003 will work.Any ideas, apart from installing Windows 2000, which apparently isn't an option?!Cheers,Doug

    I think I've found the problem! It seems the server team didn't set up the swap file, hence, when physical memory started to run a little low on the box, the thread could not be created. FYI, we had already increased the SERVERTHREADS option in the Essbase.cfg file.

  • SQL Tuning Advisor issue

    Hi All,
    we tried to run SQL Tuning Advisor on one of our database version 11.2.0.2 on server AIX. However on running the advisor we faced some issues with undo tablespace error due to this application was down for sometime. Can anyone please share his experience how to go about this. I have never encounter this issue before
    Thanks
    Shaan

    Hi;
    >
    we tried to run SQL Tuning Advisor on one of our database version 11.2.0.2 on server AIX. However on running the advisor we faced some issues with undo tablespace error due to this application was down for sometime. Can anyone please share his experience how to go about this. I have never encounter this issue beforeSome issues like? What is error message? What alert log mention? What have you been changed? Give more details please
    Regard
    Helios

  • 10.9.5 crash due to swapping issue

    Hello all,
    I have iMac 27" late 2012, 24GB RAM, 3TB Fusion, i7 4 cores, I am on 10.9.5 and I have experienced some hard system crash.
    It looks the system can deal absolutely fluently with apps as long as the RAM is used, but early into swapping, the RAM graph in Activity monitor turns yellow, then red, then almost instantly there is a complete crash. No keyboard no mouse worked just reboot. That has happened at about 1GB used Swap on a 3TB fusion drive with ~2.7TB free. But why? I d expect it to continue operating into the dozens of GB used swap getting only slower and slower.
    I have to admit that I tried to test the systems stability on purpose to see how it performs when swapping by opening more and more virtual machines (mostly linux) using Virtual Box.
    At the end it was 12 VMs that killed the host.
    That is not an ordinary usage I see that. My guilt !
    -> But why is there a total freeze instead of a slow-down? Looks like a bug to me that the otherwise 100% stable system cannot properly operate on swap memory. And when I say stable I mean stable. Compared to both Debian stable and Redmond OSs, Mavericks is still the winner.
    Disk check could not find any broken file system. So is all good now after the crash or should I go through the MAcHD looking for lost temporary files etc.?
    Also, how does Virtual Box on OS X 10.9.5 host deal with a complete host crash when there are guest systems running? Is there any issues to be expected to the virtual disk images like broken virtual disk file systems? How to get that straight again?
    I wonder if I did somehow "hurt" my poor iMac by hard reboot......
    Tom

    Hello all,
    I have iMac 27" late 2012, 24GB RAM, 3TB Fusion, i7 4 cores, I am on 10.9.5 and I have experienced some hard system crash.
    It looks the system can deal absolutely fluently with apps as long as the RAM is used, but early into swapping, the RAM graph in Activity monitor turns yellow, then red, then almost instantly there is a complete crash. No keyboard no mouse worked just reboot. That has happened at about 1GB used Swap on a 3TB fusion drive with ~2.7TB free. But why? I d expect it to continue operating into the dozens of GB used swap getting only slower and slower.
    I have to admit that I tried to test the systems stability on purpose to see how it performs when swapping by opening more and more virtual machines (mostly linux) using Virtual Box.
    At the end it was 12 VMs that killed the host.
    That is not an ordinary usage I see that. My guilt !
    -> But why is there a total freeze instead of a slow-down? Looks like a bug to me that the otherwise 100% stable system cannot properly operate on swap memory. And when I say stable I mean stable. Compared to both Debian stable and Redmond OSs, Mavericks is still the winner.
    Disk check could not find any broken file system. So is all good now after the crash or should I go through the MAcHD looking for lost temporary files etc.?
    Also, how does Virtual Box on OS X 10.9.5 host deal with a complete host crash when there are guest systems running? Is there any issues to be expected to the virtual disk images like broken virtual disk file systems? How to get that straight again?
    I wonder if I did somehow "hurt" my poor iMac by hard reboot......
    Tom

  • Hard drive swapping issue GE60 2OC

    So i bought this new MSI GE60 2OC laptop and the only rly negative point with it is its HDD, cause I'm used to SSD now.
    Thus i decided to upgrade the laptop with my SSD from my old laptop which is an OCZ agility 3 240g. So i plug it in my laptop nothing goes wrong just like i have done it before.
    Then i start the laptop and it goes straight into bios menu where you set boot option and such, fine i thought and checked if it was in ACHI mode,
    so i saved and exited then after i saved and exited it rebooted and went to the same bios boot menu again. now i got nervous and check all the setting and they were correct and it keeps looping like this every time u exit it the menus.
    tried several boot option and switch to legacy from UEFI then it booted but dunno if it is the correct way to do it .
    So i swapped it back to UEFI to get it back for my HDD.(Legacy boot thing might be the correct way pls say if that works, cause haven't red into it that much yet).
    Now i thought it was broken so i switched back to the HDD and it worked perfectly and i tried the same thing with my dads SSD an samsung SSD Basic 840-Series 250GB
     but got the same loop and have searched forums and so on but i have no clue why it get stuck there, it's like the laptop don't find the SSD in bios only the HDD. Any ideas of how i should proceed would be awesome.

    Hello Odeen,
    I assume you have the HDD plugged out/removed when you have your SSD inserted in the laptop? If you have plugged it in, try setting the boot order in the BIOS to HDD first!
    If you have your HDD unplugged, you are not using an MSATA but just the Sata 3 for the SSD because you only have 1 SATA slot right? The SSD doesn't have the proper Windows files and/or proper boot files to boot to Windows, therefore it boots into the boot menu (I think) You should take an bootable USB/DVD (DVD is recommended) and put the bios into UEFI mode for a Windows 8 DVD or you should put it in LEGACY mode when installing Windows 7, for Windows 7 install it's a bit harder but I have a tutorial on that topic on this forum... Let's say that you're going to install Windows 8: go to the bios and turn off secure boot and fast boot and enable the boot mode in UEFI, boot the Windows 8 DVD in UEFI mode (when seeing the MSI logo press F11) and select the boot device in the Boot Menu, now your Windows 8 Installer should load the Windows files. Select your SSD (do not format it in Windows so if you haven't done a format yet go make a Parted Magic bootable USB/DVD and do a secure-erase on the SSD (tons of tutorials about that on the interwebz) Now install Windows 8 on your SSD and there you go, Windows 8 installed on your SSD in UEFI mode. Everything should work fine from then...
    Hope I helped you out! 

  • Performance tuning related issues

    hi experts
      i am new to performance tuning application. can any one share some stuff(bw3.5& bi7)related to the concern area.send any relavent docs to my id: [email protected] .
      thanks in advance
    regards
    gavaskar
    [email protected]

    hi Gavaskar,
    check this, you can download lot of performance materials
    Business Intelligence Performance Tuning [original link is broken]
    and e-learning -> intermediate course and advance course
    https://www.sdn.sap.com/irj/sdn/developerareas/bi?rid=/webcontent/uuid/fe5b0b5e-0501-0010-cd88-c871915ec3bf [original link is broken]
    e.g
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/10b589ad-0701-0010-0299-e5c282b7aaad
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/d9fd84ad-0701-0010-d9a5-ba726caa585d
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/8e6183ad-0701-0010-e083-9ab1c6afe6f2
    performance tools in bw 3.5
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/07a4f070-0701-0010-3b91-a6bf7644c98f
    (here also you can download the presentation by righ click the disk drive icon)
    hope this helps.

  • ST02 Swaps issue

    Hi Folks,
    As per daily monotioring in ST02 i am getting swaps.Can any body advice me .Tunning the buffers is one solutiion i know this.but i am facing the problem daily .
    My Environmet:
    SAP--ECC6
    DB-ORACLE-10.2.0.2.0
    OS- AIX5.

    Hi,
    When a buffer has not sufficient free-space or free directories, it has to swap objects out of the buffer in order to load a new object on request. The column Swap shows how many objects have been swapped out since system start-up.
    Along with the useful suggestions provided by Raghu, I would do the following analysis to optimize the swaps by keeping in mind that "the performance optimization is an on going process".
    1. Analyze the Hit Ratio and Swap Counts of each memory components in ST02. Prepare and Excel Sheet and note down the memory components which are required special attention for the performance of the system
    e.g. If your PXA buffer is having more than 95% hit ration, but its showing more than 20000 swaps per day then you need to re-size it to reduce the swaps
    2. Analyze the concurrent & active User Access to the SAP System and the workload.
    3. Compare the existing Memory parameter and other dependent parameter settings (with respect to SAP system(s), Database and OS) with the recommendation suggested by SAP official Documents (Inst Guide, SAP Notes, etc..).
    3. By keeping in mind the available RAM and SWAP Space, step-by-step, Increase the space value of affected Memory components by 10% to 20% of Existing settings.
    4. If the System is configured with more work processes of same types and the all are not used at all even during peak workload (of month or of week or of year), then decrease the counts of work processes to reduce the memory usage so that we can optimize other required memory parameters with more space.
    5. If the System is having not enough resources to provide better performance due to resource bottlenecks, then One will prefer:
    - to upgrade the H/W on existing SAP System host
    - to install additional Application Server(s) (on other system with highly equipped H/W resources), to take the advantage of Log-on Load Balancing.
    Please refer these SAP Notes:
    Note 750205 - High memory usage with AIX5.2/5.3 and Oracle9.2
    Note 425207 - SAP memory management, current parameter ranges
    Note 830576 - Parameter recommendations for Oracle 10g,
    Note 146289 - Parameter Recommendations for 64-Bit SAP Kernel
    One more thing we are not taking Offline back up due to business need system continuous available.Please advice me
    Perform Consistent Online Backup (Online Backup + Redo Log Backup) and frequent Archive Log Backup.
    Regards,
    Bhavik G. Shroff

  • Tuning Related Issue

    Hi,
    Table with Primark Key constraints
    CREATE TABLE "PNE_ADM"."TB01_SUB_PROD_LIST"
    SPL_PK decimal(10) NOT NULL,
    SPL_LISTNAME varchar2(120),
    SPL_VISIBILITY_BEGINDATE date,
    SPL_VISIBILITY_ENDDATE date,
    COUNTRY_CODE char(2) NOT NULL,
    CONSTRAINT PK_TB01_SUB_PROD_LIST PRIMARY KEY (SPL_PK,COUNTRY_CODE)
    CREATE INDEX IND_11 ON TB01_SUB_PROD_LIST(COUNTRY_CODE)
    CREATE UNIQUE INDEX PK_TB01_SUB_PROD_LIST ON TB01_SUB_PROD_LIST
    SPL_PK,
    COUNTRY_CODE
    Below mentioned Query
    SQL> ed
    Wrote file afiedt.buf
    1 SELECT
    2 SPL_PK,
    3 SPL_LISTNAME,
    4 SPL_VISIBILITY_BEGINDATE,
    5 SPL_VISIBILITY_ENDDATE,
    6 COUNTRY_CODE
    7 FROM TB01_SUB_PROD_LIST
    8 WHERE SYSDATE BETWEEN SPL_VISIBILITY_BEGINDATE
    9 AND SPL_VISIBILITY_ENDDATE
    10 AND COUNTRY_CODE= 'FR'
    11* AND SPL_PK<>898
    SQL> /
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE (Cost=2 Card=12 Bytes=300)
    1 0 TABLE ACCESS (BY INDEX ROWID) OF 'TB01_SUB_PROD_LIST' (Cos
    t=2 Card=12 Bytes=300)
    2 1 INDEX (RANGE SCAN) OF 'IND_11' (NON-UNIQUE) (Cost=1 Card
    =13)
    After Tuning on that Query
    SQL> ed
    Wrote file afiedt.buf
    1 SELECT
    2 SPL_PK,
    3 SPL_LISTNAME,
    4 SPL_VISIBILITY_BEGINDATE,
    5 SPL_VISIBILITY_ENDDATE,
    6 COUNTRY_CODE
    7 FROM TB01_SUB_PROD_LIST
    8 WHERE SYSDATE BETWEEN SPL_VISIBILITY_BEGINDATE
    9 AND SPL_VISIBILITY_ENDDATE
    10 AND COUNTRY_CODE= 'FR'
    11* AND SPL_PK IN (SELECT SPL_PK FROM TB01_SUB_PROD_LIST WHERE COUNTRY_CODE= 'FR' AND SPL_PK<> 898
    SQL> /
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE (Cost=2 Card=12 Bytes=360)
    1 0 NESTED LOOPS (SEMI) (Cost=2 Card=12 Bytes=360)
    2 1 TABLE ACCESS (BY INDEX ROWID) OF 'TB01_SUB_PROD_LIST' (C
    ost=2 Card=12 Bytes=300)
    3 2 INDEX (RANGE SCAN) OF 'IND_11' (NON-UNIQUE) (Cost=1 Ca
    rd=13)
    4 1 INDEX (UNIQUE SCAN) OF 'PK_TB01_SUB_PROD_LIST' (UNIQUE)
    SQL>
    Can you suggest Me which one i will use before tuning or after tuning query
    Regards,
    Sudhakar

    Dear user,
    Simple is always better,
    So the first query is the *"right one" , because it is simple (you only query once the table)
    But sometimes Oracle choose the bad execution plan,
    So if the second query is running faster , that´s why Oracle is missing something and you should know what is it(maybe histograms missing ) and make the first and small query run faster as the second one.
    Regards
    Helio Dias
    http://heliodias.com

  • SAP swap issue

    Hi all,
    I have a SAP landscape in which the DEV and QAS are both installed on dedicated physical servers each with 8GB RAM and 32 GB configured swap.
    Suddenly on both servers I noticed a directory under root called 'SAPSWAP' containing a file named 'sapswapfile'
    with a size of approx 21 GB (21474836480).
    Can you tell me the purpose of this file?
    Best Regards,
    Drini

    HI,
    Try the following things.
    swapon  -s
    Filename                                Type            Size    Used    Priority
    /dev/mapper/VolGroup_ID_25056-LogVol0   partition       8388600 1113704 -1
    Above is the sample of swap partition but you need to check the used value of swapfile in your system.
    if the above output shows not in use of your newly created swapfile. Then follow the below steps
    swapoff /direcotry/swapfile
    remove the filr from the directory and also remove the entry from /etc/fstab file for swap location.
    run the swapon -s again to check the exisitng swap used files.
    Regards,
    Kamal

  • Weird Driver swap issue since 10.4.10 install

    hey all hows it going.
    i have a weird issue that i believe is a video driver issue. im actually a system administrator for a company so this is kind of fustrating not knowing how to fix something, so i turn to you guys!
    ok so i have a imac g5 17" pc i've had since around 2003-4 now.. and the issue is that the display keeps alternating between 800X600 to the proper native resolution by itself randomly.
    i have done a re-install of osx 10.4 and repatched to no avail, i have repaired permissions to the disc, i have started osx in safe mode and got it to rebuild the basic windows.preferences.plist file to no avail.
    and then i noticed something. the specs on my mac had changed slightly since the 10.4.10 upgrade. i have not made any upgrade changes.
    basically, this should be the video card according to apple and my receipt
    Graphics NVIDIA GeForce FX 5200 Ultra with 64MB DDR
    SDRAM with AGP 8X support
    from the website
    http://support.apple.com/specs/imac/iMac_G5.html
    looking on my "about my mac" "more.." section it states
    ATI Radeon 9600:
    Chipset Model: ATY,RV351
    Type: Display
    Bus: AGP
    Slot: AGP
    VRAM (Total): 128 MB
    Vendor: ATI (0x1002)
    Device ID: 0x4150
    Revision ID: 0x0000
    ROM Revision: 113-xxxxx-117
    Displays:
    err.. what the? i believe this COULD be the issue, no?
    so my question is, how in the world could this happen and how do i change it back or change the video driver ? please help asap!

    Thought you could use this info about getting FireWire to work!
    First, you should always Repair Permissions in Disk Utility before and after any update; I would do that now. If you installed your update with FireWire plugged in, your Mac may not recognize it anymore.
    Try resetting your FireWire ports by disconnecting all FW devices, shut down your Mac and unplug it from AC power (wall socket) for 30 minutes. plug it back in and try FW.
    If that did'nt work, download the combo update from this site (yours may be corrupt), not Software Update, disconnect all firewire + USB devices except keyboard + mouse, Repair Permissions, re-install update, Repair Permissions again + try. Yours is the 10.4.6 Combo update. Others reading, download the Combo that applies to your system.
    If that still did'nt get it Zap the PRAM. While restarting Mac hold down the following key combo Command-Option-P-R. Keep holding those keys down till you hear the second start-up chime, then release.
    For those of you with Macs that are not PowerBooks or iBooks, a bad internal battery can cause FireWire to not be recognized, so make sure it's good!
    Good Luck!
    Cheers!
    DALE

  • Complex query tuning - optimalisation issue

    Hi folks,
    in our database I found view that takes too long to run and I would like to to tune it up as much as possible.
    Here is a query from view and some statistics:
    1. Query:
    select
      /*+ ORDERED */
      n.shrtckn_pidm,
      i.spriden_id,
      i.spriden_first_name,
      i.spriden_last_name,
      n.shrtckn_term_code,
      n.shrtckn_seq_no,
      n.shrtckn_crn,
      n.shrtckn_subj_code,
      n.shrtckn_crse_numb,
      decode(n.shrtckn_long_course_title, null, n.shrtckn_crse_title, n.shrtckn_long_course_title),
      n.shrtckn_coll_code,
      n.shrtckn_camp_code,
      n.shrtckn_dept_code,
      n.shrtckn_repeat_course_ind,
      n.shrtckn_ptrm_code,
      a.shrtckg_grde_code_final,
      a.shrtckg_credit_hours,
      a.shrtckg_gchg_code,
      a.shrtckg_gcmt_code,
      a.shrtckg_final_grde_chg_date,
      a.shrtckg_final_grde_chg_user,
      r.shrgcom_name,
      r.shrgcom_min_pass_score,
      k.shrmrks_score,
      k.shrmrks_percentage,
      k.shrmrks_grde_code,
      k.shrmrks_marker,
      mk.spriden_id,
      mk.spriden_first_name,
      mk.spriden_last_name,
      mkpers.spbpers_name_prefix,
      g.sgbstdn_program_1,
      g.sgbstdn_majr_code_1,
      g.sgbstdn_degc_code_1,
      l.shrtckl_levl_code
    from
      spriden i,
        select distinct
          shrmrks_pidm,
          shrmrks_term_code,
          shrmrks_crn,
          shrmrks_gcom_id,
          shrmrks_score,
          shrmrks_percentage,
          shrmrks_grde_code,
          shrmrks_marker
        from
          shrmrks
      ) k,
      spriden mk,
      spbpers mkpers,
      shrtckn n,
      sgbstdn g,
      shrtckg a,
      shrtckl l,
      shrgcom r
    where
        n.shrtckn_pidm = i.spriden_pidm
    and i.spriden_change_ind is null
    and
        k.shrmrks_marker = mk.spriden_pidm (+)
    and mk.spriden_change_ind is null
    and mk.spriden_pidm = mkpers.spbpers_pidm (+)
    and
        n.shrtckn_crn = k.shrmrks_crn (+)
    and n.shrtckn_term_code = k.shrmrks_term_code (+)
    and n.shrtckn_pidm = k.shrmrks_pidm (+)
    and
        n.shrtckn_pidm = g.sgbstdn_pidm              
    and g.sgbstdn_term_code_eff = (select max(sgbstdn_term_code_eff)
                                     from sgbstdn b
                                    where b.sgbstdn_pidm = g.sgbstdn_pidm
                                      and b.sgbstdn_term_code_eff <= n.shrtckn_term_code
    and
        n.shrtckn_pidm = a.shrtckg_pidm
    and n.shrtckn_term_code = a.shrtckg_term_code
    and n.shrtckn_seq_no = a.shrtckg_tckn_seq_no
    and
        a.shrtckg_seq_no = ( select max(shrtckg_seq_no)
                               from shrtckg b
                              where b.shrtckg_pidm = a.shrtckg_pidm
                                and b.shrtckg_term_code = a.shrtckg_term_code
                                and b.shrtckg_tckn_seq_no = a.shrtckg_tckn_seq_no)
    and
        n.shrtckn_pidm = l.shrtckl_pidm
    and n.shrtckn_term_code = l.shrtckl_term_code
    and n.shrtckn_seq_no = l.shrtckl_tckn_seq_no
    and l.shrtckl_primary_levl_ind = 'Y'
    and
        k.shrmrks_crn = r.shrgcom_crn (+)                  
    and k.shrmrks_term_code = r.shrgcom_term_code (+)    
    and k.shrmrks_gcom_id = r.shrgcom_id (+)2. Explain plain result:
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    | Id  | Operation                      |  Name              | Rows  | Bytes |TempSpc| Cost  |
    |   0 | SELECT STATEMENT               |                    |   132 | 45144 |       |  6380 |
    |*  1 |  FILTER                        |                    |       |       |       |       |
    |*  2 |   HASH JOIN OUTER              |                    |   132 | 45144 |       |  5852 |
    |*  3 |    HASH JOIN                   |                    |   132 | 41712 |       |  5825 |
    |*  4 |     HASH JOIN                  |                    |  1177 |   340K|   840K|  5745 |
    |   5 |      TABLE ACCESS FULL         | SHRTCKG            | 13533 |   674K|       |    88 |
    |*  6 |      HASH JOIN                 |                    | 43068 |    10M|   728K|  5364 |
    PLAN_TABLE_OUTPUT
    |   7 |       TABLE ACCESS FULL        | SGBSTDN            | 15794 |   539K|       |    58 |
    |*  8 |       HASH JOIN OUTER          |                    |   285K|    57M|    58M|  3735 |
    |*  9 |        FILTER                  |                    |       |       |       |       |
    |* 10 |         HASH JOIN OUTER        |                    |       |       |       |       |
    |* 11 |          HASH JOIN OUTER       |                    |   219K|    35M|    10M|  1087 |
    |* 12 |           HASH JOIN            |                    | 75961 |  9940K|  1336K|   459 |
    |* 13 |            INDEX FAST FULL SCAN| SPRIDEN_KEY_INDEX  | 31078 |   971K|       |     5 |
    |  14 |            TABLE ACCESS FULL   | SHRTCKN            | 57571 |  5734K|       |   132 |
    |  15 |           VIEW                 |                    |   128K|  4505K|       |   205 |
    |  16 |            TABLE ACCESS FULL   | SHRMRKS            |   128K|  4505K|       |   205 |
    |  17 |          INDEX FAST FULL SCAN  | SPRIDEN_KEY_INDEX  | 59171 |  1849K|       |     5 |
    PLAN_TABLE_OUTPUT
    |  18 |        TABLE ACCESS FULL       | SPBPERS            | 30247 |   236K|       |    44 |
    |* 19 |     TABLE ACCESS FULL          | SHRTCKL            | 57571 |  1124K|       |    41 |
    |  20 |    TABLE ACCESS FULL           | SHRGCOM            | 11762 |   298K|       |    25 |
    |  21 |   SORT AGGREGATE               |                    |     1 |    12 |       |       |
    |  22 |    FIRST ROW                   |                    |     1 |    12 |       |     2 |
    |* 23 |     INDEX RANGE SCAN (MIN/MAX) | PK_SGBSTDN         | 15794 |       |       |     2 |
    |  24 |   SORT AGGREGATE               |                    |     1 |    18 |       |       |
    |  25 |    FIRST ROW                   |                    |     1 |    18 |       |     2 |
    |* 26 |     INDEX RANGE SCAN (MIN/MAX) | PK_SHRTCKG         | 67664 |       |       |     2 |
    PLAN_TABLE_OUTPUT
    Predicate Information (identified by operation id):
       1 - filter("SYS_ALIAS_1"."SGBSTDN_TERM_CODE_EFF"= (SELECT /*+ */
                  MAX("B"."SGBSTDN_TERM_CODE_EFF") FROM "SATURN"."SGBSTDN" "B" WHERE
                  "B"."SGBSTDN_TERM_CODE_EFF"<=:B1 AND "B"."SGBSTDN_PIDM"=:B2) AND
                  "SYS_ALIAS_5"."SHRTCKG_SEQ_NO"= (SELECT /*+ */ MAX("B"."SHRTCKG_SEQ_NO") FROM
                  "SATURN"."SHRTCKG" "B" WHERE "B"."SHRTCKG_TCKN_SEQ_NO"=:B3 AND "B"."SHRTCKG_TERM_CODE"=:B4
                  AND "B"."SHRTCKG_PIDM"=:B5))
       2 - access("K"."SHRMRKS_CRN"="R"."SHRGCOM_CRN"(+) AND
                  "K"."SHRMRKS_TERM_CODE"="R"."SHRGCOM_TERM_CODE"(+) AND
    PLAN_TABLE_OUTPUT
                  "K"."SHRMRKS_GCOM_ID"="R"."SHRGCOM_ID"(+))
       3 - access("SYS_ALIAS_2"."SHRTCKN_PIDM"="L"."SHRTCKL_PIDM" AND
                  "SYS_ALIAS_2"."SHRTCKN_TERM_CODE"="L"."SHRTCKL_TERM_CODE" AND
                  "SYS_ALIAS_2"."SHRTCKN_SEQ_NO"="L"."SHRTCKL_TCKN_SEQ_NO")
       4 - access("SYS_ALIAS_2"."SHRTCKN_PIDM"="SYS_ALIAS_5"."SHRTCKG_PIDM" AND
                  "SYS_ALIAS_2"."SHRTCKN_TERM_CODE"="SYS_ALIAS_5"."SHRTCKG_TERM_CODE" AND
                  "SYS_ALIAS_2"."SHRTCKN_SEQ_NO"="SYS_ALIAS_5"."SHRTCKG_TCKN_SEQ_NO")
       6 - access("SYS_ALIAS_2"."SHRTCKN_PIDM"="SYS_ALIAS_1"."SGBSTDN_PIDM")
       8 - access("MK"."SPRIDEN_PIDM"="MKPERS"."SPBPERS_PIDM"(+))
       9 - filter("MK"."SPRIDEN_CHANGE_IND" IS NULL)
      10 - access("K"."SHRMRKS_MARKER"="MK"."SPRIDEN_PIDM"(+))
    PLAN_TABLE_OUTPUT
      11 - access("SYS_ALIAS_2"."SHRTCKN_CRN"="K"."SHRMRKS_CRN"(+) AND
                  "SYS_ALIAS_2"."SHRTCKN_TERM_CODE"="K"."SHRMRKS_TERM_CODE"(+) AND
                  "SYS_ALIAS_2"."SHRTCKN_PIDM"="K"."SHRMRKS_PIDM"(+))
      12 - access("SYS_ALIAS_2"."SHRTCKN_PIDM"="I"."SPRIDEN_PIDM")
      13 - filter("I"."SPRIDEN_CHANGE_IND" IS NULL)
      19 - filter("L"."SHRTCKL_PRIMARY_LEVL_IND"='Y')
      23 - access("B"."SGBSTDN_PIDM"=:B1 AND "B"."SGBSTDN_TERM_CODE_EFF"<=:B2)
      26 - access("B"."SHRTCKG_PIDM"=:B1 AND "B"."SHRTCKG_TERM_CODE"=:B2 AND
                  "B"."SHRTCKG_TCKN_SEQ_NO"=:B3)
    Note: cpu costing is off3. Result from tkprof
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.03       0.05          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch     7175     38.64      73.01      49848     228256          0      107603
    total     7177     38.68      73.06      49848     228256          0      107603
    Misses in library cache during parse: 1
    Optimizer goal: RULE
    Parsing user id: 1265 
    Rows     Row Source Operation
    107603  FILTER 
    392490   HASH JOIN OUTER
    392490    HASH JOIN 
    392490     HASH JOIN 
      67680      TABLE ACCESS FULL SHRTCKG
    332440      HASH JOIN 
      16027       TABLE ACCESS FULL SGBSTDN
    107603       HASH JOIN OUTER
    107603        FILTER 
    108407         HASH JOIN OUTER
    107603          HASH JOIN OUTER
      57587           HASH JOIN 
      31166            INDEX FAST FULL SCAN SPRIDEN_KEY_INDEX (object id 205871)
      57587            TABLE ACCESS FULL SHRTCKN
    128187           VIEW 
    128187            TABLE ACCESS FULL SHRMRKS
      59357          INDEX FAST FULL SCAN SPRIDEN_KEY_INDEX (object id 205871)
      30320        TABLE ACCESS FULL SPBPERS
      57587     TABLE ACCESS FULL SHRTCKL
      11764    TABLE ACCESS FULL SHRGCOM
    102976   SORT AGGREGATE
    102976    FIRST ROW 
    102976     INDEX RANGE SCAN (MIN/MAX) PK_SGBSTDN (object id 204900)
    106194   SORT AGGREGATE
    106194    FIRST ROW 
    106194     INDEX RANGE SCAN (MIN/MAX) PK_SHRTCKG (object id 205100)
    select o.owner#,o.name,o.namespace,o.remoteowner,o.linkname,o.subname,
      o.dataobj#,o.flags
    from
    obj$ o where o.obj#=:1
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        2      0.00       0.00          0          0          0           0
    Execute      5      0.00       0.00          0          0          0           0
    Fetch        5      0.00       0.01          1         15          0           5
    total       12      0.00       0.01          1         15          0           5
    Misses in library cache during parse: 1
    Optimizer goal: RULE
    Parsing user id: SYS   (recursive depth: 1)
    DELETE FROM PLAN_TABLE
    WHERE
    STATEMENT_ID=:1
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        2      0.00       0.00          0          0          0           0
    Execute      2      0.01       0.08         11        276         31          27
    Fetch        0      0.00       0.00          0          0          0           0
    total        4      0.01       0.09         11        276         31          27
    Misses in library cache during parse: 1
    Optimizer goal: RULE
    Parsing user id: 1265 
    Rows     Row Source Operation
          0  DELETE 
          0   TABLE ACCESS FULL PLAN_TABLE
    EXPLAIN PLAN SET STATEMENT_ID='PLUS535579' FOR select
      /*+ ORDERED */
      n.shrtckn_pidm,
      i.spriden_id,
      i.spriden_first_name,
      i.spriden_last_name,
      n.shrtckn_term_code,
      n.shrtckn_seq_no,
      n.shrtckn_crn,
      n.shrtckn_subj_code,
      n.shrtckn_crse_numb,
      decode(n.shrtckn_long_course_title, null, n.shrtckn_crse_title, n.shrtckn_long_course_title),
      n.shrtckn_coll_code,
      n.shrtckn_camp_code,
      n.shrtckn_dept_code,
      n.shrtckn_repeat_course_ind,
      n.shrtckn_ptrm_code,
      a.shrtckg_grde_code_final,
      a.shrtckg_credit_hours,
      a.shrtckg_gchg_code,
      a.shrtckg_gcmt_code,
      a.shrtckg_final_grde_chg_date,
      a.shrtckg_final_grde_chg_user,
      r.shrgcom_name,
      r.shrgcom_min_pass_score,
      k.shrmrks_score,
      k.shrmrks_percentage,
      k.shrmrks_grde_code,
      k.shrmrks_marker,
      mk.spriden_id,
      mk.spriden_first_name,
      mk.spriden_last_name,
      mkpers.spbpers_name_prefix,
      g.sgbstdn_program_1,
      g.sgbstdn_majr_code_1,
      g.sgbstdn_degc_code_1,
      l.shrtckl_levl_code
    from
      spriden i,
        select distinct
          shrmrks_pidm,
          shrmrks_term_code,
          shrmrks_crn,
          shrmrks_gcom_id,
          shrmrks_score,
          shrmrks_percentage,
          shrmrks_grde_code,
          shrmrks_marker
        from
          shrmrks
      ) k,
      spriden mk,
      spbpers mkpers,
      shrtckn n,
      sgbstdn g,
      shrtckg a,
      shrtckl l,
      shrgcom r
    where
        n.shrtckn_pidm = i.spriden_pidm
    and i.spriden_change_ind is null
    and
        k.shrmrks_marker = mk.spriden_pidm (+)
    and mk.spriden_change_ind is null
    and mk.spriden_pidm = mkpers.spbpers_pidm (+)
    and
        n.shrtckn_crn = k.shrmrks_crn (+)
    and n.shrtckn_term_code = k.shrmrks_term_code (+)
    and n.shrtckn_pidm = k.shrmrks_pidm (+)
    and
        n.shrtckn_pidm = g.sgbstdn_pidm               -- was joined to i.spriden_pidm
    and g.sgbstdn_term_code_eff = (select max(sgbstdn_term_code_eff)
                                     from sgbstdn b
                                    where b.sgbstdn_pidm = g.sgbstdn_pidm
                                      and b.sgbstdn_term_code_eff <= n.shrtckn_term_code
    and
        n.shrtckn_pidm = a.shrtckg_pidm
    and n.shrtckn_term_code = a.shrtckg_term_code
    and n.shrtckn_seq_no = a.shrtckg_tckn_seq_no
    and
        a.shrtckg_seq_no = ( select max(shrtckg_seq_no)
                               from shrtckg b
                              where b.shrtckg_pidm = a.shrtckg_pidm
                                and b.shrtckg_term_code = a.shrtckg_term_code
                                and b.shrtckg_tckn_seq_no = a.shrtckg_tckn_seq_no)
    and
        n.shrtckn_pidm = l.shrtckl_pidm
    and n.shrtckn_term_code = l.shrtckl_term_code
    and n.shrtckn_seq_no = l.shrtckl_tckn_seq_no
    and l.shrtckl_primary_levl_ind = 'Y'
    and
        k.shrmrks_crn = r.shrgcom_crn (+)                   -- was joined to n instead of k
    and k.shrmrks_term_code = r.shrgcom_term_code (+)       -- was joined to n instead of k
    and k.shrmrks_gcom_id = r.shrgcom_id (+)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.03       0.03          0          0          0           0
    Execute      1      0.01       0.01          0          0          0           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.05       0.05          0          0          0           0
    Misses in library cache during parse: 1
    Optimizer goal: RULE
    Parsing user id: 1265 
    insert into plan_table (statement_id, timestamp, operation, options,
      object_node, object_owner, object_name, object_instance, object_type,
      search_columns, id, parent_id, position, other,optimizer, cost, cardinality,
       bytes, other_tag, partition_start, partition_stop, partition_id,
      distribution, cpu_cost, io_cost, temp_space, access_predicates,
      filter_predicates )
    values
    (:1,SYSDATE,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13,:14,:15,:16,:17,:18,:19,
      :20,:21,:22,:23,:24,:25,:26,:27)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute     27      0.02       0.05          0          3         27          27
    Fetch        0      0.00       0.00          0          0          0           0
    total       28      0.02       0.05          0          3         27          27
    Misses in library cache during parse: 1
    Misses in library cache during execute: 2
    Optimizer goal: RULE
    Parsing user id: 1265     (recursive depth: 1)
    select o.name, u.name
    from
    sys.obj$ o, sys.user$ u where obj# = :1 and owner# = user#
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      0      0.00       0.00          0          0          0           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        1      0.00       0.00          0          0          0           0
    Misses in library cache during parse: 1
    Parsing user id: SYS   (recursive depth: 1)
    SELECT ID ID_PLUS_EXP,PARENT_ID PARENT_ID_PLUS_EXP,LPAD(' ',2*(LEVEL-1))
      ||OPERATION||DECODE(OTHER_TAG,NULL,'','*')||DECODE(OPTIONS,NULL,'','
      ('||OPTIONS||')')||DECODE(OBJECT_NAME,NULL,'',' OF '''||OBJECT_NAME||'''')
      ||DECODE(OBJECT_TYPE,NULL,'',' ('||OBJECT_TYPE||')')||DECODE(ID,0,
      DECODE(OPTIMIZER,NULL,'',' Optimizer='||OPTIMIZER))||DECODE(COST,NULL,'','
      (Cost='||COST||DECODE(CARDINALITY,NULL,'',' Card='||CARDINALITY)
      ||DECODE(BYTES,NULL,'',' Bytes='||BYTES)||')') PLAN_PLUS_EXP,OBJECT_NODE
      OBJECT_NODE_PLUS_EXP
    FROM
    PLAN_TABLE START WITH ID=0 AND STATEMENT_ID=:1 CONNECT BY PRIOR ID=PARENT_ID
      AND STATEMENT_ID=:1 ORDER BY ID,POSITION
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        3      0.01       0.02          0        543          0          27
    total        5      0.02       0.02          0        543          0          27
    Misses in library cache during parse: 1
    Optimizer goal: RULE
    Parsing user id: 1265 
    Rows     Row Source Operation
         27  SORT ORDER BY
         27   CONNECT BY WITH FILTERING
          1    FILTER 
        342     TABLE ACCESS FULL PLAN_TABLE
         26    NESTED LOOPS 
         27     BUFFER SORT
         27      CONNECT BY PUMP 
         26     TABLE ACCESS FULL PLAN_TABLE
          0    TABLE ACCESS FULL PLAN_TABLE
    SELECT ID ID_PLUS_EXP,OTHER_TAG OTHER_TAG_PLUS_EXP,OTHER OTHER_PLUS_EXP
    FROM
    PLAN_TABLE WHERE STATEMENT_ID=:1 AND OTHER_TAG IS NOT NULL ORDER BY ID
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          0        138          0           0
    total        3      0.00       0.00          0        138          0           0
    Misses in library cache during parse: 1
    Optimizer goal: RULE
    Parsing user id: 1265 
    Rows     Row Source Operation
          0  SORT ORDER BY
          0   TABLE ACCESS FULL PLAN_TABLE
    ALTER SESSION SET SQL_TRACE = false
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          0          0           0
    Misses in library cache during parse: 1
    Optimizer goal: RULE
    Parsing user id: 1265 
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        7      0.08       0.10          0          0          0           0
    Execute      8      0.02       0.12         11        276         31          27
    Fetch     7179     38.66      73.03      49848     228937          0      107630
    total     7194     38.77      73.26      49859     229213         31      107657
    Misses in library cache during parse: 6
    Misses in library cache during execute: 1
    OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        4      0.00       0.00          0          0          0           0
    Execute     32      0.02       0.05          0          3         27          27
    Fetch        5      0.00       0.01          1         15          0           5
    total       41      0.03       0.07          1         18         27          32
    Misses in library cache during parse: 3
    Misses in library cache during execute: 2
        9  user  SQL statements in session.
        3  internal SQL statements in session.
       12  SQL statements in session.
        0  statements EXPLAINed in this session.Can anybody help me with optimalisation of this query?
    Thanks,
    Tomas
    Sorry for so long post, but I tried to provide all information that I can obtain and that could be usefull.

    Hi, thanks for replyings.
    - You are waiting more than 34 seconds. If you do a
    "alter session set events '10046, trace name context
    forever, level 8'", you could see what it is you are
    waiting for.What command should I run exactly? Any link with examples and explanation?
    SQL> alter session set events '10046, trace name context forever, level8';
    ERROR:
    ORA-02194: event specification syntax error 230 (minor error 211) near ','
    - You could get rid of the subqueries, using analytic
    functions, to avoid a second table access for two
    tablesWhat analytic function do you have in mind?
    - You seem to be using the rule based optimizer, so
    it seems your tables are not analyzed. Using the cost
    based optimizer is the preferred way since Oracle 8.
    Although I doubt this will speed up your query.Yes you're right, in database is rule based optimizer used. We re-analyzed tables in DB. I asked DBA guys if we can switch it to the cost based optimizer, but from some other reasons we can't. So I want to use some COST hint for this query. Which one should I use? Or just leave it to choose database /*+ CHOOSE */ ?
    But most important of all: what is your expected
    performance for this query?Oh yeah, very good question. At the moment, this query is used in view that is used quite often from many other queries. In pre-production (and production) database there is much more rows so executing statement e.g. like "select count(*) from view_name" takes more then 100sec. If other queries are calling this view it takes much much more longer to execute whole query (even if this query performs some other statistics calculations).
    Many thanks,
    Tomas

  • Late-2008 Macbook Pro Hard Drive Swap Issues

    I recently bought a new WD Scorpio 500 mb internal hard drive and I was in the process of restoring things from my external hard drive. At the very end of the restoration, the prompt to restart my macbook pro came up on the screen so I went ahead with the restart. After restarting, however, the apple logo would show but after a few seconds a prompt appears saying that my computer needs to restart. This has occurred ever time after restarting so now I'm confused as to what I did wrong. Please HELP!!!

    Kernel Panic:
    http://support.apple.com/kb/HT1392

  • Tuning off issues: please help

    Please help!!
    I have had my nano for a week now and was working until last night. When I select the music folder, it turns off and shows the apple logo. What do I have to do to fix this??
    Please help
    iPod nano   Windows XP  

    Hi Cmart7,
    Welcome to Apple Discussions
    You might want to look at Knowledge Base Document #61584 goes over When the iPod Only Shows an Apple Logo and Doesn't Start Up. You might also want to look at "The Five Rs", which are the main troubleshooting procedures.
    Jon

  • ICal colour swapping issue

    Anyone else experiencing iCal switching the calendar colours? It's happening across all 3 of my platforms (iPad, iMac and iPhone)
    Any solutions?

    Yes, there are at least 2 other threads discussing the same problem. This seems to be happening to a lot of people, including me. I have only seen one possible fix (trashing the preference file and starting over), but this seems to be a widespread problem and not one involving personal preferences.

Maybe you are looking for

  • I can no longer view PDFs on my computer.

    Recently, I'm no longer able to read PDFs.  I get a blank black screen stating to download adobe reader or adobe acrobat.  I've done both an still cannot read PDFs in safari or firefox. Any suggestions...

  • Using a variable for Lesson Title: How do I insert an alt symbol (TM)?

    HI All, I am using a project variable to diplay the title in small sub-titles on each page of a Cap4 module. But....I need to insert a trademark symbol after one of the names in the title. Does anyone know how I can insert a symbol when defining a va

  • Apple will not let me update my HP Scanner 8300 and will not update it from it's own sources.

    I updated my HP Scanjet 8300 a few weeks ago after I received a message on my computer that updates for printer & scanner were available.  I have had nothing but trouble since then with the scanner.  I also inherited the Trovi virus after that update

  • F-44 profit center clearing does not working

    By using T.Code o7F1 I have activated the field Profit Center Field in Additinal Selections Criteria for F-44 (Vendor Clearing), F-32 (Customer clearing) and F-03 (Gl Account Clearing). When I am doing clearng by giving profit center clearing option,

  • [JS] how to package an InDesign document

    I am trying to script the packaging of InDesign files. function packageForPrint (to, copyingFonts, copyingLinkedGraphics, copyingProfiles, updatingGraphics, ignorePreflightErrors, creatingReport, versionComments, forceSave){ app.activeDocument.packag