Methods available for storing Custom Measures

Just a general question.
Using 11g. If I have a complex DML program, which calculates values using existing stored measures within the cube and would like to store the end results of the values calculated during the run of my program. What methods are available?
Should my program be run as part of DBMS_CUBE package, should it be part of a maintenance script? I appreciate any info on this.

It would probably be useful to understand what the calculation needs to do, but in general you can embed this as David describes or you can do it directly using OLAP DML. Working off David's example:
exec dbms_cube.build('UNITS_CUBE USING (SET UNITS_CUBE.STORED_MEASURE = UNITS_CUBE.CALC_MEASURE'));
The direct OLAP DML method would look something like this:
SET units_cube_store_measure = units_cube_calc_measure
Or, let's say I want to assign data to sales_cube.sales with the expression sales_cubes.sales = sales_cube.quantity_sold * price_cube.unit_price. This might like like:
SET sales_cube_sales = sales_cube_quantity_sold * price_cube_unit_price
Note that these expressions refer to the OLAP DML objects (that is, the physical objects) rather than the API level objects.
If you want to constrain the values being set, use the LIMIT command. E.g.,
LIMIT time TO time_levelrel 'MONTH'
LIMIT product TO product_levelrel 'ITEM'
LIMIT geography TO geography_levelrel 'CUSTOMER'
SET sales_cube_sales = sales_cube_quantity_sold * price_cube_unit_price
David also notes that you need to pay attention to looping. The above example will "loop dense", that is loop over the base dimensions. Since data is usually sparse, that's not going to be as efficient as it can be. So, introduce the ACROSS command and loop over the composite dimension of the sales_cube. Assuming that the cube is partitioned (almost all cubes should be partitioned), the program now looks like this:
LIMIT time TO time_levelrel 'MONTH'
LIMIT product TO product_levelrel 'ITEM'
LIMIT geography TO geography_levelrel 'CUSTOMER'
SET sales_cube_sales = sales_cube_quantity_sold * price_cube_unit_price ACROSS sales_cube_prt_template
The ACROSS command will cause the SET command to loop only values in the sales_cube where data exists (for any store measure).
Finally, don't forget to save your work with UPDATE and COMMIT commands. E.g.,
LIMIT time TO time_levelrel 'MONTH'
LIMIT product TO product_levelrel 'ITEM'
LIMIT geography TO geography_levelrel 'CUSTOMER'
SET sales_cube_sales = sales_cube_quantity_sold * price_cube_unit_price ACROSS sales_cube_prt_template
UPDATE
COMMIT
David also mentions that dbms_cube.build will run jobs in parallel (assuming the cube is partitioned). That's really nice. You can parallelize this in OLAP DML. See http://oracleolap.blogspot.com/2010/03/parallel-execution-of-olap-dml.html for an example.
So, which method should you use? It depends on what you are trying to do. If it's easy to do with dbms_cube.build, I would probably do that. But, if you need more power and/or control, the OLAP DML method might be best.

