ODI step in a procedure is hanging

Hi,
I am trying to run the following query in a step in an ODI procedure.
The query runs perfectly fine when run in Toad but hangs in an Odi procedure.
I am doing this to eliminate duplicates from a load
what can I do?
DELETE FROM DWOWNER.BIW_CLAIMS_AND_LODGEMENTS_F
WHERE rowid not in
(SELECT MIN(rowid)
FROM DWOWNER.BIW_CLAIMS_AND_LODGEMENTS_F
GROUP BY integration_id)
AND MONTH_END_IND = 'Y'
Please Help.
Is there a better way of doing this via interface settings where duplicates go into the SNP error table. I have put a unique constraint on the integration_id with DROP_ERROR_TABLE = false and DROP_CHECK_TABLE = false in the CKM but this places duplicates in the Fact table.
Thanks
Thanks
Helen

Thanks for your response.
I am still unable to do this.
Problem is the procedure is "Jython" and it does not know what the ODI variables are.
I basically have two variables source and target which need to be passed to a java procedure.
So I created two VARIABLES in ODI - source and target.
I then have a procedure with the command;
import os
import sys
cmd = "java ConvFile"
rc = os.system(cmd)
when this runs it does not pass the variables.
if you have
import os
import sys
cmd = "java ConvFile"+#Tax_Updates.SourceFile+#Tax_Updates.TargetFile
rc = os.system(cmd)
then it does not know what #Tax_Updates.SourceFile and #Tax_Updates.TargetFile are and so just passes them as strings.
If you still think it is possible or anyone esle knows can you elaborate a little on the solution.
Thanks
Nick

