Very slow if reference cursor value in another query

I have a script like below:
declare
CURSOR c1 IS
select rptd_by, total from (select rptd_by, count(rptd_by) total from LOCBUG_ALL_M group by rptd_by order by count(rptd_by) desc) where rownum < 2;
begin
FOR item IN c1 LOOP
select count(*) into bug_num from locbug_all_m h, v_nbtbug b where (h.rptd_by like item.rptd_by) and (b.nls_related=7) and (h.rptno=b.bugdb_num);
-- 6 more similar query
END LOOP;
end;
It takes nearly 4 minutes to run.
If in the loop, I change the item.rptd_by to a static value, it only takes less than 5 seconds.
The query used for cursor only takes 0.02 second to run.
Why there's such difference? How can I solve this problem? I'm running this script in HTMLDB and it could timeout if it takes minutes to run.

What are you really trying to select in the loop?
SQL> select * from locbug_all_m;
RPTD_BY          COL2
X1                  1
X2                  2
X3                  3
X4                  4
X5                  5
X6                  6
X7                  7
X8                  8
X9                  9
X10                10
X                  11
11 rows selected.
SQL> ed
Wrote file afiedt.buf
  1  select count(*) from locbug_all_m
  2* where rptd_by like 'X'
SQL> /
  COUNT(*)
         1
SQL> ed
Wrote file afiedt.buf
  1  select count(*) from locbug_all_m
  2* where rptd_by like 'X%'
SQL> /
  COUNT(*)
        11
SQL> select count(*) from locbug_all_m
  2  where rptd_by = 'X';
  COUNT(*)
         1