Similar Messages

  • [SOLVED] xdg-open: no method available for opening

    I'm using Openbox. Whenever I try to use xdg-open to open a file or link from the command line, I get the error "xdg-open: no method available for opening". This happens with all files and links, regardless of type. I've tried editing ~/.local/share/applications/mimeapps.list, both manually and with xdg-mime; neither had any effect. I've also tried setting environment variables such as $BROWSER; that had no effect, either.
    Strangely, exo-open works with no problem (although the only way I've found to change file associations is by using Thunar). I would just switch to exo-open, except I've encountered a couple of programs that rely on xdg-open for opening web links and the like.
    Has anyone else seen this problem? At this point, I'm pretty confused, and I would appreciate any help. Thanks!
    Last edited by morganmay (2013-11-19 16:31:08)

    Was poking around with this again. I still haven't solved the problem, but I did notice an error that might be a clue. When I enter "xdg-settings get default-url-scheme-handler", I get the error "xdg-settings: unknown desktop environment". I don't have a DE installed, just openbox (although as far as I can tell, XDG doesn't require a DE).
    Does anyone know what this means? Searches for this error have only led me to threads recommending solutions that I've already tried without success (editing mimeapps.list, setting environment variables like BROWSER, etc.).

  • Make methods available for clients

    I have written some methods in the ElementsViewImpl.java and in the ElementsViewRowImpl.java of my BC4j tier. These methods return a Writer object. Now when I want to make these methods available for my clients (via the "client methods" and the "client row methods" in the edit menu of my ElementsView) the methods that returns a Writer object don't appear in the list and because of this I can't use them in my jsp pages. How can I solve this problem???
    Thanx,
    Lieven

    java.io.Writer is not Serializable. Client methods must return a Serializable type.
    Press the help button on the client methods page of the bc4j wizard to see more details.
    Regards
    M.Thal

  • What are the methods available for passing data between Labview 6.0 VI and another custom windows program

    The big picture is that I'm trying to use labview to interface to a DSP board.
    I already have a small windows application "app" which communicates with the dsp. Now I want Labview to grab data from the "app" and plot/analyze ... etc.
    I'm a novice at this 'interprocess communication stuff", what can I use to pass data back and forth between between the "app" and LV?
    use ActiveX, DMA, streams, etc.?
    In a crude sense I could just have the "app" write the data to a file and then have LV read the file. (can two applications read the file at the same time?), but
    this seems very slow and clumsy. I'd rather have a RAM based FIFO which both could access.
    Thanks!
    G
    Details:
    Pentium120 Windows 95 Host
    Spectrum TMSC30 DSP
    VC++6
    LV6

    It depends on what 'interprocess communication' your "app" program has available.
    I regulary use DDE to control a PLL App which controls our PLL via the LPT Port. This is only a write process, but works very easily. The read is equaly easy. You need to know the various "keywords" like service, topic and instruction which the "app" will respond to.
    Generaly I found ActieX to be more extensive, meaning its probably going to take longer and more steps to achive similar simple results.
    The file does not seem to be the best way.
    Hope that helps a bit.

  • Table for storing customer's partner data

    Hi all,
    I am searchng for the table where the customer's partner's home address is stored.. plz also tell me if i can get any bapi for that.
    Thnx for ur help in advance
    Puneet

    Hi Puneet,
    After your query while checking I am posting here.
    For me it is coming.
    I maintained 2 contact details.
    For the second one in home address I maintained the city as "SOlihull" and in Business address I maintained the city as "Delhi".
    Save.
    In KNVk table I took my "ADRNP2" field and passed that one into "ADRC" table.I checked the city1 as "SOlihull" which is nothing but the "Home address".
    similarly from KNVK table I took ADRND field and passed that one into "ADRC" table.I checked the city1 as "Delhi" which is nothing but the "Business address".
    Note:In CMR the customer city is "LOndon".
    Which will appear in KNA1 table.
    I think you didn't save after making changes to your CMR.
    or You might be confused.
    I request you to pls check once.because it is coming corretly for me.
    Regards,
    Mohan.

  • Which Bapi is available for uploading Customer Invoice and Payments in SAP

    Dear Friends.
    I want to upload Customer Invoices and Incoming Payments in the System.
    Currently i have written a BDC-Session Program to Upload this data.
    I have took the recording of tcode f-22 for Invoices, f-27 for credit memo and f-28 for payments and developed the required BDC program.
    Its working fine.
    Since the Volume of the data is huge .. ie around 50,000 daily, it takes too much time.
    Also i am not able to have a proper error log.
    I would like to know from you, whether there is any bapi available to upload this data (invoices,credit memo and payments).
    OR is there any other faster and proper error log maintaining scenario available.
    I appreciate for all your helps and informations.
    Thanks
    Kuna.

    Hi,
    could u please send me the f-28 upload program.
    Thanks in advance.
    Regards
    suni

  • What are the methods used for creating customer

    i have to upload a text file and create customer using idoc .can any one suggest the methods used to fullfil this requirement

    Hi,
    Upload the file using the function module GUI_UPLOAD into an internal table then try to pass the values from the file to the segments in the idoc DEBMAS03 using the function module MASTERIDOC_CREATE_DEBMAS to create the customer.
    Any doubts regarding you can clarify.
    Thanks&Regards
    Sarves

  • No dimensions available for selection in Query Wizard

    Good afternoon. I have created some presentations in JDeveloper and am quite happy with the results thus far. However, I recently began working with Reports and have stumbled across an error for which I may be responsible.
    I had no problems whatsoever in JDeveloper. When trying to create a query in Reports, there are no dimensions available for selection, only measures. I researched this somewhat and ran across the statement in the OLAP API docs that states the creation of 'measure folders' in the OLAP DB is necessary in order for that information to become avaiable elsewhere.
    I believe this hypothesis is correct because (please ocrrect me if I am wrong) JDeveloper uses JDBC to connect with OLAP by default. However, I believe that Reports uses the OLAP API.
    The reason I am not 100% certain that this is the culprit, is the fact that I am still able to see the measures; just that when I select the measures, there are no dimensions associated with them (which thereby prohibits me from proceeding in setting up the query).
    Has anyone else seen this behavior, and is it caused by not having measure folders setup? Thanks.
    -Jeff Trudeau

    Np. I am running the 9.0.3.4 maintenance release of JDeveloper and the corresponding release of BIBeans. As for Reports, I am running the version that was included with the latest 9i Developer Suite (release 2). I am not aware that a more recent version of Reports has been released.
    I am running a 9i database with the latest patches. Again, JDeveloper with BIBeans is working fine, but the problem lies in setting up a query in Reports. Thanks for the help.
    -Jeff

  • Manipulating custom measure variable inside a line chart

    Hie Guys,
    I have a line chart in my report that contains 2 custom measure variables & 1 measure object from the Universe in the Y axis and one dimension object - "Month" in the X axis.
    Formula for the custom measure variables are - 
    If [Month] = "Jan" Then 45
    ElseIf [Month] = "Feb" Then 65
    ElseIf [Month] = "Mar" Then 88
    And so on..........
    Now, I have an input control in the report for "Project Type" (Development & Improvement)
    I want the chart to behave as described  below.
    If (Project Type = "Development") Then only display measure object 1 in the chart
    If (Project Type = "Improvement") Then only display measure object 2 in the chart.
    Right now, the input controls are displaying all measure objects in the chart when I click on them.
    Is there a way I can get the above mentioned functionality in my report? I am using Business Objects 4.0  SP6.
    Could anyone please help me solve the problem? Thanks.

    Hi,
    Add Two Line Charts in Report one with [Measure Object 1]
    & another with [Measure Object 2] .
    Now Create Variable for User Selection .
    Selection = ReportFilter([Project Type])
    Now in Hide When Property of chart (Right Click on Chart --> Format Chart )

  • How to enable COLOR EFFECT, DISPLAY, etc. panels for the custom components?

    POSITION AND SIZE and COMPONENT PARMETERS are the only panels available for the custom components. Is there a way to configure the custom components or the Flash Pro itself to enable other panels (COLOR EFFECT, DISPLAY, etc.) that available for the Adobe UI components?

    In Flash CS6, you'll need to place your component(compiled clips) inside a Movieclip symbol to apply these settings. In Flash CC, you may do so directly from the Properties panel like for any other movieclip symbol.
    Let me know if you face issues.
    -Nipun

  • Is GIST available for documents that are stored in Beehive

    Customer is asking the following
    “We are using Beehive and Oracle Portal 11G with the Database 11G, all tied in via SSO/OID. Is GIST available for documents that are stored in Beehive?”
    I asked the customer for more information on GIST and he responded with the following.
    “GIST when used in Portal Builder gives a summary of the document, say in the case of a PDF it will give the first para, we have used it heavily in OCS and want to use it in beehive.”
    Digging a little deeper we found the following,
    http://download.oracle.com/docs/cd/E11882_01/text.112/e24435/view.htm#CCAPP9206
    “5.2.2 Gist and Theme Summary
    A gist is the text of a document that best represents what the document is about as a whole. A theme summary is the text of a document that best represents a single theme in the document.”
    Seems to be a text feature.
    Is this a feature that would be available with Oracle Beehive?

    Change forum

  • How to create a custom measure for each level of a dimension

    Hi all!
    Can Anyone please explain me with an example, how to create a custom measure for each level for a dimension? I dont mine if you use
    one or more measures.
    thanks in advance
    hope someone helps me.

    For example:I create a dimension for product_dim witch has 4 levels:total, class, family and item:
    d_aben18
    n1_aben18
    n2_aben18
    n3_aben18
    n4_aben18
    herarchy:h_aben18
    cube:cubo_aben18
    measure:med_aben18
    I create this code to fetch the data to the dimension:
    TRAP ON CLEANUP
    SQL DECLARE c1 CURSOR FOR SELECT-
    total_product_id,1,'N1_ABEN18',total_product_dsc,-
    class_id,1,'N2_ABEN18',total_product_id,class_dsc,-
    family_id,1,'N3_ABEN18', class_id, family_dsc,-
    item_id,1,'N4_ABEN18',family_id,item_dsc-
    FROM PRODUCT_DIM
    "OPEN THE CURSOR
    SQL OPEN c1
    "FETCH THE DATA
    SQL FETCH c1 LOOP INTO-
    :APPEND D_ABEN18, :D_ABEN18_H_aben18_HIERDEF,:D_ABEN18_N1_aben18_LEVELDEF,:D_ABEN18_long_description,-
    :APPEND D_ABEN18, :D_ABEN18_H_aben18_HIERDEF,:D_ABEN18_N2_aben18_LEVELDEF,:D_ABEN18_parentrel,-
    :D_ABEN18_long_description,-
    :APPEND D_ABEN18, :D_ABEN18_H_aben18_HIERDEF,:D_ABEN18_N3_aben18_LEVELDEF,:D_ABEN18_parentrel,-
    :D_ABEN18_long_description,-
    :APPEND D_ABEN18, :D_ABEN18_H_aben18_HIERDEF,:D_ABEN18_N4_aben18_LEVELDEF,:D_ABEN18_parentrel,-
    :D_ABEN18_long_description,-
    "SAVE THE CHANGES
    UPDATE
    COMMIT
    CLEANUP:
    SQL CLOSE c1
    SHOW 'KK2'
    Then I create a cube with use compression off, and in rules sum for example.
    After, I create a measure and I select Override the aggregation specification for the cube, in rules I put nonadditive and I would like to create aprogram to assign distinct values to each level of the dimension. For example, I put 1, 2 3, and 4 values, but at the end I would like to put count(distinct(values)).
    for that I create another program:
    VRB D_RETURN DECIMAL
    if D_ABEN18_N1_ABEN18_LEVELDEF eq 'N1_ABEN18'
    then D_RETURN = 1
    if D_ABEN18_N2_ABEN18_LEVELDEF eq 'N2_ABEN18'
    then D_RETURN = 2
    if D_ABEN18_N3_ABEN18_LEVELDEF eq 'N3_ABEN18'
    then D_RETURN = 3
    if D_ABEN18_N4_ABEN18_LEVELDEF eq 'N4_ABEN18'
    then D_RETURN = 4
    else d_return=26
    return d_return
    "SHOW D_RETURN
    cubo_aben18_med_aben18_stored=d_return
    but it doesnt work.I dont know how to put to assign or to see what I want.
    I report the measure, or I report the program, but then how can I see the values of the measure?
    thanks in advance

  • Custom column added is not available for Calendar list view in SharePoint 2010

    I created a custome column "Breakline" in a custom content type 'SM event", and applied the content type to a Calendar.
    The column is listed under the content type "SM event" but it is not listed when I tried to modify the view using the "Breakline" column.
    Does anyone know why?

    I set "Breakline" hidden because I don't want to show this in create new item form. 
    I realized that may be the reason. So changed the column to Optional in CT and created a new calendar using that CT. then at list level CT I changed it to Hidden.  That works.   The column is available for use when modifying view.
    Thanks

  • In Address Book, why does Apple let you create custom fields in the Template cards but not have them available for importing?

    I open Address Book, go into Preferences, select Template and under the Names field (friend, assistant, father, etc) I add a custom field called "Principal".
    I also add two more custom fields in the Email area.
    Quit Address Book then relaunch. Add a new contact and the new custom fields, Principal, etc. are there. All good so far.
    I have a Now Contact file with about 200 contacts in it. I export all fields as a Text file, Tab delimited. No problems there. With Address Book launched, select Import, pick the text file, leave Text Encoding on Automatic and click Open.
    The window that shows the fields for Address Book and fields for the text file side by side opens. This is where you match up the correct fields for importing. If I go to one of the fields from the text file that I created a custom field for, click under the Address Book heading on the Do not import, scroll thru the Apple choices of fields, none of the custom fields show up. Only the original Apple ones are there. Why does Apple let you create them in the Template area but not have them available for importing? Does anyone have suggestions on getting around this?

    While most likely not of interest to you, Spotlight can also tell you where the files it finds are located
    Hover the mouse pointer over the name, and press Command-Option and the path to the file will be displayed.
    As for opening a terminal session in the directory where a file is located, there is Applescripts that do just that as well as specific features in Lion/Mountain Lion terminal:
    <http://stackoverflow.com/questions/420456/open-terminal-here-in-mac-os-finder>
    <http://hints.macworld.com/article.php?story=20110729034827358>
    <http://www.macworld.com/article/1047793/folderinterm.html>
    <http://www.macworld.com/article/1161876/open_finder_folder_in_terminal.html>
    <http://www.macobserver.com/tmo/article/os_x_lion_open_a_folders_location_in_term inal>

  • F110 - No valid payment method found for Customer Direct Debits

    Hi All,
    I am running customer Direct debit pre-notifications payment run via F110.
    I am runnnig only for one customer and it appears as an exception with the message 'No valid payment method found
    We have used payment method D lots of times before so it is nothnig to do with the company code or payment method set up.
    It is however the first we've tried to run for this customer.
    I have checked everything I know:
    1) Payment method D selected in the F110 parameters
    2) Payment method D entered in the invoice line item
    3) Payment method D entered in the payment transactions tab on the customer master data
    4) Valid Direct Debit madate exists and check complete
    5) parameters are correct in the F110 selection - company code, payment method, dates, next payment date, invoice is well overdue, it was only entered today but was due back in 2014!, free selection, additional log etc.
    6_ Checked in SPRO in "Payment Method/Country" details and the following are required : Bank details including IBAN required, SWIFT code required, SEPA mandate required. These are all maintained in the customer master data.
    and still the customer invoice I want to pay is show as an exception in the log. In the payment proposal it shows as an exception No valid payment method found. In the log it shows as
    Customer/vendor does not have any allowed bank details Message class FZ Message no. 651
    No permitted payment method exists Message class FZ Message No. 608
    Information re. customer 131275 / paying company code N120 ... Message class FZ Message no. 306
    ... payment not possible because of reported error Message class FZ Message no. 311
    I am at a loss as to where to check next. Please help.
    thanks
    Jemma

    Hi Jenna,
    In the log I can see the message 'SEPA mandate & for bank xxx has been assigned to a contract' FZ788. This means: Mandates with contract cannot be used for the payment of any invoice. The invoice has to be assigned to the mandate or be assigned in the payment run.
    Please check the F1-help of the field 'SEPA Mandate: Contract Type' in the mandate.
    The Note http://service.sap.com/sap/support/notes/1874892 describes the various options.
    Regards,
    Emőke

