Please help - CPU trouble (mainly in Logic Pro).

Hi,
I've had my Mac Pro for 3 & 1/2 years. It's a Quad-Core Intel Xeon 2.66 GHz with 12GB RAM and 3 640GB HDs. I know this spec is nowhere near the scale of other people's machines at this point in time, but it doesn't justify the speed mine runs at. I primarily use my Mac for music production, mainly in Logic Pro 9 and Sibelius 7.
Although it generally seems to be running quite slow, my biggest problem is when using Logic. I mainly compose orchestral music, using Eastwest Symphonic Orchestra Gold, Spitfire Albion I (via Kontakt), Ivory Synthogy Grands II and Spectrasonics Omnisphere. For the sake of this thread, I'll use the track I'm working on currently as an example...
I have 40 tracks with separate instances of Play (for Eastwest Gold) and Kontakt (Albion I) running. (I've tried multi-outputs, but the inability to Freeze tracks is rather obstructing.) There are also a few auxilliary tracks with Logic's compressor & Eastwest Spaces running - no more than 8 separate instances. I also have a 14-minute video running. Currently, I don't have many tracks recorded, but as they begin to build up, Logic just can't handle it - and that's running on 512 samples I/O buffer size and a 'Large' Process Buffer Range. What's more, if I load a single instance of Ivory Grands II in, about 1/7th of my CPU bar is consumed simply when it's idle. I hope this covers all bases, but you get the idea...
I've researched so much and tried it all - using Freeze tracks extensively; hardware test; disk utility; clearing my system HD, including moving my sample libraries to my other HDs (my main HD is currently at about 20% capacity); and probably a myriad of other things that I can't think of right now. As you can imagine, I've spent a lot of money on this system, and to be behaving like this after 2 years (this has been an ongoing problem for quite some time...) is extremely frustrating and upsetting.
Any help on the matter would be greatly appreciated — thank you.

He, the OP, does not appear to have a 3,1 Early 2008 at all.
Processor upgrades for those are fewer and harder to find and he would already have 8-core.
A copy paste of the system profile, minus serial number, helps.
Three SSDs, one for system, and two on Sonnet Tempo Pro PCIe SSD, would go a long ways.
How To Install and Remove Memory Mac Pro
https://support.apple.com/kb/HT4433
2x2GB FBDIMM DDR2 667MHz @ $30
http://www.amazon.com/BUFFERED-PC2-5300-FB-DIMM-APPLE-Memory/dp/B002ORUUAC/
Komputerbay 8GB (2x 4GB) DDR2 PC2-5300F 667MHz CL5 ECC Fully Buffered FB-DIMM (240 PIN) 8 GB
http://www.amazon.com/Komputerbay-PC2-5300F-Buffered-FB-DIMM-Heatspreaders/dp/B0 05HIWD5U/
eBay (Europe)
http://viewitem.eim.ebay.dk/KOMPUTERBAY-8GB-2X4GB-MEMORY-for-APPLE-MAC-PRO-EARLY -2008-31-DDR2-800MHz/140962093586/item?transId=808969265004
2008: Ideal RAM config 8 DIMMs - offers 17% improvement memory bandwidth  performance
667MHz FBDIMMs are cheap, excellent and 4% 'hit' you would never know about.
http://www.barefeats.com/harper5.html
For best performance on Mac Pro, install memory in risers symmetrically
The Mac Pro comes with two memory riser cards, each with four DIMM slots. With a total of eight slots, you can add up to 32 GB of memory.
Note: DIMMs must be installed in pairs of equal size from the same vendor. For instance, you must not have one or three DIMMs on either riser at any time. Additionally, two DIMMs from different vendors should not be combined and used as a pair.
Other configurations of DIMM pairs are still compatible with Final Cut Studio, but may not achieve the same performance levels as when DIMM pairs are installed on both risers evenly.
https://support.apple.com/kb/TS1957
SSD: Samsung 840 128GB
http://www.amazon.com/Samsung-Series-120GB-internal-MZ-7TD120BW/dp/B009NHAF06/
SSD Maintenance
Icy Dock $15
http://www.amazon.com/2-5-3-5-Ssd-sata-Convert/dp/B002Z2QDNE/
Sonnet Tempo Pro
http://www.sonnettech.com/product/tempossdpro.html
http://eshop.macsales.com/item/Sonnet%20Technologies/TSATA6SSDE/
WD Black 1TB $85
http://www.amazon.com/Western-Digital-Caviar-Internal-Desktop/dp/B0036Q7MV0/
Western Digital 3TB WD Black SATA III 7200 RPM 64 MB Cache Desktop Hard Drive WD3001FAEX
http://www.amazon.com/gp/product/B00B2UWTHE/

Similar Messages

  • Please help me to build the logic

    Hi All,
    Please help me to implement the following logic.
    The conditional statements should not only be executed in sequence, but also if any of them are true they should not be overridden by any subsequent conditional statements being true.
    When actual effort Accepted or Rejected for AST proposals and calculate a flag for “enhance to AST guideline” = Y/N as follows for each employee and display at the employee level
    1)If AST eligibility = N AND proposed AST % >0, then “N”
    2)Else If AST eligibility = N AND proposed AST % = 0 then “n/a”
    3)Else If AST eligibility = Y AND Act Rank = 3 AND proposed AST = 0 then “Y”
    4)Else If AST eligibility = Y AND Act Rank = 3 AND proposed AST >0 then “N”
    5)Else If AST eligibility = Y AND Act Rank = 2 AND proposed AST = 0 then “Y”
    6)Else If AST eligibility = Y AND AST % is greater than or equal to the AST guideline minimum AND less than or equal to the AST guideline maximum, then “Y”
    7)Else If AST eligibility = Y AND AST % is less than the minimum guideline OR greater than the maximum guideline, then “N”
    I tried the following code but I am not getting the expected result .
    Could you Please help me to build the logic.
    Your earliest response is very helpful to me.
    if (upper(P_stat)='ACCEPTED' or upper(P_stat) like 'REJECTED%') then
    else if NVL(P_elgi,'N') <> 'Y' AND P_prop > '0' then
    P_flag := 'N';
    else if(NVL(P_elgi,'N') <> 'Y' AND P_prop = '0') then
    P_flag := 'N/A';
    else if ((NVL(P_elgi,'N')='Y') AND P_rank = '3' AND P_prop = '0') then
    P_flag := 'Y';
    else if((NVL(P_elgi,'N')='Y') AND P_rank = '3' AND P_prop > '0') then
    P_flag := 'N';
    else if((NVL(P_elgi,'N')='Y') AND P_rank = '2' AND P_prop = '0') then
    P_flag := 'Y';
    Else if (P_prop >=ast_min_guide AND P_prop <= ast_max_guide ) then
    P_flag := 'Y';
    else
    ((P_prop < ast_min_guide) OR (P_prop > ast_max_guide)) then
    P_flag := 'N';
    end if;
    end if;

    Thanks for ur quick responce .
    When actual effort Accepted or Rejected for AST proposals and calculate a flag for “enhance to AST guideline” = Y/N
    Once the above condition is satisfied we have to check for remaing conditions
    if (upper(P_stat)='ACCEPTED' or upper(P_stat) like 'REJECTED%') then
    once it is satisfies then we have to go for remaing conditions.
    how can we do it in CASE statement.
    1)If AST eligibility = N AND proposed AST % >0, then “N”
    2)Else If AST eligibility = N AND proposed AST % = 0 then “n/a”
    3)Else If AST eligibility = Y AND Act Rank = 3 AND proposed AST = 0 then “Y”
    4)Else If AST eligibility = Y AND Act Rank = 3 AND proposed AST >0 then “N”
    5)Else If AST eligibility = Y AND Act Rank = 2 AND proposed AST = 0 then “Y”
    6)Else If AST eligibility = Y AND AST % is greater than or equal to the AST guideline minimum AND less than or equal to the AST guideline maximum, then “Y”
    7)Else If AST eligibility = Y AND AST % is less than the minimum guideline OR greater than the maximum guideline, then “N”
    I tried the following code but I am not getting the expected result .

  • Hi Forum, can u please help? iRecently bought a mac pro & my garageband 11 was working fine but now it's showing a question mark in the dock but it won't open. I think it may have been accidentally trashed. I've searched the trash & spotlighted. What now?

    Hi Forum, can u please help? iRecently bought a macbook pro and garageband 11 was working fine but now it's showing a question mark in the dock and it won't open. I think it may have been accidentally trashed. I've searched the trash and spotlighted but don't know what to do next. Any ideas? Thanks.

    How  did you install GarageBand on your Mac? Did it come preinstalled with the other iLife applications?
    If your MacOS supports the AppStore, you should be able to redownload GarageBand from the AppStore, see this support Article: OS X: About OS X Recovery on how to download again:
    Double-click the App Store icon in the dock.
    Enter your Apple ID and password.
    Click Purchases.
    If you haven't previously accepted your bundled iLife applications within the Mac App Store, you should see your iLife applications appear in the Accept portion of the screen. Click Accept.
    You may be asked for your Apple ID and password once again. Your iLife applications now move to the Purchased section. These applications are part of the software that came with your Lion based computer. Your account will not be charged for them. Click Install to complete installation of your applications.
    Regards
    Léonie

  • HELP!!!! Logic Pro 8 Keeps Crashing.

    I did alot of research but couldn't find any one having the same issue like i did.
    I hate to say it but i've downloaded logic pro 8 and have started producing music. The reason why i downloaded the program is i was afraid to invest 500 dollar to a program that i didn't like. but now i have already bought the program. here's my issue, i hope i didn't bored you with my intro already.
    i have a macbook pro 2.4ghz, kingston 4Gb ram, seagate 500gb HDD, running snow leopard, logic 8, reason 4, virus ti keyboard, firewire 1814.
    when i was using the cracked logic i was having alot of unexpectedly crashes usually with reason rewired, cus thats how i usually produce music. i thought a real program (logic pro 8) will cure the problem, so i bought the program. but then it was exactly the same as the cracked program, i will have to say i have no idea why. sometimes logic wouldn't crash for a long time but sometime it will crash 3-4 time with in half an hour.
    can some one please help me.

    Process: Logic Pro [260]
    Path: /Applications/Logic Pro.app/Contents/MacOS/Logic Pro
    Identifier: com.apple.logic.pro
    Version: 8.0.2 (1502.22)
    Build Info: Logic-15022200~9
    Code Type: X86 (Native)
    Parent Process: launchd [113]
    Date/Time: 2010-03-06 15:31:17.451 -0800
    OS Version: Mac OS X 10.6.2 (10C540)
    Report Version: 6
    Exception Type: EXCBADACCESS (SIGABRT)
    Exception Codes: KERNPROTECTIONFAILURE at 0x0000000000000002
    Crashed Thread: 0 Dispatch queue: com.apple.main-thread

  • Please help!!!! logic 9 keeps crashing!!!!!!!

    i been on here for a few days trying to figure out my problem but still no luck. logic will open up after i made a new account. but still crashes under my original account. here is my report if somebody can please help me with this problem...
    Process:         Logic Pro [754]
    Path:            /Applications/Logic Pro.app/Contents/MacOS/Logic Pro
    Identifier:      com.apple.logic.pro
    Version:         9.1.8 (1700.67)
    Build Info:      Logic-17006700~1
    Code Type:       X86 (Native)
    Parent Process:  launchd [95]
    Date/Time:       2012-12-09 15:25:32.054 -0900
    OS Version:      Mac OS X 10.6.8 (10K549)
    Report Version:  6
    Interval Since Last Report:          181914 sec
    Crashes Since Last Report:           -99
    Per-App Interval Since Last Report:  2885 sec
    Anonymous UUID:                      C36019A3-EC52-4685-BE40-34F1CB4C965E
    Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x000000000004ffc8
    Crashed Thread:  25
    Error Formulating Crash Report:
    *** -[NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: Identifier)
    0x80b94766
    0x8a6fff03
    0x80b945a7
    0x80b94534
    0x8745fcee
    0x00005572
    0x8798a917
    0x0000541c
    0x00007fb4
    0x00008aa0
    0x0000ad72
    0x0000ab4f
    0x805b04c0
    0x0000a256
    0x805a3fd6
    0x805a3e89
    Thread 25 Crashed:
    0   ???                                     0x018bd0bb vtable for GImageMac + 27
    1   com.apple.CoreFoundation                0x91d5642c CFBasicHashFindBucket + 252
    2   com.apple.CoreFoundation                0x91d562f3 CFDictionaryGetValue + 131
    3   com.apple.Foundation                    0x95fb6ea9 _NSThreadGet0 + 513
    4   com.apple.Foundation                    0x9605a37d -[NSConcreteTask waitUntilExit] + 57
    5   com.apple.music.apps.MACore             0x01323067 getPkgInfo + 423
    6   com.apple.music.apps.MACore             0x0132315e getPkgInfo + 670
    7   libSystem.B.dylib                       0x93d17259 _pthread_start + 345
    8   libSystem.B.dylib                       0x93d170de thread_start + 34
    Thread 25 crashed with X86 Thread State (32-bit):
      eax: 0x00050000  ebx: 0x91d4e0b1  ecx: 0x02f187f0  edx: 0xb0bbe000
      edi: 0xb0bbe000  esi: 0x444eefe0  ebp: 0xb0bbde18  esp: 0xb0bbdd7c
       ss: 0x0000001f  efl: 0x00010246  eip: 0x018bd0bb   cs: 0x00000017
       ds: 0x0000001f   es: 0x0000001f   fs: 0x0000001f   gs: 0x00000037
      cr2: 0x0004ffc8

    http://support.apple.com/kb/TS3968
    Had you searched the forums with something like "Logic 9 Crashing" you would've instantly found the answer... it's been answered several times in the last week.

  • Please help! I erased my Macbook Pro on Find My Mac.

    Hello, I purchased a refurbished Macbook Pro in December 2012.  Fast forward to September 2013, my hard drive crashed (lost everything) and was forced to bring it to the store to replace the hard drive.  Picked up my laptop this last Saturday and it was in brand new factory condition (had to set it up like the first time).  As I am setting up my Macbook on my Find My Phone app on my phone, I was a bit confused because the pre-hard drive crash Macbook was under my list of devices and I chose to Erase it because I thought I was removing it from the list (very stupid).  Well apparently, pre-hard drive crash Macbook and new hard drive Macbook turns out to be the same one and I completely erased all factory settings from my laptop.  Since I was sans laptop for 2 weeks at the Apple Store, I decided to re-install the Mountain Lion as per the instructions of start up since I did not have anything saved other than a couple of profile settings, etc.  Once installed, everything seemed fine, but when I come to use it today, I am missing a ton of applications that originally came with my Macbook, iPhoto, Garageband to name a few.  I need help as I do not want to pay for all these apps that came with my laptop originally, btw they cost $14.99+.  Also, my flash player doesn't work, I can't view an online PDF menu for a restaurant for example.  I have a scheduled appointment at the Genius Bar this week, but I am afraid how long that is going to take.  Please help!!  Thanks

    The genius bar appointment is the easy way to get things restored.  You can try yourself by opening the App Store, sign in by clicking Store on the menu bar, and the select Prurchases.  See if your iLife applications show up.  If they do, download each of them.

  • Help menu items not available Logic Pro 9

    I think this problem occured after upgrading to Mavericks. When I use the help menu in LogicPro9 and click on the most relevant keywords that I have typed I am presented with a dialog that indicates: "The selected topic is currently unavailable. The topic you were trying to view could not be found."
    I think this may be related to Spotlight not being indexed properly. After having problems re-indexing Spotlight I finally realised that in order for Spotlight to re-index correctly I had to add my permanently installed SD card to the Spotlight Privacy eclusion list. Instead of Spotlight taking 5+ hours to re-index a fast SSD it now did it in about 10mins.
    I am now confident Spotlight has re-indexed successfully.
    But the help menu items are still "unavailable"
    OSX 10.9.1
    MacBookPro Mid 2012
    Logic Pro 9.1.8

    I'm still putting this question out there to anyone who can help solve this problem. After trashing the Logic Pro9 App from the Finder>Applications I visited the Mac App Store and under the Purchases icon I re-installed Logic Pro9.
    The Help menu is still returning:
    "The topic you were trying to view could not be found." when clicking on the suggested returned results in relation to my search keywords.
    I know there are better resources out there but I find it handy to use the help menu instead of reaching for a book or website/weblink.
    Eventually I will switch to Logic Pro X but as Lennar Digital is still finalising their 64Bit version release of Sylenth (popular soft synth)  I will wait until that is completed later in the year.

  • PLEASE HELP!!! (Adobe 8 Pro)

    On Adobe 8 Pro I have been spending countless hours trying to figure out how to add a "text caption" within a text field. What I mean is that for my work file I have designed a form with LiveCycle Designer and I did the final edits on Adobe but whatever I do (if I go to to TouchUp Reading Tool or Touchup Text Tool) I cannot figure out how to add a caption so when a client goes to the field it tells them in the box "For electronic signatures, please type your full name". I know I can add a comment...sticky note...text edit tool etc but every time I do that then the pop-up box also opens up and I don't want that!!!! I only want the caption without anything else!
    If someone can please help me as soon as possible, I would deeply appreciate it. Thanks again!

    >I have designed a form with LiveCycle Designer
    Then anything else you want to do must be done in LiveCycle Designer.

  • Need some help with strange sounds in Logic Pro 8

    Hi!
    I need some help with a problem I have in Logic Pro 8.
    When I have arrange window open, suddley strange high tones starts to make noise in my headphones. I don't know where these sounds comes from or why, but I need some help to get them away. Should I just try to contact Apple?
    Martin

    Hi Martin
    Welcome to the forum. Give everyone here some more info about your set up otherwise it may be difficult to figure out what is wrong.
    Which mac?
    Which OS?
    any hardware devices?
    if you are listening through headphones using the built in audio from the mac, you may be hearing fan noise or a hard drive spin noise.
    Don

  • Please Help Me To Upgrade My Macbook Pro

    Hi everyone,
    I'll get straight to the point. I have my Macbook Pro about 18 months. It's a 13" model with the highest spec from that time; 2.9GHz i7 processor, 8GB RAM and 750GB Hard Drive. Basically, the problem I'm having is that I want a faster computer. The way I see it, I have these options:
    1. Upgrade the 750GB HD to a 256 or 512 Solid-State drive
    2. Buy a retina-display model (late 2013), with built-in SSD and newer processor. Although the specs are lower on the new processors (e.g. 2.4GHz i5, 2.6GHz i5), they are the 4th generation whereas I think mine is 3rd, so I really don't know how they perform next to my 2.9GHz i7?
    3. Your suggestions?
    I run Adobe Photoshop and InDesign daily, use Google Chrome extensively daily and also use music making software like Logic Pro & Garageband on a regular basis. I need more power/speed than I currently have to handle multiple programmes at the same time. At the moment, I find the laptop stalls and stutters too much for my liking.
    If anyone could offer any help or guidance I'd really appreciate it.

    The resource intensive applications you are using require good GPU performance, hence my recommendations.  For any thing less, there will be a performance price. 
    If possible, switch from Google Chrome to another browser.  It has a history of compatibility issues with Mac OSX and is a relative resoure glutton.
    Ciao.

  • PLEASE HELP! Trouble importing media used in Premiere CS6 into CC

    After infinitely trouble with stability in OSX Premiere CS6, I´ve tried to open my project in CC. I get a dialogue box when importing media with heading "Cannot Link Media" and saying "The selcted file cannot be linked because it has 2 audio channel(s) and the clip was created with 1 audio channel(s). Now, these clips had no issues in CS6, but after installing CC, I cannot open anything in CS6 and CC won´t, as stated, accept my clips. Now, I tried to uninstall CS6 to late reinstall it. But Adobe seems to have removed the installer, anyway I can´t find it. SERIOUSLY!. This is EXTREMELY frustrating. PLEASE HELP!

    I don't have any sure-fire solutions, but I do have a suggestion: rather than opening the whole CS6 project and going through the whole conversion process, try importing just the sequence(s) from the CS6 project into a new CC project. There are a couple of ways to do so: 1) File>Import, select "Import Selected Sequences," then pick the desired ones, or 2) drill down to the project in Media Browser, which will show you it's contents, then drag and drop the sequence(s) into the Project panel.
    I found a few bug reports in the same neighborhood. They were all fixed in the release you're using. But each was specific to a particular file type, so you may have hit on a case that we didn't exercise. It could really help us nail this down if you provided one small clip that CC is balking at and, ideally, a CS6 project containing that clip.

  • Please Help! Trouble sending email from Apple Mail to PC-users

    When sending email in RTF format from Mail to PCs, we have som trouble which I havent found out how to solve:
    1) the PC user gets a scrambler email, in which some of the text is like "chinese". Illegible! This seems to happen especialle with PDFs attached.
    2) Graphics or pictures we wish to appear directly in the mail is not visible to the receiver, but is only included as attachments.
    I know most mail encoding problems can be avoided if we send mail i the "old" simple text format. But we wish to send mails in which our company logo appears in the signature, and sometimes we send graphics and pictures that we wish to be seen directly in the mail (and not as attached files only).
    I have set the preferences so that mails as standard are send in RTF format and attachments are send in the "windows friendly" mode.
    What really irritates me is that we have more success sending PC friendly mails from Entourage. But for two other reasons we wish to use Mail instead of Enrourage (Entourage has more crash downs/"broken" database issues. And we use Plaxo which does not sync with Entourage)..
    Could some of you Please help or direct me to helpfull info?
    Sincerely ...Peter and Thomas

    Hello Peter.
    Your OS detail provided indicates you are running 10.3.9 but you posted in the Mail & Address Book - Tiger discussions.
    1) When you say PC user, more than likely the PC users reporting this problem are using Outlook for their email client since Outlook has always had problems with Mail's RTF and sometimes severe problems depending on the version used by the recipient. Using Plain Text for message composition will resolve this but check this link for an alternative.
    http://homepage.mac.com/thgewecke/woutlook.html
    2) All Mail.app versions prior to Tiger Mail (2.x) do not support composing in HTML. RTF with Tiger Mail is HTML but Tiger Mail does not include an HTML composer/editor.
    The Mail.app displays all photo/image and single page PDF attachments inline or viewed in place within the body of the message by default which cannot be turned off. This is not the same as being embedded which cannot be done with any Mail.app version directly regardless. Depending on the recipient's email client and available settings, such attachments may appear inline or viewed in place within the body of the message when the message is opened by the recipient (as when receiving such attachments with the Mail.app) or as attached files only which must be opened separately to be viewed for which the sender has no control over.
    The same in reverse. Photo/image attachments to a Windows Outlook message appear as attached files only when the message is sent but when sent to a Mail.app user, such attachments will appear inline or viewed in place within the body of the message when the message is opened which the Windows Outlook user has no control over.
    The company logo included with your Signature is likely appearing as an attached file to the message only but how the logo appears when opened by the recipient depends on the recipient's email client.
    The only thing the Windows Friendly Attachment option does is remove the Apple resource fork for attached files which are invisible to fellow Mac users.

  • Having trouble Downloading/Purchasing logic Pro

    I am trying to Buy/Downlaod logic Pro x and I also have enough money in the itunes account to purchase logic, but I keep getting asked the same things over and over and not getting anywhere. (have to keep puttin gin my app id password, billing info etc...)when i click done, it goes back to needing my app id password. I will also mention that I am in Puerto Rico , but i dont think that it is the problem, but when i tried to change the country, it doesnt allow Puerto rico. HELP??!?! haha

    Please try a different web browser.

  • Please Help!!! DVD studio Pro Aspect ratio problems!

    Please Help!!! I am using DVD studio Pro (Ver 4.1.0) to make a dvd using SD DV format 4:3 videos. After I burn the dvd and play the dvd on my 4:3 televison the video does not fill up the whole screen of the television, and also when I Simulate the DVD in Studio Pro it does not fill up the whole simulation screen (however the simulation screen is in 16:9 ratio and I also do not know how to change it to a 4:3 simulation screen). Can anyone please help me My family really wants the family videos but I cannot send them videos that look bunched up on the TV, I want it to be perfect!!. Thank you so much in advance for any help/advice, Darin.

    Hi and wellcome to the forums !
    Check if your tracks are set to Display Mode 4:3.
    however the simulation screen is in 16:9 ratio and I also do not know how to change it to a 4:3 simulation screen
    While simulating look for the Display Mode settings in the left lower corner of the Simulator.
    I want it to be perfect!!
    I think that's too much for these forums !
    Hope that helps !
      Alberto

  • Please help me to implement my logic.

    Hi Experts,
    I am providing the complete code and my exact requirement.
    CREATE OR REPLACE PACKAGE INTERNAL_SCORING_RAM
    IS
    PROCEDURE TrendScoring_ram(pBUID       IN STAGING_ORDER_DATA.BUID%TYPE,
                             OrderNum    IN STAGING_ORDER_DATA.ORDER_NUM%TYPE,
                             ReturnValue OUT VARCHAR2);
    PROCEDURE InsertTrend_ram(pBUID        IN ORDER_TREND_SCORE.BUID%TYPE,
                            OrderNum     IN ORDER_TREND_SCORE.ORDER_NUM%TYPE,
                            Variable     IN ORDER_TREND_SCORE.TREND_VARIABLE%TYPE,
                            DeductPoints IN ORDER_TREND_SCORE.DEDUCTION_POINTS%TYPE,
                            FraudPct     IN ORDER_TREND_SCORE.FRAUD_PERCENTAGE%TYPE,
                            FraudWkdPct  IN ORDER_TREND_SCORE.FRAUD_WORKED_PERCENTAGE%TYPE);
    END;
    CREATE OR REPLACE PACKAGE BODY INTERNAL_SCORING_RAM
    IS
    PROCEDURE trendscoring_ram
    (pBUID  IN STAGING_ORDER_DATA.BUID%TYPE,
      OrderNum  IN STAGING_ORDER_DATA.ORDER_NUM%TYPE,
      ReturnValue OUT VARCHAR2)
    IS
        tCleanProdDesc  ORDERS.PRODUCT_DESC%TYPE;
        tLocalChannel   STAGING_ORDER_DATA.LOCAL_CHANNEL%TYPE;
        tSKUNum         STAGING_ORDER_DATA.SKU_NUM%TYPE;
        tDeductionPoints  TREND.DEDUCTION_POINTS%TYPE := 0;
        tFrdPct           TREND.FRAUD_TOTAL_PERCENTAGE%TYPE := 0;
        tFrdWkdPct        TREND.FRAUD_WORKED_PERCENTAGE%TYPE := 0;
        tCount          NUMBER := 0;
        tAVS            VARCHAR2(50);
        tScore          SCORE.VENDOR_COMBINED_SCORE%TYPE;
        tProdDesc       ORDERS.PRODUCT_DESC%TYPE;
       tPayCode        ORDERS.PAY_CODE%TYPE;
    BEGIN
      ReturnValue := 'get order header';
    SELECT stgOrder.LOCAL_CHANNEL
          INTO tLocalChannel
          FROM STAGING_ORDER_DATA stgOrder
         WHERE stgOrder.BUID = pBUID
         AND stgOrder.ORDER_NUM = OrderNum
         AND stgOrder.ADDRESS_TYPE = 'B';
          SELECT ord.PRODUCT_DESC,
                NVL (ord.SKU_NUM, ''),
                NVL (cc.AVS_CC_CODE, ''),
                NVL (s.VENDOR_COMBINED_SCORE, -1)
      INTO    tProdDesc,tSKUNum, tAVS, tScore
      FROM   MASTER_CURRENCY exchg,
                   ORDERS ord
                LEFT OUTER JOIN
                   (  SELECT   BUID,
                               ORDER_NUM,
                               MIN (AVS_CC_CODE) AS AVS_CC_CODE,
                               MIN (CID_CODE) AS CID_CODE
                        FROM   CREDIT_CARD
                       WHERE   BUID = pBUID AND ORDER_NUM = OrderNum
                    GROUP BY   BUID, ORDER_NUM) cc
                ON ord.BUID = cc.BUID AND ord.ORDER_NUM = cc.ORDER_NUM
             LEFT OUTER JOIN SCORE s
             ON ord.BUID = s.BUID
             AND ord.ORDER_NUM = s.ORDER_NUM
    WHERE   ord.CURRENCY_CODE = exchg.CURRENCY_CODE
             AND ord.BUID = pBUID
             AND ord.ORDER_NUM = OrderNum;
    ------SKU Num---------------------------------------------------------
         ReturnValue := 'sku Num';
       BEGIN
         SELECT DEDUCTION_POINTS,
                 FRAUD_TOTAL_PERCENTAGE,
                 FRAUD_WORKED_PERCENTAGE
            INTO tDeductionPoints, tFrdPct, tFrdWkdPct
            FROM TREND
           WHERE VARIABLE_NAME = 'sku num' AND
                 UPPER(VARIABLE_VALUE) = tSKUNum AND BUID = pBUID AND
                 LOCAL_CHANNEL = tLocalChannel
             AND DEDUCTION_POINTS IS NOT NULL;
        ReturnValue := 'product degredation';
             InsertTrend_ram(pBUID,OrderNum,'sku num: ' || tSKUNum,tDeductionPoints,tFrdPct,tFrdWkdPct);
    EXCEPTION
    WHEN no_data_found THEN
    tCleanProdDesc := fn_cleanproddesc(UPPER(tProdDesc));
        ReturnValue := 'product degredation';
    --product degredation---------------------------------------------------------
        BEGIN
        SELECT DEDUCTION_POINTS,
                  FRAUD_TOTAL_PERCENTAGE,
                  FRAUD_WORKED_PERCENTAGE
             INTO tDeductionPoints, tFrdPct, tFrdWkdPct
             FROM TREND
            WHERE VARIABLE_NAME = 'product' AND
                 UPPER(VARIABLE_VALUE) = tCleanProdDesc
             AND BUID = pBUID
             AND LOCAL_CHANNEL = tLocalChannel
         AND DEDUCTION_POINTS IS NOT NULL;
           InsertTrend_ram(pBUID,OrderNum,'product: ' || tCleanProdDesc,tDeductionPoints,tFrdPct,tFrdWkdPct);
         EXCEPTION
         WHEN no_data_found THEN
          NULL;
         END;
    END;
    -----pay code--------------------------------------------------------------------
    ReturnValue := 'pay code';
        BEGIN
          SELECT DEDUCTION_POINTS,
                 FRAUD_TOTAL_PERCENTAGE,
                 FRAUD_WORKED_PERCENTAGE
            INTO tDeductionPoints, tFrdPct, tFrdWkdPct
            FROM TREND
           WHERE VARIABLE_NAME = 'payment code' AND VARIABLE_VALUE = tPayCode AND
                 BUID = pBUID AND LOCAL_CHANNEL = tLocalChannel
                  AND DEDUCTION_POINTS IS NOT NULL;
          InsertTrend_ram(pBUID,OrderNum,'pay code: ' || tPayCode,tDeductionPoints,tFrdPct,tFrdWkdPct);
    EXCEPTION
    WHEN no_data_found THEN
    NULL;
    END;
    --ship code--------------------------------------------------------------------
    --InsertTrend_ram(pBUID,OrderNum,'ship code: ' || tShipCode,tDeductionPoints,tFrdPct,tFrdWkdPct);
    --source system flag----------------------------------------------------------
    --InsertTrend_ram(pBUID,OrderNum, 'source system flag: ' || tSrcSys,tDeductionPoints,tFrdPct,tFrdWkdPct);
    --st address diff flag--------------------------------------------------------
    --InsertTrend_ram(pBUID,OrderNum, 'st address diff flag: ' || tSTDiff,tFrdPct,tFrdWkdPct);
    ---inserttrend_ram procedure calling 70 times
    END  trendscoring_ram;
    PROCEDURE InsertTrend_ram (
       pBUID          IN ORDER_TREND_SCORE.BUID%TYPE,
       OrderNum       IN ORDER_TREND_SCORE.ORDER_NUM%TYPE,
       Variable       IN ORDER_TREND_SCORE.TREND_VARIABLE%TYPE,
       DeductPoints   IN ORDER_TREND_SCORE.DEDUCTION_POINTS%TYPE,
       FraudPct       IN ORDER_TREND_SCORE.FRAUD_PERCENTAGE%TYPE,
       FraudWkdPct    IN ORDER_TREND_SCORE.FRAUD_WORKED_PERCENTAGE%TYPE
    IS
    BEGIN
    DELETE FROM  ORDER_TREND_SCORE WHERE  BUID = pBUID AND ORDER_NUM = OrderNum AND TREND_VARIABLE = Variable;
       INSERT INTO ORDER_TREND_SCORE (BUID,
                                      ORDER_NUM,
                                      TREND_VARIABLE,
                                      DEDUCTION_POINTS,
                                      FRAUD_PERCENTAGE,
                                      FRAUD_WORKED_PERCENTAGE)
         VALUES   (pBUID,
                   OrderNum,
                   Variable,
                   DeductPoints,
                   FraudPct,
                   FraudWkdPct);
    END InsertTrend_ram;
    END;
    /In my code the procedure "trendscoring_ram" is calling "inserttrend_ram" procedure 70 times
    for different variable values.
    Instead of calling the "inserttrend_ram" procedure 70 times.
    I want to hold the values in a associative array , defining it in package and call that procedure only once.
    As below.
    Inserttrend_ram(pBUID, OrderNum, Associativearray, Associativearray, Associativearray,Associativearray);
    For that I have tried the following but it's not working.
    IN the package I have declared the associative array like this.
    TYPE type_ots IS TABLE OF ORDER_TREND_SCORE%ROWTYPE INDEX BY PLS_INTEGER;
    I have modified the inserttrend_ram as below.
    PROCEDURE InsertTrend_ram(
                                P_TYPE_OTS_REC IN type_ots
            IS
            BEGIN
                FORALL i in P_TYPE_OTS_REC.FIRST.. P_TYPE_OTS_REC.LAST
                  DELETE
                    FROM ORDER_TREND_SCORE
                    WHERE BUID = P_TYPE_OTS_REC(i).BUID
                      AND ORDER_NUM = P_TYPE_OTS_REC(i).ORDER_NUM
                      AND TREND_VARIABLE = P_TYPE_OTS_REC(i).TREND_VARIABLE;
                FORALL i in P_TYPE_OTS_REC.FIRST.. P_TYPE_OTS_REC.LAST
                  INSERT INTO ORDER_TREND_SCORE(
                                                BUID,
                                                ORDER_NUM,
                                                TREND_VARIABLE,
                                                DEDUCTION_POINTS,
                                                FRAUD_PERCENTAGE,
                                                FRAUD_WORKED_PERCENTAGE
                  VALUES(
                         P_TYPE_OTS_REC(i).BUID,
                         P_TYPE_OTS_REC(i).ORDER_NUM,
                         P_TYPE_OTS_REC(i).TREND_VARIABLE,
                         P_TYPE_OTS_REC(i).DEDUCTION_POINTS,
                         P_TYPE_OTS_REC(i).FRAUD_PERCENTAGE,
                         P_TYPE_OTS_REC(i).FRAUD_WORKED_PERCENTAGE
    END InsertTrend_ram;Please help me.
    Thanks in advance.

    For that I have tried the following but it's not working.As you don't specify the error message, and we don't have your table definitions and you posted several hundreds of lines of code, we can not reproduce your problem, so you won't get any responses.
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for

  • CS5 Windows 7 Lag

    Hi,      I'm hoping others have experienced this and can give me some direction. We are in the process of migrating our entire Art Department (8 Artists) to Windows 7 and CS5. I have the first machine for testing and setup but I am experiencing a lot

  • Procurement Type 'X' and Special Procurement Type

    Hello all, Need some advice over this topic. Material with procurement type 'X' can either be procured externally or manufactured in-house. The problem is : #1. If a special procurement type that corresponds to external procurement say for example '3

  • Cannot change account.

    So, my gmail account is now disabled and I want to change my primary email address to another email. Before I  can save it, the website prompts me for my password. I know my password, but it says it is wrong and won't let me use skype.

  • Can´t make a login page -- Solved

    Sorry it was a mistake Thanks Message was edited by: Tony Fernández

  • Error publishing "Application with runtime embedded" file

    I am trying to publish an "Application with runtime embedded" file out of Flash Pro CC. I am getting an error that I think indicates that certain necessary files that get packaged with the SWF to create the App are not able to be copied. The error me