Oracle Data Integrator 12 c: in the procedure of jython endless loop

The following script does not end if launched as an ODI procedure, everything in completes successfully if done out of context ODI. Can someone help me? If you need any more details just ask.

Thanks in advance


import logging
import random
import threading
import time

NUM_THREADS = 5

def worker(delay, logger):
    logge.info("Starting work...")
    for i in range(3):
        logger.info('Sleeping %0.02f', delay)
        time.sleep(delay)
    logger.info('Done.')
    return 

for n in range(1, NUM_THREADS + 1):
    logger = logging.getLogger('thread-'+str(n))
    logger.setLevel(logging.DEBUG)


    # create a file handler writing to a file named after the thread
    file_handler = logging.FileHandler('thread-%s.log' % n)


    # create a custom formatter and register it for the file handler
    formatter = logging.Formatter('(%(threadName)-10s) %(message)s')
    file_handler.setFormatter(formatter)


    # register the file handler for the thread-specific logger
    logger.addHandler(file_handler)


    delay = random.random()
    t = threading.Thread(target=worker, args=(delay, logger))
    t.start()

main_thread = threading.currentThread()
for t in threading.enumerate():
    if t is not main_thread:
        t.join()

Since ODI manages no wire, I opted for a running script with the primitive OSCommand. It is right?

Tags: Business Intelligence