Similar Messages

  • What username and password is used for a Mac on the Install of Adobe Reader,  (Step 8 in procedure)

    Is it a Mac or Adobe password used for installing Reader to a Mac OS? Doesn't. Say in step 8 of procedure.  We cannot. Get past this point.  Thanks.

    See https://forums.adobe.com/thread/1619850

  • Cross-references to numbered steps in a procedure?

    RoboHelp 9 - Is it possible to create cross-references to numbered steps in a procedure? For example, if step 19 in a procedure refers back to step 3, can this reference be set so that it can automatically update if new steps are added before step 3?

    Hi,
    You could try adding bookmarks to the step you want to refer to and the hyperlinking to the bookmark. This is not self maintaining like FM cross references are though...

  • Creating Oracle Inventory Installation Step Does Not Finish and Hangs at 99% while installing Hyperion 11.1.1.4

    Hi Guys,
    Creating Oracle Inventory Installation Step Does Not Finish and Hangs at 99% while installing Hyperion 11.1.1.4.I'm running the installer from a local drive and also noticed that the uninstaller files are not created.The installer process has been running for 4+ hours.
    Any suggestions/tips?
    Thanks
    Manoj

    hi John,
    we left the installer running overnight, but the install process has still not completed.Also it has not created any uninstaller files under the following directory:
    E:\APPS\Hyperion\uninstall
    what could be the reason for that?
    Thanks.
    Manoj

  • See which procedure is hanging

    One of my users is running a package and within the package a particular procedure keeps hanging but he doesnt know which one. Is there as a dba to see which procedure is mucking things up?
    thanks in advance
    SR

    I found another one too, this works as well.
    Thanks for all the responses
    ----Queries the job that is running during the current session
    ---get session id (sid) from oracle instance manager
    select t.sql_text
    from v$sqltext t, v$session s
    where s.sid = 48 and s.sql_address = t.address
    order by t.piece
    SR

  • Steps to export various objects created in v10.1.3.5.6 ODI + steps to import back in v11.1.1.7 ODI

    All,
    As we all do these days and for reasons mostly associated with budget constraints, I have been asked to wear a brand new hat - the "ODI Guru Hat" - at my client's site to facilitate the migration of their v11.1.1.x Hyperion EPM implementation to a v11.1.2.3.5xx Hyperion EPM implementation.
    The v10.1.3.5.6 ODI objects\processes are currently set up to refresh a v11.1.1.3.x Planning application currently fall into 2 categories:
    1. metadata management (ie, updating the Planning application with the latest Account and Entity dimension changes from the SAP ERP); and,
    2. data management (ie, updating the Planning application with the latest data file from the SAP ERP).
    The requirement at hand involves replicating everything currently set up to operate under the v10.1.3.5.6 ODI into a v11.1.1.7.x ODI instance. The v11.1.1.7.x ODI instance has been installed on a different server to the one on which v10.1.3.5.6 ODI instance is installed. Brand new master and work RDBMS repositories have also been created to host the v11.1.1.7 ODI
    So far and not knowing much about ODI, I have exported as many objects as I could locate under the Designer\Operator\Security\Topology components of the v10.1.3.5.6 ODI instance before importing them back (using the Duplication method) into the v11.1.1.7.x ODI instance. Once imported, I have re-pointed the paths to different directories on the new servers.
    I would like to know if there are any other steps I should be aware of and\or look into. Better still, I would appreciate it enormously if someone could point me into the right direction as to any documented best practice steps to follow to perform migrations from one ODI version to another, when both ODI instances have been installed on different servers.
    Thanks in advance,
    Cheers,
    JBM

    Hey,
    Just export and import won't work with different versions. Using Upgrade utility(ua.bat), we need to upgrade to current version.
    We should upgrade the ODI from 10g to 11g, then we can export objects from one environment to another.
    Check the below link to upgrade ODI::
    11g Oracle Data Integrator - Upgrading from 10g - Part 4/11g - ODIExperts.com
    Thanks,
    Mady

  • Is it possible to use a ODI variable in a procedure

    I am trying to call an external java program from the operating system (MS-DOS) using a procedure. This is possible using the os.system("<command>") syntax - declaring a procedure to use Jython. However, I want to be able to pass two ODI variables to the java program. I do not seem able to do this, is it possible ?
    I also tried calling the OS command from within a package - but again cannot get the OS command to pass the variables.
    I would appreciate any help on this.

    Thanks for your response.
    I am still unable to do this.
    Problem is the procedure is "Jython" and it does not know what the ODI variables are.
    I basically have two variables source and target which need to be passed to a java procedure.
    So I created two VARIABLES in ODI - source and target.
    I then have a procedure with the command;
    import os
    import sys
    cmd = "java ConvFile"
    rc = os.system(cmd)
    when this runs it does not pass the variables.
    if you have
    import os
    import sys
    cmd = "java ConvFile"+#Tax_Updates.SourceFile+#Tax_Updates.TargetFile
    rc = os.system(cmd)
    then it does not know what #Tax_Updates.SourceFile and #Tax_Updates.TargetFile are and so just passes them as strings.
    If you still think it is possible or anyone esle knows can you elaborate a little on the solution.
    Thanks
    Nick

  • Arrays as out param on stored procedure causes hang

    Hi,
    I would like to be able to use an ARRAY to pass data back from a java stored procedure. Calling the stored procedure using jdbc, the procedure hangs. If I change the out param to a VARCHAR, the procedure works fine (although, of course, the size of the data returned is limited).
    I defined a varray type:
    CREATE TYPE str_array AS VARRAY(100) OF VARCHAR2(255);
    I defined the stored procedure:
    CREATE OR REPLACE PROCEDURE ob_snapshot(symbol VARCHAR2, start_time DATE, end_time DATE, interval NUMBER, depth NUMBER, output_result IN OUT STR_ARRAY)
    AS LANGUAGE JAVA
    NAME 'OBSnapshot.snapshot(java.lang.String, java.sql.Timestamp, java.sql.Timestamp, int, int, oracle.sql.ARRAY[])';
    The execute on the CallableStatement never finshes. Any ideas ?
    Thanks for the help,
    Chris Opler
    null

    I recommend you declare your iterator as follows :
    public class yourApp {
    #sql public static iterator Temp1 (...);
    null

  • ODI substitution method in procedure

    Hi Gurus,
    I want to create an ODI procedure which will execute the code like
    delete from target_table where target_table.column in ( select some_other_table.column from some_other_table where some_condition )
    I want to use ODI substitution method for replacing target_table ,target_table.column ,some_other_table.column .
    Tried with getTable() Method , but it seems (to me) that it works only on KM and not on procedure .
    the following code returns error /exception "invalid table name specified "
    delete from <%=odiRef.getTargetTable("RES_NAME")%>
    By the way my source/target technology is Oracle.
    Where am I going wrong ?
    --Pujan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    can any one help me in this ?
    Observer the following
    In ODI package OdiOutFile , if I specify this command
    SELECT COUNT(1) FROM <%=odiRef.getObjectName("L","EMP","LOG_SRC","D")%>
    In the out file I get the correct command as SELECT COUNT(1) FROM SCOTT.EMP
    But if I specify the same command in a procedure then it is ruturning the following
    Description Tab : select count(1) from < % = odiRef.getObjectName("L","EMP","LOG_SRC","D") % >
    Execution Tab: 903 : 42000 : java.sql.SQLException: ORA-00903: invalid table name
    java.sql.SQLException: ORA-00903: invalid table name
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:503)
         at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:965)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:535)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1051)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3057)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    --Pujan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Create procedure statement Hangs in 11g database, doesn't hang in 10.2

    I have installed 11g on a windows workstation and created a new database. I then attempted to import a schema from a tried and tested 10.2 database, this hung.
    I pinpointed the cause of the hang to a create procedure sstatement within the import file.
    I removed the procedure from the 10.2 database, re-exported and imported sucessfully in to the 11g database minus the rogue prrocedure.
    I now have a create statement for the procedure thats causing the hangs, and this hangs when I try and run it - it runs fine against my 10.2 database?
    I can comment large chunks of the create procedure statment out so I get an anonymous block that runs, and pinpoint the hang down to the inclusion of the the line marked below
    (starting FOR UPDATE OF...........).
    I cant work out whats going on, I'm no programmer by the way!
    Any pointers would be greatly appreciated.
    Nick
    declare
    job_rec job_table%ROWTYPE;
    err_msg varchar2(2000);
    abort_msg varchar2(2000);
    l_ok boolean := TRUE;
    l_bat_job varchar2(14) := 's2_novate_RIC';
    LINES DELETED FOR PURPOSE OF POSTING CURSOR c_sah IS
         SELECT
              sah_next,
              sah_table_key,
              sah_old_status,
              sah_new_status,
              sah_processed_ind,
              sah_processed_date,
              sah_processed_time
         FROM senatordba.sah_status_audit_history
         JOIN (SELECT distinct to_char(spd_next) spd_next
              FROM senatordba.spd_std_risk_dets
              JOIN senatordba.rso_risk_system_options
              ON rso_spd_next = spd_next
              AND spd_ric_code = l_ric_code
              AND coalesce(l_uw_year, spd_yr) = spd_yr
              AND coalesce(l_risk_ref, spd_ref) = spd_ref
         ON spd_next = sah_table_key
         AND sah_table_code = 'SPD'
         AND sah_status_table_code = 'NOV'
         AND sah_processed_ind = 'N';
    FOR UPDATE OF sah_processed_ind, sah_processed_date, sah_processed_time;               <---------if this line is commented out runs OK, if left in, it hangs??
    r_sah c_sah%ROWTYPE;
    begin
    open c_sah;
    close c_sah;
    end;

    Hi Nick, no one else has answered so I thought I'd answer my own question, it appears that I was hitting Oracle bug 9294110. had to uninstall 11.2 and install 11.0.7 instead. very annoyed that I wasted ages diagnosing this known problem. The following test should replicate the hang
    connect / as sysdba
    create user test identified by test default tablespace users temporary tablespace temp;
    grant connect, resource to test;
    connect test/test
    create table a_tab
    ( col001 number, col002 number, col003 number, col004 number);
    create table b_tab( col001 number);
    -- the next statement hangs forever
    select
    a.col002,
    a.col003,
    a.col004
    from
    a_tab a
    left outer join b_tab
    on a.col001 = b_tab.col001
    for update of a.col002,
    a.col003,
    a.col004;

  • ODI step by step Design

    Hi folks
    need your help !
    new to ODI , kindly list the steps that are to be taken from the install to a complete Flow . I am a new bee and need just a step by step list of to dos . I shall read the detail of each step from the help for ODI .
    Thanks in Advance ,
    Regards,
    Ashish Roy.

    Hi
    1. Install to try & for trainning is very easy if you know click 'Next' ;o)
    2. I advice you to start with getting started (in demo env) and integrated documentation to see how to
    - describe topology
    - describe models
    - develop interfaces and packages
    - execute scenarios
    MA

  • Required configuration steps for  Export procedure.

    Hello Gurus,
    Goodevening,
        We have export for our client , but don't have any kind of taxes for this industry( like customes  duty etc , excise duty etc ), I'm  not having much  idea about export  -foregin trade configuration , can  some one guide me  the   SD confiuration plz ?
    Looking for help
    Regards
    Ravi.M
    Edited by: RAVIMSD on Aug 14, 2010 6:49 AM

    Hi,
    Please go through the below link. It will help you to configure export procedure.
    Export procedure
    Hope this will help you .
    Regards,
    Krishna O
    Edited by: Krishna O on Aug 17, 2010 2:04 PM

  • ODI Scenario Hang on ODI Procedure

    Hi Experts,
    We have one ODI scenario which consists of a few ODI procedure steps with anonymous PL/SQL block. When one procedure takes a long time to process data (>60min. when data volume is large), the ODI scenario hangs intermittently on the procedure (ODI Operator shows Running state and no progress to next step in Scenario). The pl/sql script finished fine when running against database directly processing the same dataset.
    When the ODI step hangs, the database side where the pl/sql runs on has no more activities, and the db session(v$session) which processes the ODI procedure goes away as well (db session not existing on db anymore). But the ODI Operator still shows the step in running state and hangs there forever (days). The jdbc connection from ODI to db looks fine.
    How can we fix this problem in ODI? The ODI version is 10.1.3.5.
    Appreciate your input on this.
    Thanks,

    The doc said "If your command is being executed in a transaction (numbered 0 to 9)" then I should set 'Commit'. But I used 'Autocommit' for transaction, is the 'Commit' necessary here?
    Thanks!

  • How to list all physical schemas in ODI procedure

    Dear Experts,
    I am trying a requirement which is to execute a set of sqls in all the schemas configured in ODI.
    for example
    1) I have four data servers/physical schemas configured in Physical Architecture under Oracle techonlogy.
    2) Created corresponding 4 logical schemas for Oracle.
    3) Mapped using two different contexts.
    4) one context mapped two schemas and another mapped two other schemas.
    now, I need to exeture the following sql for all the Oracle schemas mapped in context selected.
    just for testing: select dummy from dual
    I would like to execute this sql in ODI procedure for every schema mapped in the selected context in single execution.
    Can any expert help me on this solution?
    - Raja

    Raja,
    I was actually talking about multiple ODI Step command rather than multiple procedure. What you are trying to achieve is difficult unless you specify the logical schema in ODI Procedure , becuase getInfo will throw Null pointer if we dont specify the logical schema ,
    the getSchema needs Logical schema . The other way i can think query in work rep tables and get the schema name and pass it .
    Any way in case your figure out without passing Logical schema . Please share with us , i would be interested in learning the trick .

  • ODI Procedure to read a directory/folder in interface during package.

    Hello,
    A have a ODI package including 1 procedure and 1 interface
    I will like get the filename in interface (datastore source) with procedure.
    Its possible?
    Thanks!

    I would recommend to go for Java rather than Jython.
    Step 1. Assigned Variable for Path in Physical Schema and another Variable for Source Datastore. [ If directory path is fixed and only file name changes then skip assigning variable to physcial schema ]
    Step 2. Read via Java and find the files and assign the path and file name to two different Java Variable
    Step 3. Refresh the Variable with select '<@=java_path_variable@>' from dual and similarly refresh the variable for filename
    Step 4. Call the Interface.
    Does this helps.

Maybe you are looking for

  • How can I create a shortcut to my application?

    Hello I have just created my first application, and I would like to start it from a shortcut in my winXP desktop. But how can I since it is not an .exe file? I am using the NetBeans IDE 3.5.1 that comes with the java bundle, and I have tried unsuccse

  • Videos no longer recognised as videos in my ipod

    Hello, I've downloaded various videos and vodcasts from the itunes store. Never had any problem viewing them before. About a week ago, I plugged my ipod into a different laptop for charging and now the ipod no longer brings up lists of movies etc und

  • CTR works with PXI 8196,PXIe 8102, fails with PXIe 8100 - why?

    My client has reported a problem.   For years he has used a PXI 8196 RT Controller with PXI 6602 Counter card and my software has given good results.  They have 20+ of these systems and they have worked well. Now they are moving to PXIe 810x controll

  • Transfer to Other Accounts

    Can you please post about 50 entires in Input VAT account and 50 in Output VAT Account through FI JV and then transfer these line items to VAT Vendor A/c u2013 if needed create one Vendor Can any one tell me what exactly this  line means

  • Sun's jax-rpc V.S Apache XML-RPC

    Anyone can enlighten me with the differences between these two? which one is better?