Edit D:\app\Administrator\product\11.2.0\dbhome_1\owb\misc\CodeTemplates\KM_LKM SQL to SQL (row by row).xml
<?xml version="1.0" encoding="ISO-8859-1"?> <SunopsisExport> <Object class="com.sunopsis.dwg.dbobj.SnpTrt"> <Field name="ExtVersion" type="java.lang.String">null</Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-02-19 13:53:23.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="IndChange" type="java.lang.String"><![CDATA[U]]></Field> <Field name="IndJrnMethod" type="java.lang.String">null</Field> <Field name="IntVersion" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IFolder" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IProject" type="com.sunopsis.sql.DbInt"><![CDATA[2024]]></Field> <Field name="IState" type="com.sunopsis.sql.DbInt"><![CDATA[17003]]></Field> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[42024]]></Field> <Field name="ITxtTrtTxt" type="com.sunopsis.sql.DbInt"><![CDATA[1489024]]></Field> <Field name="KimMultiDserver" type="java.lang.String"><![CDATA[1]]></Field> <Field name="KmDefault" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KmSrcTechno" type="java.lang.String">null</Field> <Field name="KmTechno" type="java.lang.String">null</Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:28:58.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="LChecksum" type="com.sunopsis.sql.DbInt"><![CDATA[3515]]></Field> <Field name="LCode" type="java.lang.String">null</Field> <Field name="OrdFolder" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="TrtName" type="java.lang.String"><![CDATA[LKM SQL to SQL (row by row)]]></Field> <Field name="TrtType" type="java.lang.String"><![CDATA[KL]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1489024]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[COMPONENT NAME: LKM SQL to SQL (row by row) COMPONENT VERSION: 10.1.3.2 AUTHOR: Oracle COMPATIBILITY: 10.1.3.5.0 and above DESCRIPTION - This module uses a Jython script to read selected data from the database and write the result into the target temporary table which is created dynamically. - Loads data from any ISO-92 database to any ISO-92 compliant target database. - Provide the ability to integrate data from a staging area to a target and be able to know precisely the state of each row processed OPTIONS (Refer to Option descriptions for more information on each option) - LOG_LEVEL(*): set the level of information to log. - LOG_FILE_NAME(*): full path to the log file used. - MAX_ERRORS(*): the process stops when MAX_ERRORS are encountered - DELETE_TEMPORARY_OBJECTS: delete or not the temporary objects after processing. LIMITATIONS - This Knowledge Module is NOT RECOMMENDED when using LARGE VOLUMES. Other specific modules using Bulk utilities (SQL*LOADER, BULK INSERT...) or direct links (DBLINKS, Linked Servers...) are usually more efficient.]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[1024]]></Field> <Field name="SqlIndGrp" type="java.lang.String"><![CDATA[0]]></Field> <Field name="IntVersion" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IndChange" type="java.lang.String">null</Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:28:58.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:28:58.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="Enc" type="java.lang.String">null</Field> <Field name="EncKey" type="java.lang.String">null</Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpOrigTxt"> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[1024]]></Field> <Field name="OrigineName" type="java.lang.String"><![CDATA[Edit Command]]></Field> <Field name="SnpsCol" type="java.lang.String"><![CDATA[I_TXT_TRT_TXT]]></Field> <Field name="SnpsTable" type="java.lang.String"><![CDATA[SNP_TRT]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpUserExit"> <Field name="ExtVersion" type="java.lang.String">null</Field> <Field name="IndChange" type="java.lang.String"><![CDATA[U]]></Field> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[42024]]></Field> <Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt"><![CDATA[1517024]]></Field> <Field name="ITxtValue" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IUserExit" type="com.sunopsis.sql.DbInt"><![CDATA[143024]]></Field> <Field name="Position" type="com.sunopsis.sql.DbInt"><![CDATA[20]]></Field> <Field name="ShortValue" type="java.lang.String"><![CDATA[C:\temp\lkm_rowbyrow.log]]></Field> <Field name="UeName" type="java.lang.String"><![CDATA[LOG_FILE_NAME]]></Field> <Field name="UeSdesc" type="java.lang.String"><![CDATA[Log File Name.]]></Field> <Field name="UeType" type="java.lang.String"><![CDATA[V]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1517024]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[Log File Name.]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[2024]]></Field> <Field name="SqlIndGrp" type="java.lang.String"><![CDATA[0]]></Field> <Field name="IntVersion" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IndChange" type="java.lang.String">null</Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:42.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:42.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="Enc" type="java.lang.String">null</Field> <Field name="EncKey" type="java.lang.String">null</Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpOrigTxt"> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[2024]]></Field> <Field name="OrigineName" type="java.lang.String"><![CDATA[User Exit help]]></Field> <Field name="SnpsCol" type="java.lang.String"><![CDATA[I_TXT_UE_HELP]]></Field> <Field name="SnpsTable" type="java.lang.String"><![CDATA[SNP_USER_EXIT]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpUserExit"> <Field name="ExtVersion" type="java.lang.String">null</Field> <Field name="IndChange" type="java.lang.String"><![CDATA[U]]></Field> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[42024]]></Field> <Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt"><![CDATA[1518024]]></Field> <Field name="ITxtValue" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IUserExit" type="com.sunopsis.sql.DbInt"><![CDATA[144024]]></Field> <Field name="Position" type="com.sunopsis.sql.DbInt"><![CDATA[20]]></Field> <Field name="ShortValue" type="java.lang.String"><![CDATA[0]]></Field> <Field name="UeName" type="java.lang.String"><![CDATA[LOG_LEVEL]]></Field> <Field name="UeSdesc" type="java.lang.String"><![CDATA[Log level.]]></Field> <Field name="UeType" type="java.lang.String"><![CDATA[V]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1518024]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[Log level. 0: nothing to log 1: any JDBC action will be indicated such as 'select action', 'delete action', 'insert action' 2: in addition to level 1, all record that generate an error will be logged 3: in addition to level 2, all processed record will be logged ]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[2024]]></Field> <Field name="SqlIndGrp" type="java.lang.String"><![CDATA[0]]></Field> <Field name="IntVersion" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IndChange" type="java.lang.String">null</Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:42.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:42.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="Enc" type="java.lang.String">null</Field> <Field name="EncKey" type="java.lang.String">null</Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpUserExit"> <Field name="ExtVersion" type="java.lang.String">null</Field> <Field name="IndChange" type="java.lang.String"><![CDATA[U]]></Field> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[42024]]></Field> <Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt"><![CDATA[1519024]]></Field> <Field name="ITxtValue" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IUserExit" type="com.sunopsis.sql.DbInt"><![CDATA[145024]]></Field> <Field name="Position" type="com.sunopsis.sql.DbInt"><![CDATA[30]]></Field> <Field name="ShortValue" type="java.lang.String"><![CDATA[1]]></Field> <Field name="UeName" type="java.lang.String"><![CDATA[MAX_ERRORS]]></Field> <Field name="UeSdesc" type="java.lang.String"><![CDATA[Maximum number of errors]]></Field> <Field name="UeType" type="java.lang.String"><![CDATA[V]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1519024]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[Maximum number of errors allowed before interrupt the process.]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[2024]]></Field> <Field name="SqlIndGrp" type="java.lang.String"><![CDATA[0]]></Field> <Field name="IntVersion" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IndChange" type="java.lang.String">null</Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:42.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:42.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="Enc" type="java.lang.String">null</Field> <Field name="EncKey" type="java.lang.String">null</Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpUserExit"> <Field name="ExtVersion" type="java.lang.String">null</Field> <Field name="IndChange" type="java.lang.String"><![CDATA[U]]></Field> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[42024]]></Field> <Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt"><![CDATA[1490024]]></Field> <Field name="ITxtValue" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IUserExit" type="com.sunopsis.sql.DbInt"><![CDATA[142024]]></Field> <Field name="Position" type="com.sunopsis.sql.DbInt"><![CDATA[40]]></Field> <Field name="ShortValue" type="java.lang.String"><![CDATA[1]]></Field> <Field name="UeName" type="java.lang.String"><![CDATA[DELETE_TEMPORARY_OBJECTS]]></Field> <Field name="UeSdesc" type="java.lang.String"><![CDATA[Delete temp objects post int]]></Field> <Field name="UeType" type="java.lang.String"><![CDATA[C]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1490024]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[Set this option to NO if you wish to retain temporary objects (tables, files and scripts) after integration. Useful for debugging.]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[2024]]></Field> <Field name="SqlIndGrp" type="java.lang.String"><![CDATA[0]]></Field> <Field name="IntVersion" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IndChange" type="java.lang.String">null</Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:42.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:42.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="Enc" type="java.lang.String">null</Field> <Field name="EncKey" type="java.lang.String">null</Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpLineTrt"> <Field name="AlwaysExe" type="java.lang.String"><![CDATA[1]]></Field> <Field name="ColConnectId" type="java.lang.String">null</Field> <Field name="ColContextCode" type="java.lang.String">null</Field> <Field name="ColIndCommit" type="java.lang.String">null</Field> <Field name="ColIsolLevel" type="java.lang.String">null</Field> <Field name="ColITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1849024]]></Field> <Field name="ColLschemaName" type="java.lang.String">null</Field> <Field name="ColPlanComp" type="java.lang.String">null</Field> <Field name="ColTechno" type="java.lang.String">null</Field> <Field name="DefConnectId" type="java.lang.String">null</Field> <Field name="DefContextCode" type="java.lang.String">null</Field> <Field name="DefIndCommit" type="java.lang.String">null</Field> <Field name="DefIsolLevel" type="java.lang.String">null</Field> <Field name="DefITxt" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="DefLschemaName" type="java.lang.String">null</Field> <Field name="DefPlanComp" type="java.lang.String">null</Field> <Field name="DefTechno" type="java.lang.String">null</Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:42.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="IndErr" type="java.lang.String"><![CDATA[0]]></Field> <Field name="IndLogMethod" type="java.lang.String">null</Field> <Field name="IndLogNb" type="java.lang.String">null</Field> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[42024]]></Field> <Field name="KcmAk" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmCond" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmErrDel" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmJoin" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmNull" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmPk" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KimJrn" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KimJrnPop" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmCreate" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmDrop" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmExtend" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmLock" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmPurge" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmSetInstall" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmSetUninstall" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmSubscribe" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmTableOrder" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmUnlock" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmUnsubscribe" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KlmAfterInt" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KlmJrn" type="java.lang.String"><![CDATA[1]]></Field> <Field name="KxmUsed" type="java.lang.String">null</Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:42.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="LogLevDet" type="java.lang.String"><![CDATA[4]]></Field> <Field name="OrdTrt" type="com.sunopsis.sql.DbInt"><![CDATA[21]]></Field> <Field name="SqlName" type="java.lang.String"><![CDATA[Lock journalized table]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1849024]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[<% if ("C".equals(odiRef.getJrnInfo( "JRN_METHOD"))) { %> /* Consistant journalization detected. */ /* Lock should be set by a specific step in a package - No operation here */ <% } else { %> update <%=odiRef.getTable( "L" , "JRN_NAME" , "A" )%> set JRN_CONSUMED = '1' where (1=1) <%=odiRef.getJrnFilter()%> <% } %>]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[12024]]></Field> <Field name="SqlIndGrp" type="java.lang.String"><![CDATA[2]]></Field> <Field name="IntVersion" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IndChange" type="java.lang.String">null</Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:42.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:42.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="Enc" type="java.lang.String">null</Field> <Field name="EncKey" type="java.lang.String">null</Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpOrigTxt"> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[12024]]></Field> <Field name="OrigineName" type="java.lang.String"><![CDATA[Source Technology]]></Field> <Field name="SnpsCol" type="java.lang.String"><![CDATA[COL_I_TXT]]></Field> <Field name="SnpsTable" type="java.lang.String"><![CDATA[SNP_LINE_TRT]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpLineTrt"> <Field name="AlwaysExe" type="java.lang.String"><![CDATA[1]]></Field> <Field name="ColConnectId" type="java.lang.String">null</Field> <Field name="ColContextCode" type="java.lang.String">null</Field> <Field name="ColIndCommit" type="java.lang.String">null</Field> <Field name="ColIsolLevel" type="java.lang.String">null</Field> <Field name="ColITxt" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="ColLschemaName" type="java.lang.String">null</Field> <Field name="ColPlanComp" type="java.lang.String"><![CDATA[0]]></Field> <Field name="ColTechno" type="java.lang.String">null</Field> <Field name="DefConnectId" type="java.lang.String">null</Field> <Field name="DefContextCode" type="java.lang.String">null</Field> <Field name="DefIndCommit" type="java.lang.String">null</Field> <Field name="DefIsolLevel" type="java.lang.String">null</Field> <Field name="DefITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1850024]]></Field> <Field name="DefLschemaName" type="java.lang.String">null</Field> <Field name="DefPlanComp" type="java.lang.String"><![CDATA[0]]></Field> <Field name="DefTechno" type="java.lang.String">null</Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:42.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="IndErr" type="java.lang.String"><![CDATA[0]]></Field> <Field name="IndLogMethod" type="java.lang.String">null</Field> <Field name="IndLogNb" type="java.lang.String">null</Field> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[42024]]></Field> <Field name="KcmAk" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmCond" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmErrDel" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmJoin" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmNull" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmPk" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KimJrn" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KimJrnPop" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmCreate" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmDrop" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmExtend" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmLock" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmPurge" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmSetInstall" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmSetUninstall" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmSubscribe" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmTableOrder" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmUnlock" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmUnsubscribe" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KlmAfterInt" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KlmJrn" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KxmUsed" type="java.lang.String">null</Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:42.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="LogLevDet" type="java.lang.String"><![CDATA[5]]></Field> <Field name="OrdTrt" type="com.sunopsis.sql.DbInt"><![CDATA[11]]></Field> <Field name="SqlName" type="java.lang.String"><![CDATA[Create work table]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1850024]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[create table <%=odiRef.getTable("L", "COLL_NAME", "W")%> ( <%=odiRef.getColList("", "[CX_COL_NAME]\t[DEST_WRI_DT] " + odiRef.getInfo("DEST_DDL_NULL"), ",\n\t", "","")%> ) ]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[3024]]></Field> <Field name="SqlIndGrp" type="java.lang.String"><![CDATA[2]]></Field> <Field name="IntVersion" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IndChange" type="java.lang.String">null</Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:42.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:42.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="Enc" type="java.lang.String">null</Field> <Field name="EncKey" type="java.lang.String">null</Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpOrigTxt"> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[3024]]></Field> <Field name="OrigineName" type="java.lang.String"><![CDATA[Target Technology]]></Field> <Field name="SnpsCol" type="java.lang.String"><![CDATA[DEF_I_TXT]]></Field> <Field name="SnpsTable" type="java.lang.String"><![CDATA[SNP_LINE_TRT]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpLineTrt"> <Field name="AlwaysExe" type="java.lang.String"><![CDATA[1]]></Field> <Field name="ColConnectId" type="java.lang.String">null</Field> <Field name="ColContextCode" type="java.lang.String">null</Field> <Field name="ColIndCommit" type="java.lang.String">null</Field> <Field name="ColIsolLevel" type="java.lang.String">null</Field> <Field name="ColITxt" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="ColLschemaName" type="java.lang.String">null</Field> <Field name="ColPlanComp" type="java.lang.String"><![CDATA[0]]></Field> <Field name="ColTechno" type="java.lang.String">null</Field> <Field name="DefConnectId" type="java.lang.String">null</Field> <Field name="DefContextCode" type="java.lang.String">null</Field> <Field name="DefIndCommit" type="java.lang.String">null</Field> <Field name="DefIsolLevel" type="java.lang.String">null</Field> <Field name="DefITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1851024]]></Field> <Field name="DefLschemaName" type="java.lang.String">null</Field> <Field name="DefPlanComp" type="java.lang.String"><![CDATA[0]]></Field> <Field name="DefTechno" type="java.lang.String">null</Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:42.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="IndErr" type="java.lang.String"><![CDATA[1]]></Field> <Field name="IndLogMethod" type="java.lang.String">null</Field> <Field name="IndLogNb" type="java.lang.String">null</Field> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[42024]]></Field> <Field name="KcmAk" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmCond" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmErrDel" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmJoin" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmNull" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmPk" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KimJrn" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KimJrnPop" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmCreate" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmDrop" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmExtend" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmLock" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmPurge" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmSetInstall" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmSetUninstall" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmSubscribe" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmTableOrder" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmUnlock" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmUnsubscribe" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KlmAfterInt" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KlmJrn" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KxmUsed" type="java.lang.String">null</Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:42.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="LogLevDet" type="java.lang.String"><![CDATA[5]]></Field> <Field name="OrdTrt" type="com.sunopsis.sql.DbInt"><![CDATA[1]]></Field> <Field name="SqlName" type="java.lang.String"><![CDATA[Drop work table]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1851024]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[drop table <%=odiRef.getTable("L", "COLL_NAME", "W")%>]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[3024]]></Field> <Field name="SqlIndGrp" type="java.lang.String"><![CDATA[2]]></Field> <Field name="IntVersion" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IndChange" type="java.lang.String">null</Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:42.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:42.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="Enc" type="java.lang.String">null</Field> <Field name="EncKey" type="java.lang.String">null</Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpLineTrt"> <Field name="AlwaysExe" type="java.lang.String"><![CDATA[1]]></Field> <Field name="ColConnectId" type="java.lang.String">null</Field> <Field name="ColContextCode" type="java.lang.String">null</Field> <Field name="ColIndCommit" type="java.lang.String">null</Field> <Field name="ColIsolLevel" type="java.lang.String">null</Field> <Field name="ColITxt" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="ColLschemaName" type="java.lang.String">null</Field> <Field name="ColPlanComp" type="java.lang.String">null</Field> <Field name="ColTechno" type="java.lang.String">null</Field> <Field name="DefConnectId" type="java.lang.String">null</Field> <Field name="DefContextCode" type="java.lang.String">null</Field> <Field name="DefIndCommit" type="java.lang.String">null</Field> <Field name="DefIsolLevel" type="java.lang.String">null</Field> <Field name="DefITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1852024]]></Field> <Field name="DefLschemaName" type="java.lang.String">null</Field> <Field name="DefPlanComp" type="java.lang.String">null</Field> <Field name="DefTechno" type="java.lang.String"><![CDATA[JYTHON]]></Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:43.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="IndErr" type="java.lang.String"><![CDATA[0]]></Field> <Field name="IndLogMethod" type="java.lang.String">null</Field> <Field name="IndLogNb" type="java.lang.String">null</Field> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[42024]]></Field> <Field name="KcmAk" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmCond" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmErrDel" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmJoin" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmNull" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmPk" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KimJrn" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KimJrnPop" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmCreate" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmDrop" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmExtend" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmLock" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmPurge" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmSetInstall" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmSetUninstall" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmSubscribe" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmTableOrder" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmUnlock" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmUnsubscribe" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KlmAfterInt" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KlmJrn" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KxmUsed" type="java.lang.String">null</Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:43.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="LogLevDet" type="java.lang.String"><![CDATA[5]]></Field> <Field name="OrdTrt" type="com.sunopsis.sql.DbInt"><![CDATA[51]]></Field> <Field name="SqlName" type="java.lang.String"><![CDATA[Create Jython log access]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1852024]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[import time # 0: nothing to log # 1: any JDBC action will be indicated such as ?elect action?, ?elete action?, ?nsert action? LOG_ACTION = 1 # 2: in addition to level 1, all record that generate an error will be logged LOG_ERROR = 2 # 3: in addition to level 2, all processed record will be logged LOG_ALL = 3 LogStr=["NOTHING", "ACTION", "ERROR", "ALL"] class Log: """Creates a log file and traces information """ def __init__(self, logfilename, loglevel = 0, append=0, printtoscreen=0): self.logfilename = logfilename self.printtoscreen = printtoscreen self.loglevel=loglevel if not append: # Reset the file f = open(logfilename, "w") f.close() def record_time(self, rec, level): if level <= self.loglevel: t = time.localtime() l = '%d-%02d-%02d %02d:%02d:%02d - %s: %s' % (t[0], t[1], t[2], t[3], t[4], t[5], LogStr[level], rec) f = open(self.logfilename, "a+") print >> f, l f.close() if self.printtoscreen: print l def record_raw(self, rec, level): if level <= self.loglevel: l = LogStr[level] + ': ' + rec f = open(self.logfilename, "a+") print >> f, l f.close() if self.printtoscreen: print rec ]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[3024]]></Field> <Field name="SqlIndGrp" type="java.lang.String"><![CDATA[2]]></Field> <Field name="IntVersion" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IndChange" type="java.lang.String">null</Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:43.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:43.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="Enc" type="java.lang.String">null</Field> <Field name="EncKey" type="java.lang.String">null</Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpLineTrt"> <Field name="AlwaysExe" type="java.lang.String"><![CDATA[1]]></Field> <Field name="ColConnectId" type="java.lang.String">null</Field> <Field name="ColContextCode" type="java.lang.String">null</Field> <Field name="ColIndCommit" type="java.lang.String">null</Field> <Field name="ColIsolLevel" type="java.lang.String">null</Field> <Field name="ColITxt" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="ColLschemaName" type="java.lang.String">null</Field> <Field name="ColPlanComp" type="java.lang.String"><![CDATA[0]]></Field> <Field name="ColTechno" type="java.lang.String">null</Field> <Field name="DefConnectId" type="java.lang.String">null</Field> <Field name="DefContextCode" type="java.lang.String">null</Field> <Field name="DefIndCommit" type="java.lang.String">null</Field> <Field name="DefIsolLevel" type="java.lang.String">null</Field> <Field name="DefITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1853024]]></Field> <Field name="DefLschemaName" type="java.lang.String">null</Field> <Field name="DefPlanComp" type="java.lang.String"><![CDATA[0]]></Field> <Field name="DefTechno" type="java.lang.String"><![CDATA[JYTHON]]></Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:44.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="IndErr" type="java.lang.String"><![CDATA[0]]></Field> <Field name="IndLogMethod" type="java.lang.String">null</Field> <Field name="IndLogNb" type="java.lang.String">null</Field> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[42024]]></Field> <Field name="KcmAk" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmCond" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmErrDel" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmJoin" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmNull" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmPk" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KimJrn" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KimJrnPop" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmCreate" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmDrop" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmExtend" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmLock" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmPurge" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmSetInstall" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmSetUninstall" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmSubscribe" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmTableOrder" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmUnlock" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmUnsubscribe" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KlmAfterInt" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KlmJrn" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KxmUsed" type="java.lang.String">null</Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:44.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="LogLevDet" type="java.lang.String"><![CDATA[4]]></Field> <Field name="OrdTrt" type="com.sunopsis.sql.DbInt"><![CDATA[61]]></Field> <Field name="SqlName" type="java.lang.String"><![CDATA[Load data (JYTHON)]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1853024]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[import java.sql as sql import java.lang as lang from time import clock as now # retrieve KM options logFileName = r'<%=odiRef.getOption("LOG_FILE_NAME")%>' logLevel = <%=odiRef.getOption("LOG_LEVEL")%> maxErrors= <%=odiRef.getOption("MAX_ERRORS")%> # set the logger logger = Log(logfilename=logFileName, loglevel=logLevel) try: # Source Connection ConSrc = odiRef.getJDBCConnection( "SRC" ) # Target (Destination) Connection ConTrg = odiRef.getJDBCConnection( "DEST" ) logger.record_time('get metadata information from target', LOG_ACTION) # Statement target + metadata stmtTrg = ConTrg.createStatement() readTrg = stmtTrg.executeQuery("select * from <%=odiRef.getTable("L", "COLL_NAME", "W")%> where 1=2") metaDataTrg = readTrg.getMetaData() colLst = '' typeColTrg='' bindVar ='' for i in range(metaDataTrg.getColumnCount()): colLst = str(colLst) + str(metaDataTrg.getColumnName(i+1)) + ',' typeColTrg = str(typeColTrg)+ str(metaDataTrg.getColumnType(i+1))+',' colLst=colLst[:-1] colLst= '<%=odiRef.getColList("", "[CX_COL_NAME]", ", ", "","")%>' nbCol=colLst.count(',') bindVar=','.join('?'*(nbCol+1)) beginRqteInsert = 'insert into <%=odiRef.getTable("L", "COLL_NAME", "W")%> ('+colLst+') values (' rqteInsert = beginRqteInsert+bindVar+')' psmt = ConTrg.prepareStatement(rqteInsert) # Statement source + metadata readSrc = ConSrc.createStatement() sqlSrc="""select <%=odiRef.getPop("DISTINCT_ROWS")%> <%=odiRef.getColList("", "[EXPRESSION] [ALIAS_SEP] [CX_COL_NAME]", ",", "", "")%> from <%=odiRef.getFrom()%> where (1=1) <%=odiRef.getFilter()%> <%=odiRef.getJrnFilter()%> <%=odiRef.getJoin()%> <%=odiRef.getGrpBy()%> <%=odiRef.getHaving()%>""" readSrc.setFetchSize(100) logger.record_time('Select action on source', LOG_ACTION) logger.record_time(sqlSrc, LOG_ACTION) rqteSrc = readSrc.executeQuery(sqlSrc) metaDataSrc = rqteSrc.getMetaData() # Set statement nb = None record = '' nbLine = 0 nbErrors = 0 psmt.clearBatch() deb=now() while rqteSrc.next(): resLine='' record='' for nb in range (i+1): colType=metaDataSrc.getColumnType(nb+1) if colType == sql.Types.VARCHAR: #Code 12 resline=rqteSrc.getString(nb+1) psmt.setString(nb+1,resline) elif colType == sql.Types.CHAR: #Code 1 resline=rqteSrc.getString(nb+1) psmt.setString(nb+1,resline) elif colType == sql.Types.INTEGER: #Code 4 resline=rqteSrc.getInt(nb+1) psmt.setInt(nb+1,resline) elif colType == sql.Types.NUMERIC: #Code 2 resline=rqteSrc.getBigDecimal(nb+1) psmt.setBigDecimal(nb+1,resline) elif colType == sql.Types.DECIMAL: #Code 3 resline=rqteSrc.getBigDecimal(nb+1) psmt.setBigDecimal(nb+1,resline) elif colType == sql.Types.DATE: #Code 91 resline=rqteSrc.getDate(nb+1) psmt.setDate(nb+1,resline) elif colType == sql.Types.TIME: #Code 92 resline=rqteSrc.getTime(nb+1) psmt.setTime(nb+1,resline) elif colType == sql.Types.TIMESTAMP: #Code 93 resline=rqteSrc.getTimestamp(nb+1) psmt.setTimestamp(nb+1,resline) elif colType == sql.Types.BIGINT: #Code -5 resline=rqteSrc.getLong(nb+1) psmt.setLong(nb+1,resline) elif colType == sql.Types.BINARY: #Code -2 resline=rqteSrc.getBytes(nb+1) psmt.setBytes(nb+1,resline) elif colType == sql.Types.BIT: #Code -7 resline=rqteSrc.getBoolean(nb+1) psmt.setBoolean(nb+1,resline) elif colType == sql.Types.DOUBLE: #Code 8 resline=rqteSrc.getDouble(nb+1) psmt.setDouble(nb+1,resline) elif colType == sql.Types.LONGVARBINARY: #Code -4 resline=rqteSrc.getBytes(nb+1) psmt.setBytes(nb+1,resline) elif colType == sql.Types.LONGVARCHAR: #Code -1 resline= rqteSrc.getString(nb+1) psmt.setString(nb+1,resline) elif colType == sql.Types.OTHER: #Code 1111 resline=rqteSrc.getObject(nb+1) psmt.setObject(nb+1,resline) elif colType == sql.Types.REAL: #Code 7 resline=rqteSrc.getFloat(nb+1) psmt.setFloat(nb+1,resline) elif colType == sql.Types.SMALLINT: #Code 5 resline=rqteSrc.getShort(nb+1) psmt.setShort(nb+1,resline) elif colType == sql.Types.TINYINT: #Code -6 resline=rqteSrc.getByte(nb+1) psmt.setByte(nb+1,resline) elif colType == sql.Types.VARBINARY: #Code -3 resline=rqteSrc.getBytes(nb+1) psmt.setBytes(nb+1,resline) record=record+str(resline)+', ' resline = '' try: logger.record_raw(str(nbLine) +' : ' + beginRqteInsert+' '+record[:-2]+' )' , LOG_ALL) psmt.executeUpdate() except: logger.record_raw(str(nbLine) +' : ' + beginRqteInsert+' '+record[:-2]+' )' , LOG_ERROR) nbErrors+=1 if nbErrors >= maxErrors: raise "Too much errors in the Load step", "The error limit has been reached. A maximum of "+str(maxErrors)+" errors was allowed." nbLine=nbLine+1 finally: print 'OK']]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[3024]]></Field> <Field name="SqlIndGrp" type="java.lang.String"><![CDATA[2]]></Field> <Field name="IntVersion" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IndChange" type="java.lang.String">null</Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:44.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:44.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="Enc" type="java.lang.String">null</Field> <Field name="EncKey" type="java.lang.String">null</Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpLineTrt"> <Field name="AlwaysExe" type="java.lang.String"><![CDATA[1]]></Field> <Field name="ColConnectId" type="java.lang.String">null</Field> <Field name="ColContextCode" type="java.lang.String">null</Field> <Field name="ColIndCommit" type="java.lang.String">null</Field> <Field name="ColIsolLevel" type="java.lang.String">null</Field> <Field name="ColITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1854024]]></Field> <Field name="ColLschemaName" type="java.lang.String">null</Field> <Field name="ColPlanComp" type="java.lang.String">null</Field> <Field name="ColTechno" type="java.lang.String">null</Field> <Field name="DefConnectId" type="java.lang.String">null</Field> <Field name="DefContextCode" type="java.lang.String">null</Field> <Field name="DefIndCommit" type="java.lang.String">null</Field> <Field name="DefIsolLevel" type="java.lang.String">null</Field> <Field name="DefITxt" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="DefLschemaName" type="java.lang.String">null</Field> <Field name="DefPlanComp" type="java.lang.String">null</Field> <Field name="DefTechno" type="java.lang.String">null</Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:44.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="IndErr" type="java.lang.String"><![CDATA[0]]></Field> <Field name="IndLogMethod" type="java.lang.String">null</Field> <Field name="IndLogNb" type="java.lang.String">null</Field> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[42024]]></Field> <Field name="KcmAk" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmCond" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmErrDel" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmJoin" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmNull" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmPk" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KimJrn" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KimJrnPop" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmCreate" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmDrop" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmExtend" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmLock" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmPurge" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmSetInstall" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmSetUninstall" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmSubscribe" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmTableOrder" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmUnlock" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmUnsubscribe" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KlmAfterInt" type="java.lang.String"><![CDATA[1]]></Field> <Field name="KlmJrn" type="java.lang.String"><![CDATA[1]]></Field> <Field name="KxmUsed" type="java.lang.String">null</Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:44.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="LogLevDet" type="java.lang.String"><![CDATA[4]]></Field> <Field name="OrdTrt" type="com.sunopsis.sql.DbInt"><![CDATA[71]]></Field> <Field name="SqlName" type="java.lang.String"><![CDATA[Cleanup journalized table]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1854024]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[<% if ("C".equals(odiRef.getJrnInfo( "JRN_METHOD"))) { %> /* Consistant journalization detected. */ /* Lock should be set by a specific step in a package. No operation here */ <% } else { %> delete from <%=odiRef.getTable("L","JRN_NAME","A")%> where JRN_CONSUMED = '1' <%=odiRef.getJrnFilter()%> <% } %>]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[12024]]></Field> <Field name="SqlIndGrp" type="java.lang.String"><![CDATA[2]]></Field> <Field name="IntVersion" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IndChange" type="java.lang.String">null</Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:44.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:44.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="Enc" type="java.lang.String">null</Field> <Field name="EncKey" type="java.lang.String">null</Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpLineTrt"> <Field name="AlwaysExe" type="java.lang.String"><![CDATA[0]]></Field> <Field name="ColConnectId" type="java.lang.String">null</Field> <Field name="ColContextCode" type="java.lang.String">null</Field> <Field name="ColIndCommit" type="java.lang.String">null</Field> <Field name="ColIsolLevel" type="java.lang.String">null</Field> <Field name="ColITxt" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="ColLschemaName" type="java.lang.String">null</Field> <Field name="ColPlanComp" type="java.lang.String"><![CDATA[0]]></Field> <Field name="ColTechno" type="java.lang.String">null</Field> <Field name="DefConnectId" type="java.lang.String">null</Field> <Field name="DefContextCode" type="java.lang.String">null</Field> <Field name="DefIndCommit" type="java.lang.String">null</Field> <Field name="DefIsolLevel" type="java.lang.String">null</Field> <Field name="DefITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1855024]]></Field> <Field name="DefLschemaName" type="java.lang.String">null</Field> <Field name="DefPlanComp" type="java.lang.String"><![CDATA[0]]></Field> <Field name="DefTechno" type="java.lang.String">null</Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:44.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="IndErr" type="java.lang.String"><![CDATA[1]]></Field> <Field name="IndLogMethod" type="java.lang.String">null</Field> <Field name="IndLogNb" type="java.lang.String">null</Field> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[42024]]></Field> <Field name="KcmAk" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmCond" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmErrDel" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmJoin" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmNull" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KcmPk" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KimJrn" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KimJrnPop" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmCreate" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmDrop" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmExtend" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmLock" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmPurge" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmSetInstall" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmSetUninstall" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmSubscribe" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmTableOrder" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmUnlock" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KjmUnsubscribe" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KlmAfterInt" type="java.lang.String"><![CDATA[1]]></Field> <Field name="KlmJrn" type="java.lang.String"><![CDATA[0]]></Field> <Field name="KxmUsed" type="java.lang.String">null</Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:44.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="LogLevDet" type="java.lang.String"><![CDATA[5]]></Field> <Field name="OrdTrt" type="com.sunopsis.sql.DbInt"><![CDATA[81]]></Field> <Field name="SqlName" type="java.lang.String"><![CDATA[Drop work table]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1855024]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[drop table <%=odiRef.getTable("L", "COLL_NAME", "W")%>]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[3024]]></Field> <Field name="SqlIndGrp" type="java.lang.String"><![CDATA[2]]></Field> <Field name="IntVersion" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IndChange" type="java.lang.String">null</Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:44.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-07-17 11:22:44.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[TCHANTIE]]></Field> <Field name="Enc" type="java.lang.String">null</Field> <Field name="EncKey" type="java.lang.String">null</Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpLineTrtUe"> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[42024]]></Field> <Field name="IUserExit" type="com.sunopsis.sql.DbInt"><![CDATA[142024]]></Field> <Field name="OrdTrt" type="com.sunopsis.sql.DbInt"><![CDATA[81]]></Field> </Object> <Object class="com.sunopsis.dwg.DwgExportSummary"> <Field name="ExpTxtNb" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="InstObjNb" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="JoinColNb" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="JoinNb" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="KeyColNb" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="KeyNb" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="LinkDiagNb" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="MorigTxtNb" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="MtxtNb" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="OrigTxtNb" type="com.sunopsis.sql.DbInt"><![CDATA[4]]></Field> <Field name="OtherObjectsNb" type="com.sunopsis.sql.DbInt"><![CDATA[13]]></Field> <Field name="PlanAgentNb" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="StepNb" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="TxtNb" type="com.sunopsis.sql.DbInt"><![CDATA[12]]></Field> <Field name="UeOrigNb" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="UeUsedNb" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="VarPlanAgentNb" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="ScenTxtNb" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="OriginRepositoryID" type="com.sunopsis.sql.DbInt"><![CDATA[24]]></Field> </Object> </SunopsisExport>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de