Running only the calc script wrong using ODI

Hi John,.

I ran an interface that runs in a calcscript and it errored out.

The generated SQL is sql = "" "select where (1 = 1) «»

And the eror's unexpected token: GO to statement [select of]

I chose the essbase database as the target and in the IKM model, I selected the only calcscript execution option

Hello

I said that if you want to access the file then you should be able to run an agent on the linux machine or make sure that the windows machine can see it.

DataExport to a db table is in the documentation

Direct export to a relational database using ODBC:
DATAEXPORT 'DSN' "dsnName" 'tableName' "userName", "password".

(if you need to understand how to use ODBC on linux, you will need to check if you are unsure)

http://download.Oracle.com/docs/CD/E10530_01/doc/EPM.931/html_esb_techref/Calc/DataExport.htm

See you soon

John
http://John-Goodwin.blogspot.com/

Tags: Business Intelligence

Similar Questions

  • How to operate only a calc script using ODI

    Hi John,.

    I would like to run only a calc script using ODi. Could if it you please let me know the process. Is it mentioned in your blog anywhere?

    Awaiting your response

    Thanks in advance
    Sravan

    The km - 'IKM SQL for Hyperion Essbase (DATA)' there is an option 'RUN_CALC_SCRIPT_ONLY', set to Yes and then enter the name of the calc script in "CALCULATION SCRIPT".
    It will take still a source and a target in the interface for it to run, but it will ignore the source and the target and just run the calc script, it is possible to customize the KM so it didn't need a source/target, but you should be fine with the method I proposed.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • If I run the calc script to aggregate a BSO cube, it blocks and release each block in a few seconds?

    Hello

    If I run the calc script to aggregate a BSO cube, it blocks and release each block in a few seconds? Or is it keep held locked blocks even after aggregation for this block is over?

    For example if I correct sparse dimensions Forecast, FY15, dec.  and my accounts dimension is only dense, after calc has my senior level members in the accounts, it it will issue after updating (i.e. in fractions of seconds) or is agg keep it held in a lock?

    I ask because I want to run scripts tot., but there is the update of our cube users.  I never had a problem to start agg, while users are updating.  But maybe I am lucky.  If a user updates a closed block, they will receive an error message that I think.  They may try to update again after a few seconds, I hope.

    Thank you.

    Locking behavior for BSO Essbase is described in the database administrator's Guide: http://docs.oracle.com/cd/E57185_01/epm.1112/essbase_db/dstinteg.html

    It is certainly theoretically possible that a user can obtain a lock because of a calc, although I can't say I saw him be a problem in real-world applications (perhaps because access uncommitted is the default).

  • Export of the metadata of Essbase via the Calc Scripts

    Hi guys,.

    Here's my problem,

    We try to export essbase cube intersections in a flat file (so that it can be used by SUN)

    )

    We have developed a calc script to export an intersection to a flat file, but the flatfile is written only to the location of the essbase server.

    But we need this flat file to immerse in an another server (SUN Server), so what would you suggest is the best way to do this on a regular basis (monthly) and huge amounts of data.


    PS: Someone suggested me to use a windows batch file to move the flatfile, but I have no idea how to do that.


    Any help would be really appreciated...

    Thanks in advance
    Arun

    Metadata? You mean, right? DATAEXPORT is only going to write the numbers, not of dimensionality.

    I did deal with this issue, so - DATAEXPORT wrote only the box to Essbase. You can try pointing to mapped drives, but it has not worked for me.

    Why not put together a script MaxL who runs the calc script (standard stuff so far) and then either the caller script in cmd OS either copy it to another location (if on Windows, see COPY) or use the MaxL shell command to launch a shell of the operating system and make the copy?

    Another solution would be to set up a routine watcher file FTP'd the file off the drive, then did a deletion of the exported file. You may have to wait five minutes, but that shouldn't be a big problem in Informatica. In fact, I bet that informatica can do 99% of it.

    Finally, another approach would be to write that all at a table and just picking up here.<--This is="" probably="" the="" easiest="" and="" if="" you="" think="" about="" it,="" what="" informatica="" was="" meant="" for;="" no="" more="" messy="" files="" to="" worry="" about="" and="" it's="" sql="" all="" the="" way.="" i="" would="" do="" a="" truncate="" after="" it="" read="" the="" table="" as="" dataexport="" has="" a="" habit="" of="" concatenating="">

    Kind regards

    Cameron Lackpour

  • Update a UDA at a member of the main lines of the Calc script?

    Happy new year everyone!

    Is it possible to update a UDA at a member of the main lines of the Calc script? There is a custom for that function?

    We want to check the data, and then update UDA based on what is our data.

    Thank you.

    Not that I know, and it is not possible to write one, since you probably can't restructure with the running calculation (chickens and eggs).

    More likely, you will need to do a multi-step process; export the members that you want to set up a file via DATAEXPORT conditions or report designer, and then use this output to feed in an accumulation of dimension with an appropriate load rule.

    Or write a Java API to fully customized program.

    I'm also curious about the driving condition, as it is a rather unusual request.

  • My db Essbase corrupt when I complete the calc script why?

    Hi all

    I had the problem with essbase db... It is corrupting data when I closing all running calc script.
    So that whenever I m taking back for that...
    Please let me know how to avoid this... and why it is corrupt?
    Is something wrong with my Essbase?

    Kind regards
    Katia

    If by "corrupt" you mean that essbase breaks down and you can't restart the db so yes it's unusual and something is wrong with the environment. However, if you mean that the data is not the same as it was before you start the script, then no, there is nothing wrong. Essbase is not a restoration have this cancellation, the calc script processed until you killed it.

    Dave

  • Cannot run chkdsk - Chkdsk cannot run because the volume is in use by another process.

    original title: can I run chkdsk on win xp home, but when I try to use switches, I get cannot lock the current drive. Chkdsk cannot run because the volume is in use by another process. HELP PLEASE

    I run chkdsk without switches on win xp home. I told myself I file error and to set running chkdsk with /f. but when I try, I get the cannot lock the drive, chkdsk may not run because ect...  I tried in safe mode, same thing. I sfc/scannow, but it has not fixed the problem files. help please

    It's normal.  You can not run a check disk on your system disk because your system is to use.  The Message you get should ask you if you want to run it at the next reboot.  You must answer 'Yes' to this message, and then restart your computer.  A disk check should take place as it is restarted.

    FYI: A check disk can take hours if you have a large drive or there are a lot of problems on the disc and you cannot use your machine while the scan is in progress.  Better to operate during the night.  Also, I got checkdsk completely erase the hard disk to the point where the only option was to reformat and reinstall Windows.  Make sure that your data available are well-supported before running Chkdsk.

    "How to perform disk error in Windows XP check"
      <>http://support.Microsoft.com/kb/315265 >

    HTH,
    JW

  • Do you know if you can acquire data from a microcontroller that runs under the PLUS + 1 environment, using the NI 9201 platform?

    Hello world

    Do you know if you can acquire data from a microcontroller that runs under the PLUS + 1 environment, using the NI 9201 platform? I need to build a test environment in labview, but entries must be purchased from the microcontroller MC024012 Sauer-Danfoss. The problem is that this microcontroller interface provides the programming amiente MORE + 1 Sauer-Danfoss. Can you help me?

    Thank you

    Elza Figueiredo

    double post and bad advice

  • Chkdsk cannot run because the volume is in use by another process

    My computer was working fine until last night. Now when I connect I get a blue screen saying that the computer shuts down to prevent further damage from happening. I tried to restore to an earlier point in time when my computer was working but then I get the error:

    The OS disk (C :) has errors.
    Windows has detected corruption on OS (C :) file system. You should check the drive for errors before you can restore it.

    So I'm going to run the chkdsk utility, and I get the error:
    Chkdsk cannot run because the volume is in use by another process. You want to schedule this volume to check the next time the system restarts.

    I'm confused because the chkdsk unility usually works, and I have no idea why she is being used by another process. I am clearly not very good with computers. I tend to do a lot of spywear and adwear on my computer. I have Spyware Doctor that removes any infection.

    Help, please. I've tried everything. Thank you.

    Asha22,
    It appears from your last post why chkdsk did not run on reboot and you gave an incorrect message is that you did not a space between the volume and the f number.  The correct syntax is:

    CHKDSK c: /f

    You can also run the utility disc in this way:
    http://windowshelp.Microsoft.com/Windows/en-us/help/bc1393cf-9f9c-79C7-0f91-9337c2c41f811033.mspx

    1. open the computer by clicking the Start button, click computer.
     
    2. right click on the hard drive you want to check, and then click Properties.
     
    3. click on the Tools tab and then, under check for errors, click check now.  If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    To automatically repair problems with files and folders that the scan detects, select automatically fix file system errors. Otherwise, the disk check will simply report a problem, but not to fix them.

    To perform a full disk check, select search and attempt to recover bad sectors. This scan is trying to find and repair physical errors on the hard drive itself, and it may take much longer to complete.

    To check for errors file and the physical errors, select both automatically fix errors in file system and search for and attempt recovery of bad sectors.
     
    4. click on start.
     
    Depending on the size of your hard disk, this may take several minutes. For best results, do not use your computer for any other tasks while it checks errors.

    Note: If you select automatically errors in file system of fix for a disc that is used (for example, the partition that contains Windows), you will need to reschedule the disk check for the next time you restart your computer.

    The reason that it says that the disk is in use by another process is because it is in use by the operating system (Vista), and that's why it must be run at startup, before the operating system loads fully.

    Another utility, you need to perform is the System File Checker, if you can get your computer to start, either normally or in Mode without failure.
    To run the System File Checker tool, follow these steps:
    Click Start and type cmd in the box start the search.
    Right click on cmd in the list programs, and then click Run as administrator.
    If you are prompted for an administrator password or a confirmation, type your password or click on continue
    At the command prompt, type the following line and press ENTER:
    sfc/scannow
    When the analysis is complete, test to see if the problem you are experiencing is resolved.

    Let us know what these tests are and how we can also provide assistance.
    Thank you

    Gloria
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Someone else can run on the computer that I use.

    Someone else can run on the computer that I use.

    Your comments 'tolérable Sun' and 'easy assistance' are not understandable, could you please clarify?  If you are worried about someone on the Internet access to your PC, you must have the software firewall (Windows Firewall) and equipment (router).  This combined with the password will be the bulletproof 99% of your machine.

  • Mr President, how can I enter two rows at the same time with different default values that only the first line to use see?

    Mr President.

    My worm jdev is 12.2.1

    How to enter two rows at the same time with different default values that only the first line to use see?

    Suppose I have a table with four fields as below

    "DEBIT" VARCHAR2(7) , 
      "DRNAME" VARCHAR2(50),
      "CREDIT" VARCHAR2(7) , 
      "CRNAME" VARCHAR2(50),
    

    Now I want that when I click on a button (create an insert) to create the first line with the default values below

    firstrow.png

    So if I click on the button and then validate the second row with different values is also inserted on commit.

    The value of the second row are like the picture below

    tworows.png

    But the second row should be invisible. It could be achieved by adding vc in the vo.

    The difficult part in my question is therefore, to add the second row with the new default values.

    Because I already added default values in the first row.

    Now how to add second time default values.

    Concerning

    Mr President

    I change the code given by expensive Sameh Nassar and get my results.

    Thanks once again dear Sameh Nassar .

    My code to get my goal is

    First line of code is

        protected void doDML(int operation, TransactionEvent e) {    
    
            if(operation != DML_DELETE)
                 {
                     setAmount(getPurqty().multiply(getUnitpurprice()));
                 } 
    
            if (operation == DML_INSERT )
                       {
                               System.out.println("I am in Insert with vid= " + getVid());
                           insertSecondRowInDatabase(getVid(),getLineitem(),"6010010","SALES TAX PAYABLE",
                            (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100));      
    
                           }
    
            if(operation == DML_UPDATE)
                              {                                                    
    
                                 System.out.println("I am in Update with vid= " + getVid());
                             updateSecondRowInDatabase(getVid(),
                                 (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100));      
    
                              }                      
    
            super.doDML(operation, e);
        }
        private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object value4, Object value5)
                  {
                    PreparedStatement stat = null;
                    try
                    {
                      String sql = "Insert into vdet (VID,LINEITEM,DEBIT,DRNAME,AMOUNT) values " +
                 "('" + value1 + "','" + value2 + "','" + value3 + "','" + value4 + "','" + value5 + "')";  
    
                      stat = getDBTransaction().createPreparedStatement(sql, 1);
                      stat.executeUpdate();
                    }
                    catch (Exception e)
                    {
                      e.printStackTrace();
                    }
                    finally
                    {
                      try
                      {
                        stat.close();
                      }
                      catch (Exception e)
                      {
                        e.printStackTrace();
                      }
                    }
                  }  
    
                  private void updateSecondRowInDatabase(Object value1, Object value5)
                  {
                    PreparedStatement stat = null;
                    try
                    {
                      String sql = "update vdet set  AMOUNT='"+ value5+"' where VID='" + value1 + "'";                     
    
                      stat = getDBTransaction().createPreparedStatement(sql, 1);  
    
                      stat.executeUpdate();
                    }
                    catch (Exception e)
                    {
                      e.printStackTrace();
                    }
                    finally
                    {
                      try
                      {
                        stat.close();
                      }
                      catch (Exception e)
                      {
                        e.printStackTrace();
                      }
                    }                  
    
                  }
    

    Second line code is inside a bean method

        public void addNewPurchaseVoucher(ActionEvent actionEvent) {
            // Add event code here...
    
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
                   DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("VoucherView1Iterator");
                   RowSetIterator rsi = dciter.getRowSetIterator();
                   Row lastRow = rsi.last();
                   int lastRowIndex = rsi.getRangeIndexOf(lastRow);
                   Row newRow = rsi.createRow();
                   newRow.setNewRowState(Row.STATUS_NEW);
                   rsi.insertRowAtRangeIndex(lastRowIndex +1, newRow);
                   rsi.setCurrentRow(newRow);
    
                   BindingContainer bindings1 = BindingContext.getCurrent().getCurrentBindingsEntry();
                   DCIteratorBinding dciter1 = (DCIteratorBinding) bindings1.get("VdetView1Iterator");
                   RowSetIterator rsi1 = dciter1.getRowSetIterator();
                   Row lastRow1 = rsi1.last();
                   int lastRowIndex1 = rsi1.getRangeIndexOf(lastRow1);
                   Row newRow1 = rsi1.createRow();
                   newRow1.setNewRowState(Row.STATUS_NEW);
                   rsi1.insertRowAtRangeIndex(lastRowIndex1 +1, newRow1);
                   rsi1.setCurrentRow(newRow1);
        }
    

    And final saveUpdate method is

        public void saveUpdateButton(ActionEvent actionEvent) {
            // Add event code here...
    
            BindingContainer bindingsBC = BindingContext.getCurrent().getCurrentBindingsEntry();      
    
                   OperationBinding commit = bindingsBC.getOperationBinding("Commit");
                   commit.execute(); 
    
            OperationBinding operationBinding = BindingContext.getCurrent().getCurrentBindingsEntry().getOperationBinding("Commit");
            operationBinding.execute();
            DCIteratorBinding iter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("VdetView1Iterator");// write iterator name from pageDef.
            iter.getViewObject().executeQuery();  
    
        }
    

    Thanks for all the cooperation to obtain the desired results.

    Concerning

  • Run only the first page load time

    All,
    Ive wrote a small plsql code under dynamic action (checked run when loading, but the button is hidden) I want to run only the first time my loading of the page, its correct operation, but I realized that it also runs every time this page is refreshed/submitted. How can I change this approach to run only the first time that this page is in charge and not at any other time refreshed/submitted?... Thanks & greetings

    In your dynamic Action where you specify PL/SQL code, there is an input field for Page elements to submit. View this element hidden there, and it should keep the value.

  • Use of substitution in the calc script variables

    Hi all

    I create a calc script to recalculate my cube BSO for a given date, when I load the data in one night (for the previous day). I have a process that defines a variable substitution SELECT_DATE that load data rule uses to select the data in the source transactional system.

    However when I try to use that in my calc script it seems to like it - by script seems reasonably simple can anyonce advise on where I'm wrong or another method?

    Script:

    ESS_LOCALE English_UnitedStates.Latin1@Binary
    UPDATECALC OFF SET;
    SET CALCPARALLEL 4;

    FIX (@ALLANCESTORS (& SELECT_DATE))
    DIM CALC ({comma seperated list of all dimensions in the cube});
    ENDFIX

    @ALLANCESTORS (& SELECT_DATE);

    SET UPDATECALC

    I get the error:

    Error: 1200354 error analysis formula [statement of DIFFICULTY] (line 5): type [MEMBER] [number] ([]) in function [@ALLANCESTORS]

    & SELECT_DATE contains 21/03/2011

    If I replace it & with "21/03/2011' SELECT_DATE it checks OK.

    Please let know us, using a CALC SET begins to take too long to run quietly all night.

    Thank you

    Is it possible, that you can set the variable with quotes, for example "21/03/2011.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Need to run the Calc Script in sequence in MAXL

    Hello

    I need a idea how to run calc in sequence through Maxl scripts. My requirement is to run calc script loads after the end of the last. I try to make the method below, but some how its not working. I'd appreciate any help.

    Thank you

    login password admin on ServerName.

    spool to 'K:\test\MXLTest.log ';

    / * Calculate * /.

    run the calculation App.db.Test;

    function SIERREUR 'error ';

    run the calculation App.db.Test2;

    set the label 'error ';

    spool off;

    disconnection;

    "exit";

    Seems iferror works only with the batch/shell script. I was trying to run EAS.

  • The use of variables in the Calc scripts and business rules

    I'm sure that there have been previous discussions on this topic, but can anyone let me know the benefits of using variables in scripts of Calc and BRs?

    Thank you
    A
    I've never used variable Calc and after reading a guide to the study, which has talked about them, I didn't really understand the benefits.

    ^ ^ ^ I use variables all the time to make difficult abstract formulas. Here is an example.

    /*     Declare variables     */
    VAR varSalaryCosts ;
    VAR varProdOHLabXXXX ;
    VAR varXXXX ;
    
    A whole bunch of code here along with very limited FIX statement and then...
    
    "Salaried Labor"
    (
         varSalaryCosts = "Salary Costs"->"No Department"->"No Category"->"Salaried" -
                             "Wage Bonus"->"No Department"->"No Category"->"Salaried" -
                             "YYYY Retention Bonus 40%"->"No Department"->"No Category"->"Salaried" -
                             "YYYY 60% Ret Bonus Accrual"->"No Department"->"No Category"->"Salaried" ;
         varProdOHLabXXXX = "Number of Employees"->"ZZZZDepartments"->"Codes"->"Salaried" +
                             "Number of Employees"->"Blah Departments"->"Codes"->"Salaried" +
                             "Number of Employees"->"Humph Departments"->"Codes"->"Salaried" +
                             "Number of Employees"->"TTTT"->"Codes"->"Salaried" ;
         "Salaried Labor" = varSalaryCosts * ("Number of Employees"->"Salaried" / varProdOHLabXXXX) ;
    )
    

    The last formula is how the formula was described to me by the owner of the company. I find it much easier to read something like:

    "Salaried Labor" = ("Salary Costs"->"No Department"->"No Category"->"Salaried" -
                             "Wage Bonus"->"No Department"->"No Category"->"Salaried" -
                             "YYYY Retention Bonus 40%"->"No Department"->"No Category"->"Salaried" -
                             "YYYY 60% Ret Bonus Accrual"->"No Department"->"No Category"->"Salaried") *
                             ("Number of Employees"->"Salaried" /
                             ("Number of Employees"->"ZZZZDepartments"->"Codes"->"Salaried" +
                             "Number of Employees"->"Blah Departments"->"Codes"->"Salaried" +
                             "Number of Employees"->"Humph Departments"->"Codes"->"Salaried" +
                             "Number of Employees"->"TTTT"->"Codes"->"Salaried")) ;
    

    I used the TABLE in a calc script really-cool-but-alas-not-invented-by-me do better than planning made the conversion of currency currency conversion in planning. (How's that for a run-on sentence?) It is one of the six blog posts that I'm trying and I will end it soon, I hope. I am now thrash mode. It doesn't have its uses and I'll try to remember to update this thread when I'm done.

    Kind regards

    Cameron Lackpour

Maybe you are looking for

  • Previews are always created for the modified pictures.

    All of a sudden, after the last update, iCloud, sharing photos and iCloud photo library Photos on my Mac do not work properly. I've added 264 pictures of Photos on my Mac six hours ago, and these photos appear not in the Photos on my iPhone 5 and iPa

  • It's a fake: call Mac OS support D11 register server failed

    While on Chrome, my screen/mouse were frozen (blue and white screen) and I was directed to call tech support 855-243-2620 MacOS. With very little explanation, the operator turned technician who wanted remote access to my Mac Air.  any similar experie

  • Satellite A100-259 WinXP - BlueScreen Unmoutable Boot-Volume

    For computer laptop brother does not start in any mode etc. (safe), blue screen flashes up a quick "Unmountable Boot Volume"message before disappearing. There is no option to "Repair" in the advanced options that hit the F8 key at startup.The only th

  • Thermal camera problem and focus

    Someone from another phone to heat when you use the camera? Is there something I can do to fix this? The camera also has a hard time focusing on images that are basically plan. I had the same problem of focus with the 2014 model.

  • Is it possible to get the query Details of the old run from oracle?

    Is it possible to get the query Details of the old run from oracle? I mean, I wanted to know the details of a request executed work, I know the time taken by the query to run? Is it possible to know?