Similar Questions

  • ODI and Siebel CRM - Modules of knowledge Oracle Siebel CRM in Oracle Data Integrator.

    Hi all

    I'm looking for information on ODI and Siebel CRM.

    Part 1:

    For the moment, we do not use ODI to load data into Siebel, guys on the team here

    do a lot of PL/SQL for CEF Siebel system tables. (I'm not a person of Siebel)

    Part 2:

    Then these tables of Siebel, I use ODI BI Apps to finally get the data for some dashboards OBIEE.

    I thought that maybe there would be a better way to do part 1 using ODI.

    According to me, that there is a knowledge Oracle Siebel CRM Modules in Oracle Data Integrator.

    http://docs.Oracle.com/CD/E21764_01/doc.1111/e17466/oracle_siebel.htm#ODIAA461

    Here's what we have:

    ODI 11.1.1.7.0 Patch 18204886

    ODI BI Apps 11.1.1.8.1

    Siebel Version 8.1.1

    Pointers to people who have made would be apprecated.

    Eric

    After talking with my boyfriend of Siebel, here's what I understand:

    ODI will load the tables of EIM, which, said, is 75% of employment

    and the last 25% is the .ifb file is generated and ths to run the file on the

    Server Manager.

    Yes, ODI can load data but my guy Siebel

    the ifb file will have to be revised manually...

    When I get a moment, I'll do a small test case and see

    If I can build and run a simple example of this in ODI.

    A small proof of concept.

    Eric

  • Using Oracle Partition Exchange with Oracle Data Integrator (ODI) 11g

    Hello

    I'm trying to follow http://www.ateam-oracle.com/configuring-oracle-data-integrator-odi-with-oracle-partition-exchange/

    But impossible to get the same options in 11g.

    Can I use the Exchange Partition Oracle 11g ODI.

    Thank you.

    Yes, exchange of partition is certainly possible in ODI 11 g

  • Can we migrate Informatica transformation Scripts in Oracle Data Integrator?

    Hello

    I just wanted to know that if we can migrate/move/use the transformation scripts that build in INformatica power Center in oracle Data Integrator. (ODI).

    If 'YES' then what the tool is used to migrate.

    with impatience.

    Kind regards

    AMSI

    Hello

    Just to clarify any passage of Informatica in ODI you will have to do it yourself, like a reimplementation

    Your informatica workflow to create new package ODI (eventually plan to charge).
    Use your mappings informatica to create new ODI interface (don't forget that ODI can load only 1 target by interface table)

    Oracle Open World, this has been a hot topic in the discussions, but there was nothing still.

    Thank you

    ~ KKT ~.

  • Unable to see patterns while improving to Oracle Data Integrator 12cR1 (12.1.2.0.0) version

    Hello

    I use windows 7 Professional (service pack 1) 64 bit operating system.

    I am trying to run the ua.bat file to upgrade the system to 12 c.

    I chose the following options after running the upgrade wizard

    patterns-> Oracle Data Integrator.

    Then in step 5.

    Type of database: Oracle database and details to connect to the database.

    But after connecting, I only see the TEST_MASTER schema and nothing else.


    Thanks and greetings

    Sunil



    Hello

    I tried your method, but I discovered that the schema will be shown falling down only if they are created using tool provided by oracle RCU. So what I've done is created a new schema using odi RCU 11.1.1.7 version, then created master repository to help to odi, then any data from the previous version to this same data also imported to repository work and then began the process of upgrading again.

  • High availability Oracle Data Integrator-start managed servers exception

    Hello

    I am trying to configure high availability Oracle Data Integrator, using this tutorial: http://docs.oracle.com/cd/E14571_01/core.1111/e10106/odi.htm#autoId19

    Unfortunatelly, always without success. I stopped on ' 7.4.2.8 odi_server1 configure Node Manager and Start. My server fails to start because of the exception:

    WLS starting with line:
    /usr/lib/JVM/Java-1.6.0-openjdk-1.6.0.0.x86_64/bin/Java-serveur-Xms256m-Xmx512m - XX : MaxPermSize = 512m-Dweblogic.Name=odi_server1-Djava.security.policy=/home/oracle/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.policy-Dweblogic.ProductionModeEnabled=true-Dweblogic.system.BootIdentityFile=/home/oracle/Oracle/Middleware/user_projects/domains/odi_cluster/servers/odi_server1/data/nodemanager/boot.properties-Dweblogic.nodemanager.ServiceEnabled=true-Dweblogic.security.SSL.ignoreHostnameVerification=false-Dweblogic.ReverseDNSAllowed=false-Doracle.odi.coherence.wka1=eb-etl1 Doracle.odi.coherence.wka1.port=9088-Doracle.odi.coherence.wka2=eb-etl2-Doracle.odi.coherence.wka2.port=9088-Dtangosol.coherence.localport=9088--Dwls.home=/home/-Dplatform.home=/home/oracle/Oracle/Middleware/wlserver_10.3 da oracle/Oracle/Middleware/wlserver_10.3/server-Dweblogic.home=/home/oracle/Oracle/Middleware/wlserver_10.3/server-Dcommon.components.home=/home/oracle/Oracle/Middleware/oracle_common-Djrf.version=11.1.1-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger-Ddomain.home=/home/oracle/Oracle/Middleware/user_projects/domains/odi_cluster-Djrockit.optfile=/home/oracle/Oracle/Middleware/oracle_common/modules/oracle.jrf_11.1.1/jrocket_optfile.txt-Doracle.server.config.dir=/home/oracle/Oracle/Middleware/user_projects/domains/odi_cluster/config/fmwconfig/servers/odi_server1-Doracle.domain.config.dir=/home/oracle/Oracle/Middleware/user_projects/domains/odi_cluster/config/fmwconfig-Digf.arisidbeans.carmlloc=/home/oracle/Oracle/Middleware/user_ projets/domaines/odi_cluster/config/ fmwconfig/carml-Digf.arisidstack.home=/home/oracle/Oracle/Middleware/user_projects/domains/odi_cluster/config/fmwconfig/arisidprovider-Doracle.security.jps.config=/home/oracle/Oracle/Middleware/user_projects/domains/odi_cluster/config/fmwconfig/jps-config.xml-Doracle.deployed.app.dir=/home/oracle/Oracle/Middleware/user_projects/domains/odi_cluster/servers/odi_server1/tmp/_WL_user-Doracle.deployed.app.ext=/--Dweblogic.alternateTypesDirectory=/home/oracle/Oracle/Middleware/oracle_common/modules/oracle.ossoiap_11.1.1,/home/oracle/Oracle/Middleware/oracle_common/modules/oracle.oamprovider_11.1.1-Djava.protocol.handler.pkgs=oracle.mds.net.protocol - Dweblogic.jdbc.remoteEnabled=false-Dem.oracle.home=/home/oracle/Oracle/Middleware/oracle_common - Djava.awt.headless=true-Dodi.oracle.home=/home/oracle /Oracle/Middleware/Oracle_ODI1-Dodi.shared.config.dir.path=/home/oracle/Oracle/Middleware/user_projects/domains/odi_cluster/config/oracledi-Dweblogic.management.discover=false-Dweblogic.management.server= http://172.18.0.106 : 7005 - Dwlw.iterativeDev=false-Dwlw.testConsole=false-Dwlw.logErrorsToConsole=false-Dweblogic.ext.dirs=/home/oracle/Oracle/Middleware/patch_wls1036/profiles/default/sysext_manifest_classpath:/home/oracle/Oracle/Middleware/patch_ocp371/profiles/default/sysext_manifest_classpath weblogic. Server
    Exception in thread "main" java.lang.NoClassDefFoundError: Doracle/odi/coherence/wka1/port = 9088
    Caused by: java.lang.ClassNotFoundException: Doracle.odi.coherence.wka1.port = 9088
    in java.net.URLClassLoader$ 1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged (Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    to Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    The main class is not found: Doracle.odi.coherence.wka1.port = 9088. Program ends.

    Everything is configured exactly as described tutorial, but it does not work. You have ideas, what is the problem?

    It is because of the lack of '-' before Doracle.odi.coherence.wka1.port = 9088

  • Download of Oracle Data Integrator 10g?

    Hello, I'm looking to download ODI 10 g but I can't. I wonder if there is a link any out there?

    I'm looking for it because it is necessary for the installation of the Oracle University course: D48459GC40 ODI10g Administration and development.

    Thank you very much.

    Login https://support.oracle.com
    go to the tab "patches & updates»
    Search by product: oracle data integrator(you can use query search dialog box), release please choose demoulante, 10.1.3.6 is the full set of patches (no installation package), you can include 10.1.3.5 (I noticed this is a complete installation package, then you can upgrade to 10.1.3.6. *)

  • Patch ' 10257622: ORACLE DATA INTEGRATOR 10.1.3.6.5 ROLLUP.

    Hi all

    I'm ODI 10.1.3.5 & I applied a patch "10257622: ORACLE DATA INTEGRATOR 10.1.3.6.5 CUMULATIVE PATCH" upgrade to 10.1.3.6.

    I followed all the steps in the read me to apply the patches & now in help > topic ODI, I see as 10.1.3.6.5 instead of 10.1.3.5.

    All the steps that have been included in read me it that I applied with the exception of:

    Step 7. Copy the XML files generated by the RCC utility to your new folder ODI oracledi/lib/scripts/patches

    I don't know what is utility RCC. Any body know what xml files need to be copied?

    Step 11. Import the technology news and updates

    How can this be to accomplish. Read tells me that you can import it by using the synonym template insertion-implementation to date. Don't know what it is?

    Step 12: Import Modules of knowledge news and updates.

    How can this be to accomplish. According to read me looks that the correction process would have updatewd knowledge so for the new integration modules should use & let the old man without integtrating?

    Thank you

    I'm not sure that you are referring to technology, with ebs and then you use Oracle technology and there are a few knowledge modules that apply.

    See you soon

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

  • Essbase adapter for Oracle Data Integrator

    Hello

    I need adapter Essbase for Oracle Data Integrator, because I'm going to copy data to DB2 and SAP Essbase.

    I found Essbase adapter edelivery.oracle.com (drivers), but it didn't work. When I create a new database server, an error message will appear:

    java.sql.SQLException: Driver must be specified
    at com.sunopsis.sql.SnpsConnection.a (SnpsConnection.java)
    at com.sunopsis.sql.SnpsConnection.testConnection (SnpsConnection.java)
    at com.sunopsis.sql.SnpsConnection.testConnection (SnpsConnection.java)
    at com.sunopsis.graphical.r.or.o (or.java)
    at com.sunopsis.graphical.r.or.f (or.java)
    at com.sunopsis.graphical.r.or.b (or.java)
    at com.sunopsis.graphical.r.or.b (or.java)
    at com.sunopsis.graphical.r.il.actionPerformed (il.java)
    at javax.swing.AbstractButton.fireActionPerformed (unknown Source)
    in javax.swing.AbstractButton$ ForwardActionEvents.actionPerformed (unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed (unknown Source)
    at javax.swing.DefaultButtonModel.setPressed (unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased (unknown Source)
    at java.awt.Component.processMouseEvent (unknown Source)
    at java.awt.Component.processEvent (unknown Source)
    at java.awt.Container.processEvent (unknown Source)
    at java.awt.Component.dispatchEventImpl (unknown Source)
    at java.awt.Container.dispatchEventImpl (unknown Source)
    at java.awt.Component.dispatchEvent (unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent (unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent (unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent (unknown Source)
    at java.awt.Container.dispatchEventImpl (unknown Source)
    at java.awt.Window.dispatchEventImpl (unknown Source)
    at java.awt.Component.dispatchEvent (unknown Source)
    at java.awt.EventQueue.dispatchEvent (unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy (unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy (unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy (unknown Source)
    in java.awt.Dialog$ 1.run (unknown Source)
    at java.awt.Dialog.show (unknown Source)
    at java.awt.Component.show (unknown Source)
    at java.awt.Component.setVisible (unknown Source)
    at com.sunopsis.graphical.r.or.q (or.java)
    to com.sunopsis.graphical.r.or. < init > (or.java)
    at com.sunopsis.graphical.frame.a.ji.bx (ji.java)
    at com.sunopsis.graphical.frame.bn.w (bn.java)
    at com.sunopsis.graphical.frame.bn.d (bn.java)
    at com.sunopsis.graphical.frame.w.actionPerformed (w.java)
    at javax.swing.AbstractButton.fireActionPerformed (unknown Source)
    in javax.swing.AbstractButton$ ForwardActionEvents.actionPerformed (unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed (unknown Source)
    at javax.swing.DefaultButtonModel.setPressed (unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased (unknown Source)
    at java.awt.Component.processMouseEvent (unknown Source)
    at java.awt.Component.processEvent (unknown Source)
    at java.awt.Container.processEvent (unknown Source)
    at java.awt.Component.dispatchEventImpl (unknown Source)
    at java.awt.Container.dispatchEventImpl (unknown Source)
    at java.awt.Component.dispatchEvent (unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent (unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent (unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent (unknown Source)
    at java.awt.Container.dispatchEventImpl (unknown Source)
    at java.awt.Window.dispatchEventImpl (unknown Source)
    at java.awt.Component.dispatchEvent (unknown Source)
    at java.awt.EventQueue.dispatchEvent (unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy (unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy (unknown Source)
    at java.awt.EventDispatchThread.pumpEvents (unknown Source)
    at java.awt.EventDispatchThread.pumpEvents (unknown Source)
    at java.awt.EventDispatchThread.run (unknown Source)

    Anyone know about this error?

    Thank you for your advance.

    Kind regards
    Stephan

    Hello

    Are you this message when you click the Test button, if so, then this is normal because you can use the Test button for components that use JDBC and the essbase adapter does not work.

    I hope this helps.

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

  • Oracle Data Integrator does not start

    Hello
    I just installed ODI 11 g (11.1.1.7.0) and managed to create repositories with the remote control.
    But I have problems startgin the application itself. The environment is perhaps the question:
    OS - Debian 64 bit Wheezy
    Java - version "1.6.0_27".
    The (IcedTea6 1.12.4) OpenJDK runtime environment (6b 27 - 1.12.4 - 1).
    OpenJDK 64-bit Server VM (build 20, 0 - b12, mixed mode)
    JAVA_HOME = / usr/lib/jvm/java-6-openjdk-amd64-> points to jdk folder adding "/ bin" that contains the path, the java executable
    ORACLE_HOME=/U01/app/Oracle/product/11.2.0/dbhome_1-> database oracle home
    ODI installed in/opt/ODI and changed with CHMOD-r 775/opt/ODI (user 'oracle', used for installation is the owner)
    (Can not be sure, but is for evaluation only).

    I try to run ODI:
    fre@demo$CD/opt/ODI/oracledi/customer
    fre@demo$./ODI.sh

    Result:

    Oracle 11 g data integrator
    Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.

    . / odi: 281:... /... /IDE/bin/IDE.conf: = APP_VM_OPTS [0] - Xmx640M: not found
    . / odi: 281:... /... /IDE/bin/IDE.conf: APP_VM_OPTS [0] =-Xms128M: not found
    . / odi: 281:... /... /IDE/bin/IDE.conf: = APP_VM_OPTS [0] - Xverify: no: not found
    . / odi: 281: /opt/ODI/oracledi/client/odi/bin/odi.conf: APP_VM_OPTS [0] = - XX:MaxPermSize = 256 M: not found
    . / odi: 281: /opt/ODI/oracledi/client/odi/bin/odi.conf: APP_VM_OPTS [0] = - Doracle.core.ojdl.logging.config.file = ODI - logging - config.xml: not found
    . / odi: 281: /opt/ODI/oracledi/client/odi/bin/odi.conf: APP_VM_OPTS [0] = - Dorg.apache.commons.logging.Log = org.apache.commons.logging.impl.Jdk14Logger: not found
    . / odi: 281: /opt/ODI/oracledi/client/odi/bin/odi.conf: APP_VM_OPTS [0] = - Djava.util.logging.config.class = oracle.core.ojdl.logging.LoggingConfiguration: not found
    . / odi: 281: /opt/ODI/oracledi/client/odi/bin/odi.conf: APP_VM_OPTS [0] =-Dnative.canonicalization = false: not found
    . / odi: 281: /opt/ODI/oracledi/client/odi/bin/odi.conf: APP_VM_OPTS[0]=-Doracle.security.jps.config=./jps-config.xml: not found
    . / odi: 281: /opt/ODI/oracledi/client/odi/bin/odi.conf: APP_VM_OPTS [0] =-Doracle.odi.studio.ess = false: not found
    . / odi: 281: /opt/ODI/oracledi/client/odi/bin/odi.conf: APP_VM_OPTS [0] =-Dide.AssertCheckingDisabled = true: not found
    . / odi: 281: /opt/ODI/oracledi/client/odi/bin/odi.conf: APP_VM_OPTS [0] =-Dide.AssertTracingDisabled = true: not found
    . / odi: 281: /opt/ODI/oracledi/client/odi/bin/odi.conf: APP_VM_OPTS [0] =-DLOG_FILE = studio.log: not found
    . / odi: 281: /opt/ODI/oracledi/client/odi/bin/odi.conf: APP_VM_OPTS [0] =-Dsun.java2d.noddraw = true: not found
    . / odi: 281:. "/ odi: APP_VM_OPTS[0]=-Dide.conf="/opt/ODI/oracledi/client/odi/bin/odi.conf ": not found
    . / odi: 281:. "/ odi: APP_VM_OPTS[0]=-Dide.startingcwd="/opt/ODI/oracledi/client/odi/bin ": not found
    . / odi: 810:. / odi: bad substitution

    I would appreciate any idea to help me solve this issue!

    Thank you very much

    Fred

    Published by: Fred1018 on May 26, 2013 09:17

    I found the solution in 2 steps:

    A change in ownership of the user oracle (used for installation) to yourself: sudo chown-r me: mygroup /opt/ODI (/ opt/ODI is my installation path)

    In one of these forums OTN, the question already answered: got to .../oracledi/client/odi/binand then run odi bash (sh does not generate the required path)

    Now it works!

    Thanks for your help!

    Best regards

    Fred

  • Oracle Data Integrator insert County Update comte Delete Count and error neck

    I'm trying to change an incremental update IKM Oracle

    What I have to do is insert a table at the end of each interface with the following information:

    Technologies: ORACLE

    < % if (odiRef.getOption ("METADATA_TABLE") () .length == 0) {% >}
    Invalid value for the metadata option
    < %}; % >
    / * METADATA_TABLE = < %=odiRef.getOption ("METADATA_TABLE") % > * /.
    < % / * for NO value * / if ("NONE".equals (odiRef.getOption ("METADATA_TABLE"))) {% >}
    / * Command ignored due to choice METADATA_TABLE * /.
    < %} else {% >}

    INSERT INTO < %=odiRef.getOption ("METADATA_TABLE") % >
    (
    ODI_SESSION_NO,
    ODI_SESSION_NAME,
    ODI_STEP_NAME,
    ODI_STEP_NO,
    ODI_STEP_TYPE,
    S_TABLE,
    T_TABLE,
    RUN_DATE,
    S_ROW_COUNT,
    T_ROW_COUNT
    )
    VALUES
    (
    '< % = odiRef.getSession ("SESS_NO") % >',
    '< % = odiRef.getSession ("SESS_NAME") % >',
    '< % = odiRef.getStep ("STEP_NAME") % >',
    '< % = odiRef.getStep ("NSN") % >',
    case when "< % = odiRef.getStep ("STEP_TYPE") % > ' = 'F', THEN 'Interface.
    When '< % = odiRef.getStep ("STEP_TYPE") % >' = 'VD' THEN "declaring variables".
    When '< % = odiRef.getStep ("STEP_TYPE") % >' = 'VS' THEN ' Set / / increment the variable'
    When '< % = odiRef.getStep ("STEP_TYPE") % >' = have ' THEN 'variable Evaluate. "
    When '< % = odiRef.getStep ("STEP_TYPE") % >' = 'V' THEN 'variable refresh.
    When ' < % = odiRef.getStep ("STEP_TYPE") % > ' = ' t ' THEN 'procedure '.
    When '< % = odiRef.getStep ("STEP_TYPE") % >' = 'OE' AND 'OS command.
    When ' < % = odiRef.getStep("STEP_TYPE") % > "="IS"THEN"ODI Tool"
    When '< % = odiRef.getStep ("STEP_TYPE") % >' = 'RM' and THEN 'model of bone '.
    When '< % = odiRef.getStep ("STEP_TYPE") % >' = 'CM' THEN 'Check model '.
    When '< % = odiRef.getStep("STEP_TYPE") % > ' =' CS' THEN 'check sous-modèle.
    When '< % = odiRef.getStep ("STEP_TYPE") % >' = 'CD' THEN 'check datastore.
    When '< % = odiRef.getStep ("STEP_TYPE") % >' = 'JM' THEN 'Journalize model '.
    When '< % = odiRef.getStep ("STEP_TYPE") % >' = 'JD' THEN 'log the data store.
    END OTHER 'UNKNOWN ',.
    ' < % = odiRef.getSrcTablesList ("", "[SCHEMA].) [RES_NAME] », «, », « ») % >',
    "< %=odiRef.getTable ("L","A","TARG_NAME") % >."
    To_date (SUBSTR ("< % = odiRef.getSession ("SESS_BEG") % > ' 1, 19"), "YYYY-MM-DD HH24:MI:SS"),
    (SELECT COUNT (*)
    from < % = odiRef.getSrcTablesList ("", "[SCHEMA].) [RES_NAME] », «, », « ») % >
    where (1 = 1)
    < % = odiRef.getJoin () % >
    < % = odiRef.getFilter () % >
    < % = odiRef.getGrpBy () % >
    < % = odiRef.getHaving () % >),
    (SELECT COUNT (*) IN < %=odiRef.getTable ("L", "A", "TARG_NAME") % >)

    )
    < %}; % >

    The code above works well, however I need to update the Insert the number of rows, number of rows to update, remove the number of lines and number of rows in error via an ODI procedure.

    I managed to update (number of rows, number of update rows, number of lines, number of lines of error - remove) the table via the procedure described below:

    UPDATE ODI_PROCESS_LOAD
    SET
    INSERT_COUNT = '< % = odiRef.getPrevStepLog ("INSERT_COUNT") % >',
    UPDATE_COUNT = '< % = odiRef.getPrevStepLog ("UPDATE_COUNT") % >',
    DELETE_COUNT = '< % = odiRef.getPrevStepLog ("DELETE_COUNT") % >',
    ERROR_COUNT = '< % = odiRef.getPrevStepLog ("ERROR_COUNT") % >'
    WHERE
    ODI_SESSION_NO = '< % = odiRef.getPrevStepLog ("SESS_NO") % >'
    AND ODI_STEP_NO = '< % = odiRef.getPrevStepLog ("NSN") % >'

    What I need to do, it is by a single Insert statement mentioned above instead of the second update statement.

    I wonder if there is a way to do

    Take a look at the getPrevStepLog() method - it might be of some use, but you probably wouldn't be able to use it since the km you attempt to change:

    http://gerardnico.com/doc/ODI/Webhelp/en/ref_api/getprevsteplog.htm

  • Oracle Warehouse Builder VS Oracle Data Integrator

    Hello world

    I have a question can you help me.

    We have 64 x systems so we can not use Oracle Warehouse Builder (only supported on 32-bit system), someone we recommend using Data Integrator, but I don't really know this application.
    In any case could ODI 11.1.X.X be installed in x 64:

    All Oracle Fusion Middleware products that are listed as certified x 64 processor based Oracle Linux 5.5 or 5 update 5 +, 64-bit operating system, are also supported on Exalogic X 2 - 2.



    What is the different between OWB and ODI?
    I've read about it and see that ODI is powerful and it applies 'Data Quality' better than OWB, is it good?


    Is it possible exp/IMP with charger metadata go metadata OWB ODI?

    Hello

    Well, the fundamental difference is hard to tell. ODI is based on so-called knowledge module. These are implementations for physical access to all type (among others) different database technologies. So ODI used to be more flexible data extraction technology of database different and also written their. But with 11.2 OWB, these knowledge modules have been integrated in owb under so-called model mappings. OWB has stronger integration with the Oracle database and Oracle database is still required. Plans of Oracle to integrate these two tools in one some day, whenever that will be. ODI offers more options for the quality of the data (which are charged extra).

    Technically speaking, both tools are not very different. They have different UIs anyway.

    A big difference is the license. A basic version of OWB is included with the license database, it can be used without extra charge. Most of our customers use this version, even for implementations of large dwh. If you buy'm license ETL (or already have one), you can use both tools.

    Before decide you on one of the tools, make sure you have enough staff with the right skills available - internal or external.

    Hope this helps,
    Carsten.

  • Oracle Data Integrator and Goldengate for MSSQL

    Hello

    I'm trying to implement the change data capture in the ODI use of goldengate for MSSQL db. Is there a separate JKM for Goldengate for MSSQL? If this is not the case, what are the changes that I need to make the JKM OGG so that it works with MSSQL?

    Also is there a version 11g of Goldengate for MSSQL avaialbe for download? I could find only a version 10g for MSSQL.

    I could successfully to integrate ODI Goldengate to Oracle db using this guide
    http://www.rittmanmead.com/2010/03/22/Configuring-ODI-10-1-3-6-to-use-Oracle-Golden-Gate-for-changed-data-capture/
    It applies to the 11g version as well.

    Any help is highly appreciated

    Thank you
    Ajay

    There is a KM_JKM of MSSQL to .xml consistent Oracle (OGG) delivered with the companion 11.1.1.1.3 available for delivery update disk.

  • error in the procedure 'Send Jython HTML Email'

    I used the procedure to "Send the Email of HTML Jython" to send an email to ODI 11 g.

    Options:

    The entries I used are

    Host: Address of the SMTP server

    < Default > port: 25

    < Default > SMTP Auth: Yes

    User:

    Password *.

    At ***@***.com

    Of ***@***.com

    Test of the object

    LoadfromFile No.

    FilePath D:\

    MessageText Test_Message

    Is < default > HTML: Yes

    Spare D:\


    Error message after I got to the step "to create a complete message:

    "

    org.apache.bsf.BSFException: exception of Jython:

    Traceback (most recent call changed):

    File "< string >", line 25, < module >

    IOError: (21, "Is a directory", ")

    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)

    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:322)

    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:170)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2472)

    at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:47)

    at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:1)

    at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:577)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:468)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:376)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)

    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:309)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:301)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:865)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:137)

    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)

    at java.lang.Thread.run(Thread.java:662)

    Caused by: Traceback (most recent call changed):

    File "< string >", line 25, < module >

    IOError: (21, "Is a directory", ")

    at org.python.core.PyException.fillInStackTrace(PyException.java:70)

    at java.lang.Throwable. < init > (Throwable.java:181)

    at java.lang.Exception. < init > (Exception.java:29)

    to java.lang.RuntimeException. < init > (RuntimeException.java:32)

    to org.python.core.PyException. < init > (PyException.java:46)

    to org.python.core.PyException. < init > (PyException.java:43)

    at org.python.core.Py.IOError(Py.java:175)

    to org.python.core.io.FileIO. < init > (FileIO.java:77)

    at org.python.core.PyFile.file___init__(PyFile.java:157)

    to org.python.core.PyFile$ exposed___new__.createOfType (unknown Source)

    at org.python.core.PyOverridableNew.new_impl(PyOverridableNew.java:12)

    at org.python.core.PyType.invoke_new_(PyType.java:432)

    at org.python.core.PyType.type___call__(PyType.java:1397)

    at org.python.core.PyType.__call__(PyType.java:1388)

    at org.python.core.OpenFunction.__call__(__builtin__.java:1576)

    at org.python.core.PyObject.__call__(PyObject.java:414)

    at org.python.core.PyObject.__call__(PyObject.java:418)

    to org.python.pycode._pyx1609.f$ 0 (< string >: 30)

    to org.python.pycode._pyx1609.call_function (< string >)

    at org.python.core.PyTableCode.call(PyTableCode.java:165)

    at org.python.core.PyCode.call(PyCode.java:18)

    at org.python.core.Py.runCode(Py.java:1204)

    at org.python.core.Py.exec(Py.java:1248)

    at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:172)

    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)

    ... 19 more

    "

    Hi 2782749,

    It seems that this has to do with the path of the attachment. Could you try giving a full path to the file to see if it works? It is perhaps required in this procedure.

    Could you post the code of procedure you?

    Best regards

    JeromeFr

  • Get error in the procedure of Jython

    Hi all

    I m writing this code in the procedure of ODI with technology like Jython target and ignore the errors checked.

    filesrc = open (was: \MyFile.txt ',' r')
    First = filesrc. ReadLine()
    lines = 0
    all first:
    lines += 1
    First = filesrc. ReadLine()
    def intWithCommas (x):
    If not in kind (x) [type (0), type(0L)]:
    raise TypeError ("parameter must be an integer.")
    If x 0 are:
    return '-' + intWithCommas (x)
    result = "
    While x > = 1000:
    x, r = divmod (x 1000)
    result = ', % 03d %s' % (r, result)
    return '%d %s' % (x, result)
    S1 = Str (intWithCommas (Lines))
    S2 = "\n\n and the first line of the file is - > > \n\n"
    filesrc. Seek (0)
    S3 = STR (filesrc. ReadLine())
    final = s1 + s2 + s3
    raise "\n\n are the number of lines in the file - > > ', final"

    but this error:

    org.apache.bsf.BSFException: exception of Jython:
    Traceback (innermost last):
    (no object code) on line 0
    SyntaxError: ('invalid syntax', ('< string >", 5, 1, ' lines += 1'))

    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:345)
    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:169)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2374)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java:1615)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java:1580)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2755)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:534)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:322)
    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:237)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:794)
    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)
    at java.lang.Thread.run(Thread.java:619)

    Please help me with this...

    Hello

    You are able to run this code directly from Jython?

    What you can do is to copy this code into a text file and name it say sample_jython.py.

    Now, open a command prompt and navigate to the \oracledi\bin

    Issue the following command

    Jython \sample_jython.py

    Thank you
    Fati

