[SOLVED] Pacman Performance Issue

Hey everybody:
I have a weird performance problem with pacman.  When I tell it to download something, it works fine when it is finding the package, figuring out dependencies, and processing the command.
Then, when it gets to downloading, it'll take a few to several minutes to start downloading a package, download it at a normal/acceptable speed, then take a few to several minutes to start downloading the next package.
I'm not sure what's causing this problem but I could see this beeing a nuissance for upgrades and things like that.  Or right now, because it's a fresh install and I'm trying to install Gnome, lol.  This behavior is also experienced when I'm updating the mirrors (pacman -Syy).
I'm going to let it run overnight where it'll probably be done by the time I get back to work in the morning, but this seems like there's something wrong because I just tried on my laptop (on the same LAN) and it works as fast as I'd ever seen it.  In the past, I've never done any optimization or mirror ranking and I haven't experienced this issue before.
Thanks!
Last edited by mrmylanman (2011-06-03 12:41:45)

Well, the install on the desktop was brand new, but they were both working from the same (default) mirror list.  I commented out the first few entries, as well as archlinux.org and a few others that seemed far away from their names, and tried it again.  Same issue.
I thought it might be an issue with the DNS servers, so I tried pinging google, yahoo, and like xmission and a few others that it may not have cached and they all got resolved pretty quick.
Seems very strange.  I remember yum being extremely slow, now that I think about it, but I used Fedora last about 3 years ago now (this was a different building and different internet plan at the time).  Apt seemed quick enough (since Fedora I have been dual-booting Windows and Debian).
We have a fiber optic connection at work, not particularly fast at download but has good upload (more important for us), and we have a local DNS caching server.  It has caused some problems before, but it seems to have been behaving today (and for several months now).
Thanks again, love the forums and I'm glad to be getting Debian off my work PC (strange as it is, I'm more comfortable with Arch now than I am with Debian).
Last edited by mrmylanman (2011-06-02 22:37:02)

