Report Runing Very Slow for  range even data set for that range is small

Hello Experts,
  I have a report which runs on date selection.
When I run the report for say 01.01.2000 -31.12.2010  whcih contains 95% of the data , the report output is coming with in a minute.
But when I ran the report from 01.01.2011 - 31.12.2011 , or say 01.01.2011 for a single day , where the data set is hardly 3k records,the report is runing for long time 15 - 20 minutes and not showing output.
But when i remove this variable and run the report , it is coming again with in a minute.
One weird thing is when i ran the report from 01.01.2000 - 31.12.2011 it is also coming with in a minute, but when i ran for 01.01.2011 single day it is not coming.
Can any one share some inputs on this one.
Thanks
Vamsi

Hello Experts,
  I have a report which runs on date selection.
When I run the report for say 01.01.2000 -31.12.2010  whcih contains 95% of the data , the report output is coming with in a minute.
But when I ran the report from 01.01.2011 - 31.12.2011 , or say 01.01.2011 for a single day , where the data set is hardly 3k records,the report is runing for long time 15 - 20 minutes and not showing output.
But when i remove this variable and run the report , it is coming again with in a minute.
One weird thing is when i ran the report from 01.01.2000 - 31.12.2011 it is also coming with in a minute, but when i ran for 01.01.2011 single day it is not coming.
Can any one share some inputs on this one.
Thanks
Vamsi

