Very slow running SQL

Hello I have a stored procedure that I am using to load 5 tables from a stagin table. It reads each line and populates these tables. The staging table has 200K rows in it and I commit every 10,000 rows. Once released to production the staging table will have around 23 million rows in it to be processed. It is running very poorly. I am running Oracle 9.2.0.6. Here is the stored procedure. Any suggestions on how to make it faster. Is there a way to use bulk binding/insert and would that be better?
Thank you,
David
CREATE OR REPLACE procedure SP_LOAD_STAGED_CUST (runtime_minutes int)
is
staged_rec STAGE_CUSTOMER%ROWTYPE;
end_time          date     default sysdate + (nvl(runtime_minutes,1440)/1440);
test_row_id     number(38);
in_table_cnt     number(38);
BEGIN
-- POPULATE LOCATION AND ASSOCIATE TABLES AS NEEDED
insert into TMP_LOCATION (update_location_cd, country_cd, locale_cd)
select      distinct update_location_cd,
     country_cd,
     locale_cd
from stage_customer
update TMP_Location
set location_id = location_seq.nextval
insert /*+ APPEND */ into location
( location_id, location_cd, location_desc, short_description, sales_channel_id, location_type_id,
location_category_id, addr1, addr2, addr3, city, state_cd, postal_cd, country_cd, region_id,
timezone_id, locale_cd, currency_cd, phone_num, alt_phone_num, fax_num, alt_fax_num,
email_addr, alt_email_addr, is_default, create_modify_timestamp)
select
location_id,
update_location_cd,
null,
null,
fn_sales_channel_default(),
null,
null,
null, null, null,
null, null, null ,
nvl(country_cd, 'USA'),
null, null,
locale_cd,
'USD',
null, null, null, null, null, null,
0,
sysdate
from TMP_LOCATION
where update_location_cd not in (select location_cd from location);
commit
insert into TMP_ASSOCIATE (associate_number, update_location_cd)
select      associate_number, min(update_location_cd)
     from stage_customer
where associate_number is not null
group by associate_number;
update TMP_ASSOCIATE
set associate_id = associate_seq.nextval
insert /*+ APPEND */ into associate
select
associate_id ,
null,
associate_number,
(select nvl(location_id, fn_location_default())
     from location
     where location.location_cd = tmp_associate.update_location_cd)
from TMP_ASSOCIATE
where not exists (select associate_id from associate
          where associate.associate_number = tmp_associate.associate_number)
delete from tmp_associate;
commit;
insert into TMP_ASSOCIATE (associate_number, update_location_cd)
select      alt_associate_number, min(update_location_cd)
     from stage_customer
where alt_associate_number is not null
group by alt_associate_number
update TMP_ASSOCIATE
set associate_id = associate_seq.nextval
insert /*+ APPEND */ into associate
select
associate_id ,
null,
associate_number,
(select nvl(location_id, fn_location_default())
     from location
     where location.location_cd = tmp_associate.update_location_cd)
from TMP_ASSOCIATE
where not exists (select associate_id from associate
          where associate.associate_number = tmp_associate.associate_number);