Similar Messages

  • Very slow performance when assigning value to a form item

    Dear all,
    I have an add-on form that contains 30 text edits. I did not creat the from with screen painter but positioned them by marking each item's top and left position in the new sub.
    I have named them as 'edBox1', 'edBox2'......, 'edBox30'
    At a point I need to assign value to each edit text, I have queried the content from DB into one recordset. However, when I start to assign values to each edit text, the performance became very slow.
    my code is as follow
    me.form.items.item("edBox1").Specific.String = recordset.field.item(0).value.tostring
    me.form.items.item("edBox30").Specific.String = recordset.field.item(29).value.tostring
    I found that B1 seem to iterate each item on the form in order to find the item I specified.
    so I think I should specificy items earler.
    Now for each item I dim an object for it at new sub
    Dim oedBox1 As SAPbouiCOM.EditText
    Dim oedBox30 As SAPbouiCOM.EditText
    and while creating forms, I specificy each item to the matched object
    Then I assign values to items by
    oedBox1.String = recRetrive.Fields.Item(0).Value.ToString
    oedBox30.String = recRetrive.Fields.Item(29).Value.ToString
    However, B1 still iterates to find the item and the performance is still slow, does anyone has a better solution to this issue? please kindly advise.
    Thank you
    Alan
    Edited by: Chih-Peng Chen on Dec 17, 2007 8:42 AM

    Hi Chen,
    you can find one example under SDK samples which will guide on using datasources
    Bind the controls to dbdataource and then query the datasource.
    then update form using oForm.Update(),this will automatically fill the values in all edit boxes and it will be very fast as well
    Hope it helps you
    Regards
    Vishnu

  • Indesign CS6 Very slow - cross-references?

    Dear All,
    I have been struggeling with this for over 2 days now..
    I've treid the following solutions on the Adobe website
    http://helpx.adobe.com/indesign/kb/slow-performance-indesign-cs5.html
    and http://indesignsecrets.com/why-is-indesign-soooo-slow.php
    It does not seem to work.
    My document is around 40 pages, with some images (around 20), but it has a lot of cross references to a table in the same document.
    I have untreaded a lot of information. Currently only 10 pages maximum is threaded.
    My pc has 8 gb ram, 2.5 Ghz and around 40 GB free HD space.
    I think it might be my cross references, but I don't know how to fix it..
    I don't want it to be removed out of the table (because i need my references sorted on alhabatical order).
    Hope you guys can help
    Thanks,
    Daan

    @Daan – I do not much with cross references, but several users here and in other forums report performance issues when working with cross references.
    There is a 3rd party solution by DTP Tools:
    http://www.dtptools.com/product.asp?id=crin
    You could test a trial version.
    (And report back here how fast it is :-) )
    Uwe

  • My iPad is working very slow, moving from one site to another?

    My iPad is working very slowly, from site to site.  Is there an update I have missed?

    Are your clients using a hostname or an IP address when establishing VPN connections? If it's a hostname, then you can just update the DNS record to point to the new address and you're done.
    If it's an IP address, then you need to tell your clients to connect to the new endpoint. Both IPsec and Anyconnect clients support configuration of fallback/secondary addresses for clients to connect to if the primary VPN gateway is down: for the IPsec client, you need to modify the profile on each client and with Anyconnect, you can just push the new profile on clients' next connection.
    For the ssl portal users, there is no easy way to switch if connecting to the ip address - you can modify their portal page to notify them about the migration for example.
    Sent from Cisco Technical Support iPad App

  • Crystal Report is very slow to fetch the results of a Query used in Command

    Hello All,
    We have a query which is used in command object in Business Objects Crystal reports XI. This report is executed against IBM DB2 database. It is taking 40 min to getback the results. Here is the Query. Please suggest how can i improve the performance of this query in report as another reporting tool is taking 2-3 min time to fetch the results with the same query.
    SELECT
    A1.CARR_NUM ,  A1.CST_CTR_NUM ,A1.CLM_CLOSE_STS_CD ,   A1.CLM_RJCT_STS_CD ,A1.CLM_VOID_STS_CD ,  A1.PMT_MTCH_DT , A1.ASC_TRANS_TYP_CD ,  A1.DRUG_DESC ,               
    A1.BATCH_NUM ,   T5.TPA_RJCT_CD ,  A1.DIV_NUM , A1.INVC_NUM ,  A1.SERVICE_DT ,  A1.ACTL_REFILL_NUM ,  A1.CLM_DSPSN_CD ,  A1.INVC_RSBMT_CD , A1.TP_TOTAL_DUE_AMT ,  
    A1.INTL_BILG_MTHD_CD , A1.CARR_EOB_1_CD ,  T5.CARR_EOB_CD_DESC ,  A1.NTNL_DRUG_CD ,  A1.PTNT_FRST_NM ,  A1.PTNT_MDDL_INTL ,  A1.PTNT_LST_NM ,  A1.PTNT_BIRTH_DT ,
    A1.CRDHLDR_ID_NUM   
    FROM
    (SELECT DISTINCT
        T1.CARR_NUM ,  T1.CST_CTR_NUM ,  T1.CLM_CLOSE_STS_CD ,  T1.CLM_RJCT_STS_CD ,   T1.CLM_VOID_STS_CD ,  T3.PMT_MTCH_DT ,   
        T3.ASC_TRANS_TYP_CD ,  T2.DRUG_DESC ,  T4.BATCH_NUM , T1.DIV_NUM ,  T1.INVC_NUM ,  T1 . SERVICE_DT ,  T1.ACTL_REFILL_NUM ,                                         
        T1.CLM_DSPSN_CD ,  T1.INVC_RSBMT_CD ,T1.TP_TOTAL_DUE_AMT ,  T1.INTL_BILG_MTHD_CD ,T3.CARR_EOB_1_CD ,T1.NTNL_DRUG_CD ,  T2.PTNT_FRST_NM ,         T2.PTNT_MDDL_INTL , T2.PTNT_LST_NM ,  T2.PTNT_BIRTH_DT ,  T2.CRDHLDR_ID_NUM 
       FROM  
                    PDRD2LO.VINVC_CLM T1                             
                   , PDRD2LO.VPMNT_DTL T3                             
                   , PDRD2LO.VINVC_CLM_2 T2                           
                   , PDRD2LO.VINVC_ITM_PHARM  T4                     
                        WHERE  
      T1.CLM_CLOSE_STS_CD ='OP'                     
                  AND  T1.CLM_RJCT_STS_CD ='RJ'                       
                  AND  T1.CLM_VOID_STS_CD ='NV'                       
                  AND  T3.ASC_TRANS_TYP_CD ='40'                      
                  AND  T1.CARR_NUM = T3.CARR_NUM                      
               AND   T1.CST_CTR_NUM = T3.CST_CTR_NUM                  
               AND   T1.DIV_NUM = T3.DIV_NUM                          
               AND   T1.INVC_NUM = T3.INVC_NUM                        
               AND   T1.SERVICE_DT = T3.SERVICE_DT                    
               AND   T1.CLM_CTRL_NUM = T3.CLM_CTRL_NUM                
               AND   T1.ACTL_REFILL_NUM = T3.ACTL_REFILL_NUM          
               AND   T1.INVC_ITM_NUM = T3.INVC_ITM_NUM                
               AND   T1.REFILL_TRANS_NUM = T3.REFILL_TRANS_NUM        
               AND   T1.CARR_NUM = T2.CARR_NUM                        
               AND   T1.CST_CTR_NUM = T2.CST_CTR_NUM                  
               AND   T1.DIV_NUM = T2.DIV_NUM                          
               AND   T1.INVC_NUM = T2.INVC_NUM                        
               AND   T1.SERVICE_DT = T2.SERVICE_DT                  
               AND   T1.ACTL_REFILL_NUM = T2.ACTL_REFILL_NUM        
               AND   T1.CLM_CTRL_NUM = T2.CLM_CTRL_NUM              
               AND   T1.INVC_ITM_NUM = T2.INVC_ITM_NUM              
               AND   T1.REFILL_TRANS_NUM = T2.REFILL_TRANS_NUM      
               AND   T1.INVC_CTRL_NUM = T4.INVC_CTRL_NUM) A1        
    LEFT OUTER JOIN  PDRD2LO.VCARR_EOB T5                
                ON    A1.CARR_EOB_1_CD = T5.CARR_EOB_CD             
                AND   A1.CARR_NUM = T5.CARR_NUM                     
                AND   A1.DIV_NUM = T5.DIV_NUM        
    Thanks!

    Hi Zilla Eh ,
    Thanks for the reply.
    The another reporting tool name is impromptu and it takes 2-3 min , where in Crystal report is taking around 40 min. Please let me know if you any other questions.
    Regards
    Ravi

  • LOV is slow after selecting a value its taking much time to default

    Hi,
    I have a dependent LOV. Master LOV is executing fine and its populatin into the field fastly. But Child LOV is very slow after selecting a value its taking much time to default.
    Can any one please help me if there is any way to default the value fast after selecting a value?
    Thanks,
    Mahesh

    Hi Gyan,
    Same issues in TST and PROD instances.
    In my search criteria if i get 1 record, even after selecting that value its taking much time to default that value into the field.
    Please advice. Thanks for your quick resp.
    Thanks,
    Mahesh

  • Mail restored.... now very slow and often sends multiple versions

    Email is back.... with a caveat, very slow sending.
    This may be another artifact of being a 1%er.
    Jim

    In case you are using "Clear history when Firefox closes": do not clear the Cookies
    If you clear cookies then Firefox will also try to remove cookies created by plugins and that requires to start plugin-container processes that can slow down closing Firefox.
    Instead let the cookies expire when Firefox is closed to make them session cookies.
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: Keep until: "I close Firefox"

  • Saving values of a query to do another query

    Hello:
    I have two selectOneChoice in a page. When you select in the first SelectOneChoice, the second one shows the values obtained by a query. This works perfectly.
    Now with the second value of the SelectOneChoice I have to do another query to get values for another query. I would like to save this values in a variable to use them in the next query and create a table with the resutl of the query.
    Some ideas? I haven´t be able to get this
    I have get to execute the query. In the PageDef I have created a variable (codEnf) and a iterator (findCodEnfByIdIter) in the executables. In the bindings I have created an methodAction(findCodEnfById) and a List (findCodEnfById1). In the console i see that the query is executing correctly. If I put a new component referencing to this, all is correct. But.... How to save the result in the variable codEnf??
    I have put a OutputText in the page with value #{bindings.codEnf} and it´s empty...
    Why?
    Message was edited by:
    ALF

    Help please!!!!!!!!

  • Set variable value from a query - is it possible?

    Hi all,
    I need to use a 'precalculated' value in my report measures' calculations.
    Is it possible to set a variable value as a result of a query?
    Thanks in advance,
    Alex

    Hi,
    In my report, I need to calculate one of the columns as a [certain measure] / [result of another query]
    I didn't succeed to include the [result of another query] as a column in my report's request, but it would be very easy to calculate this [result of another query] separately.
    The [result of another query] value is same for all the rows of my report.
    What I'm trying to do is to run a query before my report (e.q. in the Prefix section), set a variable = [result of another query] and then use this variable in the column calculation of the report.
    Is this possible?
    Thanks,
    Alex

  • My MacBook Pro suddenly became very slow, cursor responding slowely

    My MacBook Pro suddenly became very slow, cursor responding slowely

    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve the problem.
    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. 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. All it does is to collect information about the state of the computer. That information goes nowhere unless you choose to share it. However, you should be cautious about running any kind of program (not just a shell script) at the request of a stranger on a public message board. If you have doubts, search this site for other discussions in which this procedure has been followed without any report of ill effects. If you can't satisfy yourself that the instructions are safe, don't follow them. Ask for other options.
    Here's a summary of what you need to do, if you choose to proceed: Copy a line of text from this web page into the window of another application. Wait for the script to run. It usually takes a few minutes. Then paste the results, which will have been copied automatically, back into a reply on this page. The sequence is: copy, paste, wait, paste again. Details follow.
    4. You may have started the computer in "safe" mode. Preferably, these steps should be taken in “normal” mode. 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.
    5. 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.
    6. 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; clear; Fb='%s\n\t(%s)\n'; Fm='\n%s\n\n%s\n'; Fr='\nRAM details\n%s\n'; Fs='\n%s: %s\n'; Fu='user %s%%, system %s%%'; AC="com.autodesk.AutoCAD  com.evenflow.dropbox com.google.GoogleDrive"; H='^[[:space:]]*((127\.0\.0\.1|::1|fe80::1%lo0)[[:space:]]+local|(255\.){3}255[[:space:]]*broadcast)host[[:space:]]*$'; NS=networksetup; PB="/usr/libexec/PlistBuddy -c Print"; A () { [[ a -eq 0 ]]; }; M () { find -L "$d" -type f | while read f; do file -b "$f" | egrep -lq XML\|exec && echo $f; done; }; AT () { o=`file -b "$1" | egrep -v '^(A.{16}t$|cann)'`; Ps "${1##*/} format"; }; Pc () { o=`grep -v '^ *#' "$2"`; l=`wc -l <<< "$o"`; [[ l -gt 25 ]] && o=`head -n25 <<< "$o"`$'\n'"[$((l-25)) more line(s)]"; Pm "$1"; AT "$1"; }; Pm () { [[ "$o" ]] && o=`sed -E '/^ *$/d;s/^ */   /;s/[-0-9A-Fa-f]{22,}/UUID/g;s/(ochat)\.[^.]+(\..+)/\1\2/;/Shared/!s/(\/Users\/)[^/]+/\1-/g' <<< "$o"` && printf "$Fm" "$1" "$o"; }; Pp () { o=`$PB "$2" | awk -F'= ' \/$3'/{print $2}'`; Pm "$1"; }; Ps () { o=`echo $o`; [[ ! "$o" =~ ^0?$ ]] && printf "$Fs" "$1" "$o"; }; R () { o=; [[ r -eq 0 ]]; }; SP () { system_profiler SP${1}DataType; }; id -G | grep -qw 80; a=$?; A && sudo true; r=$?; t=`date +%s`; clear; { A || echo $'No admin access\n'; A && ! R && echo $'No root access\n'; SP Software | sed -n 's/^ *//;5p;6p;8p'; h=(`SP Hardware | awk '/ Id/{print $3}; /Mem/{print $2}'`); o=$h; Ps "Model"; o=$((h[1]<4?h[1]:0)); Ps "Total RAM (GB)"; o=`SP Memory | sed '1,5d;/[my].*:/d'`; [[ "$o" =~ s:\ [^O]|x([^08]|0[^2]|8[^0]) ]] && printf "$Fr" "$o"; o=`SP Diagnostics | sed '5,6!d'`; [[ "$o" =~ Pass ]] || Pm "POST"; p=`SP Power`; o=`awk '/Cy/{print $NF}' <<< "$p"`; o=$((o>=300?o:0)); Ps "Battery cycles"; o=`sed -n '/Cond.*: [^N]/{s/^.*://p;}' <<< "$p"`; Ps "Battery condition"; for b in FireWire Thunderbolt USB; do o=`SP $b | sed -En '/:$/{s/ *:$//;x;s/\n//;s/\n.*//;/\)/p;};/^ *(V.+ [0N]|Man).+ /{s/ 0x.... //;s/[()]//g;s/(.+: )(.+)/ (\2)/;H;};/Apple|Broadcom|Genesy|Intel|SMSC/{s/.//g;h;}'`; Pm $b; done; o=`pmset -g therm | sed 's/^.*C/C/'`; [[ "$o" =~ No\ th|pms ]] && o=; Pm "Thermal conditions"; o=`pmset -g sysload | grep -v :`; [[ "$o" =~ =\ [^GO] ]] || o=; Pm "System load advisory"; o=`nvram boot-args | awk '{$1=""; print}'`; Ps "boot-args"; fdesetup status | grep -q On && o=on || o=; Ps "FileVault"; a=(/ ""); A=(System User); for i in 0 1; do o=`cd ${a[$i]}L*/Lo*/Diag* || continue; for f in *.{cr,h,pa,s}*; do [[ -f "$f" ]] || continue; d=$(stat -f%Sc -t%F "$f"); [[ "$f" =~ h$ ]] && grep -lq "^Thread c" "$f" && f="$f *"; echo "$d ${f%%_2*} ${f##*.}"; done | sort | tail`; Pm "${A[$i]} diagnostics"; done; grep -lq '*$' <<< "$o" && printf $'\n\t* Code injection\n'; o=`syslog -F bsd -k Sender kernel -k Message CReq 'caug|GPU |hfs: Ru|last value [1-9]|n Cause: -|NVDA\(|pagin|proc: t|Roamed|rror|ssert|Thrott|timed? ?o|WARN' -k Message Ane 'SMC:' | tail -n25 | awk '/:/{$4=""; $5=""};1'`; Pm "Kernel messages"; o=`df -m / | awk 'NR==2 {print $4}'`; o=$((o<5120?o:0)); Ps "Free space (MiB)"; o=$(($(vm_stat | awk '/eo/{sub("\\.",""); print $2}')/256)); o=$((o>=1024?o:0)); Ps "Pageouts (MiB)"; s=( `sar -u 1 10 | sed '$!d'` ); [[ s[4] -lt 85 ]] && o=`printf "$Fu" ${s[1]} ${s[3]}` || o=; Ps "Total CPU usage" && { s=(`ps acrx -o comm,ruid,%cpu | sed '2!d'`); n=$((${#s[*]}-1)); c="${s[*]}"; o=${s[$n]}%; Ps "CPU usage by process \"${c% ${s[$((n-1))]}*}\" with UID ${s[$((n-1))]}"; }; s=(`top -R -l1 -n1 -o prt -stats command,uid,prt | sed '$!d'`); n=$((${#s[*]}-1)); s[$n]=${s[$n]%[+-]}; c="${s[*]}"; o=$((s[$n]>=25000?s[$n]:0)); Ps "Mach ports used by process \"${c% ${s[$((n-1))]}*}\" with UID ${s[$((n-1))]}"; o=`kextstat -kl | grep -v com\\.apple | cut -c53- | cut -d\< -f1`; Pm "Loaded extrinsic kernel extensions"; R && o=`sudo launchctl list | awk 'NR>1 && !/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|calendarse|cups|dove|isc|ntp|openld|post[fg]|x)/{print $3}'`; Pm "Extrinsic daemons"; o=`launchctl list | awk 'NR>1 && !/0x|com\.apple|org\.(x|openbsd)|\.[0-9]+$/{print $3}'`; Pm "Extrinsic agents"; o=`for d in {/,}L*/Lau*; do M; done | egrep -v 'com\.apple\.(CSConfig|server)' | while read f; do ID=$($PB\ :Label "$f") || ID="No job label"; printf "$Fb" "$f" "$ID"; done`; Pm "launchd items"; o=`for d in /{S*/,}L*/StartupItems; do M; done`; Pm "Startup items"; sys=`pkgutil --regexp --only-files --files com.apple.pkg.* | sort | uniq | sed 's:^:/:'`; b=`sed -E '/^.+Lib.+\/Contents\/Info.plist$/!d;s/\/Info.plist$//;/Contents\/./d' <<< "$sys"`; l=`egrep '^/usr/lib/.+dylib$' <<< "$sys"`; [[ "$b" && "$l" ]] && { o=`find -L /S*/L*/{C*/Sec*A,E}* {/,}L*/{A*d,Compon,Ex,In,iTu,Keyb,Mail/B,P*P,Qu*T,Scripti,Sec,Servi,Spo}* -type d -name Contents -prune | grep -Fv "$b" | while read d; do test -f "$d/Info.plist" || continue; ID=$($PB\ :CFBundleIdentifier "$_") || ID="No bundle ID"; printf "$Fb" "${d%/Contents}" "$ID"; done`; Pm "Extrinsic loadable bundles"; o=`find /usr/lib -type f -name *.dylib | grep -Fv "$l"`; Pm "Extrinsic shared libraries"; :; } || echo $'\nReceipts missing'; o=`for e in INSERT_LIBRARIES LIBRARY_PATH; do launchctl getenv DYLD_$e; done`; Pm "Inserted dylibs"; o=`find -L {,/u*/lo*}/e*/periodic -type f -mtime -10d`; Pm "Modified periodic scripts"; o=`scutil --proxy | grep Prox`; Pm "Proxies"; o=`scutil --dns | awk '/r\[0\] /{if ($NF !~ /^1(0|72\.(1[6-9]|2[0-9]|3[0-1])|92\.168)\./) print $NF; exit}'`; i=`route -n get default | awk '/e:/{print $2}'`; I=`$NS -listnetworkserviceorder | sed -En '/ '$i'\)$/{x;s/^\(.+\) //p;q;};x'`; n=`$NS -getdnsservers "$I" | awk '!/^T/{printf "not "; exit}'`; Ps "DNS (${n}from DHCP)"; o=`$NS -getinfo "$I" | awk '/k:/{if ($3 !~ "(255\.){3}0") print}; /v6:/{if ($2 !~ "A") print}'`; Pm "TCP/IP"; R && o=`sudo profiles -P | grep : | wc -l`; Ps "Profiles"; f=auto_master; [[ `md5 -q /etc/$f` =~ ^b166 ]] || Pc $f /etc/$f; for f in fstab sysctl.conf crontab launchd.conf; do Pc $f /etc/$f; done; f=/etc/hosts; Pc "hosts" <(egrep -v "$H" $f ); AT $f; Pc "User launchd" ~/.launchd*; R && Pc "Root crontab" <(sudo crontab -l); Pc "User crontab" <(crontab -l); R && o=`sudo defaults read com.apple.loginwindow LoginHook`; Pm "Login hook"; LD="$(`find /S*/*/F* -type f -name lsregister | head -n1` -dump)"; o=`for ID in $AC; do [[ "$LD" =~ $ID ]] && echo $ID; done`; Pm "Application check"; Pp "Global login items" /L*/P*/loginw* Path; Pp "User login items" L*/P*/*loginit* Name; Pp "Safari extensions" L*/Saf*/*/E*.plist Bundle | sed -E 's/(\..*$|-[1-9])//g'; o=`find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) | wc -l`; Ps "Restricted user files"; cd; o=`find . -maxdepth 1 -exec basename {} + | while read f; do [[ ("$f" =~ ^\.. && ! "$f" =~ ^\.(adobe|android|bash.+|CFU.+|cache|config|cups|dropbox|DS_Store|font.+|git.+|profile|rnd|sh_.+|ssh|subv.+|Trash(es)?|zprofile|zsh.+)$) || ($(stat -f%f "$f") -ge 32768 && "$f" != Library) ]] && ls -Fd "$f"; done`; Pm "Hidden user files"; o=`SP Fonts | egrep 'id: N|te: Y' | wc -l`; Ps "Font problems"; o=`find L*/{Con,Pref}* -type f ! -size 0 -name *.plist | while read f; do plutil -s "$f" >&- || echo $f; done`; Pm "Bad plists"; d=(Desktop L*/Keyc*); n=(20 7); for i in 0 1; do o=`find "${d[$i]}" -type f -maxdepth 1 | wc -l`; o=$((o<=n[$i]?0:o)); Ps "${d[$i]##*/} file count"; done; o=; [[ UID -eq 0 ]] && o=root; Ps "UID"; o=$((`date +%s`-t)); Ps "Elapsed time (s)"; } 2>/dev/null | pbcopy; exit 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    7. 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. Click Utilities, then Terminal in the icon grid.
    Click anywhere in the Terminal window and paste (command-V). The text you pasted should vanish immediately. If it doesn't, press the return key.
    8. If you see an error message in the Terminal window such as "syntax error," enter
    exec bash
    and press return. Then paste the script again.
    9. 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.
    10. 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 nothing in the Terminal window and no indication of progress. Wait for the line
    [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 results. No harm will be done.
    11. 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.
    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.
    12. When you post the results, you might see the message, "You have included content in your post that is not permitted." It means that the forum software has misidentified something in the post as a violation of the rules. If that happens, please post the test results on Pastebin, then post a link here to the page you created.
    Note: 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 Terms of Use of 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.

  • Crystal Reports Moved from one file server to another - very slow opening

    Hello,
    I am new here, and I am in need of a solution. If I am not in the correct forum, please advise.
    Our crystal reports were moved from an old file server to a new file server.  Once the old file server was shut down the reports opened very slow in Designer and in our 3rd party application.  Our server team determined that the reports are still attempting to connect to the old file server.  If the old file server is brought online or dns is changed to reflect another machine that it can make a connection to, it opens with no delay. 
    For some reason, not every report is affected.  Most of the reports are Crystal 8.5, but I have some Crystal XI reports that do the same thing.  I can't find any reference in the reports to any file server/location....
    I need to resolve this issue on the Crystal 8.5 version due to the application that we are running.
    Is there a way to fix this other than to recreate the reports (I have over 400 of them)?
    Any assistance or advice is appreciated!
    Thanks,
    Nancy

    Hi Nancy,
    The server info still needs to be updated. Are you setting location for each subreport also?
    Possibly this registry key will help, I only have CR 2008 installed so you'll have adjust for what ever you are using:
    HKEY_CURRENT_USER\Software\Business Objects\Suite 12.0\Crystal Reports\DatabaseOptions - VerifyStoredProceduresOnFirstRefresh = No
    and
    VerifyStoredProceduresOnSetLocation = No
    And
    VerifyWhenDBDriverUpgraded = No
    And
    ViewOutOfPlaceSubreports = No
    Close CR designer before making any changes. And the usual warning about modifying the registry.
    Thank you
    Don

  • Macbook pro 2010...cursor is acting crazy jumping everywhere and responding very slow...thought it was the track pad but I plugged in a mouse and it still does the same thing...is this a virus?..and can someone please help?...

    My Macbook pro is acting Crazy....the Cursor just keeps on jumping everywhere and not responding when I use the trackpad....Even when it does respond it is very slow...I thought it was the trackpad acting up but realized it wasnt when i plugged in a mouse and it still did the same thing...this happened one other time and shortly after my computer froze...I had to restart for it to work but restarting dosent help this time...can someone please help?...Is this a Virus?

    It is not a virus.  See my Mac Virus Guide*.
    As to what it might be, that's hard to say.  You should try some basic troubleshooting...  Repair the hard drive with disk utility.  Boot in safe mode and see if it happens then, log in to a different user account and see if it happens there, reboot from another system and see if it happens.
    Apparently some people have had this kind of problem caused by swelling batteries that push on the underside of the trackpad and cause all kinds of strange problems.  Is your machine's underside deformed at all?
    * Disclaimer: links to my pages may give me compensation, and should not be taken as endorsement of my services by Apple.

  • The cursor movement is very 'slow' or 'inertial'

    Hi.
    I bought a mac mini with a magic mouse and connected it to a large LCD TV via HDMI (fullHD). Everything is excellent, save for the fact that the cursor movement is very 'slow' or 'inertial'.

    Hi,
    Whenever you write code, format it to show the scope of BEGIN, LOOP, IF statements, and so on.
    Type these 6 characters
    &#123;code&#125;
    (small letters only, inside curly brackets) before and after the formatted code, to preserve spacing on this site.
    You've discovered why the tecnique you're using is called "slow-by-slow" processing.
    You don't need a cursor. You may not even need PL/SQL.
    Just write an INSERT statement that reference the table from the cursor and the tables from your current INSERT statement.
    Here's one way:
    INSERT
    INTO     t1 (columns)
    SELECT         columns
    FROM     t2
    ,     t3
    WHERE     ...
    AND     (t2.month, t3.sp_name)     IN (
                              SELECT DISTINCT
                                   acct_month
                           ,        salesperson_name
                           FROM        period
                           );Depending on the details of your case, there may be a better way, such as a 3-way join.

  • Conversion of Characteristic Values to SIDs. Load Very slow

    Hi Experts,
                     We have a slow load issue when loading from a Write-Optimized DSO into an InfoCube. 8 millon recs in 10 hours.
    We check the start, end, and rules routines and every is ok but for all the package the load was very slow in the Conversion of Characteristic Values to SIDs.
    Can any help me with this?
    Thanks a lot,
    Alejandro

    Hi,
    It is because the SIDs Generation upon Activation flag is unchecked at DSO level .
    One recommendation will be to switch on the property of the DSO SIDs Generation upon Activation flag .
    Are there any secondary indexes also in DSO ?
    You can try deleting them also during loading the data from DSO to cube .
    Also load your master data first and activate it before loading it to cube.
    Thanks,

  • Web pages slow to load with IE11 and the cursor/mouse is very slow to work until after page loads

    Web pages are very slow to load, I hve run Norton Eraser and found no issues that would cause this

    New HP Pavilion three weeks ago.  After several attempts by the 'experts' I finally got a straight answer from a tech in the Philipines yesterday, 01-29-2015.  HP and Microsoft are working to resolve the issue of slow pages and a dead cursor until the next page finally loads.  You may have discovered that Google Chrome DOES NOT have this issue.  Comments about HP would not be allowed here so I will just say, use Chrome until the issue with IE 11 is resolved.

Maybe you are looking for

  • The item Hierarchical Context Menu does not support pre-calculation

    Hello, Trying to download pre-calculated web templates via RepAgent, using the Hierarchical Context Menu feature within the template (populated via control query with Hierarchy) the system returned the following message upon file download: "The item

  • Bug in dvt:graph tag? Cannot set graphType attribute using EL expression

    Dear all, First thing sorry if this is not the correct forum, but I have a problem that is driving me crazy with ADF DVT tags in JDeveloper environment. I'm working with DVT tags to display some graphs in my application. I need to decide at runtime t

  • Automatically connecting Docs LInks to PR line item in ME51N

    Hello Experts, We are using ECC6.0 with EHP6 package and implement MM system. We got a requirement as below. When User enter any material in ME51N and press enter , we need to automatically load the "related"  DMS documents on the basis of some Busin

  • Alv object model and cl_salv_hierseq_level

    I have used the cl_salv_hierseq_level to enable expand and collapse on an instance of cl_salv_hierseq_table. The function to show the detail lines works until the grid table is refreshed from the database.  I have tried using the set_items_expanded m

  • Planning to purchase Oracle 11g Standard One Edition

    I am planning to purchase Oracle 11g Standard One Edition at the same time I have some following questions. Plat form      Server with Dual CPU Inter Core 2 Quada           4 GB RAM           500 GB HDD           Windows 2003           2 MBPS Broadba