Using the Unpivot Operator when in Oracle8i PL/SQL Generation Mode

Hi,
when you are validating a mapping with contains an unpivot operator and the PL/SQL Generation Mode is set to Oracle8i (because you're using an Oracle8i 8.1.7. target database) the following error is raised:
VLD-3127: Cannot generate code for UNPIVOT because the unpivot operator is only supported starting with the Oracle9i version of the database.","The unpivot operator is only supported starting with the Oracle9i version of the database. To resolve this, set the PL/SQL Generation Mode to Oracle9i in the configuration of the Oracle module that contains this mapping.
When you set the PL/SQL Generation Mode to Oracle9i and after successfully validating the mapping generate the code you can see that within the generated code case-statements are used for the unpivot translation.
like:
MIN(CASE WHEN "AGG_YEAR_MONTH" = 200301 THEN "NO_CALLS" ELSE NULL END) "JAN2003_CALLS"
And as Oracle8i doesn't support the case-statement, the raised validation error is understandable. But the generated code can be easily modified using decode-classes instead of the case-statements.
results in:
MIN(DECODE("AGG_YEAR_MONTH",''200301'',"NO_CALLS",NULL)) "JAN2003_CALLS"
And the generated code works fine in the Oracle8i 8.1.7 target database.
But now my question:
Does someone know if it is possible to create a custom unpivot operator in OWB9.2.0 which will generate the code using the decode-class instead of using the case-statements. And if so, how I can create such custom operator.
Many Thx in advantage!
Remco

Hi,
The reason why OWB does not generate decode statements is that the generated code needs to support both set-based and row-based operation modes. Decodes are valid in SQL (set based), but not in PL/SQL (row based)
Oracle 8i (8.1.7) does in fact support CASE, but only in SQL statements, not PL/SQL
Have you considered creating a view to perform the unpivot operation using decode? It should also be possible solve your problem using a function
Regards,
Roald

Similar Messages

  • How can I use the update operation in a VC Model

    Hello experts,
    i try to to use the update operation in my VC model.  I have developed an AS wich return a table. Now i want to update a table row. So I add the update operation to my model. But it doesn´t work. I mapped all attribute between the table and the update service. The event name is submit.
    Another strange thing is: If i try to update in the service browser it cames the error message that the vandatory attribute ... is missing.
    Any ideas??
    Thanks
    Marco

    Hi Marco,
    In this case it is possible that your update service requires a mandatory parameter which you are not providing.
    When you drag your service onto the VC screen, right click on the service and test it.It will give you a clear picture of which parameters are required by the service and besides you can also use some test data to check if the service is working properly.
    Do let me know if this helps.
    Thanks,
    Gaurav.

  • Using the "as" operator vs casting?

    I've recently been reading the docs regarding data types in
    AS3 and am still not clear on a few things. If anyone has blogged
    on this, please point me there.
    One problem is that "casting" syntax is the same as top-level
    function syntax. Compare String(objString) to XML(event.result).
    The latter is a top-level function, but the former is a "cast". Or
    is it?
    An option to the String cast is objString.toString(). What is
    the difference? I am not so much interested in the underlying
    details of the language, as in understanding when to use which.
    The same question exists for the top-level function
    XML(event.result), which can be done with the "as" operator:
    event.result as XML. When to use which? Are there performance
    issues? The "as operator" documentation is unsatisfying.
    Any discussion of this will be appreciated.
    Tracy

    ActionScript 3.0 has the
    as operator because it circumvents a deficiency with the
    cast operation () in ActionScript. Consider this:
    var a:Object = new Array(1,2,3,4);
    var b:Array = Array(a);
    What is b? It is an Array of 1 element: [ [1,2,3,4] ];
    The
    as operator takes care of this:
    var b:Array = a as Array;
    The actual difference in the operators is that if the
    variable being cast is not of the proper type, the
    as operator returns null while the () operator throws an
    exception:
    var j:Number = Number(a); // exception!
    var k:Number = a as Number; // NaN in this case, but null
    normally
    The feeling here at Adobe is to use the
    as operator since it is not ambiguous and just check for
    null. If you prefer to catch exceptions and know when X(y) is a
    cast vs a conversion, then use that. More of a preference but at
    times only
    as will do what you need.

  • SSRS Expression for Conditional Filtering using the "IN" operator

    Hello,
    I need to filter my dataset based on a parameter:
    If Period= 1 then Week must be in (W1, W2, W3),  Else Week must be in (W10, W20, W30)
    I tried using the "IN" operator but don't know how to create the expression for the "Value" field. I tried the following:
    iif(Parameters!Period.Value = 1,
    "W1, W2, W3",
    "W10, W20, W30")
    But it doesn't work.
    Expression: Week
    Operator: IN
    Value: ???
    Any help would be highly appreciated!

    Hi,
    Use split function.
    See this expression: IIF(Parameters!Period.Value = 1, SPLIT("W1,W2,W3",","), SPLIT("W10,W20,W30",","))
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/8da78c9b-7f0c-42f1-a9c4-82f065f317c9/using-the-in-operator-in-ssrs-expressions
    Thanks Shiven:) If Answer is Helpful, Please Vote

  • Always use the default account when composing new messages box missing in Outlook 2010 after updating the product key.

    I have 2 accounts in outlook 2010. 1 is for me and the other I have delegate access to. When I am in the delegates email and want to reply it automatically uses the account the email is in. So if I am in my email, the from is me but if I am in the delegates
    email and hit reply the from is them. Now this is not working and I can't figure out how to get it to work. The only thing that changes is that office asked me to activate recently, which is weird since I have had this same computer with the same version of
    office for almost a year now. I did a ton of searching and came across an option on the internet: "Always use the deafult account when composing new messages" but this option is not there on my computer. I checked another computer I have with Office
    2010 also and the option is available so it must be something to do with the office activation because I haven't done it on this computer yet. PLEASE HELP!!!

    Seems this is a hot issue recently, I've post a reply to another thread with the similar topic, please reference that:
    http://social.technet.microsoft.com/Forums/en-US/57289ddd-0dd5-4938-92f7-ee420d8b0d7c/outlook-2010-does-not-reply-to-emails-using-the-same-address-that-received-it?forum=officeitproprevious
    Thanks for your updating.
    Tony Chen
    TechNet Community Support

  • HI .. I have a new macmini 2.5 Ghz 10.7.3 Lion, had a problem today ,it froze so I could not shut down using mouse or tablet. used the power switch, when I tried to restart I got audible 'beeps' from it.

    HI ....I have a new macmini 2.5 Ghz 10.7.3 Lion, had a problem today ,it froze so I could not shut down using mouse or tablet pen. used the power switch, when I tried to restart I got audible 'beeps' from it. I managed to restart it but kept getting a message come up on one ot the dual screens ' restart using the power swich to turn it off , then press it again to restart.'
    This worked okay , but now it just keeps freezing whenever I start it up. I thought the issue could be my old Epson Expression 1680 scanner not being compatible , so I have unplugged it. I also had a look at the new memory I installed when I got it, but this seems not be the problem.
    It is connected up to an Eizo Flexscan S2231W using a cable straight into the HDMI input , the other monitor is a small Acer using the VGA into Thunderbolt port.
    When I turn the Eizo screen on first and then press the power button on the mac-mini, I hear the chime then the screen flahes the 'Digital no signal' message on and off for about 30 seconds , then the monitor comes on as normal. But it is still freezing up on me after using it for a while and I am having to use the power switch button to turn it off again.
    Can anyone help please.

    I really don't have an answer for that one. I guess that while trying to get things working correctly, I would use the most basic monitor I had which in your case would be the Eizon using the Thunderbolt port and adaptor.
    When you boot into Safe Mode the startup is quite slow, but you should get the Apple logo and then the spinning gear below it (release the SHIFT key when it appears.) Then after a little more time you should see a gray progress bar appear below the spinning gear. When that disappears the computer will startup to a login screen.

  • Cannot Open A Library File Using the 'Option' key When Launching iTunes

    I found that when I tried to open a different iTunes library file then my default by using the 'option' key when lanching iTunes that the iTunes Library file was greyed out.
    I looked in the previous Library Folder and noticed that the old file had the extension .itl.
    My solution was to add the extension .itl to the end of the of the file name of my iTunes Library files and things then worked when launching with the 'option' key. As an example 'iTunes Terry Library' became 'iTunes Terry Library.itl'. I applied this to all my iTunes library filles and all is well. Of course make a duplicate of the file you are going to change so you have a backup file.
    I am using iTunes 10.4 and Sno-Leopard 10.6.8.
    MJ

    No, choose library works in Windows. The thread you linked to suggested that, on OSX at least, iTunes now behaves like almost every other application in that you can open a data file associated with the application and it opens that data file rather than a different one it had opened in the past. I was hoping things might have actually changed.
    In short, holding shift or option while launching the app is a very clunky way of opening an alternative library given the standard behaviour of the GUI where "opening" a data file normally opens the application that can work with it.
    tt2

  • Iphone 4s - how do I change the name in the contacts for the owner of the phone - it is coming up as the other person who uses the laptop - so when ringing or texting anyone 2 names are being used as the caller id on the screen

    Iphone 4s - how do I change the name in the contacts for the owner of the phone - it is coming up as the other person who uses the laptop - so when ringing or texting anyone 2 names are being used as the caller id on the screen

    *Ralph Johns* writes:
    "Your options are:
    Get a trial account form @mac which will work as an iChat name after the 60 days run out but not be a email account that is valid (And is free)"
    Do you mean a trial account from .Mac? (DotMac)
    "Get an AIM Screen name and set it to Display what you want as you set it up.
    The Screen name can be whatever yu want but you can also set it to display something else as well."
    I had thought about this, but it seems other people have already chosen the screen name "pinksharkmark" and virtually every variation of it I can think of. So that isn't an option for me. As for getting it to display something else as well, do you mean that if I were to get an AIM screen name like "CromulentCat" I could somehow log in to iChat under the AIM account "CromulentCat" yet get iChat to represent me to my Buddies as "PinkSharkMark"? Because I have to admit I don't see how that can be done. It appears as if iChat displays to anyone chatting with you precisely the account name you logged in under and nothing else. So if you logged in using a .Mac account, then you are displayed as "[email protected]" while if you logged in under an AIM account, you are displayed as "CromulentCat". But that's it that's all... there is no way to change CromulentCat to PinkSharkMark.
    Thanks very much for taking the time to reply, though.

  • How to pass in variables using the command line when starting ActionScript native app

    How do I pass in variables or startup arguments using the command line when starting an ActionScript native app? For example, I have my app call MySweetWidget and it has been compiled with Adobe AIR captive runtime so now I have MySweetWidget.exe.
    In the command line, I am calling MySweetWidget.exe and would like to pass in variables or properties to the application. I would assume that those variables are then read from the loaderInfo.parameters object.
    Please let me know if the Adobe AIR runtime supports passing in parameters to the native runtime. If so, I would like help determining the correct format of how to pass in the variables. Then would you read those from the loaderinfo.parameters object?
    Thanks,
    Jeff

    I found the answer to my own question:
    Yes it is a supported feature. It is documented on the following page:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/NativeApp lication.html#event:invoke
    When you subscribe to the invoke event of the NativeApplication it will subsequently dispatch the event and you read the e.arguments Array object to get the startup arguments passed into the native application.

  • I am in the UK. Can I use the iPad Mini when on holiday in Sri Lanka?

    I am in the UK. Can I use the iPad Mini when on holiday in Sri Lanka?

    Sure.  Wifi is wifi the world over, so you can use any free wifi you can find at hotels, restaurants, and so forth.
    If you have a wifi+cellular iPad mini, you can use a SIM card from a local carrier if there is one there that offers iPad data plans.

  • Select Performance problems using the 'like' operator

    I have a PL/SQL procedure that uses a cursor which contains a 'like' operator in the where clause. I have two database instances that are theoretically the same, however this code processes about 100,000 rows in 5 minutes on one database and 100,000 rows in several weeks on the other database. I know it is the 'like' operator that is causing the problem, but I don't know where to look in the database setup parameters as to what could be different between the two. Can someone point me in the right direction?

    I tried to think of another way to write the query, but I really need to use the wildcard option on the data I'm searching for. The system I'm working with attaches a suffix to the end of every ID (ie. '214-222-1234-0') The suffix ('-0') increments but the rest of the ID stays the same ('-1','-2',etc...), but I want to find all of the rows where the first 12 characters are the same, so I strip off the suffix and use a wildcard '%' in its place. I tried adding the SUBSTR() function to the left hand column of the where clause, but it was even slower than using the 'like' operator. I know its a sound query, I just can't figure out why it works fine on one database and not the other.

  • I made a card using the iPhoto and when I click to buy it, it says that I did not fill all the frames with pictures, even though I did and have checked multiple times. Please help, it's for Mother's Day.

    I made a card using the iPhoto and when I click to buy it, it says that I did not fill all the frames with pictures and that I need to in order to purchase it, even though I did and have checked multiple times. Please help, it's for Mother's Day.

    Before ordering your book preview it using this method - http://support.apple.com/kb/HT1040 - and save the resulting PDF for reference - the delivered book will match it.
    LN

  • HT2090 hello, my eyesight issue happens occasionally, from time to time i run multiple apps that use the isight camera. when i close each app the isight camera's green light is still active. When that happens the only way to stop the isight camera is to r

    hello, my eyesight issue happens occasionally, from time to time i run multiple apps that use the isight camera. when i close each app the isight camera's green light is still active. When that happens the only way to stop the isight camera is to reboot.
    Is there a way to use activity monitor to identify and kill the process controlling the isight? My apologies in advance if this sounds windows (task manager) like.
    Thanks

    tqtclipper wrote:
    hello, my eyesight issue happens occasionally, from time to time i run multiple apps that use the isight camera...
    http://support.apple.
    com/kb/HT2411: Your camera can be used by only one application at a time.
    (Over time, Apple has changed the built-in camera's name on newer Macs from "iSight" to "FaceTime" and then to "FaceTime HD."  Regardless of the name of your Mac's built-in camera, the same info and troubleshooting applies.)
    tqtclipper wrote:
    ... Is there a way to use activity monitor to identify and kill the process controlling the isight? ...
    http://support.apple.
    com/kb/PH5147:  You can quit any process you can see in those listed in the window that opens when you use Activity Mornitor's 
         Window >
    Activity Monitor
    menu command.
    Message was edited by: EZ Jim
    Mac OSX 10.8.3

  • "could not complete the requested operation" when i try to open the program

    "could not complete the requested operation" when i try to open the program
    what can i do
    illustrator cc

    accupub,
    The following is a general list of things you may try when the issue is not in a specific file (you may have tried/done some of them already); 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to 3 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • I used the wrong year when creating an account, now it tells me im to young no matter what year i use?

    I used the wrong year when creating an account, now it tells me im to young no matter what year i use?

    Have you tried just exiting the setup and try trying later?

Maybe you are looking for