commit;
select min(row_id) -1 into test_row_id from stage_customer ;
WHILE sysdate < end_time
LOOP
select *
into staged_rec
from Stage_Customer
where row_id = test_row_id + 1;
if staged_rec.row_id is null
then
COMMIT;
EXIT;
end if;
-- EXIT WHEN staged_rec.row_id is null;
-- INSERTS TO CUSTOMER TABLE (IN LOOP - DATA FROM STAGE CUSTOMER TABLE)
insert /*+ APPEND */ into customer (
     customer_id,
     customer_acct_num,
     account_type_id,
     acct_status,
     discount_percent,
     discount_code,
     uses_purch_order,     
     business_name,
     tax_exempt_prompt,
     is_deleted,
     name_prefix,
     first_name,
     middle_name,
     last_name,
     name_suffix,
     nick_name,
     alt_first_name,
     alt_last_name,
     marketing_source_id,
     country_cd,
     locale_cd,
     email_addr,
     email_addr_valid,
     alt_email_addr,
     alt_email_addr_valid,
     birth_date,
     acquisition_sales_channel_id,
     acquisition_location_id,
     home_location_id,
     salesperson_id,
     alt_salesperson_id,
     customer_login_name,
     age_range_id,
     demographic_role_id,
     education_level_id,
     gender_id,
     household_count_id,
     housing_type_id,
     income_range_id,
     lifecycle_type_id,
     lifetime_value_score_id,
     marital_status_id,
     religious_affil_id
values (      
     staged_rec.row_id,
     staged_rec.customer_acct_num,
     nvl(staged_rec.account_type_id, fn_account_type_default()),
     1,
     staged_rec.discount_percent,
     staged_rec.discount_cd,
     staged_rec.pos_allow_purchase_order_flag,
     staged_rec.business_name,
     staged_rec.pos_tax_prompt,
     staged_rec.is_deleted,
     staged_rec.name_prefix,
     staged_rec.first_name,
     staged_rec.middle_name,
     staged_rec.last_name,
     staged_rec.name_suffix,
     staged_rec.nick_name,
     staged_rec.alt_first_name,
     staged_rec.alt_last_name,
     staged_rec.new_marketing_source_id,
     staged_rec.country_cd,
     staged_rec.locale_cd,
     staged_rec.email_addr,
     nvl2(staged_rec.email_addr,1,0),
     staged_rec.alt_email_addr,
     nvl2(staged_rec.alt_email_addr,1,0),
     staged_rec.birth_date,
     staged_rec.SALES_CHANNEL_ID,
     (select location_id from location where location_cd = staged_rec.update_location_cd),
     (select location_id from location where location_cd = staged_rec.update_location_cd),
     (select min(a.associate_id) from associate a
          where staged_rec.associate_number = a.associate_number
          and a.location_id =
               (select location_id from location where location_cd = staged_rec.update_location_cd)),
     (select min(a.associate_id) from associate a
          where staged_rec.alt_associate_number = a.associate_number
          and a.location_id =
               (select location_id from location where location_cd = staged_rec.update_location_cd)),
     staged_rec.customer_login_name,
     fn_age_range_default(),
     fn_demographic_role_default(),
     fn_education_level_default(),
     fn_gender_default(),
     fn_household_cnt_default(),
     fn_housing_type_default(),
     fn_income_range_default(),
     fn_lifecycle_type_default(),
     fn_lifetime_val_score_default(),
     fn_marital_status_default(),
     fn_religious_affil_default()
-- INSERTS TO PHONE TABLE ( IN LOOP -DATA FROM STAGE CUSTOMER TABLE)
if staged_rec.home_phone is not null
then
insert /*+ APPEND */ into phone ( customer_id, phone_type_id, phone_num, is_valid, is_primary)
     values (staged_rec.row_id, 1, staged_rec.home_phone, 1, 1);
end if;
if staged_rec.work_phone is not null
then
insert /*+ APPEND */ into phone (customer_id, phone_type_id, phone_num, is_valid,is_primary)
     values (staged_rec.row_id, 2, staged_rec.work_phone, 1, 0);
end if;
if staged_rec.mobile_phone is not null
then
insert /*+ APPEND */ into phone ( customer_id, phone_type_id, phone_num, is_valid, is_primary)
     values (staged_rec.row_id, 3, staged_rec.home_phone, 1, 0);
end if;
if staged_rec.work_phone is not null
then
insert /*+ APPEND */ into phone (customer_id, phone_type_id, phone_num, is_valid,is_primary)
     values (staged_rec.row_id, 4, staged_rec.work_phone, 1, 0);
end if;
-- INSERTS TO CUSTOMER ADDR TABLE ( IN LOOP - DATA FROM STAGE CUSTOMER TABLE)
if staged_rec.address1 is not null
then
insert /*+ APPEND */ into customer_addr (customer_id, address_type_id, address1, address2, address3, city, state_cd, postal_cd, country_cd, region_id,
               is_primary, is_valid, cannot_standardize, is_standardized)
     values (staged_rec.row_id, fn_address_type_default(), staged_rec.address1, staged_rec.address2, staged_rec.address3,
          staged_rec.city, staged_rec.state_cd, staged_rec.postal_cd, staged_rec.country_cd, staged_rec.region, 1, 1, 0, 0);
end if;
-- INSERTS TO CUSTOMER_STATE_TAX_ID
if staged_rec.pos_default_tax_id is not null
then
insert /*+ APPEND */ into customer_state_tax_id (state_cd, customer_id, tax_id, expiration_date)
     values (staged_rec.state_cd, staged_rec.row_id, staged_rec.pos_default_tax_id,
          staged_rec.pos_tax_id_expiration_date);
end if;
-- REMOVE STAGE CUSTOMER ROW (IN LOOP - DELETE CUSTOMER FROM STAGE_CUSTOMER TABLE)
delete from stage_customer
where row_id = staged_rec.row_id;
-- COMMIT AFTER EVERY 10,000 CUSTOMERS
if mod(staged_rec.row_id, 100) = 0
then
commit;
end if;
-- INCREMENT ROW ID TO BE RETRIEVED
test_row_id := test_row_id + 1;
END LOOP;
EXCEPTION
     WHEN NO_DATA_FOUND
     THEN
     COMMIT;
END;
Message was edited by:
JesusLuvR
Message was edited by:
JesusLuvR

You want to do as much processing as you can in single large sql statements, not row by row. You also want to do as few statemetns as possible. Most of what you are doing looks to me like it could be done as a series of single sql statements. For example, the three statements that populate location ca nbe condensed to a single statement like:
INSERT /*+ APPEND */ INTO location
   (location_id, location_cd, location_desc, short_description, sales_channel_id,
    location_type_id, location_category_id, addr1, addr2, addr3, city, state_cd,
    postal_cd, country_cd, region_id, timezone_id, locale_cd, currency_cd,
    phone_num, alt_phone_num, fax_num, alt_fax_num, email_addr, alt_email_addr,
    is_default, create_modify_timestamp)
SELECT location_seq.NEXTVAL, update_location_cd, NULL, NULL,
       fn_sales_channel_default(), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
       NVL(country_cd, 'USA'), NULL, NULL, locale_cd, 'USD', NULL, NULL, NULL,
       NULL, NULL, NULL, 0, sysdate
FROM (SELECT DISTINCT update_location_cd, country_cd, locale_cd
      FROM stage_customer
      WHERE update_location_cd NOT IN (SELECT location_cd FROM location);You can easily do a similar change to the statemetns populating associates.
I don't, off hand, see anything in the intert into customers that seems to require row by row processing. Just do it in a large insert. I would also be tempted to replace the many values of the form (select location_id from location where location_cd = staged_rec.update_location_cd) to a join with location. As far as I can see, you would only need one copy of location.
I also notince that you have a number of function calls in the values list. I would look carefully at whether you need them at all, since they seem to have no parameters, so should return the same value every time. Minimally, I would consider calling them once each, storing the values in variables and use those variables in the insert.
HTH
John

Similar Messages

  • Very slow running CUITs in both Visual Studio and Microsoft Test Manager

    I've tried the exact same test cases on another less powerful computer and it runs perfectly. However on one machine it runs very slow. It seems to take ages finding execute each step. Not sure what is going on. Help greatly appreciated.

    Hi Daithi,
    Based on your issue, I suggest you could try to create a simple coded UI test such as you can record the Calculator action and then check if you still get the issue about
    running CUITs very slow in VS.
    In addition, I suggest you could try to delete all the temp files from your system and other temp files, or in short you can just log off and then log in back again....you'll definitely find your automation run faster.
    There are two blogs shared us some suggestions to improve the coded UI test performance, I often use them, if possible, please check them.
    http://blogs.msdn.com/b/vstsqualitytools/archive/2011/07/06/improving-the-performance-of-your-coded-ui-tests.aspx
    http://blogs.msdn.com/b/visualstudioalm/archive/2012/02/01/guidelines-on-improving-performance-of-coded-ui-test-playback.aspx
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Very slow running Mac Mini

    Hi,
    I'd like to thank all people supporting us (users) in these discussions, and especially the person who helped me restoring my MBP's performance,
    I'm requesting once again some help for my Mac Mini which is very very slow.
    Mac Mini running OS X Moutain Lion + Apple's Server add-on (a few services are running : file sharing mainly).
    Thanks in advance,

    Hello Hedi, see how many of these you can answer...
    See if the Disk is issuing any S.M.A.R.T errors in Disk Utility...
    http://support.apple.com/kb/PH7029
    Open Activity Monitor in Applications>Utilities, select All Processes & sort on CPU%, any indications there?
    How much RAM & free Disk space do you have also, click on the Memory & Disk Usage Tabs.
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.
    In the Memory tab of Activity Monitor, are there a lot of Pageouts?

  • Very Slow running dashboards/swf not loading

    I have built a number of dashboards and sent them round to colleagues in my company (either embedded in powerpoint or as swf to open in IE). We have no probelms viewing these dashboards internally but when we send them out to clients they cannot view them.
    It seems like the swf files are just not loading, or are incredibley slow (so slow that the client has given up on them) has anyone else encountered problems like this? Could there be some security issues; when the files pass onto another network the swf is halted?
    Hope someone can help!

    There is known issue with  xcelsius 2008 when exported to PPT..
    Check this and do the work around mentioned.. it will work,but very slow.
    I don't know its a problem with xcelsius  or with my laptop?
    http://diamond.businessobjects.com/node/19008

  • Curve 8520. Small clock icon appearing and very slow running

    My curve is operating really slowly and when I try to open or send a text or open a mail, I get a very small clock icon appear. After about 20 secs, the text or mail opens. Not able to send any e mails either. Thought too many stored mails may be the problem but device won't now allow me to delete. Battery also running low after just a few hours,even after fully charging.

    1. Do a reboot on the device:  With the BlackBerry device POWERED ON, remove the battery for a minute, and then reinsert the battery to reboot.
    2. To prevent freezing or lagging/slow response on any BlackBerry, the most important practice you can adopt is to be sure to CLOSE applications when you are finished using them.
    If you just hit the red "end call" key to go back to the home screen the application actually stays open and running in the background. If you do this repeatedly you will have lots of apps open and consequently your memory will get used up. Lack of memory is the biggest reason your BlackBerry slows to a crawl or locks up. If you get into the habit of actually using the menu key to close the applications this will at least slow down this memory-clogging process. You still may have to do a battery pull or use the "Quickpull" app once in a while when things get slow.
    To check what applications are running on your device in the background, press the Menu key then choose Switch Applications. You will see the icons of each application there.
    So now, check your applications running in the background. There are commonly four or five applications that will always be running (Messages, Call Logs/Phone, BlackBerry Messenger, Homescreen, and the Browser; there are other third party applications such as BeeJive, and BlackBerry Alerts which will also run in the background which you cannot close if you want them to operate). Make certain that the browser is NOT on an active webpage (open the browser and choose Menu > Close). Close any other applications that do not need to be running (the camera or a game you were playing or Google Maps).

  • Very slow running seems to be com.apple.appkit.xpc.openAndSavePanelService

    At unpredictable times my iMac starts to run really slow and I can hear the disk churning away. Looking in console I get a whole load of errors relating to:
    2/13/14 5:09:07.197 PM com.apple.appkit.xpc.openAndSavePanelService[7321]: ERROR: CGSSetWindowTransformAtPlacement() returned 1001
    There's a whole load of repeats of this with the occasionally more detailed:
    2/13/14 5:00:58.928 PM com.apple.appkit.xpc.openAndSavePanelService[7321]: CGContextRestoreGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
    Any ideas on how to fix gratefullly recieved

    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve your 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 gather information about the state of your computer. That information goes nowhere unless you choose to share it on this page. 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.
    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 couple of 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.
    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 your browser, 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%%'; 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; }; Pc () { o=`grep -v '^ *#' "$2"`; Pm "$1"; }; Pm () { [[ "$o" ]] && o=`sed -E '/^ *$/d;s/^ */   /;s/[-0-9A-Fa-f]{22,}/UUID/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 | grep -qw '80(admin)'; 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 '8!d;s/^ *//'; o=`SP Hardware | awk '/Mem/{print $2}'`; o=$((o<4?o: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 Thunderbolt USB; do o=`SP $b | sed -En '1d; /:$/{s/ *:$//;x;s/\n//p;}; /^ *V.* [0N].* /{s/ 0x.... //;s/[()]//g;s/\(.*: \)\(.*\)/ \(\2\)/;H;}; /Apple|SCSM/{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"; d=(/ ""); D=(System User); E=; for i in 0 1; do o=`cd ${d[$i]}L*/L*/Dia* || continue; ls | while read f; do [[ "$f" =~ h$ ]] && grep -lq "^Thread c" "$f" && e=" *" || e=; awk -F_ '!/ag$/{$NF=a[split($NF,a,".")]; print $0 "'"$e"'"}' <<< "$f"; done | tail`; Pm "${D[$i]} diagnostics"; done; [[ "$o" =~ \*$ ]] && printf $'\n* Code injection\n'; o=`syslog -F bsd -k Sender kernel -k Message CReq 'GPU |hfs: Ru|I/O e|last value [1-9]|n Cause: -|NVDA\(|pagin|SATA W|ssert|timed? ?o' | 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'`); o=${s[2]}%; Ps "CPU usage by process \"$s\" with UID ${s[1]}"; }; s=(`top -R -l1 -n1 -o prt -stats command,uid,prt | sed '$!d'`); s[2]=${s[2]%[+-]}; o=$((s[2]>=25000?s[2]:0)); Ps "Mach ports used by process \"$s\" with UID ${s[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|post[fg]|x)/{print $3}'`; Pm "Extrinsic system jobs"; 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 | grep -v com\.apple\.CSConfig | 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*/Star*; do M; done`; Pm "Startup items"; o=`find -L /S*/L*/E* {/,}L*/{A*d,Compon,Ex,In,Keyb,Mail/B,P*P,Qu*T,Scripti,Servi,Spo}* -type d -name Contents -prune | while read d; do ID=$($PB\ :CFBundleIdentifier "$d/Info.plist") || ID="No bundle ID"; [[ "$ID" =~ ^com\.apple\.[^x]|Accusys|ArcMSR|ATTO|HDPro|HighPoint|driver\.stex|hp-fax|\.hpio|JMicron|microsoft\.MDI|print|SoftRAID ]] || printf "$Fb" "${d%/Contents}" "$ID"; done`; Pm "Extrinsic loadable bundles"; o=`find -L /u*/{,*/}lib -type f | while read f; do file -b "$f" | grep -qw shared && ! codesign -v "$f" && echo $f; done`; Pm "Unsigned shared libraries"; o=`for e in DYLD_INSERT_LIBRARIES DYLD_LIBRARY_PATH; do launchctl getenv $e; done`; Pm "Environment"; 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}'`; Ps "DNS"; 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; Pc "hosts" <(grep -v 'host *$' /etc/hosts); Pc "User launchd" ~/.launchd*; R && Pc "Root crontab" <(sudo crontab -l); Pc "User crontab" <(crontab -l | sed 's:/Users/[^/]*/:/Users/USER/:g'); R && o=`sudo defaults read com.apple.loginwindow LoginHook`; Pm "Login hook"; 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=`SP Fonts | egrep "Valid: N|Duplicate: 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=$((`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.
    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.
    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 your password, or if you prefer not to enter it, just press return three times at the password prompt.
    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.
    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 your results. No harm will be done.
    8. 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.
    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 Linc Davis. As the sole author of this work, I reserve all rights to it except as provided in the Terms of Use of Apple Support Communities ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed.

  • SQL server 2000 Procedure executing very slower in SQL 2012

     
    Hi,
    I've migrated my database from SQL 2000 to SQL 2012 using SQL2008 as intermediate. After migration, I found that one of my procedure is timing out from web site. When I run that procedure in Management Studio, it takes 42 seconds to display result. The same
    query is executed in 3 seconds in SQL 2000 version (in first run it takes 10 seconds in SQL 2000 and second run it took 3 seconds only). But in SQL 2012 second and third time also it took 36 seconds. Can anyone explain why the query takes longer time instead
    of less time after the upgrade? 
    Our prod deployment date is approaching so any quick help is appreciated. 
    Thanks in advance.

    You need to compare the execution plans of queries running in 2000 and 2012 to pin point why there is a difference.
    However, have you made sure that you have reindexed the indexes and updated the stats and you still see the difference? If not, please do that and test again.
    Could you post the execution plans?
    Also read this -
    http://blogs.msdn.com/b/psssql/archive/2015/01/30/frequently-used-knobs-to-tune-a-busy-sql-server.aspx
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • What shall I do with a very slow running macbook pro with OS X Mavericks

    Please help me. my macbok pro is running too slow specially when booting up. It's with OS X Mavericks. How can I restore it with the previous OS? i just upgraded it with Mavericks.

    If you don't already have a current backup, back up all data before doing anything else. This procedure is a diagnostic  test. It changes nothing, for better or worse, and therefore will not, in itself, solve your problem. The backup is necessary on general principle, not because of anything suggested in this comment. There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The procedure will help identify which such modifications you've installed, as well as some other aspects of the configuration that may be related to the problem.
    Don’t be alarmed by the seeming complexity of these instructions — they’re easy to carry out. Here's a brief summary: In each of two steps, you copy a line of text from this web page into a window in another application. You wait about a minute. Then you paste some other text, which will have been copied automatically, back into a reply on this page. The sequence is copy; paste; paste again. That's all there is to it. Details follow.
    You may have started the computer in "safe" mode. Preferably, these steps should be taken while booted in “normal” mode. If the system is now running in safe mode and is bootable in normal mode, reboot as usual. If it only boots in safe mode, use that.
    Below are instructions to enter UNIX shell commands. They do nothing but produce human-readable output. However, you need to think carefully before running any program at the behest of a stranger on a public message board. If you question the safety of the procedure suggested here — which you should — search this site for other discussions in which it’s been followed without any report of ill effects. If you can't satisfy yourself that these instructions are safe, don't follow them.
    The commands will line-wrap or scroll in your browser, but each one is really just 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, and you can then copy it.
    If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. Step 1 should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click anywhere in the line of text below on this page to select it:
    PB=/usr/libexec/PlistBuddy; PR () { [[ "$o" ]] && printf '\n%s:\n\n%s\n' "$1" "$o"; }; PC () { o=$(grep [^[:blank:]] "$2"); PR "$1"; }; PF () { o=$($PB -c Print "$2" | awk -F'= ' \/$3'/{print $2}'); PR "$1"; }; PN () { [[ $o -eq 0 ]] || printf "\n%s: %s\n" "$1" $o; }; { system_profiler SPSoftwareDataType | sed '8!d;s/^ *//'; o=$(system_profiler SPDiagnosticsDataType | sed '5,6!d'); fgrep -q P <<< "$o" && o=; PR "POST"; o=$(( $(vm_stat | awk '/Pageo/{sub("\\.",""); print $2}')/256 )); [[ $o -gt 1024 ]] && printf "\nPageouts: %s MiB\n" $o; s=( $(sar -u 1 10 | sed '$!d') ); [[ ${s[4]} -lt 90 ]] && o=$( printf 'User %s%%\t\tSystem %s%%' ${s[1]} ${s[3]} ) || o=; PR "Total CPU usage"; [[ "$o" ]] && o=$(ps acrx -o comm=Process,ruid=User,%cpu | sed 's/  */:/g' | head -6 | awk -F: '{ printf "%-10s\t%s\t%s\n", $1, $2, $3 }'); PR "CPU usage by process"; o=$(kextstat -kl | grep -v com\\.apple | cut -c53- | cut -d\< -f1); PR "Loaded extrinsic kernel extensions"; o=$(launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)|\.[0-9]+$/{print $3}'); PR "Loaded extrinsic user agents"; o=$(launchctl getenv DYLD_INSERT_LIBRARIES); PR "Inserted libraries"; PC "cron configuration" /e*/cron*; o=$(crontab -l | grep [^[:blank:]]); PR "User cron tasks"; PC "Global launchd configuration" /e*/lau*; PC "Per-user launchd configuration" ~/.lau*; PF "Global login items" /L*/P*/loginw* Path; PF "Per-user login items" L*/P*/*loginit* Name; PF "Safari extensions" L*/Saf*/*/E*.plist Bundle | sed 's/\..*$//;s/-[1-9]$//'; o=$(find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) | wc -l); PN "Restricted user files"; cd; o=$(find -L /S*/L*/E* {,/}L*/{A*d,Compon,Ex,In,Keyb,Mail/Bu,P*P,Qu,Scripti,Servi,Spo}* -type d -name Contents -prune | while read d; do ID=$($PB -c 'Print :CFBundleIdentifier' "$d/Info.plist") || ID=; ID=${ID:-No bundle ID}; egrep -qv "^com\.apple\.[^x]|Accusys|ArcMSR|ATTO|HDPro|HighPoint|driver\.stex|hp-fax|JMicron|microsoft\.MDI|print|SoftRAID" <<< $ID && printf '%s\n\t(%s)\n' "${d%/Contents}" "$ID"; done); PR "Extrinsic loadable bundles"; o=$(find /u*/{,*/}lib -type f -exec sh -c 'file -b "$1" | grep -qw shared && ! codesign -v "$1"' {} {} \; -print); PR "Unsigned shared libraries"; o=$(system_profiler SPFontsDataType | egrep "Valid: N|Duplicate: Y" | wc -l); PN "Font problems"; for d in {,/}L*/{La,Priv,Sta}*; do o=$(ls -A "$d"); PR "$d"; done; } 2> /dev/null | pbcopy; echo $'\nStep 1 done'
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    The command may take up to a few minutes to run, depending on how many files you have and the speed of the computer. Wait for the line "Step 1 done" to appear below what you entered. The output of the command will beautomatically copied to the Clipboard. All you have to do is paste into a reply to this message by pressing command-Vagain. Please don't copy anything from the Terminal window. No typing is involved in this step.
    Step 2 
    Remember that you must be logged in as an administrator for this step. Do as in Step 1 with this line:
    PR () { [[ "$o" ]] && printf '\n%s:\n\n%s\n' "$1" "$o"; }; { o=$(sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|calendarse|cups|dove|isc|ntp|post[fg]|x)/{print $3}'); PR "Loaded extrinsic daemons"; o=$(sudo defaults read com.apple.loginwindow LoginHook); PR "Login hook"; o=$(sudo crontab -l | grep [^[:blank:]]); PR "Root cron tasks"; o=$(syslog -k Sender kernel -k Message CReq 'GPU |hfs: Ru|I/O e|find tok|n Cause: -|NVDA\(|pagin|timed? ?o' | tail -n25 | awk '/:/{$4=""; print}'); PR "Log check"; } 2>&- | pbcopy; echo $'\nStep 2 done'
    This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    You can then quit Terminal. Please note:
    ☞ Steps 1 and 2 are all copy-and-paste — type only your login password when prompted.
    ☞ When you type your password, you won't see what you're typing.
    ☞ If you don’t have a password, set one before taking Step 2. If that’s not possible, skip the step.
    ☞ Step 2 might not produce any output, in which case the Clipboard will be empty. Step 1 will always produce something.
    ☞ The commands don't change anything, and merely running them will do neither good nor harm.
    ☞ Remember to post the output. It's already in the Clipboard. You don't have to copy it. Just paste into a reply    
    ☞ If any personal information, such as your name or email address, appears in the output of either command, anonymize it before posting. Usually that won't be necessary.
    ☞ Don't post the contents of the Terminal window.
    ☞ Don't paste the output of Step 1 into the Terminal window. Paste it into a reply.

  • Very slow running Mac

    I have a early 2008 macbook pro that runs extremely slow and doesn't handle multi-tasking too well.  Other than to take it in for repair, I would like to try to do something to get it's speed back up.  It is happening now more and more and is almost a daily ritual.  Does anyone know how I can speed it up?  I run: 
    Software  Mac OS X Lion 10.7.4 (11E53)
    Thanks!

    First, back up all data immediately, as your boot drive may be failing.
    If you have more than ten or so files or folders on your Desktop, move them, temporarily at least, somewhere else in your home folder.
    If iCloud is enabled, disable it.
    Disconnect all wired peripherals except keyboard, mouse, and monitor, if applicable. Launch the usual set of applications you use when you notice the problem.
    Step 1
    Launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running OS X 10.7 or later, open LaunchPad. Click Utilities, then Activity Monitor in the page that opens.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Step 2
    You must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way as above. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Post the 50 or so most recent messages in the log — the text, please, not a screenshot.
    Important: Some personal information, such as your name, may appear in the log. Edit it out before posting.

  • Very Slow Run Time Performance OpenEdge (Progress)

    Hello everyone,
    I am working with Crystal Reports XI R2. Also we have developed an export application based on OpenEdge 10.1B (Progress 4GL).
    Problem: The export of any Crystal Reports file to PDF format takes (via application in Progress) takes 5 times or more time than when I just export that report via Crystal Reports XI. There is an ODBC connection via OpenEdge 10.1B to DWH SQL92.
    I have monitored the performance. It seems when the Crysta Reports try to communicate to the query or dataset, it takes longer time. In some situation  the temp file is already filled out in Win Temporary directory, and then it waits so long to populate the data within CR and finally exports to PDF.
    What is wrong? Please HELP!!!!!!

    A part of codes:
    if not gLog_Batch
    then do:
      if iiRelatienummer = 0
      and icActie = "VervExporteren"
      then do: /* Vanuit menu-item bij relatie nooit via batch */
        find TAB_MEDEW where TAB_MEDEW.ID_NAAM = gUSER_ID
                         and TAB_MEDEW.NR_BEDR = gNR_BEDR no-lock no-error.
        /* {assrc/a5batkon.i} */
      end.
      else do: /* menu-optie bij relatie of menu-optie bekijken vanuit browser
                  altijd direct bekijken in acrobat, dus application PDF */
        chExportOptions:DestinationType = 5.     /* Application */
        chExportOptions:FormatType      = 31.    /* PDF */
        chExportOptions:ApplicationFileName = session:temp-directory + CRYSTAL_REPORT.NAAM + ".pdf".
        chReport:SQLQueryString no-error. /* work-around, parameter scherm opstarten en dan leave */
        if error-status:num-messages > 0
        then do: /* cancel gedrukt */
          if not GetError() matches "Door de gebruiker geannuleerd"
          and not GetError() matches "user cancelled"
          then
            /* 880:Fout bij exporteren, %1 */
            run MeldingNrOK(880,GetError(),"error").
          run ReleaseCH.
          return.
        end.
        chReport:EnableParameterPrompting = false.
      end.
      if vACHTERGROND
      then do: /* Parameters opvragen en opslaan */
        repeat:
          update
            iFormatType
            cDiskFilename
            with frame fBatchVariabelen.
          if cDiskFilename = ""
          then do:
            /* 326:Bestandsnaam is verplicht. */
            run MeldingNrOk(326,"","error").
            next.
          end.
          leave.
        end. /* repeat */
        if key-function(lastkey) = "end-error"
        then do:
          run ReleaseCH.
          return.
        end.
        chReport:SQLQueryString no-error. /* work-around, parameter scherm opstarten en dan leave */
        /* chReport:GetNextRows(0,1) no-error. eerste werkende work-around */
        if error-status:num-messages > 0
        then do: /* cancel gedrukt */
          if not GetError() matches "Door de gebruiker geannuleerd"
          and not GetError() matches "user cancelled"
          then
            /* 880:Fout bij exporteren, %1 */
            run MeldingNrOK(880,GetError(),"error").
          run ReleaseCH.
          return.
        end.
        assign vCHAR        = string(iiIdCrystalReport) + "^" +
                              string(iFormatType) + "^" +      /* PDF, Excel of ... */
                              cDiskFileName + "^" +
                              "|"
               vPROGRAMNAME = "crystalbatch.p"
               vTYPE        = "IN^IN^CH^|"
               vLENGTE      = "11^2^120^|"
               vLABELS      = "IdCrystalReport^Uitvoertype^Uitvoerbestand^|"
               vBATCH       = ?.
        run asobj/a53203.p.
        if key-function(lastkey) = "end-error"
        then do:
          run ReleaseCH.
          return.
        end.
        find BATCH_SEL where recid(BATCH_SEL) = vBATCH no-lock no-error.
        do iTeller1 = 1 to chParamDefs:count:
          assign chParam = chParamDefs:Item(iTeller1).
          assign cNaam = trim(substring(chParam:name,3),"~}").
          if can-do("gUSER_ID,gNR_BEDR,gNR_ADMIN",cNaam)
          then do: /* deze zijn/worden al gedaan */
            next.
          end.
          else do:
            do iTeller2 = 1 to chParam:NumberOfCurrentValues trans:
              create BATCH_ITEMS.
              assign BATCH_ITEMS.NR_KENMERK   = iKenmerk
                     BATCH_ITEMS.NR_VOLG      = BATCH_SEL.NR_VOLG
                     BATCH_ITEMS.SELEKTIES[1] = string(chParam:GetNthCurrentValue(iTeller2))
                     BATCH_ITEMS.LABELS[1]    = cNaam
                     iKenmerk                 = iKenmerk + 1.
              assign iValueType = chParam:ValueType.
              case iValueType:
                when 7 /* Number */
                then
                  assign BATCH_ITEMS.TYPE[1] = "IN".
                when 8 /* Currency */
                then
                  assign BATCH_ITEMS.TYPE[1] = "DE".
                otherwise
                  assign BATCH_ITEMS.TYPE[1] = "CH".
              end case. /* Parameter:ValueType = data-type */
            end.
          end.
        end. /* iTeller1 */
        run ReleaseCH.
        return.
      end. /* if vACHTERGROND */
      chReport:export(icActie = "VervExporteren") no-error.
      if error-status:num-messages > 0
      then do:
        if not GetError() matches "Door de gebruiker geannuleerd"
        and not GetError() matches "user cancelled"
        then
          /* 880:Fout bij exporteren, %1 */
          run MeldingNrOK(880,GetError(),"error").
        run ReleaseCH.
        return.
      end.
    end. /* if not gLog_Batch */
    else do: /* batch-mode dus Parameters vullen vanuit BATCH_ITEMS */
      chExportOptions:DestinationType = 1.                /* diskfile */
      chExportOptions:FormatType      = iFormatType.      /* PDF, Excel etc */
      chExportOptions:DiskFileName    = cDiskFileName.
      case iFormatType:
        when 38 /* Excel standaard opties */
        then do:
          chExportOptions:ExcelAreaGroupNumber        = 0.
          chExportOptions:ExcelPageBreaks             = no.
          chExportOptions:ExcelUseConstantColumnWidth = no.
          chExportOptions:ExcelUseWorksheetFunctions  = yes.
        end. /* 38 Excel */
        when 40 /* csv standaard opties */
        then do:
          chExportOptions:CharFieldDelimiter = ";".
          chExportOptions:CharStringDelimiter = "~"".
        end. /* 40 csv */
      end case.
      do iTeller1 = 1 to chParamDefs:count:
        assign chParam = chParamDefs:Item(iTeller1).
        chParam:ClearCurrentValueAndRange().
        assign cNaam = trim(substring(chParam:name,3),"~}").
        if cNaam = "gUSER_ID"
        then do:
          chParam:ClearCurrentValueAndRange().
          chParam:SetCurrentValue(gUSER_ID).
          next.
        end.
        else if cNaam = "gNR_ADMIN"
        then do:
          chParam:ClearCurrentValueAndRange().
          chParam:SetCurrentValue(gNR_ADMIN).
          next.
        end.
        else if cNaam = "gNR_BEDR"
        then do:
          chParam:ClearCurrentValueAndRange().
          chParam:SetCurrentValue(gNR_BEDR).
          next.
        end.
        if not can-find(first BATCH_ITEMS where BATCH_ITEMS.NR_VOLG   = BATCH_SEL.NR_VOLG
                                            and BATCH_ITEMS.LABELS[1] = cNaam)
        then do:
          /* 881:De parameter '%1' is niet te vullen. */
          run MeldingNrOK(881,cNaam,"error").
          run ReleaseCH.
          return.
        end.
        assign iMultiple = 0.
        for each BATCH_ITEMS where BATCH_ITEMS.NR_VOLG   = BATCH_SEL.NR_VOLG
                               and BATCH_ITEMS.LABELS[1] = cNaam no-lock:
          assign iMultiple = iMultiple + 1.
          if iMultiple > 1
          and not chParam:EnableMultipleValues
          then do:
            /* 882:De enkelvoudige parameter '%1' kreeg meerdere waarden aangeboden. */
            run MeldingNrOK(882,cNaam,"error").
            run ReleaseCH.
            return.
          end.
          assign iValueType = chParam:ValueType.
          case iValueType:
            when 7 /* Number */
            then
              chParam:AddCurrentValue(int(BATCH_ITEMS.SELEKTIES[1])) no-error.
            when 8 /* Currency */
            then
              chParam:AddCurrentValue(dec(BATCH_ITEMS.SELEKTIES[1])) no-error.
            when 9 /* Logical */
            then
              chParam:AddCurrentValue(BATCH_ITEMS.SELEKTIES[1] = "yes") no-error.
            when 10 /* Date */
            then
              chParam:AddCurrentValue(date(BATCH_ITEMS.SELEKTIES[1])) no-error.
            when 11 /* Time */
            or when 12 /* Character */
            or when 16 /* DateTime */
            then
              chParam:AddCurrentValue(BATCH_ITEMS.SELEKTIES[1]) no-error.
          end case. /* Parameter:ValueType = data-type */
        end. /* alle waarden van deze parameter, each tParams of chParam */
      end. /* alle parameters van het report, do iTeller1 = 1 to chParamDefs:count */
      chReport:EnableParameterPrompting = false.
      chReport:DisplayProgressDialog = false.
      chReport:export(false) no-error. /* false, geen user-prompt */
      if error-status:num-messages > 0
      then
        put unformatted "Fout bij exporteren," skip
          GetError() skip.
      assign vST_BATCH = (error-status:num-messages = 0).

  • I-Mac G-4 very slow running after update from Panther to Tiger 10.4.

    I-Mac G-4 800 MHz, 768 Ram; updated to Tiger 10.4 from Panther; used DiskWarrior to recreate new catalog; used System Optimizer X to optimize. Neither helped. Start up takes approximately 4+ minutes! Was faster before. Use computer for IL 10.0 and PS 7.0 graphics design. Not internet connected at this time. Ideas? Help?
    Rickety
    I-Mac   Mac OS X (10.4)   800 MHz; 768 SDRAM

    Hi Rickety
    My best guess is that you have some application which runs a daemon in the background, and which is not compatible with Tiger. Possible suspects are Virex, Norton AV 9, Norton Utilities, ermm, Cisco VPN.
    Check your third party applications for Tiger compatibility. Please report back: I've had a lot of people not reply lately, and so I do not know whether my suggestions have helped, or whether there is further help needed with the problem.
    Matthew Whiting

  • Very Slow & Running Hot

    I've has a MacBook Pro around a year now and never had any problems. Here recently I have noticed a lagging in the system, and the computer was getting really hot, as well as the charger, and draining the battery within 30 min. Now every time that I turn it on, or wake it up I have to wait about 5min before I can do anything on it. I had to repair the disk once already and I checked it again today and it has another thing telling me to fix it again. I looked into my activity monitor, and something called ffmpeg is reaching up to 300%CPU, is that normal? I use this computer for school and run Logic Pro on it, but every time I try to use it it takes at least 5min to open and always get a system overload when trying to record ect...
    Can Anyone Help?
    Thank you,
    Dustin Moore

    Check the link below for possible answers.
    http://www.ffmpeg.org/documentation.html
    Stedman

  • My macbook pro running very slow

    Hello,
    Looking for help with my very slow running laptop. I ran an EtreCheck and can provide a full report. I ran Disk Utility, repaired permissions, slimmed down my Download folder, deleted a program recently installed - Kies, to link with my Android phone. I also have an iMac running 10.9.5.
    Thanks for helping out... and Happy New Year to you all!
    Mark
    Hardware Information: ℹ️
        MacBook Pro (15-inch, Early 2011) (Verified)
        MacBook Pro - model: MacBookPro8,2
        1 2 GHz Intel Core i7 CPU: 4-core
        4 GB RAM
            BANK 0/DIMM0
                2 GB DDR3 1333 MHz ok
            BANK 1/DIMM0
                2 GB DDR3 1333 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
        AMD Radeon HD 6490M - VRAM: 256 MB
            Color LCD 1440 x 900
        Intel HD Graphics 3000 - VRAM: 384 MB
    System Software: ℹ️
        Mac OS X 10.7.5 (11G63b) - Uptime: 6 days 16:26:6

    Thanks Mike.
    Here's the full Etre Report:
    Problem description:
    Macbook running very slow
    EtreCheck version: 2.1.5 (108)
    Report generated 31 December 2014 13:05:36 GMT
    Click the [Support] links for help with non-Apple products.
    Click the [Details] links for more information about that line.
    Click the [Adware] links for help removing adware.
    Hardware Information: ℹ️
        MacBook Pro (15-inch, Early 2011) (Verified)
        MacBook Pro - model: MacBookPro8,2
        1 2 GHz Intel Core i7 CPU: 4-core
        4 GB RAM
            BANK 0/DIMM0
                2 GB DDR3 1333 MHz ok
            BANK 1/DIMM0
                2 GB DDR3 1333 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
        AMD Radeon HD 6490M - VRAM: 256 MB
            Color LCD 1440 x 900
        Intel HD Graphics 3000 - VRAM: 384 MB
    System Software: ℹ️
        Mac OS X 10.7.5 (11G63b) - Uptime: 6 days 16:26:6
    Disk Information: ℹ️
        Hitachi HTS545050B9A302 disk0 : (500.11 GB)
            disk0s1 (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 499.25 GB (218.44 GB free)
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
        MATSHITADVD-R   UJ-898 
    USB Information: ℹ️
        Apple Inc. FaceTime HD Camera (Built-in)
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ℹ️
        Apple, Inc. MacBook Pro
    Kernel Extensions: ℹ️
            /Library/Application Support/Kaspersky Lab/KAV/Bases/Cache
        [loaded]    com.kaspersky.kext.kimul.44 (44) [Support]
        [loaded]    com.kaspersky.kext.mark.1.0.5 (1.0.5) [Support]
            /System/Library/Extensions
        [loaded]    com.AmbrosiaSW.AudioSupport (4.1.2 - SDK 10.6) [Support]
        [not loaded]    com.Avid.driver.AvidDX (5.7.0 - SDK 10.6) [Support]
        [not loaded]    com.SafeNet.driver.Sentinel (7.5.2) [Support]
        [not loaded]    com.devguru.driver.SamsungComposite (1.4.27 - SDK 10.6) [Support]
        [loaded]    com.kaspersky.kext.klif (3.0.5d45) [Support]
        [loaded]    com.kaspersky.nke (2.0.0d12) [Support]
        [not loaded]    com.paceap.kext.pacesupport.master (5.9.1 - SDK 10.6) [Support]
            /System/Library/Extensions/PACESupportFamily.kext/Contents/PlugIns
        [not loaded]    com.paceap.kext.pacesupport.leopard (5.9.1 - SDK 10.4) [Support]
        [not loaded]    com.paceap.kext.pacesupport.panther (5.9.1 - SDK 10.-1) [Support]
        [loaded]    com.paceap.kext.pacesupport.snowleopard (5.9.1 - SDK 10.6) [Support]
        [not loaded]    com.paceap.kext.pacesupport.tiger (5.9.1 - SDK 10.4) [Support]
            /System/Library/Extensions/ssuddrv.kext/Contents/PlugIns
        [not loaded]    com.devguru.driver.SamsungACMControl (1.4.27 - SDK 10.6) [Support]
        [not loaded]    com.devguru.driver.SamsungACMData (1.4.27 - SDK 10.6) [Support]
        [not loaded]    com.devguru.driver.SamsungMTP (1.4.27 - SDK 10.5) [Support]
        [not loaded]    com.devguru.driver.SamsungSerial (1.4.27 - SDK 10.6) [Support]
    Problem System Launch Agents: ℹ️
        [invalid?]    .SM.gul.com.apple.SafariNotificationAgent.plist (hidden) [Support]
            /usr/libexec/SafariNotificationAgent /usr/libexec/SafariNotificationAgent
        [loaded]    .SM.gul.com.apple.screensharing.MessagesAgent.plist (hidden) [Support]
            /System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Ma cOS/AppleVNCServer /System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Ma cOS/AppleVNCServer
    Launch Agents: ℹ️
        [invalid?]    .SM.gul.com.avid.backgroundservicesmanager.plist (hidden) [Support]
            /Applications/Avid Media Composer/AvidMediaComposer.app/Contents/MacOS/AvidBackgroundServicesManager.app /Contents/MacOS/AvidBackgroundServicesManager /Applications/Avid Media Composer/AvidMediaComposer.app/Contents/MacOS/AvidBackgroundServicesManager.app /Contents/MacOS/AvidBackgroundServicesManager
        [invalid?]    .SM.gul.com.avid.dmfsupportsvc.plist (hidden) [Support]
            /Applications/Avid Media Composer/AvidMediaComposer.app/Contents/MacOS/AvidDMFSupportSvc.app/Contents/Ma cOS/AvidDMFSupportSvc /Applications/Avid Media Composer/AvidMediaComposer.app/Contents/MacOS/AvidDMFSupportSvc.app/Contents/Ma cOS/AvidDMFSupportSvc
        [invalid?]    .SM.gul.com.avid.interplay.dmfservice.plist (hidden) [Support]
            /Applications/Avid Media Composer/DMFService.app/Contents/MacOS/DMFService /Applications/Avid Media Composer/DMFService.app/Contents/MacOS/DMFService
        [invalid?]    .SM.gul.com.avid.interplay.editortranscode.plist (hidden) [Support]
            /Applications/Avid/EditorTranscode/TranscodeService/EditorTranscode.app/Content s/MacOS/RunEditorTranscode.bash /Applications/Avid/EditorTranscode/TranscodeService/EditorTranscode.app/Content s/MacOS/RunEditorTranscode.bash
        [invalid?]    .SM.gul.com.avid.transcodeserviceworker.plist (hidden) [Support]
            /Applications/Avid/EditorTranscode/TranscodeService/TranscodeServiceWorker.app/ Contents/MacOS/TranscodeServiceWorker /Applications/Avid/EditorTranscode/TranscodeService/TranscodeServiceWorker.app/ Contents/MacOS/TranscodeServiceWorker /Applications/Avid/EditorTranscode/TranscodeService
        [running]    .SM.gul.com.flipvideo.FlipShare.AutoRun.plist (hidden) [Support]
            /Library/Application Support/Flip Video/FlipShareAutoRun.app/Contents/MacOS/FlipShareAutoRun /Library/Application Support/Flip Video/FlipShareAutoRun.app/Contents/MacOS/FlipShareAutoRun
        [loaded]    .SM.gul.com.google.keystone.agent.plist (hidden) [Support]
            /Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resou rces/GoogleSoftwareUpdateAgent.app/Contents/MacOS/GoogleSoftwareUpdateAgent /Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resou rces/GoogleSoftwareUpdateAgent.app/Contents/MacOS/GoogleSoftwareUpdateAgent -runMode ifneeded
        [not loaded]    .SM.gul.com.hp.messagecenter.launcher.plist (hidden) [Support]
            /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/Support/lsregister /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/Support/lsregister -lazy 30 /Library/Printers/hp/Utilities/HPPU Plugins/Message Center.task/Contents/Resources/HPMessageCenterBridge.app
        [invalid?]    .SM.gul.com.intego.commonservices.statusitem.plist (hidden) [Support]
            /Library/Intego/IntegoStatusItem.bundle/Contents/MacOS/tool_launcher /Library/Intego/IntegoStatusItem.bundle/Contents/MacOS/tool_launcher /Library/Intego/IntegoStatusItem.bundle/Contents/Resources/IntegoStatusItemHelp er.app/Contents/MacOS/IntegoStatusItemHelper
        [running]    .SM.gul.com.kaspersky.kav.gui.plist (hidden) [Support]
            /Library/Application Support/Kaspersky Lab/KAV/Applications/Kaspersky Anti-Virus Agent.app/Contents/MacOS/kav_agent /Library/Application Support/Kaspersky Lab/KAV/Applications/Kaspersky Anti-Virus Agent.app/Contents/MacOS/kav_agent -autolaunch 1
        [running]    com.flipvideo.FlipShare.AutoRun.plist [Support]
        [loaded]    com.google.keystone.agent.plist [Support]
        [invalid?]    com.intego.commonservices.statusitem.plist [Support]
        [running]    com.kaspersky.kav.gui.plist [Support]
        [loaded]    com.oracle.java.Java-Updater.plist [Support]
    Launch Daemons: ℹ️
        [loaded]    .SM.gul.com.adobe.fpsaud.plist (hidden) [Support]
            /Library/Application Support/Adobe/Flash Player Install Manager/fpsaud /Library/Application Support/Adobe/Flash Player Install Manager/fpsaud
        [loaded]    .SM.gul.com.ambrosiasw.ambrosiaaudiosupporthelper.daemon.plist (hidden) [Support]
            /System/Library/Extensions/AmbrosiaAudioSupport.kext/Contents/MacOS/ambrosiaaud iosupporthelper /System/Library/Extensions/AmbrosiaAudioSupport.kext/Contents/MacOS/ambrosiaaud iosupporthelper
        [invalid?]    .SM.gul.com.avid.interplay.editorbroker.plist (hidden) [Support]
            ./RunAvidEditorBroker.bash ./RunAvidEditorBroker.bash /Applications/Avid/EditorTranscode/DBScript 0
        [invalid?]    .SM.gul.com.avid.interplay.editortranscodestatus.plist (hidden) [Support]
            ./AvidEditorTranscodeStatusMac.bash ./AvidEditorTranscodeStatusMac.bash /Applications/Avid/EditorTranscode/rnc-central 0
        [loaded]    .SM.gul.com.google.keystone.daemon.plist (hidden) [Support]
            /Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/MacOS /GoogleSoftwareUpdateDaemon /Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/MacOS /GoogleSoftwareUpdateDaemon
        [running]    .SM.gul.com.kaspersky.kav.plist (hidden) [Support]
            /Library/Application Support/Kaspersky Lab/KAV/Binaries/kav /Library/Application Support/Kaspersky Lab/KAV/Binaries/kav -r -bl
        [running]    .SM.gul.com.paceap.eden.licensed.plist (hidden) [Support]
            /Library/PrivilegedHelperTools/licenseDaemon.app/Contents/MacOS/licenseDaemon /Library/PrivilegedHelperTools/licenseDaemon.app/Contents/MacOS/licenseDaemon --backurl https://activation.paceap.com/InitiateActivation
        [loaded]    .SM.gul.PACESupport.plist (hidden) [Support]
            /System/Library/Extensions/PACESupportFamily.kext/Contents/Resources/paceload /System/Library/Extensions/PACESupportFamily.kext/Contents/Resources/paceload
        [loaded]    com.adobe.fpsaud.plist [Support]
        [loaded]    com.ambrosiasw.ambrosiaaudiosupporthelper.daemon.plist [Support]
        [loaded]    com.avid.AMCUninstaller.plist [Support]
        [loaded]    com.google.keystone.daemon.plist [Support]
        [running]    com.kaspersky.kav.plist [Support]
        [loaded]    com.oracle.java.Helper-Tool.plist [Support]
        [loaded]    com.oracle.java.JavaUpdateHelper.plist [Support]
        [running]    com.paceap.eden.licensed.plist [Support]
        [loaded]    PACESupport.plist [Support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.ARM.[...].plist [Support]
        [loaded]    com.facebook.videochat.[redacted].plist [Support]
    User Login Items: ℹ️
        Spanning Sync Notifier    UNKNOWN (missing value)
        Dropbox    Application (/Applications/Dropbox.app)
        TomTomHOMERunner    ApplicationHidden (/Users/[redacted]/Library/Application Support/TomTom HOME/TomTomHOMERunner.app)
        Android File Transfer Agent    Application (/Users/[redacted]/Library/Application Support/Google/Android File Transfer/Android File Transfer Agent.app)
        KiesAgent    ApplicationHidden (/Users/[redacted]/.Trash/Kies.app/Contents/MacOS/KiesAgent.app)
        fuspredownloader    ApplicationHidden (/Users/[redacted]/Library/Application Support/.FUS/fuspredownloader.app)
    Internet Plug-ins: ℹ️
        Flip4Mac WMV Plugin: Version: 3.0.0.85 BETA  - SDK 10.7 [Support]
        FlashPlayer-10.6: Version: 16.0.0.235 - SDK 10.6 [Support]
        JavaAppletPlugin: Version: Java 7 Update 71 Check version
        AdobePDFViewerNPAPI: Version: 10.1.13 [Support]
        Flash Player: Version: 16.0.0.235 - SDK 10.6 [Support]
        AdobePDFViewer: Version: 10.1.13 [Support]
        o1dbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Support]
        QuickTime Plugin: Version: 7.7.1
        googletalkbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Support]
        Silverlight: Version: 5.1.20913.0 - SDK 10.6 [Support]
        iPhotoPhotocast: Version: 7.0 - SDK 10.8
    User internet Plug-ins: ℹ️
        WebEx64: Version: 1.0 - SDK 10.5 [Support]
        WebEx: Version: 1.0 [Support]
    Safari Extensions: ℹ️
        VirtualKeyboard [Cached]
        vkbd [Cached]
        URLAdvisor [Cached]
        Virtual Keyboard [Installed]
        URL Advisor [Installed]
    3rd Party Preference Panes: ℹ️
        3ivx MPEG-4  [Support]
        Flash Player  [Support]
        Flip4Mac WMV  [Support]
        Java  [Support]
        MusicManager  [Support]
    Time Machine: ℹ️
        Time Machine not configured!
    Top Processes by CPU: ℹ️
            86%    kav_app
            11%    kav
             5%    coreaudiod
             1%    firefox
             0%    WindowServer
    Top Processes by Memory: ℹ️
        1.06 GB    firefox
        249 MB    kav
        69 MB    Dropbox
        69 MB    mds
        56 MB    Finder
    Virtual Memory Information: ℹ️
        67 MB    Free RAM
        2.29 GB    Active RAM
        1.09 GB    Inactive RAM
        840 MB    Wired RAM
        3.34 GB    Page-ins
        1.70 GB    Page-outs

  • Slow running mini mac

    My mini mac is very slow running after I had th logic board replaced, any ideas on how to fix this issue?

    Hello, see how many of these you can answer...
    See if the Disk is issuing any S.M.A.R.T errors in Disk Utility...
    http://support.apple.com/kb/PH7029
    Open Activity Monitor in Applications>Utilities, select All Processes & sort on CPU%, any indications there?
    How much RAM & free Disk space do you have also, click on the Memory & Disk Usage Tabs.
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.
    In the Memory tab of Activity Monitor, are there a lot of Pageouts?
    https://discussions.apple.com/servlet/JiveServlet/showImage/2-18666790-125104/AM Pageouts.jpg

  • What is the remedy for a slow running iMac?

    What is the remedy for a very slow running iMac?

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

Maybe you are looking for

  • Is this a Virus??? Or What Is Going On???

    Also posted in Discussion Feedback since I could not find an actual Virus related group and the following refers to both a G3 and a G4. I realize that Apple, especially 10.4 is supposed to be immune to a virus but in the past two days I have run acro

  • Photoshop/Bridge CS4 PDF Presentation Update or Plug-in

    Full Parameter PDF Presentation is essential for me. PDF Presentation (as in Photoshop - Bridge CS2 and CS3) with panels for selection of presentation prameters and saving with various levels of jpeg compression and image quality, presets and output

  • Business area to be deactivated in SD Process

    Dear SD Gurus i am doing in sandbox client while crating the SOrder, i am getting an error No business area can be determined for item 000010 Message no. V1599 Diagnosis The system could not determine a business area for item 000010. The item has pla

  • ADF triggering dynamic number of components

    I have a three-level View object dependency Category -> Class -> Subclass and want to create a dynamic form with the following logic: When user chooses a Category from drop down, page is updated with a number of Class drop-down lists presenting all t

  • Error 10 Could not locate resource

    I tried to auto download the JRE using the JREInstaller and the DownloadServlet (sample in jdk 1.5) from a local server. I got the error 10 Could not locate resource. <j2se version="1.5.0*"  href="http://127.0.0.1:8080/Web-Test2/install/javaws-1_0_1-