Maybe you are looking for

  • Required dependencies for Web Dynpro Application accessing KM

    Hi all, I need to implement a Web Dynpro application that access km documents (NW 2004s). But i'm having problems to find one required api. I read several tutorials acording to which I need the EP5 user api (com.sap.security.api.ep5.jar). The problem

  • Extending Dos facility to Remote System

    Requirement The Requirement is that The solution should able to execute interactive DOS commands on remote system(windows system) from current system(windows system). Constraints : �Operating system authentication is not allowed �Port opening is disa

  • How to use the jquery UI slider object in Edge to control the play head

    Edge seems to automatically load jquery {I think} because I see a lot of $.{...} code in the code file. I want to do something like ... add the jquery UI slider as a symbol into my assets library then place an instance of the slider on my stage. Then

  • My custom iRadio station stopped working

    Twice now I have created custom iRadio stations and both times, after about a month of playing, they stop working. It's very frustrating as I spend a lot of time customizing with very specific artists and songs only to have to start over when the iRa

  • Does downloadable ProRes decoder work with the newer ProRes codecs

    Lengthy title says it all. I'm wondering if the ProRes decoder that Apple offers as a free download (http://support.apple.com/kb/DL1) works for the newer ProRes codecs LT, Proxy, and 4:4:4. I don't have a non-FCP equipped Mac to test this. Anyone?