Similar Messages

  • WIFI too slow after IOS 6 installed. SAFARI is loading very slow for burmese language website. Please help.....

    WIFI too slow after IOS 6 installed. SAFARI is loading very slow for burmese language websites. Not only that....many other websites too.....Please help.....Don't expect that ENglish is only language we expect to view on IPAD......
    Most websites are responding very slow with safari & many other broswers opera.........Too annoying IOS 6...Give me IOS 5 back...Tell me how.....
    I am too angry with IOS 6.......My IPAD 2 & IPHONE 4S all suck after installing IOS 6..........
    I can't believe "$600 billions " company released without testing on every devices with different wifi routers, applications on their store.........   
    Give me some ways to downgrade to IOS 5.1.1......

    iOS 6 Wifi Problems/Fixes
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    You may think you are connected to the internet, but maybe not. Click on Safari and see if it connects.
    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting
    http://www.apple.com/support/ipad/wifi/
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Very slow speeds during evening.

    Hi there, my bt infinity 2 is very slow during the evening. From 5pm to 1am every night. I have spoken to three others who are connected to the same cabinet as me. All with the same issues.
    I contacted BT about 1 month who actually got an engineer to have a look at the cabinet or something, I couldnt really hear what he said on the phone. This fixed the problem for around 3 weeks then the problem came back around 4 days ago.
    The issue I am having is that BT are no use on the phone like the first guy was, they all just say they will change my wireless channel on my homehub. Even tho I said I do not use wireless. And I don't even own a homehub so good luck with that. I am asking for a nod to help me out here, as the BT call centre guys are useless now.
    Exchange: Carstairs
    Cabinet: 2
    Thanks

    galabonnyboy wrote:
    As you can see my IP Profile is alot higher than my sync. As when the cabinet reset all lines 5 days ago. My sync was much higher then resycned a day later back to the old speed with peak time issues.
    Thanks for the help
     A possible solution to your IP Profile being wrong is to reboot your router.
    Looks like you have noise on the line - possibly a line fault.
    Can you confirm the speedtest was done using wired ethernet, not wireless and not power-line adapters?
    If you found this post helpful, please click on the star on the left
    If not, I'll try again

  • IPad Air very slow for last 6 weeks. Installing latest did not help. Screen just sits and buffers. If I reboot, sometimes it's better, sometimes it's not..????

    MMy iPad Air has been VERY slow,for 6-8 weeks. Update to iOS 8.1 did not help.  Screen just sits and buffers. Rebooting sometimes helps, sometimes not.what's wrong???

    Hi go to ICloud & backup. Go to Seetings Restore to Factory Settings This will get rid of any bugs and make ipad like new. Just use Same Apple ID & password then you will get all your Apps & Data Back. Cheers Brian

  • BI publisher report is very slow

    I have OBIEE 11g installed Running BI publisher report is very slow. After doing a research seems like we have increase the JAVA heap size.
    Can anyone help me how to increase this value. I do not see OC4j.cmd file in my BI install folder.
    Thanks in advance

    Did you try to change the setDomainEnv.cmd file in $MW_HOME/user_projects/domains/<Domain>/bin as follows:
    set XMS_JROCKIT_64BIT=1024 --> to the new initial heap size
    set XMX_JROCKIT_64BIT=2048 --> to the new maximum heap size
    If this is helpful, please mark as correct or helpful

  • Download using wifi is very slow for my ipad may i know what is the problem?

    Downloading using wifi is very slow for my ipad may i know what is the problem

    Maybe your internet speed is slow. Check your download speed.
    https://itunes.apple.com/sg/app/speedtest.net-mobile-speed/id300704847?mt=8

  • Why my Illustrator CC is now very slow for opening a 2MB AI file (about 5 minutes), at the beginning (1 month ago) it was very fast (10 seconds).

    Why my Illustrator CC is now very slow for opening a 2MB AI file (about 5 minutes), at the beginning (1 month ago) it was very fast (10 seconds).

    Assuming that you system meets minimal requirements for CC, make sure you have enough space on your hard drive. By saying enough, I try not to cross 3/4 of its capacity but trivially saying, the more free space the better and the faster the drive the better (I've been considering an SSD drive but still running a regular HDD).
    If you are on Windows, clean up the %TEMP% folder regularly and keep the disk neat using the defragmentation tool.
    Click Start>Run>enter %temp% , wait for the files to load and select all, hit Shift+DEL to remove them permanently.
    For the defrag tool, you can use either the defrag /? command from the command line or right-click the drive, click Properties > Tools > Defragmentation>Defragment Now
    Other than that it requires deeper analysis to find performance bottleneck.

  • Macbook Pro 2011 Very Slow for Yosemite 10.10.1

    Good night,
    My macbook is very slow when I power supply to retreat, even 100% loaded this causes problems.
    Applications are slow to open, the mouse is slow, loses performance.
    The battery was recently replaced. I've had this problem in OS mavericks and was Kernel_task problem, but now do not know what to do to stop this slow using only the battery charged.
    I'm using the Yosemite 10.10.1
    System Specification: MacBook Pro (13-inch, Early 2011)
    2.3 GHz Intel Core i5
    4GB 1333MHz DDR3
    When I remove the charger, the system rises to 90% usage ...
    memory:
    Physical Memory: 4.00 GB
    Memory Used: 3.95 GB

    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve the problem. But with the aid of the test results, the solution may take a few minutes, instead of hours or days.
    Don't be put off by the complexity of these instructions. The process is much less complicated than the description. You do harder tasks with the computer all the time.
    2. If you don't already have a current backup, back up all data before doing anything else. The backup is necessary on general principle, not because of anything in the test procedure. Backup is always a must, and when you're having any kind of trouble with the computer, you may be at higher than usual risk of losing data, whether you follow these instructions or not.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    3. Below are instructions to run a UNIX shell script, a type of program. As I wrote above, it changes nothing. It doesn't send or receive any data on the network. All it does is to generate a human-readable report on the state of the computer. That report goes nowhere unless you choose to share it. If you prefer, you can act on it yourself without disclosing the contents to me or anyone else.
    You should be wondering whether you can believe me, and whether it's safe to run a program at the behest of a stranger. In general, no, it's not safe and I don't encourage it.
    In this case, however, there are a couple of ways for you to decide whether the program is safe without having to trust me. First, you can read it. Unlike an application that you download and click to run, it's transparent, so anyone with the necessary skill can verify what it does.
    You may not be able to understand the script yourself. But variations of it have been posted on this website thousands of times over a period of years. The site is hosted by Apple, which does not allow it to be used to distribute harmful software. Any one of the millions of registered users could have read the script and raised the alarm if it was harmful. Then I would not be here now and you would not be reading this message.
    Nevertheless, if you can't satisfy yourself that these instructions are safe, don't follow them. Ask for other options.
    4. Here's a summary of what you need to do, if you choose to proceed:
    ☞ Copy a line of text in this window to the Clipboard.
    ☞ Paste into the window of another application.
    ☞ Wait for the test to run. It usually takes a few minutes.
    ☞ Paste the results, which will have been copied automatically, back into a reply on this page.
    The sequence is: copy, paste, wait, paste again. You don't need to copy a second time. Details follow.
    5. You may have started the computer in "safe" mode. Preferably, these steps should be taken in “normal” mode, under the conditions in which the problem is reproduced. If the system is now in safe mode and works well enough in normal mode to run the test, restart as usual. If you can only test in safe mode, do that.
    6. If you have more than one user, and the one affected by the problem is not an administrator, then please run the test twice: once while logged in as the affected user, and once as an administrator. The results may be different. The user that is created automatically on a new computer when you start it for the first time is an administrator. If you can't log in as an administrator, test as the affected user. Most personal Macs have only one user, and in that case this section doesn’t apply. Don't log in as root.
    7. The script is a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, though you may not see all of it in the browser window, and you can then copy it. If you try to select the line by dragging across the part you can see, you won't get all of it.
    Triple-click anywhere in the line of text below on this page to select it:
    PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/libexec;clear;cd;p=(Software Hardware Memory Diagnostics Power FireWire Thunderbolt USB Bluetooth SerialATA Extensions Applications Frameworks PrefPane Fonts 1024 85 percent 20480 1 MB/s 25000 ports KiB/s DYLD_INSERT_LIBRARIES\ DYLD_LIBRARY_PATH -86 "` route -n get default|awk '/e:/{print $2}' `" 25 N\\/A down up 102400 25600 recvfrom sendto CFBundleIdentifier 25 25 25 1000 MB 'com.adobe.AAM.Updater-1.0 com.adobe.AAM.Updater-1.0 com.adobe.AdobeCreativeCloud com.adobe.CS4ServiceManager com.adobe.CS5ServiceManager com.adobe.fpsaud com.adobe.SwitchBoard com.adobe.SwitchBoard com.apple.aelwriter com.apple.AirPortBaseStationAgent com.apple.FolderActions.enabled com.apple.installer.osmessagetracing com.apple.mrt.uiagent com.apple.ReportCrash.Self com.apple.rpmuxd com.apple.SafariNotificationAgent com.apple.usbmuxd com.citrixonline.GoToMeeting.G2MUpdate com.google.keystone.agent com.google.keystone.daemon com.microsoft.office.licensing.helper com.oracle.java.Helper-Tool com.oracle.java.JavaUpdateHelper com.oracle.java.JavaUpdateHelper org.macosforge.xquartz.privileged_startx org.macosforge.xquartz.privileged_startx org.macosforge.xquartz.startx' '879294308 4071182229 461455494 3627668074 1083382502 1274181950 1855907737 2758863019 1848501757 464843899 3694147963 1233118628 2456546649 2806998573 2778718105 2636415542 842973933 2051385900 3301885676 891055588 998894468 695903914 1443423563 4136085286 523110921 2883943871 3873345487' 51 5120 files 4 1000 25 5120 -\\t 'PlistBuddy -c Print' );N5=${#p[@]};p[N5]=` networksetup -listnetworkserviceorder|awk ' NR>1 { sub(/^\([0-9]+\) /,"");n=$0;getline;} $NF=="'${p[26]}')" { sub(/.$/,"",$NF);print n;exit;} ' `;f=('\n%s: %s\n' '\n%s\n\n%s\n' '\nRAM details\n%s\n' %s\ %s '%s\n'"${p[50]}"'%s\n' '%s (UID %s) is using %s %s' '\nContents of %s\n   '"${p[50]}"'mod date: %s\n   '"${p[50]}"'checksum: %s\n%s\n' '\n   ...and %s more line(s)\n' );S0() { echo ' { q=$NF+0;$NF="";u=$(NF-1);$(NF-1)="";gsub(/^ +| +$/,"");if(q>='${p[$1]}') printf("'"${f[5]}"'",$0,u,q,"'${p[$2]}'");} ';};s=(' s/[0-9A-Za-z._]+@[0-9A-Za-z.]+\.[0-9A-Za-z]{2,4}/EMAIL/g;/faceb/s/(at\.)[^.]+/\1NAME/g;/\/Shared/!s/(\/Users\/)[^ /]+/\1USER/g;s/[-0-9A-Fa-f]{22,}/UUID/g;' ' s/^ +//;/de: S|[nst]:/p;' ' {sub(/^ +/,"")};/er:/;/y:/&&$2<'${p[46]} ' 1s/://;3,6d;/[my].+:/d;s/^ {4}//;H;${ g;s/\n$//;/s: (E[^m]|[^EO])|x([^08]|02[^F]|8[^0])/p;} ' ' 5h;6{ H;g;/P/!p;} ' ' ($1~/^Cy/&&$3>'${p[47]}')||($1~/^Cond/&&$2!~/^N/) ' ' /:$/{ N;/:.+:/d;s/ *://;b0'$'\n'' };/^ *(V.+ [0N]|Man).+ /{ s/ 0x.... //;s/[()]//g;s/(.+: )(.+)/ (\2)/;H;};$b0'$'\n'' d;:0'$'\n'' x;s/\n\n//;/Apple[ ,]|Genesy|Intel|SMSC/d;s/\n.*//;/\)$/p;' ' s/^.*C/C/;H;${ g;/No th|pms/!p;} ' '/= [^GO]/p' '{$1=""};1' ' /Of/!{ s/^.+is |\.//g;p;} ' ' $0&&!/ / { n++;print;} END { if(n<10) print "com.apple.";} ' ' { sub(/ :/,"");print|"tail -n'${p[48]}'";} ' ' NR==2&&$4<='${p[49]}' { print $4;} ' ' END { $2/=256;if($2>='${p[15]}') print int($2) } ' ' NR!=13{next};{sub(/[+-]$/,"",$NF)};'"`S0 21 22`" 'NR!=2{next}'"`S0 37 17`" ' NR!=5||$8!~/[RW]/{next};{ $(NF-1)=$1;$NF=int($NF/10000000);for(i=1;i<=3;i++){$i="";$(NF-1-i)="";};};'"`S0 19 20`" 's:^:/:p' '/\.kext\/(Contents\/)?Info\.plist$/p' 's/^.{52}(.+) <.+/\1/p' ' /Launch[AD].+\.plist$/ { n++;print;} END { if(n<200) print "/System/";} ' '/\.xpc\/(Contents\/)?Info\.plist$/p' ' NR>1&&!/0x|\.[0-9]+$|com\.apple\.launchctl\.(Aqua|Background|System)$/ { print $3;} ' ' /\.(framew|lproj)|\):/d;/plist:|:.+(Mach|scrip)/s/:.+//p ' '/^root$/p' ' !/^\/[AD]|\/Contents\/.+\/Contents\/|\.prefP/&&/\/(Lib|usr).+\/(.+\.lproj|Contents|Info\.plist|Resources)|\.framework$/ { n++;sub(/\/Info\.plist$/,"");sub(/\/([A-Za-z_]+\.lproj|Contents|Resources|Versions)(\/.+)?/,"");print|"sort|uniq";} END { if(n<1100) print "/System/";} ' '/\.dylib$/p' ' /Temp|emac/{next};/(etc|Preferences|Launch[AD].+)\// { sub(".(/private)?","");n++;print;} END { split("'"${p[41]}"'",b);split("'"${p[42]}"'",c);for(i in b) print b[i]".plist\t"c[i];if(n<500) print "Launch";} ' ' /^\/(Ap|Dev|Inc|Prev)/d;/\.(component|mdimporter|plugin|qlgenerator|saver|wdgt)$/p;' 's/Pr.+n //p' ' BEGIN{FS=":"};{ if($1~/\.kext$/) { s=system("'"${p[51]}"'\\ :OSBundleRequired "$1"/*/I*|grep -q Sa");if(!s) $1=$1" S";printf("'"${f[4]}"'",$1,$2);} else print;} ' p '{print $3"\t"$1}' 's/\'$'\t''.+//p' 's/1/On/p' '/Prox.+: [^0]/p' '$2>'${p[43]}'{$2=$2-1;print}' ' BEGIN { i="'${p[26]}'";M1='${p[16]}';M2='${p[18]}';M3='${p[31]}';M4='${p[32]}';} !/^A/{next};/%/ { getline;if($5<M1) a="user "$2"%, system "$4"%";} /disk0/&&$4>M2 { b=$3" ops/s, "$4" blocks/s";} $2==i { if(c) { d=$3+$4+$5+$6;next;};if($4>M3||$6>M4) c=int($4/1024)" in, "int($6/1024)" out";} END { if(a) print "CPU: "a;if(b) print "I/O: "b;if(c) print "Net: "c" (KiB/s)";if(d) print "Net errors: "d" packets/s";} ' ' /r\[0\] /&&$NF!~/^1(0|72\.(1[6-9]|2[0-9]|3[0-1])|92\.168)\./ { print $NF;exit;} ' ' !/^T/ { printf "(static)";exit;} ' '/apsd|BKAg|OpenD/!s/:.+//p' ' (/k:/&& $3!~/(255\.){3}0/)||(/v6:/&&$2!~/A/) ' ' $1~"lR"&&$2<='${p[25]}';$1~"li"&&$3!~"wpa2";' ' BEGIN { FS=":";p="uniq -c|sed -E '"'s/ +\\([0-9]+\\)\\(.+\\)/\\\2 x\\\1/;s/x1$//'"'";} { n=split($3,a,".");sub(/_2[01].+/,"",$3);print $2" "$3" "a[n]$1|p;b=b$1;} END { close(p);if(b) print("\n\t* Code injection");} ' ' NR!=4{next} {$NF/=10240} '"`S0 27 23`" ' END { if($3~/[0-9]/)print$3;} ' ' BEGIN { L='${p[36]}';} !/^[[:space:]]*(#.*)?$/ { l++;if(l<=L) f=f"\n   "$0;} END { F=FILENAME;if(!F) exit;if(!f) f="\n   [N/A]";"cksum "F|getline C;split(C, A);C=A[1];"stat -f%Sm "F|getline D;"file -b "F|getline T;if(T~/^Apple b/) { f="";l=0;while("'"${p[51]}"' "F|getline g) { l++;if(l<=L) f=f"\n   "g;};};if(T!~/^(AS.+ (En.+ )?text(, with v.+)?$|(Bo|PO).+ sh.+ text ex|XM)/) F=F"\n   '"${p[50]}"'"T;printf("'"${f[6]}"'",F,D,C,f);if(l>L) printf("'"${f[7]}"'",l-L);} ' ' s/^ ?n...://p;s/^ ?p...:/-'$'\t''/p;' 's/0/Off/p' ' END{print NR} ' ' /id: N|te: Y/{i++} END{print i} ' ' / / { print "'"${p[28]}"'";exit;};1;' '/ en/!s/\.//p' ' NR!=13{next};{sub(/[+-M]$/,"",$NF)};'"`S0 39 40`" ' $10~/\(L/&&$9!~"localhost" { sub(/.+:/,"",$9);print $1": "$9|"sort|uniq";} ' '/^ +r/s/.+"(.+)".+/\1/p' 's/(.+\.wdgt)\/(Contents\/)?Info\.plist$/\1/p' 's/^.+\/(.+)\.wdgt$/\1/p' ' /l: /{ /DVD/d;s/.+: //;b0'$'\n'' };/s: /{ /V/d;s/^ */- /;H;};$b0'$'\n'' d;:0'$'\n'' x;/APPLE [^:]+$/d;p;' ' /^find: /d;p;' "`S0 44 45`" ' BEGIN{FS="= "} /Path/{print $2} ' ' /^ *$/d;s/^ */   /;' ' s/^.+ |\(.+\)$//g;p ' '/\.(appex|pluginkit)\/Contents\/Info\.plist$/p' ' /2/{print "WARN"};/4/{print "CRITICAL"};' ' /EVHF|MACR|^s/d;s/^.+: //p;' ' $3~/^[1-9][0-9]{0,2}(\.[1-9][0-9]{0,2}){2}$/ { i++;n=n"\n"$1"\t"$3;} END { if(i>1) print n;} ' ' s/:[^:]+$//;s/ +([0-9]+)(.+)/\2: \1/p;' ' { gsub(/[()"]/,"",$3);if(!$3) $3="N/A";print $3;} ' ' /es: ./{ s/^.+://;b0'$'\n'' };/^ +C.+ted: +[NY]/H;/:$/b0'$'\n'' d;:0'$'\n'' x;/: +N/d;s/\n.+//p;' ' 1d;/:$/b0'$'\n'' $b0'$'\n'' /(D|^ *Loc.+): /{ s/^.+: //;H;};/(By|m): /H;d;:0'$'\n'' x;/[my]: [AM]|^\/Vo/d;s/(^|\n) [ -~]+//g;s/(.+)\n(.+)/\2:\1/;s/\n//g;/[ -~]/p;' );c1=(system_profiler pmset\ -g nvram fdesetup find syslog df vm_stat sar ps crontab iotop top pkgutil 'PlistBuddy 2>&1 -c Print\' whoami cksum kextstat launchctl smcDiagnose sysctl\ -n defaults\ read stat lsbom 'mdfind -onlyin /' ' for i in ${p[24]};do ${c1[18]} ${c2[27]} $i;done;' pluginkit scutil dtrace profiles sed\ -En awk /S*/*/P*/*/*/C*/*/airport networksetup mdutil lsof test osascript\ -e netstat mdls kextfind );S1() { printf kMDItemContentTypeTree=com.apple.$1;};S2() { printf 'L*/Ca*/com.ap*.Saf*/E*/* -d 1 -name In*t -exec '"${c1[14]}"' :'$1' {} \;|uniq';};c2=(com.apple.loginwindow\ LoginHook ' /L*/P*/loginw*' "'tell app \"System Events\" to get properties of login items'|tr , \\\n" "`S2 CFBundleDisplayName`" '~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \)' '-F \$Message -k Sender kernel -k Message CSeq "I/O e"|sort|uniq -c' :${p[35]} :Label '{/,}L*/{Con,Pref}* -type f ! -size 0 -name *.plist -exec plutil -s {} \;' "-f'%N: %l' Desktop L*/Keyc*" therm sysload boot-args status " -F '\$Time \$(RefProc): \$Message' -k Sender Req 'fsev|kern|launchd' -k RefProc Rne 'Aq|WebK' -k Message Rne '08012|Goog|ksadm|probe|Roame|SMC:|smcD|sserti|suhel| VALI|ver-r|xpma' -k Message Req 'abn|bad |Beac|caug|corru|dead[^bl]|FAIL|fail|GPU |hfs: Ru|idle ex|inval|jnl:|last value [1-9]|NVDA\(|pagin|pci pa|proc: t|Roamed|rror|SL|TCON|Throttli|tim(ed? ?|ing )o|WARN' " '-du -n DEV -n EDEV 1 10' 'acrx -o comm,ruid,%cpu' '-t1 10 1' '-f -pfc /var/db/r*/com.apple.*.{BS,Bas,Es,J,OSXU,Rem,up}*.bom' '{/,}L*/Lo*/Diag* -type f -regex .\*[cght] ! -name .?\* ! -name \*ag \( -exec grep -lq "^Thread c" {} \; -exec printf \* \; -o -true \) -execdir stat -f:%Sc:%N -t%F {} \;|sort -t: -k2 |tail -n'${p[38]} '/S*/*/Ca*/*xpc* >&- ||echo No' '-L /{S*/,}L*/StartupItems -type f -exec file {} +' "`S1 bundle`" "`S1 mach-o-dylib`" "`S2 ${p[35]}`" "/e*/{auto,{cron,fs}tab,hosts,{[lp],sy}*.conf,mach_i*/*,pam.d/*,ssh{,d}_config,*.local} {,/usr/local}/etc/periodic/*/* /L*/P*{,/*}/com.a*.{Bo,sec*.ap}*t {/S*/,/,}L*/Lau*/*t .launchd.conf" list getenv /Library/Preferences/com.apple.alf\ globalstate --proxy '-n get default' -I --dns -getdnsservers\ "${p[N5]}" -getinfo\ "${p[N5]}" -P -m\ / '' -n1 '-R -l1 -n1 -o prt -stats command,uid,prt' '--regexp --files com.apple.pkg.*|sort|uniq' -kl -l -s\ / '-R -l1 -n1 -o mem -stats command,uid,mem' '+c0 -i4TCP:0-1023' com.apple.dashboard\ layer-gadgets '-d /L*/Mana*/$USER&&echo On' '-app Safari WebKitDNSPrefetchingEnabled' "+c0 -l|awk '{print(\$1,\$3)}'|sort|uniq -c|sort -n|tail -1|awk '{print(\$2,\$3,\$1)}'" -m 'L*/{Con*/*/Data/L*/,}Pref* -type f -size 0c -name *.plist.???????|wc -l' kern.memorystatus_vm_pressure_level '3>&1 >&- 2>&3' " -F '\$Time \$Message' -k Sender kernel -k Message CSeq 'n Cause: -' " -i '-app Safari UserStyleSheetEnabled' -name\ kMDItem${p[35]} '-nl -print -print-diagnostics' );N1=${#c2[@]};for j in {0..14};do c2[N1+j]=SP${p[j]}DataType;done;N2=${#c2[@]};for j in 0 1;do c2[N2+j]="-n ' syscall::'${p[33+j]}':return { @out[execname,uid]=sum(arg0) } tick-10sec { trunc(@out,1);exit(0);} '";done;l=(Restricted\ files I/O\ errors 'Elapsed time (s)' POST Battery Safari\ extensions Bad\ plists 'High file counts' User Heat System\ load boot\ args FileVault Diagnostic\ reports Log 'Free space (MiB)' 'Swap (MiB)' Activity 'CPU per process' Login\ hook 'I/O per process' Mach\ ports kexts Daemons Agents XPC\ cache Startup\ items Admin\ access Root\ access Bundles dylibs Stylesheet Font\ issues Inserted\ dylibs Firewall Proxies DNS TCP/IP Wi-Fi Profiles Root\ crontab User\ crontab 'Global login items' 'User login items' Spotlight Memory Listeners Widgets Parental\ Controls Prefetching Nets Descriptors App\ extensions Lockfiles Memory\ pressure SMC Shutdowns Bad\ kexts );N3=${#l[@]};for i in {0..8};do l[N3+i]=${p[5+i]};done;N4=${#l[@]};for j in 0 1;do l[N4+j]="Current ${p[29+j]}stream data";done;A0() { id -G|grep -qw 80;v[1]=$?;((v[1]==0))&&sudo true;v[2]=$?;v[3]=`date +%s`;clear >&-;date '+Start time: %T %D%n';};for i in 0 1;do eval ' A'$((1+i))'() { v=` eval "${c1[$1]} ${c2[$2]}"|'${c1[30+i]}' "${s[$3]}" `;[[ "$v" ]];};A'$((3+i))'() { v=` while read i;do [[ "$i" ]]&&eval "${c1[$1]} ${c2[$2]}" \"$i\"|'${c1[30+i]}' "${s[$3]}";done<<<"${v[$4]}" `;[[ "$v" ]];};A'$((5+i))'() { v=` while read i;do '${c1[30+i]}' "${s[$1]}" "$i";done<<<"${v[$2]}" `;[[ "$v" ]];};A'$((7+i))'() { v=` eval sudo "${c1[$1]} ${c2[$2]}"|'${c1[30+i]}' "${s[$3]}" `;[[ "$v" ]];};';done;A9(){ v=$((`date +%s`-v[3]));};B2(){ v[$1]="$v";};for i in 0 1;do eval ' B'$i'() { v=;((v['$((i+1))']==0))||{ v=No;false;};};B'$((3+i))'() { v[$2]=`'${c1[30+i]}' "${s[$3]}"<<<"${v[$1]}"`;} ';done;B5(){ v[$1]="${v[$1]}"$'\n'"${v[$2]}";};B6() { v=` paste -d: <(printf "${v[$1]}") <(printf "${v[$2]}")|awk -F: ' {printf("'"${f[$3]}"'",$1,$2)} ' `;};B7(){ v=`grep -Fv "${v[$1]}"<<<"$v"|sort`;};C0() { [[ "$v" ]]&&sed -E "$s"<<<"$v";};C1() { [[ "$v" ]]&&printf "${f[$1]}" "${l[$2]}" "$v"|sed -E "$s";};C2() { v=`echo $v`;[[ "$v" != 0 ]]&&C1 0 $1;};C3() { v=`sed -E "${s[63]}"<<<"$v"`&&C1 1 $1;};C4() { echo "Part $((++P)) of 8 done at $((`date +%s`-v[3])) sec">&4;};for i in 1 2 7 8;do for j in 0 2 3;do eval D$i$j'(){ A'$i' $1 $2 $3; C'$j' $4;};';done;done;{ A0;D20 0 $((N1+1)) 2;D10 0 $N1 1;B0;C2 27;B0&&! B1&&C2 28;D12 15 37 25 8;A1 0 $((N1+2)) 3;C0;D13 0 $((N1+3)) 4 3;D23 0 $((N1+4)) 5 4;D13 0 $((N1+9)) 59 $((N3+4));for i in 0 1 2;do D13 0 $((N1+5+i)) 6 $((N3+i));done;D13 0 $((N1+8)) 71 $((N3+3));D13 1 10 7 9;D13 1 11 8 10;B1&&D73 19 53 67 55;D22 2 12 9 11;D12 3 13 10 12;D23 4 19 44 13;D13 5 5 69 1;D13 5 54 30 56;C4;D23 5 14 12 14;C4;D22 6 36 13 15;D22 20 52 66 54;D22 7 37 14 16;D23 8 15 38 17;D22 9 16 16 18;C4;B1&&{ D82 35 49 61 51;D82 11 17 17 20;for i in 0 1;do D82 28 $((N2+i)) 45 $((N4+i));done;};C4;D22 12 44 54 45;D22 12 39 15 21;D13 40 58 32 57;A1 13 40 18;B2 4;B3 4 0 19;A3 14 6 32 0;B4 0 5 11;C4;A1 17 41 20;B7 5;C3 22;B4 4 6 21;A3 14 7 32 6;B4 0 7 11;B3 4 0 22;A3 14 6 32 0;B4 0 8 11;B5 7 8;B1&&{ A8 18 26 23;B7 7;C3 23;};A2 18 26 23;B7 7;C3 24;D13 4 21 24 26;B4 4 12 26;C4;for i in {0..3};do A1 0 $((N1+10+i)) 72;B7 12;B4 0 0 31;((i))&&{ B2 14;A4 39 57 70 14;B2 15;B6 14 15 4;};C3 $((N3+5+i));done;A1 24 22 29;B7 12;B2 14;A4 39 57 70 0;B2 15;B6 14 15 4;C3 29;C4;B3 4 13 27;A1 24 23 32;B7 13;C3 30;B3 4 0 65;A3 14 6 32 0;B4 0 16 11;A1 26 50 64;B7 16;C3 52;D13 25 37 32 33;A2 23 18 28;B2 16;A2 16 25 33;B7 16;B3 0 0 34;B2 21;A6 47 21&&C0;B1&&{ D73 21 0 32 19;D73 10 42 32 40;D82 29 35 46 39;};D23 14 1 62 42;D12 34 43 53 44;D12 22 20 32 25;D22 0 $((N1+14)) 51 32;D13 4 8 41 6;D12 21 28 35 34;D13 27 29 36 35;A2 27 32 39&&{ B2 19;A2 33 33 40;B2 20;B6 19 20 3;};C2 36;D23 38 55 68 50;D23 33 34 42 37;B1&&D83 35 45 55 46;D23 32 31 43 38;D12 36 47 32 48;D13 10 42 32 41;D13 37 2 48 43;A1 4 3 60;B2 30;A1 4 24 60;B2 31;B6 30 31 4;C3 5;D12 21 56 35 31;D12 21 48 49 49;B3 4 22 57;A1 21 46 56;B7 22;B3 0 0 58;C3 47;D22 4 4 50 0;D12 4 51 32 53;D23 22 9 37 7;A9;C2 2;C4;} 4>&2 2>/dev/null|pbcopy;exit 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    8. Launch the built-in 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 and start typing the name.
    Click anywhere in the Terminal window and paste by pressing command-V. The text you pasted should vanish immediately. If it doesn't, press the return key.
    9. If you see an error message in the Terminal window such as "Syntax error" or "Event not found," enter
    exec bash
    and press return. Then paste the script again.
    10. If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter the password, the test will run anyway, but it will produce less information. In most cases, the difference is not important. If you don't know the password, or if you prefer not to enter it, press the key combination control-C or just press return  three times at the password prompt. Again, the script will still run.
    If you're not logged in as an administrator, you won't be prompted for a password. The test will still run. It just won't do anything that requires administrator privileges.
    11. The test may take a few minutes to run, depending on how many files you have and the speed of the computer. A computer that's abnormally slow may take longer to run the test. While it's running, there will be a series of messages in the Terminal window like this:
    Part 1 of 8 done at ... sec
    Part 8 of 8 done at ... sec
    The messages won't be spaced equally apart in time, but they give a rough indication of progress. Wait for the final message
    [Process completed]
    to appear. If you don't see it within half an hour or so, the test probably won't complete in a reasonable time. In that case, close the Terminal window and report the last message you saw. No harm will be done.
    12. When the test is complete, quit Terminal. The results will have been copied to the Clipboard automatically. They are not shown in the Terminal window. Please don't copy anything from there. All you have to do is start a reply to this comment and then paste by pressing command-V again.
    At the top of the results, there will be a line that begins with the words "Start time." If you don't see that, but instead see a mass of gibberish, you didn't wait for the "Process completed" message to appear in the Terminal window. Please wait for it and try again.
    If any private information, such as your name or email address, appears in the results, anonymize it before posting. Usually that won't be necessary.
    13. When you post the results, you might see an error message on the web page: "You have included content in your post that is not permitted," or "You are not authorized to post." That's a bug in the forum software. Please post the test results on Pastebin, then post a link here to the page you created.
    14. This is a public forum, and others may give you advice based on the results of the test. They speak only for themselves, and I don't necessarily agree with them.
    Copyright © 2014 by Linc Davis. As the sole author of this work, I reserve all rights to it except as provided in the Use Agreement for the Apple Support Communities website ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed.

  • Report run very slow

    Hi
    From the SE30, the system call 'fetck MKPF' consume a lot of time, the code is like below. Could anyone please advise how to improve it? Thanks
    clear lt_temp1[].
       select "a~mblnr
             a~budat
             b~matnr
            b~MBLNR
            b~zeile
             b~bwart
             b~ERFMG
             b~ERFME
             c~aufnr
             c~verid
             e~text1
             f~maktx
            g~auart
        into corresponding fields of table lt_temp1
        from mkpf as a
          inner join mseg as b
            on  amblnr = bmblnr
            and amjahr = bmjahr
          inner join afpo as c
            on  baufnr = caufnr
            and bmatnr = cmatnr
          inner join aufk as i
            on caufnr = iaufnr
          inner join afko as d
            on iaufnr = daufnr
          inner join MKAL as e
            on  cmatnr = ematnr
            and bwerks = ewerks
            and cverid = everid
          inner join MARC as h
            on  ematnr = hmatnr
            and ewerks = hwerks
          inner join MAKT as f
            on  ematnr = fmatnr
         inner join aufk as g
           on  caufnr = gaufnr
        where a~budat in s_datum
        and   b~bwart between '101' and '102'
        and   b~werks = p_werks
        and   b~erfmg <> 0
        and   b~aufnr <> space
        and   i~AUART in gr_auart
        and   d~fevor in s_fevor
        and   d~dispo in s_dispo
        and   f~spras = sy-langu.

    Hi huang,
    Hope this code will be help out.
    If you use more that three inner joins performence will be very slow instead of that better to use For All entreies.
    *& Report  ZDN_TEST_001
    REPORT  ZDN_TEST_001.
    SELECT-OPTIONS: S_DATUM FOR SY-DATUM.
    PARAMETERS: P_WERKS TYPE WERKS.
    TYPES: BEGIN OF TP_MKPF,
    MBLNR TYPE MKPF-MBLNR,
    MJAHR TYPE MKPF-MJAHR,
    BUDAT TYPE MKPF-BUDAT,
    END OF TP_MKPF.
    TYPES: BEGIN OF TP_MSEG,
    MBLNR TYPE MSEG-MBLNR,
    MJAHR TYPE MSEG-MJAHR,
    ZEILE TYPE MSEG-ZEILE,
    BWART TYPE MSEG-BWART,
    MATNR TYPE MSEG-MATNR,
    WERKS TYPE MSEG-WERKS,
    ERFMG TYPE MSEG-ERFMG,
    ERFME TYPE MSEG-ERFME,
    AUFNR TYPE MSEG-AUFNR,
    END OF TP_MSEG.
    TYPES: BEGIN OF TP_AFPO,
    AUFNR TYPE AFPO-AUFNR,
    MATNR TYPE AFPO-MATNR,
    VERID TYPE AFPO-VERID,
    END OF TP_AFPO.
    TYPES: BEGIN OF TP_MKAL,
    MATNR TYPE MKAL-MATNR,
    WERKS TYPE MKAL-WERKS,
    VERID TYPE MKAL-VERID,
    TEXT1 TYPE MKAL-TEXT1,
    END OF TP_MKAL.
    TYPES: BEGIN OF TP_MAKT,
    MATNR TYPE MAKT-MATNR,
    MAKTX TYPE MAKT-MAKTX,
    END OF TP_MAKT.
    TYPES: BEGIN OF TP_MARC,
    MATNR TYPE MARC-MATNR,
    WERKS TYPE MARC-WERKS,
    END OF TP_MARC.
    TYPES: BEGIN OF TP_AUFK,
    AUFNR TYPE AUFK-AUFNR,
    AUART TYPE AUFK-AUART,
    END OF TP_AUFK.
    TYPES: BEGIN OF TP_TEMP1,
    MBLNR TYPE MKPF-MBLNR,
    BUDAT TYPE MKPF-BUDAT,
    MATNR TYPE MSEG-MATNR,
    ZEILE TYPE MSEG-ZEILE,
    BWART TYPE MSEG-BWART,
    ERFMG TYPE MSEG-ERFMG,
    ERFME TYPE MSEG-ERFME,
    AUFNR TYPE AFPO-AUFNR,
    VERID TYPE AFPO-VERID,
    TEXT1 TYPE MKAL-TEXT1,
    MAKTX TYPE MAKT-MAKTX,
    AUART TYPE AUFK-AUART,
    END OF TP_TEMP1.
    DATA: IT_TEMP1 TYPE STANDARD TABLE OF TP_TEMP1.
    DATA: IT_MKPF TYPE STANDARD TABLE OF TP_MKPF.
    DATA: IT_MSEG TYPE STANDARD TABLE OF TP_MSEG.
    DATA: IT_AFPO TYPE STANDARD TABLE OF TP_AFPO.
    DATA: IT_MKAL TYPE STANDARD TABLE OF TP_MKAL.
    DATA: IT_MAKT TYPE STANDARD TABLE OF TP_MAKT.
    DATA: IT_AUFK TYPE STANDARD TABLE OF TP_AUFK.
    DATA: IT_MARC TYPE STANDARD TABLE OF TP_MARC.
    work area.
    DATA: WA_TEMP1 TYPE TP_TEMP1 ,
          WA_MKPF TYPE TP_MKPF,
          WA_MSEG TYPE TP_MSEG,
          WA_AFPO TYPE TP_AFPO,
          WA_MKAL TYPE TP_MKAL,
          WA_MAKT TYPE TP_MAKT,
          WA_MARC TYPE TP_MARC,
          WA_AUFK TYPE TP_AUFK.
    START-OF-SELECTION.
      SELECT MBLNR MJAHR BUDAT INTO TABLE  IT_MKPF FROM MKPF
      WHERE BUDAT IN S_DATUM.
      IF NOT IT_MKPF IS INITIAL.
        SELECT MBLNR MJAHR ZEILE BWART MATNR WERKS ERFMG ERFME INTO TABLE IT_MSEG FROM MSEG
        FOR ALL ENTRIES IN IT_MKPF
        WHERE MBLNR = IT_MKPF-MBLNR
        AND MJAHR = IT_MKPF-MJAHR
        AND BWART BETWEEN '101' AND '102'
        AND WERKS = P_WERKS
        AND ERFMG = 0
        AND AUFNR = SPACE.
      ENDIF.
      IF NOT IT_MSEG IS INITIAL.
        SELECT AFPOAUFNR AFPOMATNR AFPO~VERID INTO TABLE IT_AFPO FROM AFPO
        INNER JOIN AUFK
        ON AFPOAUFNR = AUFKAUFNR
        INNER JOIN AFKO
        ON AUFKAUFNR = AFKOAUFNR
        FOR ALL ENTRIES IN IT_MSEG
        WHERE AFPO~AUFNR = IT_MSEG-AUFNR
        AND MATNR = IT_MSEG-MATNR.
      ENDIF.
      IF NOT IT_MSEG IS INITIAL.
        SELECT MATNR WERKS VERID TEXT1 INTO TABLE IT_MKAL FROM MKAL
        FOR ALL ENTRIES IN IT_MSEG
        WHERE MATNR = IT_MSEG-MATNR
        AND WERKS = IT_MSEG-WERKS.
      ENDIF.
      IF NOT IT_MKAL IS INITIAL.
        SELECT MATNR WERKS INTO TABLE IT_MARC FROM MARC
        FOR ALL ENTRIES IN IT_MKAL
        WHERE MATNR = IT_MKAL-MATNR.
      ENDIF.
      IF NOT IT_MARC IS INITIAL.
        SELECT MATNR MAKTX INTO TABLE IT_MAKT FROM MAKT
          FOR ALL ENTRIES IN IT_MARC
          WHERE MATNR = IT_MARC-MATNR.
      ENDIF.
      IF NOT IT_AFPO IS INITIAL.
        SELECT AUFNR AUART INTO TABLE IT_AUFK FROM AUFK
        FOR ALL ENTRIES IN IT_AFPO
        WHERE AUFNR = IT_AFPO-AUFNR.
      ENDIF.
      LOOP AT IT_MKPF INTO WA_MKPF.
        WA_TEMP1-MBLNR = WA_MKPF-MBLNR.
        WA_TEMP1-BUDAT = WA_MKPF-BUDAT.
        READ TABLE IT_MSEG WITH KEY MBLNR = WA_MKPF-MBLNR
                                    WERKS = P_WERKS
                                    ERFMG = 0
                                    AUFNR = SPACE
                                    INTO WA_MSEG.
        IF SY-SUBRC = 0.
          WA_TEMP1-MATNR = WA_MSEG-MATNR.
          WA_TEMP1-ZEILE = WA_MSEG-ZEILE.
          WA_TEMP1-BWART = WA_MSEG-BWART.
          WA_TEMP1-ERFMG = WA_MSEG-ERFMG.
          WA_TEMP1-ERFME = WA_MSEG-ERFME.
          READ TABLE IT_AFPO WITH KEY AUFNR = WA_MSEG-AUFNR
                                      MATNR = WA_MSEG-MATNR
                                      INTO WA_AFPO.
          IF SY-SUBRC = 0.
            WA_TEMP1-AUFNR = WA_AFPO-AUFNR.
            WA_TEMP1-VERID = WA_AFPO-VERID.
            READ TABLE IT_AUFK WITH KEY AUFNR = WA_AFPO-AUFNR
                                        INTO WA_AUFK.
            IF SY-SUBRC = 0.
              WA_TEMP1-AUART = WA_AUFK-AUART.
            ENDIF.
          ENDIF.
          READ TABLE IT_MKAL WITH KEY MATNR = WA_MSEG-MATNR
                                      WERKS = WA_MSEG-WERKS
                                      INTO WA_MKAL.
          IF SY-SUBRC = 0 .
            WA_TEMP1-TEXT1 = WA_MKAL-TEXT1.
            READ TABLE IT_MARC WITH KEY MATNR = WA_MKAL-MATNR
                                        WERKS = WA_MSEG-WERKS
                                        INTO WA_MARC.
            IF SY-SUBRC = 0.
              READ TABLE IT_MAKT WITH KEY MATNR = WA_MARC-MATNR
                                          INTO WA_MAKT.
              IF SY-SUBRC = 0 .
                WA_TEMP1-MAKTX = WA_MAKT-MAKTX.
              ENDIF.
            ENDIF.
          ENDIF.
          APPEND WA_TEMP1 TO IT_TEMP1.
          CLEAR: WA_TEMP1 , WA_MKPF , WA_MSEG , WA_AFPO , WA_MKAL , WA_MAKT, WA_MARC , WA_AUFK.
        ENDIF.
      ENDLOOP.
    Thanks,
    Nelson

  • Report running very slow.. taking too much time

    Dear Oracle Report experts,
    I have developed report in oracle reports bulider 10g. while running it from report builder through main menu *** data is coming very SLOW *** within 55 Minuts.
    But, If same query is executing from SQL/PLSQL deverloper it is very fast within 45 second.
    Please suggest any configuration or setting ; is having Idea.
    Thanks
    Muhammad Salim
    Query is as below: generating result in 48 second.
    select cns.consultant,
    sum(cns.nof_pat) noof_pat,
    sum(cns.opd_amnt) opd_amnt,
    sum(cns.discount_amnt) discount_amnt,
    sum(cns.net_amnt) net_amnt,
    sum(cns.dr_share) dr_share,
    sum(cns.hosp_share) hosp_share,
    sum(cns.net_dis) net_dis
    from
    select rec.consultant,
    count(distinct rec.consultant) nof_pat,
    -- rec.receipt_date, bysalim
    pay_mode,
    rec.patient_mrno,rec.patient,
    service_name,rcpt_no,
    company,rec.docno,
    sum(distinct return_amnt) return_amnt,
    sum(distinct rec.opd_amnt) opd_amnt,
    sum(distinct dis.discount_amnt) discount_amnt,
    (sum(distinct nvl(rec.opd_amnt,0))-sum(distinct nvl(dis.discount_amnt,0))/count(rec.consultant)) net_amnt,
    round((((sum(distinct nvl(rec.opd_amnt,0))-sum(distinct nvl(dis.discount_amnt,0))/count(rec.consultant) ) *
    max(dr_per))/100),0) dr_share,
    round((((sum(distinct nvl(rec.opd_amnt,0))-sum(distinct nvl(dis.discount_amnt,0))/count(rec.consultant) ) *
    max(100-dr_per))/100),0) hosp_share,
    count(distinct rec.consultant) net_dis
    from
    select -- bokm_doc_dt receipt_date, bysalim
    bil_recept_no_a rcpt_no,
    fnc_org_sname(bokm_panel_comp_id) company,
    0 return_amnt,
    pr_mrno patient_mrno,pr_fname patient,
    bokm_doc_no docno,
    gcd_desc(bil_pay_mode_a) pay_mode,
    fnc_service_name(rslt_tst_code) service_name,
    dr_name consultant,
    pt_tst_rate opd_amnt,
    cons_share cons_share,
    (select max((nvl(rt_dr_share,0)*(100))/nvl(rt_amount,0))
    from hms_adm_dr_rt rt
    where dr.dr_id = rt.rt_dr_id
    and book.rslt_tst_code = rt.rt_scs_id) dr_per,
    dr_on_rent dr_rent,dr_share
    from hms_pat_pers pat,hms_lab_pat_mst pmst,hms_opd_book book,
    hms_pat_amnt amt,hms_adm_dr dr
    where pat.pr_mrno = pmst.bokm_mrno
    and pmst.bokm_mrno = book.rslt_mrno
    and pmst.bokm_doc_no = book.pt_pat_doc_no
    and pmst.bokm_mrno = amt.bil_mrnum_a
    and pmst.bokm_doc_no = amt.bil_docno_a
    and pmst.bokm_ref_conusltant_id = dr.dr_id
    and amt.bil_rcp_type_a = '075002'
    and pmst.bokm_pat_type in('PVT_OPD','CP_OPD')
    and amt.bil_void_a = 'N'
    and (pmst.bokm_user_dept_code != '039')
    and BOOK.CREATED_ON between '01-OCT-2011' and '17-OCT-2012'
    /* and (pat.pr_curr_cont_id = :P_CONT_ID or :P_CONT_ID = '000')
    and (pat.pr_curr_prvnc_id = :P_PRVNC_ID or :P_PRVNC_ID = '00')
    and (pat.pr_curr_city_id = :P_CITY_ID or :P_CITY_ID = '000')
    and (pat.pr_curr_area = :P_AREA_ID or :P_AREA_ID = '000')
    and (pat.pr_gender = :P_GENDER or :P_GENDER = 'A')
    and (pat.pr_marital_status = :P_MARITAL_STAT or :P_MARITAL_STAT = 'ALL')
    and (to_char(pmst.bokm_panel_comp_id) = :P_PANEL_COMP or :P_PANEL_COMP = 'ALL')
    and (pmst.bokm_ref_conusltant_id = :P_CONS or :P_CONS = 'ALL')
    and (decode(pmst.bokm_panel_comp_id,'1','PVT_IPD','CP_IPD') = :P_PAT_TYPE or :P_PAT_TYPE = 'ALL')
    &LPARA_RCPT_DT */
    ) rec,
    select -- bokm_doc_dt receipt_date, bysalim
    pr_mrno patient_mrno,
    bokm_doc_no docno,
    nvl(bil_disc_amont_a,0) discount_amnt
    from hms_pat_pers pat,hms_lab_pat_mst pmst,hms_opd_book book,
    hms_pat_amnt amt
    where pat.pr_mrno = pmst.bokm_mrno
    and pmst.bokm_mrno = book.rslt_mrno
    and pmst.bokm_doc_no = book.pt_pat_doc_no
    and pmst.bokm_mrno = amt.bil_mrnum_a
    and pmst.bokm_doc_no = amt.bil_docno_a
    and amt.bil_rcp_type_a = '075001'
    and pmst.bokm_pat_type in('PVT_OPD','CP_OPD')
    and amt.bil_void_a = 'N'
    and (pmst.bokm_user_dept_code != '039')
    and BOOK.CREATED_ON between '01-OCT-2011' and '17-OCT-2012'
    /* and (pat.pr_curr_cont_id = :P_CONT_ID or :P_CONT_ID = '000')
    and (pat.pr_curr_prvnc_id = :P_PRVNC_ID or :P_PRVNC_ID = '00')
    and (pat.pr_curr_city_id = :P_CITY_ID or :P_CITY_ID = '000')
    and (pat.pr_curr_area = :P_AREA_ID or :P_AREA_ID = '000')
    and (pat.pr_gender = :P_GENDER or :P_GENDER = 'A')
    and (pat.pr_marital_status = :P_MARITAL_STAT or :P_MARITAL_STAT = 'ALL')
    and (to_char(pmst.bokm_panel_comp_id) = :P_PANEL_COMP or :P_PANEL_COMP = 'ALL')
    and (pmst.bokm_ref_conusltant_id = :P_CONS or :P_CONS = 'ALL')
    and (decode(pmst.bokm_panel_comp_id,'1','PVT_IPD','CP_IPD') = :P_PAT_TYPE or :P_PAT_TYPE = 'ALL')
    and BOOK.CREATED_ON between :P_RCPT_DTFR and :P_RCPT_DTTO
    -- and BOOK.CREATED_ON between :P_RCPT_DTFR and :P_RCPT_DTTO
    &LPARA_RCPT_DT */
    ) dis
    where rec.patient_mrno = dis.patient_mrno (+)
    and rec.docno = dis.docno (+)
    --and patient = 'SHAHMEER'
    group by rec.consultant, --rec.receipt_date, bysalim
    rec.patient_mrno,rec.patient,
    pay_mode,service_name,rec.docno,
    rcpt_no,company
    order by rcpt_no,rec.consultant
    ) cns
    group by cns.consultant
    order by 1
    Edited by: user6431550 on Nov 15, 2012 3:10 AM

    Dear Oracle Report experts,
    I have developed report in oracle reports bulider 10g. while running it from report builder through main menu *** data is coming very SLOW *** within 55 Minuts.
    But, If same query is executing from SQL/PLSQL deverloper it is very fast within 45 second.
    Please suggest any configuration or setting ; is having Idea.
    Thanks
    Muhammad Salim
    Query is as below: generating result in 48 second.
    select cns.consultant,
    sum(cns.nof_pat) noof_pat,
    sum(cns.opd_amnt) opd_amnt,
    sum(cns.discount_amnt) discount_amnt,
    sum(cns.net_amnt) net_amnt,
    sum(cns.dr_share) dr_share,
    sum(cns.hosp_share) hosp_share,
    sum(cns.net_dis) net_dis
    from
    select rec.consultant,
    count(distinct rec.consultant) nof_pat,
    -- rec.receipt_date, bysalim
    pay_mode,
    rec.patient_mrno,rec.patient,
    service_name,rcpt_no,
    company,rec.docno,
    sum(distinct return_amnt) return_amnt,
    sum(distinct rec.opd_amnt) opd_amnt,
    sum(distinct dis.discount_amnt) discount_amnt,
    (sum(distinct nvl(rec.opd_amnt,0))-sum(distinct nvl(dis.discount_amnt,0))/count(rec.consultant)) net_amnt,
    round((((sum(distinct nvl(rec.opd_amnt,0))-sum(distinct nvl(dis.discount_amnt,0))/count(rec.consultant) ) *
    max(dr_per))/100),0) dr_share,
    round((((sum(distinct nvl(rec.opd_amnt,0))-sum(distinct nvl(dis.discount_amnt,0))/count(rec.consultant) ) *
    max(100-dr_per))/100),0) hosp_share,
    count(distinct rec.consultant) net_dis
    from
    select -- bokm_doc_dt receipt_date, bysalim
    bil_recept_no_a rcpt_no,
    fnc_org_sname(bokm_panel_comp_id) company,
    0 return_amnt,
    pr_mrno patient_mrno,pr_fname patient,
    bokm_doc_no docno,
    gcd_desc(bil_pay_mode_a) pay_mode,
    fnc_service_name(rslt_tst_code) service_name,
    dr_name consultant,
    pt_tst_rate opd_amnt,
    cons_share cons_share,
    (select max((nvl(rt_dr_share,0)*(100))/nvl(rt_amount,0))
    from hms_adm_dr_rt rt
    where dr.dr_id = rt.rt_dr_id
    and book.rslt_tst_code = rt.rt_scs_id) dr_per,
    dr_on_rent dr_rent,dr_share
    from hms_pat_pers pat,hms_lab_pat_mst pmst,hms_opd_book book,
    hms_pat_amnt amt,hms_adm_dr dr
    where pat.pr_mrno = pmst.bokm_mrno
    and pmst.bokm_mrno = book.rslt_mrno
    and pmst.bokm_doc_no = book.pt_pat_doc_no
    and pmst.bokm_mrno = amt.bil_mrnum_a
    and pmst.bokm_doc_no = amt.bil_docno_a
    and pmst.bokm_ref_conusltant_id = dr.dr_id
    and amt.bil_rcp_type_a = '075002'
    and pmst.bokm_pat_type in('PVT_OPD','CP_OPD')
    and amt.bil_void_a = 'N'
    and (pmst.bokm_user_dept_code != '039')
    and BOOK.CREATED_ON between '01-OCT-2011' and '17-OCT-2012'
    /* and (pat.pr_curr_cont_id = :P_CONT_ID or :P_CONT_ID = '000')
    and (pat.pr_curr_prvnc_id = :P_PRVNC_ID or :P_PRVNC_ID = '00')
    and (pat.pr_curr_city_id = :P_CITY_ID or :P_CITY_ID = '000')
    and (pat.pr_curr_area = :P_AREA_ID or :P_AREA_ID = '000')
    and (pat.pr_gender = :P_GENDER or :P_GENDER = 'A')
    and (pat.pr_marital_status = :P_MARITAL_STAT or :P_MARITAL_STAT = 'ALL')
    and (to_char(pmst.bokm_panel_comp_id) = :P_PANEL_COMP or :P_PANEL_COMP = 'ALL')
    and (pmst.bokm_ref_conusltant_id = :P_CONS or :P_CONS = 'ALL')
    and (decode(pmst.bokm_panel_comp_id,'1','PVT_IPD','CP_IPD') = :P_PAT_TYPE or :P_PAT_TYPE = 'ALL')
    &LPARA_RCPT_DT */
    ) rec,
    select -- bokm_doc_dt receipt_date, bysalim
    pr_mrno patient_mrno,
    bokm_doc_no docno,
    nvl(bil_disc_amont_a,0) discount_amnt
    from hms_pat_pers pat,hms_lab_pat_mst pmst,hms_opd_book book,
    hms_pat_amnt amt
    where pat.pr_mrno = pmst.bokm_mrno
    and pmst.bokm_mrno = book.rslt_mrno
    and pmst.bokm_doc_no = book.pt_pat_doc_no
    and pmst.bokm_mrno = amt.bil_mrnum_a
    and pmst.bokm_doc_no = amt.bil_docno_a
    and amt.bil_rcp_type_a = '075001'
    and pmst.bokm_pat_type in('PVT_OPD','CP_OPD')
    and amt.bil_void_a = 'N'
    and (pmst.bokm_user_dept_code != '039')
    and BOOK.CREATED_ON between '01-OCT-2011' and '17-OCT-2012'
    /* and (pat.pr_curr_cont_id = :P_CONT_ID or :P_CONT_ID = '000')
    and (pat.pr_curr_prvnc_id = :P_PRVNC_ID or :P_PRVNC_ID = '00')
    and (pat.pr_curr_city_id = :P_CITY_ID or :P_CITY_ID = '000')
    and (pat.pr_curr_area = :P_AREA_ID or :P_AREA_ID = '000')
    and (pat.pr_gender = :P_GENDER or :P_GENDER = 'A')
    and (pat.pr_marital_status = :P_MARITAL_STAT or :P_MARITAL_STAT = 'ALL')
    and (to_char(pmst.bokm_panel_comp_id) = :P_PANEL_COMP or :P_PANEL_COMP = 'ALL')
    and (pmst.bokm_ref_conusltant_id = :P_CONS or :P_CONS = 'ALL')
    and (decode(pmst.bokm_panel_comp_id,'1','PVT_IPD','CP_IPD') = :P_PAT_TYPE or :P_PAT_TYPE = 'ALL')
    and BOOK.CREATED_ON between :P_RCPT_DTFR and :P_RCPT_DTTO
    -- and BOOK.CREATED_ON between :P_RCPT_DTFR and :P_RCPT_DTTO
    &LPARA_RCPT_DT */
    ) dis
    where rec.patient_mrno = dis.patient_mrno (+)
    and rec.docno = dis.docno (+)
    --and patient = 'SHAHMEER'
    group by rec.consultant, --rec.receipt_date, bysalim
    rec.patient_mrno,rec.patient,
    pay_mode,service_name,rec.docno,
    rcpt_no,company
    order by rcpt_no,rec.consultant
    ) cns
    group by cns.consultant
    order by 1
    Edited by: user6431550 on Nov 15, 2012 3:10 AM

  • JDeveloper IDE suddenly very slow for past two days

    Hi All,
    I have Jdeveloper 11.1.1.4 for more than a month now. Suddenly the JDeveloper IDE has become very slow. It is very annoying having to wait for the code changes to show across and windows take long to get in sync. I have 3.25 GB RAM running on XP service pack 3. Also, I scanned my machine for likely virus, but has come clean. It is only with Jdeveloper I am having problems. All other applications are running fine. I even tried just running JDeveloper alone. No luck.
    Thanks

    Suddenly the JDeveloper IDE has become very slowSeems like something changed.
    Did you install any new extensions? When is it "slow?" Is it when doing a specific activity, or just overall "slow?" What does your OS show (is JDev using lots of CPU, for example)? Have you tried making a backup of your "system11.1.1.4.37.59.23" folder (numbers may be different depending on version) and then deleting it so that JDev recreates it for you (you'll lose all of your preferences/settings)?
    John

  • Report running very slow compared to Query Analyzer - high TimeDataRetrieval

    Hi,
    I have a report in SQL Reporting Services 2005 which calls a stored proc and the report takes a very long time to run and sometimes returns zero records. But when i run the stored proc in query analyzer it takes about 4 seconds!!
    I have checked the execution log on the RS using the below sql:
    Code Snippet
    use ReportServer
    Select * from ExecutionLog with (nolock) order by TimeStart DESC
    It shows that i have a large amount of time for the dataretrieval (601309ms, about 10mins) and does not return any records most likely because of a query timeout:
    TimeDataRetrieval  TimeProcessing  TimeRendering Source Status         ByteCount RowCount
      601309                      2227                     3                         1            rsSuccess 4916           0
    The weird thing is that when i run it in query analyzer, i get about 400 records in 4 seconds !!
    I dont understand what RS is doing to take up so much time like this to retrieve data.
    The report is very simple - it basically returns the records straight out into a table.
    The only thing I somewhat suspected was a parameter data type conflict between RS and SQL, specifically dates. I have a start and end date parameter in the report - i tried specifying this as date and string to see if it made any difference but it didn't.
    Any help would be greatly appreciated.

    Hi Mark,
    I didn't say it was an issue of parameter sniffing, and I didn't point you towards the good article about that <s>. I asked you whether you had read the article, described to you earlier in the thread.
    What I said was that it might be an issue of appropriate and dynamic query optimization, versus a cached query plan.  Parameter sniffing is only one of many ways that SQL Server tries to figure out how to optimize a query.  I thought the article did a good job of discussing some of what goes on during this process, and that by absorbing that you could think of ways to handle the wider issue that would be appropriate to your code.  I also pointed you to a thread in which I discussed this in more detail.
    While there are truly many issues with the date controls in the default parameter interface and how they behave, I don't think that what you're experiencing with the date format is implicated in the performance issue.  I guess it *might* be if (say) there is a non-default param value in your proc but your report parameter allows nulls. 
    Let's say the report server database has a different date default than your production database in your system. I have never sat down and tested this scenario and I guess it might cause problems, So we'll look at that first. 
    Whether the date format is at fault is really easy to prove one way or the other, and once proven can be pretty easy to fix:
    Create a test parameter that is of string type.  SQL Server is really good about dynamic conversion of string dates to date types as you probably know.
    place values (formatted however you want) into this version of the parameter instead of your date control parameter.  Use valid dates, in both formats.
    Does your performance change?
    Do you get the right results but bad performance with US format date strings versus right results with good performance with AU date values?
    Do you get the WRONG results with US format date strings, or with AU date strings?
    Try additional permutations involving casting/converting in your proc.
    FWIW, go ahead in the Query Analyzer and put the SAME values you see in the log into your tests there (in US format, I mean).  Do you get the CORRECT results?  Does performance change?  Hold this thought and see below.
    Another thing you can do is look at the query plan as presented by the Query Analyzer when you present the arguments different ways.  See #7 above -- try presenting the date in different formats.  Does the plan show the same path and the same indexes in use each time, or are some not possible because of the way the date has to be converted?  When this happens, the issue is usually that the conversion must be done for each line compared in the filter.  You can fix this really easily in most cases by cast/convert in the procedure so that your SELECT line is only doing that work once. 
    If the plans are different, and perhaps the indexes used are different and you *can't* fix it by fixing the date before the SELECT, do you need to add an index, or perhaps rebuild one?
    Moving on from the date format, as I said before it may be really important NOT to go by your interactive Query Analyzer performance because what you do there may not be used by SQL Server in determining a query plan to cache and re-use.  In case you haven't read the other discussion that I pointed you to at (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1827775&SiteID=1), think about using RECOMPILE or other options that will force a more dynamic investigation of the query.
     >L<

  • Report retrive very slow

    dear sir,
    can you help me. i found problem in oracle 8i on window 2003, it take very high time in process or report retiveal.
    when i reinstall window 2003 and oracle 8i. before that one dba set some parameter in oracle and thats worked fine.
    if you guid me it will be very useful me.
    thanks
    regd.
    pankaj raval

    user13541345 wrote:
    dear sir,
    can you help me. i found problem in oracle 8i on window 2003, it take very high time in process or report retiveal.
    when i reinstall window 2003 and oracle 8i. before that one dba set some parameter in oracle and thats worked fine.
    if you guid me it will be very useful me.
    thanks
    regd.
    pankaj ravalpankaj raval,
    Welcome to the forums.
    You are very likely to have problems running Oracle 8i on Windows 2003 - Oracle 8i was never certified for Windows 2003, and if I recall correctly, there are problems with Java, exp (export), and possibly RMAN backups with that combination of operating system and Oracle release version.
    Before you start down the path of flipping parameters, determine what is slow. From your post it appears that you have narrowed down the problem to a specific report. Find one of the sessions that will execute the report and enable a 10046 trace at level 8 or level 12. See this 3 part blog article series for help with 10046 trace files:
    http://hoopercharles.wordpress.com/2009/12/01/10046-extended-sql-trace-interpretation/
    With Oracle 8i you will likely need to use this syntax to enable a 10046 trace in another session
    EXEC SYS.DBMS_SYSTEM.SET_EV(SID,SERIAL#,10046,12,'');Or, you can use the logon trigger that is provided in the second article in the series.
    Charles Hooper
    Co-author of "Expert Oracle Practices: Oracle Database Administration from the Oak Table"
    http://hoopercharles.wordpress.com/
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • Report is very Slow,!!!

    Hi Every1;
    I am building a report of statements of different account holders, but it take much time as each page took more than 10 mins consisting of 25 rows only, please check my query is there any problem in it or not.
    Query
    i m taking the accounts name and address from the chart of account table consisting of more then 15000 account holders and taking the rest of the requirements e.g. opbal, qty, dr,cr from the other table ( t2 )consisting of more then 3000000 rows.
    i think the speed slow is due to enough record.
    my desktop hardware is 2 gb ram and 3.0 ghz dual core processor.
    i even take the codes, name of the account holders from the same table t2 but the speed variable from 1-2 mins per page.
    Any Solution for this
    Regards
    M. Laeeque A.

    sorry for that
    Query Is.
    in main sql query statement ( Group 1 ) i write
    select codes, dname, dadd from t1
    and in
    formula column cf1 ( opbal )
    i write
    declare
    t1 number;
    begin
    select sum(dr)-sum(cr) into t1 from t2 where sdate < :dt1 and code = :code;
    return t1;
    and in cf2 i wrote
    declare
    t1 number;
    t2 number;
    begin
    select sum(dr),sum(cr) into t1 from t2 where sdate between :dt1 and :dt2 and code = :code;
    :cp1 := t1;
    :cp2 := t2;
    return :cp1;
    return :cp2;
    and in cf3 i wrote
    declare
    t1 number;
    begin
    select sum(qty) into t1 from t2 where sdate between :dt1 and :dt2 and code = :code;
    return t1;
    this is my query can any1 please help me
    Oracle 9i is my database and reports 6i
    Regards
    M. Laeeque A.

  • SSRS report running very slow but query is very fast in SSMS

    I am running a very basic report. I am just retrieving some data from a table and I am using a parameter in the Where clause of the query. The query runs fast (in less than 5 secs) if I hardcode the parameter in the SSRS query but if it's left as a dynamically
    chosen parameter the query takes over 5 minutes to render. I have read a little about "Parameter Sniffing" but I am not sure if that applies to my case since I am only using a TSQL query and not a SP.
    Any feedback would be appreciated.
    PS: My query looks like below:
    Select Col1, Count(*)
    From Tbl1
    Where Col2 = @Para1
    Group By Col1
    KK

    Hi Kk,
    Is your data retrieval takes time or report rendering takes time? Run this query in your report server database to get the above two. Select * From Executionlog2
    Check the timings data retrieval time, processing time, and report rendering time.
    If data retrieval takes time,
    Give some default values to filters (parameters).
    If parameter rendering takes time
    Choose different options for parameter selection. Instead of multiselction of parameter, use like etc.
    Let me know which causing this problem after running the SQL profiler or executionlog query so that I can help you more. Or you can use SQL profiler to check what query takes more time.
    Hope this helps.
    Regards,
    Charlie Liao
    TechNet Community Support

Maybe you are looking for

  • Vendor master creation postal code mandatory through LSMW

    Dear Expert Postal code is mandatory while create vendor master record through LSMW, but while create manually system is not asking the postal code, mean not mandatory. please can tell why? Regards karan

  • What is the syntax for calling function from class file by jsp

    does anyone here knows what is the syntax of how to call a function from java class file by javascript code or any way to call it? and where should i put the calling function code? because the function is called depend on the user click. for example

  • MySQL Database Information Usage In Website

    I want the information gathered from phpmyadmin (Name, URL, etc) to be organized into tables and tables inside that table. I've been looking at multiple videos on YouTube and tried following what it is that they did but at certain areas I got stuck.

  • What does this error code mean?  Help!!! First post.

    New guy here. My wifes computer starting making strange repetitive hard drive noises several days ago. A few frozen screens and now will not boot. The computer is a Powerbook G4 15in. I ran the hardware test several times and got no error code. I eve

  • Nokia PC Connectivity Solution slow launch of Offi...

    Hello , I work as IT support for a company. I have a problem with Nokia PC Connectivity Solution software that came with Nokia_PC_Suite_rel_6_86_9_0_eng_web and also with new Nokia_PC_Suite_rel_7_0_8_2_eng_web. Installation of this software cause all