Maybe you are looking for

  • Load the url in tab of firefox running via cmd versions

    I launched several version of firefox with the following command."\Program Files\Mozilla Firefox 18\firefox.exe" - profile "C:\f18" - no-remote"\Program Files\Mozilla Firefox31\firefox.exe" - profile "C:\f31" - no-remoteBoth versions are running, now

  • I get 2 pop-up messages on the toolbar of KeeFox that I can't stop.

    I can't stop 2 messages popping up... they all appear a few minutes to be online with firefox (17.01), keefox (1.1.3) and keepass (?), Win7 (64 bit). I went to the page options and changed all those defining (messages), but the settings back to defau

  • Is it possible to get a new CD or download an ISO of Windows 95?

    Exchange for Windows 95 I have a CD of Windows 95 when I had an old computer. I tried to install Windows 95 on CD (in a VM). Unfortunately, the CD is damaged and cannot be read completely. Is it possible to get a new CD or download an ISO or somethin

  • Cannot connect to computer with Windows 2000, because it asks for a password

    Original title: help get into the computer without internet I have an old computer and I just want to access it without connecting to the internet, but I can't get in as it says I need a password.  It was my mother's old computer and there is no pass

  • Universal Library

    Dear I'm not able to understand how to use 'Library (UL) universal by the calculation of the measure' within Labwindows. Calculation of measurement describes the means and provided "lib" and "' files to header c, VC ++ but not for LabWindows. They al