Do I need to return my mac.

I purchased some DVDs on the web for backing up photos and had no end of trouble with them.
Basically sometimes they would not be recognised (Literly when you put them in the drive the mac would not see them)
Some times it would but the burn would always fail, sometimes resulting in a system wide crash.
And sometimes more concerningly the error 'Bruning the disk failed because communication to the disc drive failed. (Error code 0x80020022)
Assuming the DVDs just were not compatible, I blagged some off my step dad, I had used some of these DVDs before no problem, and sure enough the first one burnt. The second one however got caught in the crossfire of a very stupid problem with macs that at this development apple still has not sorted. i.e. if something appears to be mounted on the desktop but is not, in this case a media card, and you drag it to the trash the whole computer crashes. The up shot was I had to restart the mac with the half burnt DVD. This resulted in a 15 minute struggle to stop the drive from trying to read the disk. You cannot do anything, eject fails to work, basically this drive is a POS.
Anyhow the result is, if I start burning any disk now I get the communication error.
What is my next move?
BTW does anyone elses drive whirr and vibrate like a beast when anything is put in it, they really are crap arn't they?

Hello,
I purchased some DVDs on the web for backing up
photos and had no end of trouble with them.
Yes, the drives Apple uses are very particular about the disks they'll work with.
I've had problems with disks that my Compaq's DVD-R drive absolutely loves. They'll burn better than anything on my Compaq, but fail on my Apple.
So, you need to find something the iMac likes.
Mac's love Verbatim, and Maxell. I've had the best success with those.
Memorex also works.
Avoid Wal-Mart's Durabrand and other cheep disks.
I've had trouble with TDK, Durabrand (their CD-R's are great, but DVD-R's are questionable), and a few others I can't remember.
Some times it would but the burn would always fail,
sometimes resulting in a system wide crash.
That is quite unusual. It's not unusual for a burning process to fail. But, it should never stall the whole computer.
And sometimes more concerningly the error 'Bruning
the disk failed because communication to the disc
drive failed. (Error code 0x80020022)
That one would be a good indication that you should call Apple and get the machine examined.
drive from trying to read the disk. You cannot do
anything, eject fails to work, basically this drive
is a POS.
I am a bit unsure of what you mean here. You state in the next paragraph that burning another disk fails. So, does that mean that you have successfully gotten the disk out of the drive?
If you have only tried removing the disk while the computer is running OS X, then I would propose trying to eject the disk at startup.
This is done by holding down the left mouse button (on a two button mouse) or the only button on a single button mouse.
You turn on the computer, and then immediately press and keep holding the mouse down until the drive spits-out the CD. If the computer gets all the way to the OS X desktop without ejecting the CD, then the computer does not believe there is a disk in the drive.
This could be because it is not a readable disk (since burning failed). Or, it could be because the disk is partially ejected and stuck.
If it's stuck, then take a look at my proposed suggestions to try (which are listed in Donald's message).
Removing a stuck disk should fall within the scope of your warranty. So, if you would rather just have the pro's remove it, then take it in to the service center. They'll either remove the disk, or replace the drive with a new one (which may be a good option for you).
Anyhow the result is, if I start burning any disk now
I get the communication error.
If you do have the original disk removed, and are getting this error with new disks, then I would definitely get on the phone with Apple (or take it in for diagnostics).
What is my next move?
Depends...
I'm unclear from your message as to whether you still have a disk stuck in the drive or if you are just having trouble getting it to burn disks now.
BTW does anyone elses drive whirr and vibrate like a
beast when anything is put in it, they really are
crap arn't they?
They will do that if you use disks which are slightly out of balance. Disks with improperly applied labels. Even commercial disks with writing have labels (although it may not look like it's really a sticker). And blank disks with a surface that can be written on with marker are also labels.
So, if that label is slightly off-center (even the slightest) the disk will be noisy.
I've seen this with disks from all companies. Some just get slightly out of line on the label machine.
Now, if the drive is doing this with every single disk from all different manufacturer's, then I would definitely have it looked at.

Similar Messages

  • I bought a new ipod today and i can not get it to connect to my mac oe my itune account it say s i need ituned 10.4 so i tried to download it, it then says i need mac osx10.5 so i tried to down load it but it says something else do i need to return it?

    I bought a new ipod touch today. I tried to install it and it says i need itunes 10.4 so i tried to download that, it said i needed mac os x 10.5 so i tried to down load that it gave me another message. how do i get my new ipod  onto my mac? Or do i need to return the ipod?

    New iPod Touch devices require a minimum of Mac OS X Leopard 10.5.8 in addition to a fairly recent version of iTunes. If you are running Tiger (10.4) or earlier, you can't just update to Leopard for free; you have to buy it.
    http://support.apple.com/kb/ht1447

  • How can I return my elements 13 windows (just bought) because I need it for a Mac (this elements also just bought).?

    how can I return my elements 13(just bought) because I need it for a Mac (this elements also just bought(.?

    Whats with the MBP lid? Dont close it ... if you're so concerned! Just go to System Preferences/Energy Saver and set it to how you like it.

  • I just got my MacBook Air and every time I go to a website other ads and websites pop up saying I need to clean my mac out. Any ideas on what I should do?

    When I am surfing the web other websites pop up saying I need to clean my mac out or I am a winner of something. I just got my Mac so I'm not sure how this happened.

    You may have installed the "VSearch" trojan, perhaps under a different name. Remove it as follows.
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data before proceeding.
    Step 1
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "com.vsearch.agent.plist" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    ~/Library/Internet Plug-Ins/ConduitNPAPIPlugin.plugin
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one. Even if you find none of the items listed in this step, go on to Step 2.
    Step 2
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot," "Trovi," or "Conduit" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    Reset the home page and default search engine in all the browsers, if it was changed.
    This trojan is distributed on illegal websites that traffic in pirated content. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect much worse to happen in the future.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that this Internet criminal has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • Grreat potential, but I need to return it....

    I really like the AppleTV for it's size, capabilities, and ease of use but it has a fatal flaw for me that means I need to return it.
    With over 700 ripped-DVD's in my iTunes collection, plus > 40 Gigs of music I never get any of my iphoto collection onto the box which means that the default screen saver shows the default Apple images loaded onto the system rather than the ones of my grand-daughter we want to see. To state that my wife is unhappy with this one problem would be an understatement, so unless someone can explain how I can force my iPhoto Library in place it's back to the MythTV box for me.
    Thanks,
    Graham
      Mac OS X (10.4.9)  

    I don't think that is accurate about the number of photos that you can get on the Apple TV, I think you can get your full collection or very close. I comfortably have 14,000 on my Apple TV. I didn't think they would fit but it appears there might be some kind of compression going on as they move to the Apple TV, which may explain why it takes a LONG TIME to sync photos. Start it and go to bed or to work (and check on it when you get back, it may not be done - ha ha). By the way, I suggest clearing off all other content (with exception of a few of your favorite music files which you can use to play along with your photo slideshows). I had exactly the same reaction as you initially when I realized the photo situation. However fortunately the syncing works so well that is fully reasonable to keep movies and majority of music on your computer and use Appled TV hard drive only for photos and a little music. Try it before you give up on it. Wifey will be happy .

  • Need help returning correct name from a code created movie clip

    Hello. I am an AS3 n00b with hopefuly a simple question I am designing a simple game in flash. This code creates an array of movie clips and asigns a picture to each one. It is a map screen. What I need is when I click on one of the created movie clips, I need it to return either the index of the clip in the array or the name of the clip. Basicaly anything I can use to tell them apart in the code. Here is the code:
    import flash.display.MovieClip;
    var MapLoader:Array = new Array();
    var strJPGext:String = ".jpg";
    var intContTileNumber:int;
    var strContTilePath:String;
    var intDistStartX:int = 63;
    var intDistStartY:int = 64;
    var intDistMultiplyY:int = 0;
    var intDistMultiplyX:int = 0;
    var intDistCount:int = 0;
    var MapSquare:Array = new Array();
    for (var i:int = 0; i < 729; i++)
             //var MapSquare:MovieClip = new MovieClip();
            MapSquare.push (new MovieClip());
            MapSquare[i].x = intDistStartX + (intDistMultiplyX * 30);
            MapSquare[i].y = intDistStartY + (intDistMultiplyY * 30);
            MapSquare[i].name = "MapSquare" + i ;
            addChild(MapSquare[i]);
            intContTileNumber = i;
            MapLoader.push (new Loader);
            strContTilePath = intContTileNumber + strJPGext;
            MapLoader[i].load(new URLRequest(strContTilePath));
            MapSquare[i].addChild(MapLoader[i]);
            intDistCount++;
            intDistMultiplyX++;
            if (intDistCount > 26){
            intDistCount = 0;
            intDistMultiplyX = 0;
            intDistMultiplyY++;
    stage.addEventListener(MouseEvent.CLICK, reportClick);
    function reportClick(event:MouseEvent):void
        trace("movieClip Instance Name = " + event.target.name);   
    Now all this works fine, it creates the map and assigns the correct picture and places them in the correct X,Y position and it is the correct grid of 27x27 squares. The problem is with the name, when I click on the movie clip, it returns "Instance2" or "Instance5" or whatever. It starts with 2 and then increases each number by 3 for each clip, so the first one is 2, then 5 then 8 and so on. This is no good. I need it to return the name that I assigned it
    . If I put the code in trace(MapSquare[1]) it will return the name "MapSquare1" so I know the name was assigned, but it isnt returning.
    Please assist
    Thanks,
    -red

    Thanks for the resopnse,
    I know I dont really need the name, I just need the index number of the array, but I cant figure out how to get the index name without specificaly coding for it. That is why in the listener event I use event.target.name because I dont know what movie clip is being clicked until it has been clicked on. Basically when a movie clip is clicked it needs to return which index of the array was clicked.
    I could do it this way:
    MapSquare[0].addEventListener(
      MouseEvent.MOUSE_UP,
      function(evt:MouseEvent):void {
        trace("I've been clicked!");
    MapSquare[1].addEventListener(
       MouseEvent.MOUSE_UP,
       function(evt:MouseEvent):void {
         trace("I've been clicked!");
    MapSquare[2].addEventListener(
       MouseEvent.MOUSE_UP,
       function(evt:MouseEvent):void {
         trace("I've been clicked!");
    ... ect
    but that is unreasonable and it kind of defeats the purpose of having the array in the first place. The code that each movie clip executes is the same, eventualy that index will be passed into a database and the data at that primary key will be retrieved and returned to the program. So I just need to know, when one of those buttons is clicked, which one was clicked and what is its index in the array.
    I am a VB programer and in VB this is very easy, the control array automatically sends its own index into the function when one of the buttons is clicked. It seems simple enough, I just dont know how to do it in action script.
    Thanks again,
    -red

  • Need to boot broken Mac-Mini using retail Snow Leopard 10.6 DVD

    Hi,
    In Summary:
    ==========
    I have Mac Mini (late 2009) which does not boot anymore and I need to install Snow Leopard using retail DVD (version 10.6). The OS/installer from the DVD does not seem to boot either. I always very much appreciate the efforts of true geeks. So please, any casual beginner, please do not demoralize with something like "cannot be done" etc.
    The complete story:
    ==================
    The start of the problem:
    1. All of a sudden, one fine day, on start up, my Mac Mini strated to shut itself down without no apparent reason to me. When trying to boot, it would show a progress bar for about 5 minutes - I am assuming that was disk-consistency check being performed. My best guess is that right after the use of Carbon-Copy Cloner (but I am not 100% sure) it all strated to happen.
    2. Performed Mac's Disk-Util check and [Verify Volume] used to display "invalid directory item count, should be 31 instead of 29". Surface scan said disk hardware is 100% fine. Volume Repair never worked, since OS X was installed on the primary disk. I lost the DVDs that came with this Mac Mini, so the option to boot from that DVD and launch Disk Util etc. was not possible.
    TechTool Pro - No Help:
    3. Started googling and had to choose between [TechTool Pro] and [Disk Warrior], opted for TechTool Pro. Tried its bootable DVD only to learn that TechTool Pro cannot fix it. Again, it's surface scan suggested disk hardware is 100% fine. Sent the details to TechTool Pro support team, they couldn't help either after a couple of e-mails+data exchange. (How do I claim my lost money with TechTool Pro - suggestions appreciated as well).
    Googling / Mac Forums:
    4. Started looking into forums, learnt that someone had successfully repaired this problem using Ubuntu 11.04 install DVD (i.e., without installing the Ubuntu, but just using its 'try from DVD' feature). I had that handy, but forgot to disable HFS+ journaling before attempting to fix the problem. Anyway, attempting volume repair that way couldn't fix the problem as well. However this step took away my ability to boot from Mac.
    5. However using Ubuntu's bootable disk, I could access Mac-HDDs contents - and was able to successfully back-up *all* my important data.
    6. Googled and learnt that just attempting to boot using Ubuntu DVD can take away ability to boot using Mac bootable media - possibly due to EFI internals. Suspecting EFI is now corrupt, I tried other 'hacks' like:
      6.1 eEFIt Boot Disk - which does not work at all,
      6.2 Empire EFI w/ Chameleon - not sure how to proceed with options presented - trying either does not work,
      6.3 Super GRUB2 - boots fine, but attempting to boot from Mac-HDD fails after a couple of seconds,
      6.4 Boot-132 - boots fine, prompt asks for input, but then I cannot eject/replace the DVD due to Mac-Mini (lack of) design,
      6.5 Ubuntu 11.04 / 11.10 - still boots fine - just that I cannot go into Mac-OS-X from here,
      6.6 TechTool Pro bootable DVD - which used to boot fine earlier stopped to boot.
    As you can see, none worked successfully. So I didn't yet try other popular rescue media - as I suspect that is not the direction I need to go into.
    >> Looks like most of my problems are due to the fact that I have Mac-Mini which does not allow eject/replace of DVD from command prompt / out side of Mac-OS-X.
    7. Tried emptying EFI partition, playing with EFI/Mac-OS partitions boot flags, Zapping the PRAM, nothing still allows me to boot either from Mac-HDD or any Mac-Bootable-DVD.
    Current State:
    8. Now while boot time, Mac displays a gray screen for a few seconds, and then a blinking prompt on black background. That's it!
    Snow Leopard 10.6 Retail Install DVD:
    9. Went to Mac store and bought this DVD only to witness that I can't boot from it as well. (This is a huge shocker, how is Apple able to sell these DVDs if these don't work on genuine MacMini itself. After all we are able to boot from and install Windows/Linux on a variety of Machines).
    I am hoping for a very small step/fix that I am missing, since I can still see and access all Mac-HDD contents after booting from Ubuntu bootable DVD. However I am prepared for a good amount of exercise as well - assuming someone posts a valid/verified fix.
    Things available right now:
    ==========================
    A. Genuine Mac-Mini (Late 2009) who lost it's ability to boot either from its HDD or Mac-bootable DVDs (TechTools Pro, Mac OS X retail DVD)
    B. Mac OS X 10.6 Retail DVD
    C. NOT AVAILABLE - DVD that came with this Mac-Mini
    D. Variety of rescue DVDs, listed in section 6 above
    E. Another machine/PC with Ubuntu 11.04 - giving me ability to access internet
    Thanks for reading.
    Zita

    I had a similar discussion recently with another user.
    Your Mac mini (late 2009) originally came with Mac OS X 10.6.2 build 10A432 or build 10C2234 see http://support.apple.com/kb/HT1159 it would have come with an original install disc specific to your model of Mac which you could use to run Disk Utility from or to do a complete reinstall.
    The retail boxed copy of Mac OS X 10.6 (Snow Leopard) was originally intended for older Macs which had previously come with Mac OS X 10.5 or 10.4. It would have on it a version of Mac OS X 10.6 or 10.6.1 which would be able to boot these older Macs, but had no need to boot newer Macs which were released after the launch of Mac OS X 10.6 since all those newer Macs already shipped with their own discs.
    So it is normal that the retail boxed Snow Leopard installer does not work on your model Mac mini. You should be using the one that shipped with your Mac mini instead. I am guessing you have lost it.
    Assuming you have lost the Mac mini original disc, I can suggest the following options to try and workaround this.
    If you have another Mac, an older Mac, one that will be bootable using the retail Snow Leopard install disc you have, you could do either of the following.
    Connect an empty external GUID partitioned hard disk to this other Mac
    Boot from the retail Snow Leopard installer
    Install on to the external disk
    Once the install is complete, update it using the combo update not the one via Software Update to Mac OS X 10.6.8. This will add all the newer drivers needed to allow it to work on your newer Mac mini. You can download this combo update from here http://support.apple.com/kb/DL1399
    You can now disconnect the external drive and connect it to your Mac mini and boot from it by holding down the Option key when you turn the Mac mini on
    or a similar process if you want to wipe the Mac mini and reinstall directly on to it
    Boot the Mac mini in FireWire Target Disk Mode (see http://support.apple.com/kb/ht1661 )
    Connect the Mac mini as an external hard disk to the other older Mac
    Boot from the retail Snow Leopard installer
    Install on to the external disk
    Once the install is complete, update it using the combo update not the one via Software Update to Mac OS X 10.6.8. This will add all the newer drivers needed to allow it to work on your newer Mac mini. You can download this combo update from here http://support.apple.com/kb/DL1399
    You can now disconnect the Mac mini and boot from it as normal
    Note: While the Mac mini is connected in FireWire Target Disk mode to the second Mac, you could backup (if you don't already have a backup) any files you need to retrieve.
    If you don't have a suitable second Mac you may have to either borrow someone else's, or get the help of an Apple Store if one is in your area.

  • Which cable do I need to connect my Mac Book Pro to my Panasonic PV-GS150 video camera for transferring video to iMovie?

    which cable do I need to connect my Mac Book Pro to my Panasonic PV-GS150 video camera for transferring video to iMovie?

    I totally understand.
    Check some things from here, I have 2 and they have been great so far.
    Check here, lots of storage and reasonable prices. Also great support, you get to speak to a person
    Clean off your on the G5 drive and off you go.
    I suggest buying a second drive and setting it up for a back up, Time Machine or Carbon Copy Cloner, or SuperDuper (both "bootable" back up) All searchable on the web.
    http://eshop.macsales.com/search/elite+pro
    You can talk to a person for REAL advice, Phone: 800.275.4576  Ask about exporting to your G5 and and exporting to your existing OSX, you may only need a small inexpensive drive for this.
    Quick delivery and willing to help.
    Hope this makes you back up and running :-)
    Do get a back up drive, as it is not ""whether my drive will fail, as much as "when my drive fails"
    All the best

  • What do i need to connect my mac book pro to the tv with the thunderbolt on the mac to hdmi? I have the newest macbook pro. I'm wanting to have the best picture I can get from my 1080p tv. thanks

    what do i need to connect my mac book pro to the tv with the mac's thunderbolt port to hdmi? I have the newest macbook pro. I'm wanting to have the best picture I can get from my 1080p tv. thanks

    Thanks Community! I solved the problem. In fact it was not a problem but lack of understanding. These guys at Apple are way ahead in thir thinking. I will try to explain as short as I can.
    In Lion, ihe Prefferences/Display show only two choices: 6-7 steps of resolution and some color tab. No two screens, no two display to overlap, nothing for us to do. "That was the problem"! Everything is automatic.
    When I connected the HDMI cable to the Miniport into a T-bolt slot, the TV screen showed the "spiral galaxy" how Zyriab is calling it. In fact he gave me the best clue. That shows the connection is good. But where is the Mac Book image?
    You have to drag it to the right out of the Mac Book display area, and "voila!" it will continue on the TV screen. The same with the mouse pointer, push it out ofthe Mac Book display area and you see it on the TV sreen. Good image, you can keep the max resolution, etc. The sound is still on the Book's speakers. I have to figure that out.
    Thank everybody, especialy Zyriab, ne was the closest.
    High regards to everybody

  • Advice on how to access photos on an iPad that were synced from a now failed laptop? The question stems from a need to return my current iPad having just taken delivery of a new unit. Thanks

    I am after some advice on how to access photos on an iPad that were synced from a now failed laptop? The question stems from a need to return my current iPad having just taken delivery of a new unit. Thanks

    If you have a dropbox account, there's a free app (probably more) that syncs photos to your dropbox account - picbox. 
    There's also PhotoSync that syncs photos to/from a number of different services and devices.

  • Do I need to buy a Mac pro with an iMac?

    I'm planning on buying a 27-inch iMac, do I need to buy a Mac Pro (single processor) or any other hardware etc with the iMac PC?

    Go for the higher end 27 inch screen base model.
    Get one with the fusion drive.
    Add third party RAM after the purchase.
    If you need an optical drive, the new iMacs no longer have an internal CD/DVD optical drive.
    You will need to budget and purchase an external optical drive.
    Also, budget for an external hard drive for backups and storage.
    Most important, budget for, purchase and register for extended 2-years of AppleCare warranty before your first year of ownership has ended.
    The cost of the extra 2 years is only a fraction of an actual out of pocket repair cost.
    Later aluminum iMacs, in general, have a 3-5 year varied liability history and it's better to have 3 years of warranty coverage than get caught with an expensive repair sometime after the first free year of AppleCare.
    Good Luck!

  • Received ipad2 synced to itunes and uploaded my backup, now I find out it does not have WiFi 3G and need to return it, is there a way of getting all of my data off the ipad2?

    Received ipad2, synced to itunes and uploaded my backup from my Ipad, now I find out that it does not have Wi-Fi+3G, need to return it, is there a way to get my data off the ipad2 so I can return it?

    if you mean restore it to factory default then you can choose that while having it connected to the computer and using itunes

  • Why do I need to return the old part, if I purchase a new part?

    Well, I had a problem with my motherboard, and got it replaced by an on-site tech HP sent me.
    The notebook is well out of warranty, aand I paid for the new motherboard+labor.
    However, when the tech showed up, he said he won't replace the motherboard unless I give him the old motherboard. He went on to say that this was the "company policy" and he won't let me keep any old part even if I pay for the new part.
    I was too tired t o argue with him, and he replaced the motherboard, and took away the old motherboard.
    On second thought, this is pretty absurd.
    It's like HP telling me "If you purchase a new HP notebook, you'll have to return your old HP notebook back to us".
    It would make sense if I was getting a free replacement and the notebook was under warranty. It doesn't make any sense when the notebook is out of warranty and I'm paying for the replacement part.
    Think of it, when I purchased the notebook, i obviously paid for the motherboard that came with the notebook. So why does HP get to take it away from me?
    If I purchase a new battery from HP store instead of amazon, do I need to return my old battery to HP?
    If I purchase a new keyboard from the HP store, do I need to return my old keyboard?
    I can give you the case number if you want.
    Honestly, if this is the "company policy", I won't ever bother with another HP product again.
    This question was solved.
    View Solution.

    HP only has new motherboards. They sell the bad ones into the Chinese market and they show up on eBay and similar places. You have a new motherboard. If you can tell us the part number of what you bought we can tell you the "full" price and the "exchange" price of the part. They should definitely explain the options to you but I think they likely assume you want the lower exchange price. 

  • Need to return data from a query in different ways - Please help

    We are using 10g R2
    I have a proc as follows that has a query with over 100 values in the select clause:
    proc one( input param1, input_param2,.... output_cursor )
    as
    begin
    open cursor for
    select ...about 100 values with most of them being calculated
    from table1, view 1, table2, table 3, view 2 ...
    where ....
    and table1.col1 = input param1
    and table1.col2 = input param 2
    and view1.col5 = input param5...
    end;
    I need to return the data that comes from the above query in different formats, columns for a report would be different from columns for screen A and different for screen B. I need only certain columns for a report and different set of columns for another screen. I have wrapper procs that get different input params. From the wrapper procs I intend to call the above proc but would like only selected values.
    How can I accomplish this? Since my main goal is to select different columns for each wrapper I was thinking of insert the data from the above proc into global temp table and selecting whatever columns and order I want from the wrappers.
    What do you think? Any other solutions?
    Thanks
    Edited by: user565033 on Jan 21, 2013 7:50 PM

    You need to clearly separate roles and responsibilities. The PL/SQL code that creates and supplies a cursor handle is server code tasked to supply data. The code that makes the call for server data, is responsible for formatting and rendering that data.
    Thus moving data formatting into the server code needs to be question. Simple example. Cursor does not return invoice date as a date - but formats it into a string using TO_CHAR().
    This works for client1 - as that is the date format expected. However, client2 has different International settings and specifies a different date format. Invoice date, formatted into a string by the server, now renders in the wrong format on client2.
    Server code should not be concerned with rendering and formatting of data send to a client.
    As for the idea to use a global temp table is ..., well to put it nicely, it smells. Badly.
    The single most expensive operation on a database platform is I/O. And now you want to read server data and write it to temporary storage, and the read data from temporary storage to return to the client? What on earth for!? Why purposefully increase the size of the I/O workload? Why decrease performance and undermine scalability?
    Provide a proper abstraction interface to the client. Enable it to specify (as simplistically as possible) what it wants ito data. There are a number of ways to design and implement this in PL/SQL. Simplistic example:
    SQL> create or replace package Employees as
      2 
      3          EMP_FULL_DETAILS        constant integer := 1;
      4          EMP_BASIC_DETAILS       constant integer := 2;
      5 
      6          procedure GetEmpByID(
      7                  cur out sys_refcursor,
      8                  empID in emp.empno%type,
      9                  template in integer default EMP_BASIC_DETAILS
    10          );
    11 
    12          procedure GetEmpByName(
    13                  cur out sys_refcursor,
    14                  empName in emp.ename%type,
    15                  template in integer default EMP_BASIC_DETAILS
    16          );
    17  end;
    18  /
    Package created.
    SQL>
    SQL> create or replace package body Employees as
      2 
      3  type TArray is table of varchar2(32767);
      4 
      5  TemplateList       constant TArray :=
      6          new TArray(
      7                  'EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO ',
      8                  'EMPNO, ENAME, JOB '
      9          );
    10 
    11  procedure GetEmpByID(
    12          cur out sys_refcursor,
    13          empID in emp.empno%type,
    14          template in integer default EMP_BASIC_DETAILS
    15  ) is
    16          sqlSelect       varchar2(32767);
    17  begin
    18          sqlSelect :=
    19                  'select '||TemplateList(template)||
    20                  'from emp where empno = :empID';
    21 
    22          open cur for sqlSelect using empID;
    23  end;
    24 
    25  procedure GetEmpByName(
    26          cur out sys_refcursor,
    27          empName in emp.ename%type,
    28          template in integer default EMP_BASIC_DETAILS
    29  ) is
    30          sqlSelect       varchar2(32767);
    31  begin
    32          sqlSelect :=
    33                  'select '||TemplateList(template)||
    34                  'from emp where ename like :empName';
    35          open cur for sqlSelect using empName;
    36  end;
    37 
    38 
    39  end;
    40  /
    Package body created.
    SQL>
    SQL> var c refcursor
    SQL>
    SQL> exec Employees.GetEmpByID( :c, 7499 );
    PL/SQL procedure successfully completed.
    SQL> print c
         EMPNO ENAME      JOB
          7499 ALLEN      SALESMAN
    SQL>
    SQL> exec Employees.GetEmpByName( :c, 'A%', Employees.EMP_FULL_DETAILS );
    PL/SQL procedure successfully completed.
    SQL> print c
         EMPNO ENAME      JOB               MGR HIREDATE                   SAL       COMM     DEPTNO
          7499 ALLEN      SALESMAN         7698 1981/02/20 00:00:00       1600        300         30
          7876 ADAMS      CLERK            7788 1987/05/23 00:00:00       1100                    20
    SQL>

  • IPod is formatted for windows but i need it formatted for mac

    i just got my iPod a couple days ago used from best buy and hooked it up from my mac not aware that it was formatted for windows. when i try to restore my iPod it just freezes up my computer. do i really need it formatted for mac in order to get good performance?

    Right. If you restored it in Windows the iPod will still be formatted for Windows.
    Now see if you can restore it on your mac.
    Also, know that Windows-formatted iPods work fine in Mac OS X. The only "problem" is that you cannot update the iPod's software on your mac if another software version is released. You would have to do that through Windows.
    If you plan on using your iPod with both Operating Systems, you may want to keep it formatted for Windows.
    btabz

Maybe you are looking for

  • Unable to get Twitter Stream working in SocialMiner

    I've had this working in the past but recently the Twitter Stream stopped working in SocialMiner 8.5(3).  I can create a Twitter Stream but when I add it to Campaigns the state "Twitter Stream read error.  Last successful fetch time was NEVER, Succes

  • EVENT_MO_SHORT_MESSAGE_CONTROL_BY_SIM

    Hi all, i have a problem with event handler in my sim toolkit applet. i wrote the code: reg.setEvent(EVENT_MO_SHORT_MESSAGE_CONTROL_BY_SIM); case EVENT_MENU_SELECTION: proHdlr.init(PRO_CMD_SEND_SHORT_MESSAGE, (byte)0x00, DEV_ID_NETWORK); proHdlr.appe

  • Problem Exporting Report Layout

    Hi, I have an application that contains many report layouts. In the development environment it works fine. But, I have exported the application (.sql file) and imported into the production environment and when I try to run the report the application

  • Outlook Contact Problems

    I am not sure if this is an Outlook problem or a Blackberry problem, but I have a coworker that recently got a Blackberry and has synched it to their outlook email/calendar/contacts.  Today they came to me and said that the company name, and home add

  • VKM4 Transaction Details

    Dear All I wanted some details on VKM4 transaction. The issue is that even after releasing credit block of Sales Orders through VKM1 transaction they are still being displayed in VKM4 transaction. Please note that even the invoicing is complete for t