Similar Messages

  • [SOLVED] Pacman Upgrade Issue

    Hello,
    I upgraded Pacman to the latest version and I may have messed up the .pacnew files, not sure.  Anyhow here's the issue I'm currently facing:
    [richard@rh-laptop ~]$ su root
    Password:
    [root@rh-laptop richard]# pacman -Syu
    :: Synchronizing package databases...
    core is up to date
    extra is up to date
    community is up to date
    :: Starting full system upgrade...
    warning: cpufrequtils: forcing upgrade to version 004-1
    warning: iproute: forcing upgrade to version 2.6.25-1
    warning: vlc: forcing upgrade to version 0.8.6i-3
    warning: xf86-video-vesa: forcing upgrade to version 1.3.0-6
    resolving dependencies...
    warning: provider package was selected (giflib provides libungif)
    looking for inter-conflicts...
    Targets (155): a52dec-0.7.4-4  gpm-1.20.5-1  aalib-1.4rc5-5  apr-1.3.2-2 
                   gcc-libs-4.3.1-3  pcre-7.7-2  glib2-2.16.5-1  avahi-0.6.23-1 
                   bash-3.2.039-2  bzip2-1.0.5-3  cdparanoia-10.1-1 
                   zlib-1.2.3.3-2  file-4.25-1  cdrkit-1.1.8-1  cpufrequtils-004-1 
                   desktop-file-utils-0.15-1  gnome-desktop-2.22.3-1  eog-2.22.3-1 
                   esd-0.2.39-1  gnome-keyring-2.22.3-1  gnutls-2.4.1-1 
                   heimdal-1.2-1  libpng-1.2.29-1  libcups-1.3.8-2 
                   randrproto-1.2.2-1  libxrandr-1.2.3-1  freetype2-2.3.7-1 
                   fontconfig-2.6.0-2  libxft-2.1.13-1  pango-1.20.5-1 
                   gtk2-2.12.11-3  poppler-0.8.4-1  poppler-glib-0.8.4-1 
                   evince-2.22.2-3  libsoup-2.4.1-2 
                   evolution-data-server-2.22.3-2  faad2-2.6.1-1 
                   filesystem-2008.07-1  fakeroot-1.9.5-1  lame-3.98-1 
                   x264-20080625-1  ffmpeg-20080715-3  file-roller-2.22.4-1 
                   wxgtk-2.8.8-1  filezilla-3.1.1.1-1  hunspell-1.2.6-1 
                   xulrunner-1.9.0.1-2  mime-types-1.0-1  firefox-3.0.1-2 
                   flex-2.5.35-1  gail-1.22.3-1  gcalctool-5.22.3-1  gcc-4.3.1-3 
                   ghostscript-8.63-3  libgtop-2.22.3-1  libgksu-2.0.7-1 
                   gksu-2.0.0-3  glibmm-2.16.4-2  gnash-common-0.8.3-3 
                   gucharmap-2.22.3-1  xorg-xkb-utils-7.3-1 
                   xkeyboard-config-1.3-1  libxklavier-3.6-1  libgnomekbd-2.22.0-2 
                   gnome-applets-2.22.3-1  gstreamer0.10-good-plugins-0.10.8-3 
                   gnome-media-2.22.0-2  gnome-session-2.22.3-1 
                   smbclient-3.0.30-2  gnome-vfs-2.22.0-4  libwnck-2.22.3-1 
                   gnome-system-monitor-2.22.3-1  gnome-terminal-2.22.3-1 
                   gtk-engines-2.14.3-1  gtksourceview2-2.2.2-1 
                   libgphoto2-2.4.2-1  gvfs-0.2.5-2  hdparm-8.9-1 
                   icon-naming-utils-0.8.7-1  imagemagick-6.4.2.7-1 
                   initscripts-2008.08-1  iproute-2.6.25-1  jre-6u7-1 
                   kernel-headers-2.6.25.8-1  module-init-tools-3.4-1 
                   kernel26-2.6.26.2-1  klibc-1.5-6  klibc-extras-2.4-2 
                   klibc-kbd-1.15.20080312-6  klibc-module-init-tools-3.4-1 
                   klibc-udev-116-4  lib32-zlib-1.2.3.3-2  lib32-freetype2-2.3.7-1 
                   lib32-fontconfig-2.6.0-2  lib32-gcc-libs-4.3.1-3 
                   lib32-glib2-2.16.4-1  lib32-libpng-1.2.29-1 
                   lib32-libcups-1.3.8-1  lib32-libxrandr-1.2.3-1 
                   lib32-libxft-2.1.13-1  lib32-pango-1.20.5-1 
                   lib32-gtk2-2.12.11-2  lib32-libgcrypt-1.4.1-1 
                   lib32-e2fsprogs-1.40.8-1.1  lib32-libsm-1.1.0-1.1 
                   lib32-libtasn1-1.4-1  lib32-pcre-7.7-2  libgnomecups-0.2.3-3 
                   libgnomeprint-2.18.3-3  libgweather-2.22.3-1  libmpeg2-0.5.1-1 
                   libsasl-2.1.22-7  libsm-1.1.0-1  libxfont-1.3.3-1 
                   libxp-1.0.0-2  libxtrap-1.0.0-2  libxxf86vm-1.0.2-1 
                   lirc-utils-0.8.3-1  madwifi-utils-0.9.4.3844-1 
                   madwifi-0.9.4.3844-1  man-pages-3.06-1  ttf-dejavu-2.26-1 
                   giflib-4.1.6-3  mplayer-1.0rc2-5  nautilus-2.22.5.1-1 
                   neon-0.28.2-2  db4.5-4.5.20-1  python-2.5.2-5 
                   openoffice-base-2.4.1-2  pam-1.0.1-2  openssh-5.0p1-2 
                   pciutils-3.0.0-2  perl-5.10.0-4  pm-utils-1.1.2.4-1 
                   preload-0.6.3-2  qt3-3.3.8-8  rarian-0.8.0-2  rsync-3.0.3-1 
                   scrnsaverproto-1.1.0-2  speex-1.2rc1-1  sqlite3-3.6.1-1 
                   swfdec-0.6.8-1  transcode-1.0.6rc1-2  tzdata-2008e-1 
                   vi-7.1.315-1  vlc-0.8.6i-3  wget-1.11.4-1 
                   xf86-input-mouse-1.3.0-1  xf86-video-vesa-1.3.0-6 
                   xfsprogs-2.9.8-1  xorg-twm-1.0.4-1  xorg-xauth-1.0.3-1 
                   xscreensaver-5.07-1  xtrans-1.2.1-1  yelp-2.23.1-2 
    Total Download Size:    0.00 MB
    Total Installed Size:   1322.50 MB
    Proceed with installation? [Y/n] y
    checking package integrity...
    (155/155) checking for file conflicts               [#####################] 100%
    error: could not prepare transaction
    error: failed to commit transaction (conflicting files)
    xulrunner: /usr/include/xulrunner-1.9 exists in filesystem
    xulrunner: /usr/lib/xulrunner-1.9 exists in filesystem
    xulrunner: /usr/lib/xulrunner-devel-1.9 exists in filesystem
    xulrunner: /usr/share/idl/xulrunner-1.9 exists in filesystem
    Errors occurred, no packages were upgraded.
    Any ideas?
    Thanks.
    Last edited by RAH (2008-08-15 18:28:42)

    pacman -Rd xulrunner and delete these files /usr/include/xulrunner-1.9  /usr/lib/xulrunner-1.9 /usr/lib/xulrunner-devel-1.9 /usr/share/idl/xulrunner-1.9. Re-install xulrunner and your good to go. Alternatively force the upgrade with pacman -Syuf.

  • [solved]pacman -r issue

    Hi , I would try to install arch on a usb stick from my current desktop and I thought
    that a
    pacman -S base -r newarch --ignore kernel26
    could go , where newarch is my mounted usb stick, but this simply don't work.
    pacman returns 'base not found'.
    pacman -S base
    instead works as it should... what I'm doing wrong?
    Last edited by mangus (2009-03-03 21:21:08)

    You want to do:
    mkdir -p newarch/var/lib/pacman
    pacman -Sy base -r newarch
    Note that the "--ignore kernel26" part does not work as you are using "base" which is a group (known issue) But you can always remove it later.

  • [SOLVED] pacman -Syu issues for a newbie

    Hi all,
    After my very first installation of arch in my laptop, following the Beginners Guide, I tried to upgrade my system in order to continue installing wifi, gnome, etc...
    after a Pacman -syy, followed by pacman -Syu, I got the following output:
    :: Syncronizing package databases...
    core is up to date
    extra is up to date
    community is up to date
    :: Starting full system upgrade...
    resolving dependencies...
    warning: dependency cycle detected:
    warning: bash will be installed before its glibc dependency
    warning: dependency cycle detected:
    warning: readline will be installed before its glibc dependency
    warning: dependency cycle detected:
    warning: ncurses will be installed before its glibc dependency
    looking for inter-conflicts...
    error: failed to prepare transaction (could not satisfy dependencies)
    :: ipw3945: requires kernel26<2.6.26
    after looking for something on the web, i found something like this in the URL  http://bbs.archlinux.org/viewtopic.php?id=56431 , but after deleting the /usr/lib/klibc/include/asm, I've got the same errors
    How can I continue installing arch?
    Thanks a lot,
    Josep
    Last edited by [email protected] (2008-12-22 10:22:47)

    http://bbs.archlinux.org/viewtopic.php?id=58297

  • [solved]pacman upgrade issue using axel

    i changed the default downloading tool to axel, but ervery time before i run pacman -Syu, i need to rm /var/lib/pacman/sync/*.db. If I don't do this, axel can't overwrite the database automatically, which can result in the fail of pacman upgrade.
    what should i do so needn't i rm the db files before upgrade.
    Last edited by zsrkmyn (2013-09-18 14:16:58)

    karol wrote:
    Post the XferCommand you're using. Is it https://wiki.archlinux.org/index.php/Im … plications
    XferCommand = /usr/bin/axel -n 2 -v -a -o %o %u
    Seems to work for me.
    oh, it works, thx a lot!
    but why i could't succeed when i using "XferCommand = /usr/bin/axel -n 2 -v -a -o `basename %u` %u" before?

  • [SOLVED] Pacman upgrade issue due to Intellij Idea

    Here is the error
    [root@RAS ~]# pacman -Syu
    :: Synchronizing package databases...
    core 106.0 KiB 51.3K/s 00:02 [#######################################################] 100%
    extra 1441.9 KiB 136K/s 00:11 [#######################################################] 100%
    community 1893.2 KiB 137K/s 00:14 [#######################################################] 100%
    :: Starting full system upgrade...
    resolving dependencies...
    looking for inter-conflicts...
    error: failed to prepare transaction (could not satisfy dependencies)
    :: intellij-idea-community-edition: requires intellij-idea-libs=12.0.1
    [root@RAS ~]#
    [root@RAS ~]# uname -a
    Linux RAS 3.6.11-1-pae #1 SMP PREEMPT Fri Jan 4 12:53:00 IST 2013 i686 GNU/Linux
    [root@RAS ~]#
    Please help.
    If you need any other information about the system, please ask.
    Last edited by prab (2013-01-17 03:00:44)

    Thanks Scimmia and tdy!
    I changed the mirror to Japan's ftp.jaist.ac.jp one but after that, running pacman -Syu said core up to date, community up to date, extra up to date.
    Then I did
    # mv /var/lib/pacman/sync /var/lib/pacman/sync.bak
    Afterwards pacman -Syu worked correctly and upgraded Intellij Idea to 12.0.2-1!!!
    Hopefully the second step I posted will help someone :-)

  • Performance issue and data getting interchanged in BO Webi report + SAP BW

    Hi,
    We are using SAP BW queries as the source for creating some BO reports.
    Environments :
    SAP - SAP BI 7.1
    BO - BO XI 3.1
    Issues :
    The reports were working fine in Dev and Q with less data. But when we point the universes to BW prod ( where we have much data), the reports are taking quite a long time to refresh and getting timed out. This query has some key figures which are having customer exits defined to show only one month data. And also BW accelerators are updated for the infocubes pertaining to this query. The BO report is giving data if we apply a filter in 'Query Panel' of Webi to show only current month dates. But then the issue is the values are getting interchanged for many objects. For ex: there are 2 objects- ABS version and Market region. The values are getting interchanged in the BO level.
    Please let us know if anything needs to be done in BO or BW to fix this issue if anyone has faced the same
    Also Please let us know if customer exits and accelerators works fine with BO
    Thanks
    Sivakami

    Hi,
    Thanks Roberto. We'll check the notes
    @Ingo,
    We are able to solve the performance issue by removing unused Key figures and dimensions from the query, but the column value interchange issue still persisits
    The build version is  - 12.3.0
    Query Stripping
    Where should we enable query stripping? When i went through some documentation it was written that it'll be enabled automatically from XI 3.1 Sp3. Can you please let us know if its so and what we need to do to enable it.
    The coulmn interchange is happening when we use dimensions in a certain order. When product type is used along with Market region. Market region shows values of Product type also in Webi report.
    Thanks & Regards,
    Sivakami

  • Order Management Performance Issue

    In the Oracle Applications home page, when I login as OM Super User and for order to cash functionality, when I click on Order, Returns > Quick Sales Orders screen, it takes forever to load. When I reboot my client desktop PC machine, it loads quickly.
    Any ideas how to solve this performance issue for Order Management Quick Sales?
    We are running Oracle 12.1.1 EBS on Linux 64 bit OS platform.

    Hi,
    Please see if these documents are applicable.
    Note: 845765.1 - R12: Performance Navigating To Line Item Tab: OE_AK_SOLD_TO_ORGS_V [ID 845765.1]      
    Note: 399998.1 - OEXOEORD: Performance Entering Item On A Sales Order Line
    Regards,
    Hussein

  • Question about a view I created to fix the performance issues

    Dear alll;
    I have this interesting problem. I created a view to help solve certain performance issue I have been having with my query
    see view below
    create or replace view view_test as
    Select trunc(c.close_date, 'YYYY-MM-DD') as close_date, t.names
    from tbl_component c, tbl_joborder t
    where c.t_id = t.p_id
    and c.type = 'C'
    group by trunc(c.close_date, 'YYYY-MM-DD'), t.names
    ;and I tried testing the view out by using the following syntax and I am getting the following errors
    select k.close_date, k.names from view_test k
    where k.names = 'Kay'
    and k.close_date between to_date('2010-01-01', 'YYYY-MM-DD') and to_date('2010-12-31', 'YYYY-MM-DD')however, I am getting the error messages below
    ora-o1898: too many precision specifiersI have googled it and tried a lot of stuff online but I cant fix the problem unfortunately and I dont know why.

    Hi,
    Instead of
    trunc(c.close_date, 'YYYY-MM-DD')say
    trunc (c.close_date, 'DD')Oracle apparantly gets confused by saying you want to truncate (or round) to two or more different units.
    If it were up to me, I would allow it, since truncatng to the year implies truncating to the month and to the day (not to mention hours, minutes and seconds), but there may be reasons why that would be a pain to implement. (Maybe because there are units, such as 'WW' and 'IW', that are not neat sub-divisions of larger units.)

  • Performance issue of SAP DART

    Hi Experts,
    Here we use DART 2.6 for generating the text file that external auditor needs.
    But now I have a problem, because the huge amount of data that we have to run a lot of background jobs which will take many times to finish on job.
    Does anyone have such a experience to solve this performance issue?
    Thanks a lot in advance for your help.

    Execute the jobs during non-peak hours in batch mode.
    Regards,
    Nick Loy

  • Performance issue with BSEG

    Hi,
              I am having serious performance issue due to BSEG table .I am having a change request in which I have to solve the performance issue with regard to BSEG. The situation was that previously they had used select * on both BKPF and BSEG. I removed the select * and selected only those fields which are required as shown below. I also tried using cursors. But the problem is happening in the TEST server where BSEG is having more than 1 crore entries. I have gone through some threads but still not able to understand how to solve this problem. Please help
    select bukrs belnr gjahr bldat bstat from bkpf into table T_BKPF_p
                                                    WHERE BUKRS IN sd_bukrs AND
                                                    BLDAT < s_bldat-low
                                                    and  BSTAT = ' ' .
    select bukrs belnr gjahr shkzg dmbtr hkont from bseg into table T_BSEG_C
                                            FOR ALL ENTRIES IN t_BKPF_p
                                            WHERE BUKRS = T_bkpf_p-bukrs
                                            AND   BELNR = T_bkpf_p-belnr
                                            AND   GJAHR = T_bkpf_p-gjahr
                                            AND   HKONT = SKB1-SAKNR.

    Hi Kunal,
    Here is my take on your issue.
    In your select statement on BKPF you are selecting every BKPF record for a specified company code and blank document status that was created before a specified date. If your company has implemented SAP 10 years ago, and your user enters todays date and leaves the company code field blank you will effectively be retrieving almost all the records from BKPF (excluding the ones created today or those with non-blank document status). This would effectively be a huge amount of data. After that you are looking for the corresponding BSEG records for all the records that you have selected in BKPF.
    My question to you is why do you need to look at all the records before a given date? Why not ask the user to enter a smaller date range and make the document date and the company code a mandatory entry? You do not have to look at 10 years worth of data especially if you are running this online (as opposed to in the background).
    Your BSEG select looks correct. There is very little that you can do except for adding BUZEI to the field list. If you use for all entries and do not include the entire primary key you could lose data.
    TABLES: bkpf,
            skb1.
    SELECT-OPTIONS: s_bldat  FOR bkpf-bldat OBLIGATORY,
                    sd_bukrs FOR bkpf-bukrs OBLIGATORY.
    TYPES: BEGIN OF ty_bkpf,
            bukrs TYPE bkpf-bukrs,
            belnr TYPE bkpf-belnr,
            gjahr TYPE bkpf-gjahr,
            bldat TYPE bkpf-bldat,
            bstat TYPE bkpf-bstat,
          END OF ty_bkpf,
          BEGIN OF ty_bseg,
            bukrs TYPE bseg-bukrs,
            belnr TYPE bseg-belnr,
            gjahr TYPE bseg-gjahr,
            buzei TYPE bseg-buzei,
            shkzg TYPE bseg-shkzg,
            dmbtr TYPE bseg-dmbtr,
            hkont TYPE bseg-hkont,
          END OF ty_bseg.
    DATA: t_bkpf_p TYPE TABLE OF ty_bkpf,
          t_bseg_c TYPE TABLE OF ty_bseg.
    SELECT bukrs
           belnr
           gjahr
           bldat
           bstat
    FROM bkpf
    INTO TABLE t_bkpf_p
    WHERE bukrs IN sd_bukrs
    AND   bldat IN s_bldat
    AND   bstat EQ space .
    IF NOT t_bkpf_p[] IS INITIAL.
      SELECT bukrs
             belnr
             gjahr
             buzei
             shkzg
             dmbtr
             hkont
        FROM bseg
        INTO TABLE t_bseg_c
        FOR ALL ENTRIES IN t_bkpf_p
        WHERE bukrs EQ t_bkpf_p-bukrs
        AND   belnr EQ t_bkpf_p-belnr
        AND   gjahr EQ t_bkpf_p-gjahr
        AND   hkont EQ skb1-saknr.
    ENDIF.

  • Performance issue with select query

    Hi friends ,
    This is my select query which is taking so much time to retrive the records.CAn Any one help me in solving this performance issue.
    *- Get the Goods receipts  mainly selected per period (=> MKPF secondary
      SELECT msegebeln msegebelp mseg~werks
             ekkobukrs ekkolifnr ekkozterm ekkoekorg ekko~ekgrp
             ekkoinco1 ekkoexnum
             lfa1name1 lfa1land1 lfa1ktokk lfa1stceg
             mkpfmblnr mkpfmjahr msegzeile mkpfbldat mkpf~budat
             mseg~bwart
    *Start of changes for CIP 6203752 by PGOX02
             mseg~smbln
    *End of changes for CIP 6203752 by PGOX02
             ekpomatnr ekpotxz01 ekpomenge ekpomeins
             ekbemenge ekbedmbtr ekbewrbtr ekbewaers
             ekpolgort ekpomatkl ekpowebaz ekpokonnr ekpo~ktpnr
             ekpoplifz ekpobstae
             INTO TABLE it_temp
        FROM mkpf JOIN mseg ON msegmblnr EQ mkpfmblnr
                           AND msegmjahr EQ mkpfmjahr
                  JOIN ekbe ON ekbeebeln EQ msegebeln
                           AND ekbeebelp EQ msegebelp
                           AND ekbe~zekkn EQ '00'
                           AND ekbe~vgabe EQ '1'
                           AND ekbegjahr EQ msegmjahr
                           AND ekbebelnr EQ msegmblnr
                           AND ekbebuzei EQ msegzeile
                  JOIN ekpo ON ekpoebeln EQ ekbeebeln
                           AND ekpoebelp EQ ekbeebelp
                  JOIN ekko ON ekkoebeln EQ ekpoebeln
                  JOIN lfa1 ON lfa1lifnr EQ ekkolifnr
        WHERE mkpf~budat IN so_budat
          AND mkpf~bldat IN so_bldat
          AND mkpf~vgart EQ 'WE'
          AND mseg~bwart IN so_bwart
          AND mseg~matnr IN so_matnr
          AND mseg~werks IN so_werks
          AND mseg~lifnr IN so_lifnr
          AND mseg~ebeln IN so_ebeln
          AND ekko~ekgrp IN so_ekgrp
          AND ekko~bukrs IN so_bukrs
          AND ekpo~matkl IN so_matkl
          AND ekko~bstyp IN so_bstyp
          AND ekpo~loekz EQ space
          AND ekpo~plifz IN so_plifz.
    Thanks & Regards,
    Manoj Kumar .Thatha
    Moderator message - Please see Please Read before Posting in the Performance and Tuning Forum before posting and please use code tags when posting code - post locked
    Edited by: Rob Burbank on Feb 4, 2010 9:03 AM

    Hi friends ,
    This is my select query which is taking so much time to retrive the records.CAn Any one help me in solving this performance issue.
    *- Get the Goods receipts  mainly selected per period (=> MKPF secondary
      SELECT msegebeln msegebelp mseg~werks
             ekkobukrs ekkolifnr ekkozterm ekkoekorg ekko~ekgrp
             ekkoinco1 ekkoexnum
             lfa1name1 lfa1land1 lfa1ktokk lfa1stceg
             mkpfmblnr mkpfmjahr msegzeile mkpfbldat mkpf~budat
             mseg~bwart
    *Start of changes for CIP 6203752 by PGOX02
             mseg~smbln
    *End of changes for CIP 6203752 by PGOX02
             ekpomatnr ekpotxz01 ekpomenge ekpomeins
             ekbemenge ekbedmbtr ekbewrbtr ekbewaers
             ekpolgort ekpomatkl ekpowebaz ekpokonnr ekpo~ktpnr
             ekpoplifz ekpobstae
             INTO TABLE it_temp
        FROM mkpf JOIN mseg ON msegmblnr EQ mkpfmblnr
                           AND msegmjahr EQ mkpfmjahr
                  JOIN ekbe ON ekbeebeln EQ msegebeln
                           AND ekbeebelp EQ msegebelp
                           AND ekbe~zekkn EQ '00'
                           AND ekbe~vgabe EQ '1'
                           AND ekbegjahr EQ msegmjahr
                           AND ekbebelnr EQ msegmblnr
                           AND ekbebuzei EQ msegzeile
                  JOIN ekpo ON ekpoebeln EQ ekbeebeln
                           AND ekpoebelp EQ ekbeebelp
                  JOIN ekko ON ekkoebeln EQ ekpoebeln
                  JOIN lfa1 ON lfa1lifnr EQ ekkolifnr
        WHERE mkpf~budat IN so_budat
          AND mkpf~bldat IN so_bldat
          AND mkpf~vgart EQ 'WE'
          AND mseg~bwart IN so_bwart
          AND mseg~matnr IN so_matnr
          AND mseg~werks IN so_werks
          AND mseg~lifnr IN so_lifnr
          AND mseg~ebeln IN so_ebeln
          AND ekko~ekgrp IN so_ekgrp
          AND ekko~bukrs IN so_bukrs
          AND ekpo~matkl IN so_matkl
          AND ekko~bstyp IN so_bstyp
          AND ekpo~loekz EQ space
          AND ekpo~plifz IN so_plifz.
    Thanks & Regards,
    Manoj Kumar .Thatha
    Moderator message - Please see Please Read before Posting in the Performance and Tuning Forum before posting and please use code tags when posting code - post locked
    Edited by: Rob Burbank on Feb 4, 2010 9:03 AM

  • Performance Issue with sql query

    Hi,
    My db is 10.2.0.5 with RAC on ASM, Cluster ware version 10.2.0.5.
    With bsoa table as
    SQL> desc bsoa;
    Name                                      Null?    Type
    ID                                        NOT NULL NUMBER
    LOGIN_TIME                                         DATE
    LOGOUT_TIME                                        DATE
    SUCCESSFUL_IND                                     VARCHAR2(1)
    WORK_STATION_NAME                                  VARCHAR2(80)
    OS_USER                                            VARCHAR2(30)
    USER_NAME                                 NOT NULL VARCHAR2(30)
    FORM_ID                                            NUMBER
    AUDIT_TRAIL_NO                                     NUMBER
    CREATED_BY                                         VARCHAR2(30)
    CREATION_DATE                                      DATE
    LAST_UPDATED_BY                                    VARCHAR2(30)
    LAST_UPDATE_DATE                                   DATE
    SITE_NO                                            NUMBER
    SESSION_ID                                         NUMBER(8)
    The query
    UPDATE BSOA SET LOGOUT_TIME =SYSDATE WHERE SYS_CONTEXT('USERENV', 'SESSIONID') = SESSION_ID
    Is taking a lot of time to execute and in AWR reports also it is on top in
    1. SQL Order by elapsed time
    2. SQL order by reads
    3. SQL order by gets
    So i am trying a way to solve the performance issue as the application is slow specially during login and logout time.
    I understand that the function in the where condition cause to do FTS, but i can not think what other parts to look at.
    Also:
    SQL> SELECT COUNT(1) FROM BSOA;
      COUNT(1)
       7800373
    The explain plan for  "UPDATE BSOA SET LOGOUT_TIME =SYSDATE WHERE SYS_CONTEXT('USERENV', 'SESSIONID') = SESSION_ID" is
    {code}
    PLAN_TABLE_OUTPUT
    Plan hash value: 1184960901
    | Id  | Operation          | Name               | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | UPDATE STATEMENT   |                    |     1 |    26 | 18748   (3)| 00:03:45 |
    |   1 |  UPDATE            | BSOA |       |       |            |          |
    |*  2 |   TABLE ACCESS FULL| BSOA |     1 |    26 | 18748   (3)| 00:03:45 |
    Predicate Information (identified by operation id):
       2 - filter("SESSION_ID"=TO_NUMBER(SYS_CONTEXT('USERENV','SESSIONID')))
    {code}

    Hi,
    There are also triggers before update and AUDITS on this table.
    CREATE OR REPLACE TRIGGER B2.TRIGGER1
    BEFORE UPDATE
    ON B2.BSOA  REFERENCING OLD AS OLD NEW AS NEW
    FOR EACH ROW
    :NEW.LAST_UPDATED_BY   := USER    ;
    :NEW.LAST_UPDATE_DATE  := SYSDATE ;
    END;
    CREATE OR REPLACE TRIGGER B2.TRIGGER2
    BEFORE INSERT
    ON B2.BSOA  REFERENCING OLD AS OLD NEW AS NEW
    FOR EACH ROW
    :NEW.CREATED_BY        := USER ;
    :NEW.CREATION_DATE     := SYSDATE ;
    :NEW.LAST_UPDATED_BY   := USER    ;
    :NEW.LAST_UPDATE_DATE  := SYSDATE ;
    END;
    And also there is an audit on this table
    AUDIT UPDATE ON B2.BSOA BY ACCESS WHENEVER SUCCESSFUL;
    AUDIT UPDATE ON B2.BSOA BY ACCESS WHENEVER NOT SUCCESSFUL;
    And the sessionid column in BSOA has height balanced histogram.
    When i create an index i get the following error. As i am on 10g I can't use DDL_LOCK_TIMEOUT . I may have to wait for next down time.
    SQL> CREATE INDEX B2.BSOA_SESSID_I ON B2.BSOA(SESSION_ID) TABLESPACE B2 COMPUTE STATISTICS;
    CREATE INDEX B2.BSOA_SESSID_I ON B2.BSOA(SESSION_ID) TABLESPACE B2 COMPUTE STATISTICS
    ERROR at line 1:
    ORA-00054: resource busy and acquire with NOWAIT specified
    Thanks

  • Can i using RMI to solve performance issue

    I have two database which in USA and CHINA, and a web application which located on USA, if the application connect to USA DB it is ok, i think no performance issue, but if connet to china DB, i sure that has even throgh VPN. So can i using RIM technology to solving the issue? Or using another solution. Thanks

    So can i using RIM technology to solving the issue?It sounds like your problem is with Network latency.
    I assume your web application connects to the database directly through JDBC and you're proposing to add a middle layer of RMI. Doing this will not reduce network latency - however if you're clever about how you serialize your resultsets, you can reduce the amount of network traffic and improve performance.
    Have a look at this thread about compressing RMI data:
    http://forum.java.sun.com/thread.jspa?threadID=606187&tstart=0
    Note that compressing the data will add processing overhead at both ends.
    Also remember to override the readObject/writeObject methods in the objects you're serializing.

  • How to solve performance issue

    Hi
            How to resolve performance issue in following select query-
    SELECT *
              INTO CORRESPONDING FIELDS OF TABLE it_final
              FROM  ce1zcsc
              WHERE paledger  EQ c_10                 "Currency Type
              AND   vrgar     IN s_vrgar              "Record Type
              AND   versi     EQ space                "Plan Version
              AND   perio     IN r_perio              "Period
              AND   bukrs     IN s_bukrs.             "Company Code
    TABLE CE1ZCSC has around 173 fields,but it_final has around 105 fields.
    The indexes are created for the following fields:
    paledger
    vrgar
    versi
    perio
    bukrs and
    prctr.
    I doubt whether we should look for Estim. CPU-Costs in  index range scan or table access by index rowid in Execution plan for SQL statement.
    If anybody can provide me with  informative documents on performance issue.

    Hi,
    Dont use "  * " & " corresponding fields " in the select query rather declare all the fields and use the "into table" clause.
    Let me know if you still face the same problem.
    -Naveen.

Maybe you are looking for

  • Satellite X200-21F: Nvidia geforce 8600m GT shows only 256MB

    High everyone, thanks for reading this thread. I bought an Sat x200-21F. So the problem is that the dedicated memory on my geforce 8600m GT is supposed to be 512MB, but it only shows 256MB. I activated the sli mode, but it still only shows 256MB of d

  • No Internet Access with Static IP and RVS 4000

    I have an RVS 4000.  I have several PC's to which I have assigned static IP addresses.  I have recently upgraded most of the PC's to Win 7 (64) machines.  I updated the firmware on the RVS4000 to 1.3.3.5 in conjunction with this.  After such update (

  • Cannot adjust brightness on win 8.1 x64(i have a WEIRD solution)

    macbook pro 13' with retina display win 8.1 x64 i cannot adjust the screen brightness i turned off "adjust my screen brightness automatically". i reinstalled boot camp. i reinstalled the drivers of intel video card(5100). the above solutions help not

  • When reorder item's position, arabic labels changes into ??

    Hi there, I hope u can help me with this issue: After re-ordering the positions of items (texts or check boxes) the Arabic labels of them changed into question marks, who possibly can I prevent this to happen!!, so that each time I reorder items with

  • Planning V11 Installation - Register with Shared Services: Failed

    Hi, I have just installed the Hyperion Planning Version 11. The installation was a piece of cake. I selected all the relevant components and the installer took care of the installation and the installation sequence. When I tried the configuration, I