Edit D:\app\Administrator\product\11.2.0\dbhome_1\owb\misc\CodeTemplates\KM_LKM File to Oracle (EXTERNAL TABLE).xml
<?xml version="1.0" encoding="ISO-8859-1"?> <SunopsisExport> <Object class="com.sunopsis.dwg.dbobj.SnpTrt"> <Field name="ExtVersion" type="java.lang.String"><![CDATA[10.1.3.3]]></Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2006-12-19 18:01:33.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[SUPERVISOR]]></Field> <Field name="IndChange" type="java.lang.String">null</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[1000]]></Field> <Field name="IState" type="com.sunopsis.sql.DbInt"><![CDATA[17003]]></Field> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[67000]]></Field> <Field name="ITxtTrtTxt" type="com.sunopsis.sql.DbInt"><![CDATA[1930000]]></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"><![CDATA[FILE]]></Field> <Field name="KmTechno" type="java.lang.String"><![CDATA[ORACLE]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LChecksum" type="com.sunopsis.sql.DbInt"><![CDATA[4669]]></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 File to Oracle (EXTERNAL TABLE)]]></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[1930000]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[COMPONENT NAME: LKM File to Oracle (EXTERNAL TABLE) COMPONENT VERSION: 10.1.3.3 AUTHOR: Oracle COMPATIBILITY: ODI 10.1.3.5.0 and above DESCRIPTION This LKM loads flat file data into Oracle by using Oracle external tables. Depending on column data types, data formats and KM options chosen, the KM may need to create a view on top of the external table to perform format conversions e.g. for dates. REQUIREMENTS Source file must be accessible by Oracle instance. All mappings need to be executed on staging. For delimited files, all source fields need to be mapped. Date and Timestamp formats should be specified on source columns in the ODI COL_FORMAT field, if they do not match default database NLS settings. Please refer to Java Help for details on format syntax, e.g. "dd-MM-yyyy HH:mm:ss" for Timestamp. Following date and timestamp format translations are supported: Java Oracle Note "y", "Y" // Year, supported: yyyy;yy => 1996;96 "MMMM(M)*" "MONTH" // Month, supported: MMMM => July "MMM" "MON" // Month, supported: MMM => JUL "M" "M" // Month, supported: MM;M => 07;7 "W" "W" // Week in month "w" "WW" // Week in year "DDD" "DDD" // Day in year "dd" "DD" // Day in month "a" "AM" // Am/pm marker "HH" "HH24" // Hour in day (0-23) "KK" "HH12" // Hour in day (0-11) "mm" "MI" // Minute in hour "SSSSSS" "FF6" // Millisecond in second "SSSSS" "FF5" // Millisecond in second "SSSS" "FF4" // Millisecond in second "SSS" "FF3" // Millisecond in second "SS" "FF2" // Millisecond in second "S" "FF1" // Millisecond in second "ss" "SS" // Second in minute "Z" "TZH:TZM" // Timezone, supported: Z => +02:00 BASIC CONFIGURATION 1. Specify the logical format for NUMERIC and DATE columns, if the format does not match database nls settings. 2. Set NLS_DATE_LANGUAGE, if your dates contain language specific elements such as month names and the database language does not match these. Note: select * from nls_database_parameters returns nls settings of database. 3. Set NLS_NUMERIC_CHARACTERS, if your file number format does not match the database default settings. OPTIONS (Refer to Option descriptions for more information on each option) - DELETE_TEMPORARY_OBJECTS: Delete temp objects after integration phase - EXT_MISSING_FIELD: Empty Fields are set to NULL - EXT_CHARACTERSET: Character set used for loading - EXT_STRING_SIZE: Length for character strings in byte - EXT_REJECT_LIMIT: Max number of errors for Loader - EXT_PARALLEL: Load using the parallel option - VALIDATE: Validate use of the KM - NLS_DATE_LANGUAGE: Language of date/timestamp elements - NLS_NUMERIC_CHARACTERS: Override database NLS_NUMERIC_CHARACTERS setting LIMITATIONS Only file technology data types NUMERIC, DATE (including TIMESTAMP) and CHAR are supported. For Timestamps with time zones TZ will be truncated. For loading TS with TZ, please specify source column as STRING and apply the appropriate String to TS with TZ transformation, e.g. TO_TIMESTAMP_TZ(ALIAS.COL, 'YYYY-MM-DD HH24:MI:SS TZH:TZM')]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[1000]]></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-10-24 15:21:50.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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[1000]]></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">null</Field> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[67000]]></Field> <Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt"><![CDATA[1931000]]></Field> <Field name="ITxtValue" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IUserExit" type="com.sunopsis.sql.DbInt"><![CDATA[410000]]></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[1931000]]></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 to retain temporary objects (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[2000]]></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-10-24 15:21:50.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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[2000]]></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">null</Field> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[67000]]></Field> <Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt"><![CDATA[1935000]]></Field> <Field name="ITxtValue" type="com.sunopsis.sql.DbInt"><![CDATA[1934000]]></Field> <Field name="IUserExit" type="com.sunopsis.sql.DbInt"><![CDATA[412000]]></Field> <Field name="Position" type="com.sunopsis.sql.DbInt"><![CDATA[80]]></Field> <Field name="ShortValue" type="java.lang.String"><![CDATA[MISSING FIELD VALUES ARE NULL]]></Field> <Field name="UeName" type="java.lang.String"><![CDATA[EXT_MISSING_FIELD]]></Field> <Field name="UeSdesc" type="java.lang.String"><![CDATA[Empty Fields are set to NULL ]]></Field> <Field name="UeType" type="java.lang.String"><![CDATA[T]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1934000]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[MISSING FIELD VALUES ARE NULL ]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[4000]]></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-10-24 15:21:50.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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[4000]]></Field> <Field name="OrigineName" type="java.lang.String"><![CDATA[Text value]]></Field> <Field name="SnpsCol" type="java.lang.String"><![CDATA[I_TXT_VALUE]]></Field> <Field name="SnpsTable" type="java.lang.String"><![CDATA[SNP_USER_EXIT]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1935000]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA['Missing field values are null' indicates that fields are set to NULL, if fields have not been filled with values.]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[2000]]></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-10-24 15:21:50.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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">null</Field> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[67000]]></Field> <Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt"><![CDATA[1937000]]></Field> <Field name="ITxtValue" type="com.sunopsis.sql.DbInt"><![CDATA[1936000]]></Field> <Field name="IUserExit" type="com.sunopsis.sql.DbInt"><![CDATA[413000]]></Field> <Field name="Position" type="com.sunopsis.sql.DbInt"><![CDATA[90]]></Field> <Field name="ShortValue" type="java.lang.String"><![CDATA[CHARACTERSET 'WE8ISO8859P1']]></Field> <Field name="UeName" type="java.lang.String"><![CDATA[EXT_CHARACTERSET]]></Field> <Field name="UeSdesc" type="java.lang.String"><![CDATA[Character set used for loading]]></Field> <Field name="UeType" type="java.lang.String"><![CDATA[T]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1936000]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[CHARACTERSET 'WE8ISO8859P1']]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[4000]]></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-10-24 15:21:50.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1937000]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[Load using the character set option. Examples: CHARACTERSET 'WE8ISO8859P1' CHARACTERSET 'WE8EBCDIC500']]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[2000]]></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-10-24 15:21:50.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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">null</Field> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[67000]]></Field> <Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt"><![CDATA[1939000]]></Field> <Field name="ITxtValue" type="com.sunopsis.sql.DbInt"><![CDATA[1938000]]></Field> <Field name="IUserExit" type="com.sunopsis.sql.DbInt"><![CDATA[414000]]></Field> <Field name="Position" type="com.sunopsis.sql.DbInt"><![CDATA[100]]></Field> <Field name="ShortValue" type="java.lang.String"><![CDATA[STRING SIZES ARE IN CHARACTERS]]></Field> <Field name="UeName" type="java.lang.String"><![CDATA[EXT_STRING_SIZE]]></Field> <Field name="UeSdesc" type="java.lang.String"><![CDATA[Length for character strings in byt]]></Field> <Field name="UeType" type="java.lang.String"><![CDATA[T]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1938000]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[STRING SIZES ARE IN CHARACTERS]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[4000]]></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-10-24 15:21:50.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1939000]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[The STRING SIZES ARE IN clause is used to indicate whether the lengths specified for character strings are in bytes or characters. Examples:: STRING SIZES ARE IN CHARACTERS STRING SIZES ARE IN 2 BYTES ]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[2000]]></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-10-24 15:21:50.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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">null</Field> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[67000]]></Field> <Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt"><![CDATA[1940000]]></Field> <Field name="ITxtValue" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IUserExit" type="com.sunopsis.sql.DbInt"><![CDATA[415000]]></Field> <Field name="Position" type="com.sunopsis.sql.DbInt"><![CDATA[110]]></Field> <Field name="ShortValue" type="java.lang.String"><![CDATA[UNLIMITED]]></Field> <Field name="UeName" type="java.lang.String"><![CDATA[EXT_REJECT_LIMIT]]></Field> <Field name="UeSdesc" type="java.lang.String"><![CDATA[Max number of errors for Loader]]></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[1940000]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[Enter the maximum number of errors allowed in the file. Examples: UNLIMITED to except all errors. Integer value (10 to allow 10 rejections)]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[2000]]></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-10-24 15:21:50.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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">null</Field> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[67000]]></Field> <Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt"><![CDATA[1942000]]></Field> <Field name="ITxtValue" type="com.sunopsis.sql.DbInt"><![CDATA[1941000]]></Field> <Field name="IUserExit" type="com.sunopsis.sql.DbInt"><![CDATA[416000]]></Field> <Field name="Position" type="com.sunopsis.sql.DbInt"><![CDATA[120]]></Field> <Field name="ShortValue" type="java.lang.String"><![CDATA[PARALLEL]]></Field> <Field name="UeName" type="java.lang.String"><![CDATA[EXT_PARALLEL]]></Field> <Field name="UeSdesc" type="java.lang.String"><![CDATA[Load using the parallel option ]]></Field> <Field name="UeType" type="java.lang.String"><![CDATA[T]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1941000]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[PARALLEL]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[4000]]></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-10-24 15:21:50.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1942000]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[Set this value to PARALLEL to use the Oracle parallel load (faster).]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[2000]]></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-10-24 15:21:50.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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">null</Field> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[67000]]></Field> <Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt"><![CDATA[6871000]]></Field> <Field name="ITxtValue" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IUserExit" type="com.sunopsis.sql.DbInt"><![CDATA[1491000]]></Field> <Field name="Position" type="com.sunopsis.sql.DbInt"><![CDATA[210]]></Field> <Field name="ShortValue" type="java.lang.String"><![CDATA[0]]></Field> <Field name="UeName" type="java.lang.String"><![CDATA[VALIDATE]]></Field> <Field name="UeSdesc" type="java.lang.String"><![CDATA[Validate use of KM]]></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[6871000]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[This option generates an extra validation step during development. Validations performed are: - Test of mapping location. (Mappings need to be executed on staging) This option should be turned off for all production use in particular for high-frequency execution. There is not added value in production, only processing overhead.]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[2000]]></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-10-24 15:21:50.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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">null</Field> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[67000]]></Field> <Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt"><![CDATA[31793000]]></Field> <Field name="ITxtValue" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IUserExit" type="com.sunopsis.sql.DbInt"><![CDATA[1899000]]></Field> <Field name="Position" type="com.sunopsis.sql.DbInt"><![CDATA[300]]></Field> <Field name="ShortValue" type="java.lang.String">null</Field> <Field name="UeName" type="java.lang.String"><![CDATA[NLS_DATE_LANGUAGE]]></Field> <Field name="UeSdesc" type="java.lang.String"><![CDATA[Language of date/timestamp elements]]></Field> <Field name="UeType" type="java.lang.String"><![CDATA[T]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[31793000]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[When loading timestamp data containing language specific elements such as the name of a month, this options specifies the language. Valid values are e.g. ENGLISH, FRENCH. If left blank, the default client setting of executing agent process is used. Please refer to Oracle Database Globalization Support Guide National Language Support Guide, Appendix A Locale Data, Languages for more details.]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[2000]]></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-10-24 15:21:50.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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">null</Field> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[67000]]></Field> <Field name="ITxtUeHelp" type="com.sunopsis.sql.DbInt"><![CDATA[31794000]]></Field> <Field name="ITxtValue" type="com.sunopsis.sql.DbInt"><![CDATA[null]]></Field> <Field name="IUserExit" type="com.sunopsis.sql.DbInt"><![CDATA[1900000]]></Field> <Field name="Position" type="com.sunopsis.sql.DbInt"><![CDATA[310]]></Field> <Field name="ShortValue" type="java.lang.String">null</Field> <Field name="UeName" type="java.lang.String"><![CDATA[NLS_NUMERIC_CHARACTERS]]></Field> <Field name="UeSdesc" type="java.lang.String"><![CDATA[NLS_NUMERIC_CHARACTERS]]></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[31794000]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[If set to blank, NLS_NUMERIC_CHARACTERS setting of database defines decimal separator for loading numeric values using external tables. Otherwise the NLS_NUMERIC_CHARACTERS defined here are used for loading numeric values. This option is a two-character string. The first character defines the decimal separator and the second character defines the grouping character. Note: Setting NLS_NUMERIC_CHARACTERS to anything else then the default, results in an additional view layer with appropriate SQL expressions.]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[2000]]></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-10-24 15:21:50.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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"><![CDATA[FILE]]></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[33436000]]></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[ORACLE]]></Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></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[67000]]></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-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LogLevDet" type="java.lang.String"><![CDATA[5]]></Field> <Field name="OrdTrt" type="com.sunopsis.sql.DbInt"><![CDATA[201]]></Field> <Field name="SqlName" type="java.lang.String"><![CDATA[Create Oracle directory]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[33436000]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[create or replace directory dat_dir AS '<%=odiRef.getSrcTablesList("", "[SCHEMA]", "", "")%>']]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[3000]]></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-10-24 15:21:50.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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[3000]]></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"><![CDATA[FILE]]></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[33437000]]></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[ORACLE]]></Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></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[67000]]></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-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LogLevDet" type="java.lang.String"><![CDATA[5]]></Field> <Field name="OrdTrt" type="com.sunopsis.sql.DbInt"><![CDATA[241]]></Field> <Field name="SqlName" type="java.lang.String"><![CDATA[Drop work view]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[33437000]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[<? // We need to recalculate the need of a view, in case we had more than one file source sets using this very KM. // Calculate, whether we need a view on top of external table extTabColFormat.setUseView( false ); ?><%=odiRef.getColList("", "<? if (extTabColFormat.requiresView(\u0022[SOURCE_DT]\u0022,\u0022[COL_FORMAT]\u0022)) { "+ "extTabColFormat.setUseView( true ); "+ "}; ?>", "", "", "") %><? // Do we need a view on top of external table? if (extTabColFormat.getUseView()) { ?> drop view <%=odiRef.getTable("L", "COLL_NAME", "W")%> <?} else {?> -- No view required <?};?>]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[3000]]></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-10-24 15:21:50.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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[33438000]]></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[ORACLE]]></Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></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[67000]]></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-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LogLevDet" type="java.lang.String"><![CDATA[5]]></Field> <Field name="OrdTrt" type="com.sunopsis.sql.DbInt"><![CDATA[251]]></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[33438000]]></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")%><?=(extTabColFormat.getUseView())?"_ET":""?>]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[3000]]></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-10-24 15:21:50.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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"><![CDATA[FILE]]></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[33439000]]></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[ORACLE]]></Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></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[67000]]></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-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LogLevDet" type="java.lang.String"><![CDATA[5]]></Field> <Field name="OrdTrt" type="com.sunopsis.sql.DbInt"><![CDATA[211]]></Field> <Field name="SqlName" type="java.lang.String"><![CDATA[Grant dir access to work schema]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[33439000]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[<? // Do we need a view on top of external table? if (extTabColFormat.getUseView()) { ?> grant read on directory dat_dir to <%=odiRef.getInfo("DEST_WORK_SCHEMA")%> <?};?>]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[3000]]></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-10-24 15:21:50.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:50.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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"><![CDATA[FILE]]></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[33440000]]></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-10-24 15:21:51.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></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[67000]]></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-10-24 15:21:51.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LogLevDet" type="java.lang.String"><![CDATA[5]]></Field> <Field name="OrdTrt" type="com.sunopsis.sql.DbInt"><![CDATA[221]]></Field> <Field name="SqlName" type="java.lang.String"><![CDATA[Create external table]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[33440000]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[createTblCmd = r""" create table <%=odiRef.getTable("L", "COLL_NAME", "W")%><?=(extTabColFormat.getUseView())?"_ET":""?> ( <%=odiRef.getColList("", "[CX_COL_NAME]\t"+ "<?=extTabColFormat.getExtTabDataType(\u0022[CX_COL_NAME]\u0022,\u0022[SOURCE_DT]\u0022, \u0022[DEST_WRI_DT]\u0022, \u0022[COL_FORMAT]\u0022, \u0022[BYTES]\u0022, \u0022[LONGC]\u0022, \u0022[SCALE]\u0022)?>" , ",\n\t", "","")%> ) ORGANIZATION EXTERNAL ( TYPE ORACLE_LOADER DEFAULT DIRECTORY dat_dir ACCESS PARAMETERS ( RECORDS DELIMITED BY 0x'<%=odiRef.getSrcTablesList("[FILE_SEP_ROW]","")%>' <%=odiRef.getUserExit("EXT_CHARACTERSET")%> <%=odiRef.getUserExit("EXT_STRING_SIZE")%> BADFILE '<%=odiRef.getSrcTablesList("", "[RES_NAME]", "", "")%>_%a.bad' LOGFILE '<%=odiRef.getSrcTablesList("", "[RES_NAME]", "", "")%>_%a.log' DISCARDFILE '<%=odiRef.getSrcTablesList("", "[RES_NAME]", "", "")%>_%a.dsc' SKIP <%=odiRef.getSrcTablesList("", "[FILE_FIRST_ROW]", "", "")%> <% if (odiRef.getSrcTablesList("", "[FILE_FORMAT]", "", "").equals("F")) {%> FIELDS <%=odiRef.getUserExit("EXT_MISSING_FIELD")%> ( <%=odiRef.getColList("", "[CX_COL_NAME]\tPOSITION([FILE_POS]:[FILE_END_POS])\t"+ "<?=extTabColFormat.getExtTabFormat(\u0022[CX_COL_NAME]\u0022,\u0022[SOURCE_DT]\u0022, \u0022DEST_WRI_DT\u0022, \u0022[COL_FORMAT]\u0022, \u0022[BYTES]\u0022, \u0022[LONGC]\u0022, \u0022[SCALE]\u0022)?>" , ",\n\t\t\t", "","")%> ) ) <%} else {%> FIELDS TERMINATED BY '<%=odiRef.getSrcTablesList("", "[SFILE_SEP_FIELD]", "", "")%>' <% if(odiRef.getSrcTablesList("", "[FILE_ENC_FIELD]", "", "").equals("")){%> <%} else {%>OPTIONALLY ENCLOSED BY '<%=odiRef.getSrcTablesList("", "[FILE_ENC_FIELD]", "", "").substring(0,1)%>' AND '<%=odiRef.getSrcTablesList("", "[FILE_ENC_FIELD]", "", "").substring(1,2)%>' <%}%> <%=odiRef.getUserExit("EXT_MISSING_FIELD")%> ( <%=odiRef.getColList("", "[CX_COL_NAME]\t"+ "<?=extTabColFormat.getExtTabFormat(\u0022[CX_COL_NAME]\u0022,\u0022[SOURCE_DT]\u0022, \u0022DEST_WRI_DT\u0022, \u0022[COL_FORMAT]\u0022, \u0022[BYTES]\u0022, \u0022[LONGC]\u0022, \u0022[SCALE]\u0022)?>" , ",\n\t\t\t", "","")%> ) ) <%}%> LOCATION (<%=odiRef.getSrcTablesList("", "'[RES_NAME]'", "", "")%>) ) <%=odiRef.getUserExit("EXT_PARALLEL")%> REJECT LIMIT <%=odiRef.getUserExit("EXT_REJECT_LIMIT")%> """ # Create the statement myStmt = myCon.createStatement() # Execute the trigger creation myStmt.execute(createTblCmd) myStmt.close() myStmt = None # Commit, just in case myCon.commit()]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[3000]]></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-10-24 15:21:51.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:51.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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[33441000]]></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[ORACLE]]></Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:51.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></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[67000]]></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-10-24 15:21:51.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LogLevDet" type="java.lang.String"><![CDATA[5]]></Field> <Field name="OrdTrt" type="com.sunopsis.sql.DbInt"><![CDATA[191]]></Field> <Field name="SqlName" type="java.lang.String"><![CDATA[Drop work view]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[33441000]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[drop view <%=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[3000]]></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-10-24 15:21:51.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:51.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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"><![CDATA[FILE]]></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[33442000]]></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[ORACLE]]></Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:51.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></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[67000]]></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-10-24 15:21:51.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LogLevDet" type="java.lang.String"><![CDATA[5]]></Field> <Field name="OrdTrt" type="com.sunopsis.sql.DbInt"><![CDATA[231]]></Field> <Field name="SqlName" type="java.lang.String"><![CDATA[Create work view]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[33442000]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[<? // Do we need a view on top of external table? if (extTabColFormat.getUseView()) { ?> create or replace view <%=odiRef.getTable("L", "COLL_NAME", "W")%> as select <%=odiRef.getColList("", "<?=extTabColFormat.getViewExpression("+ "\u0022[CX_COL_NAME]\u0022,"+ "\u0022[SOURCE_DT]\u0022,"+ "\u0022[DEST_WRI_DT]\u0022,"+ "\u0022[COL_FORMAT]\u0022, "+ "\u0022[BYTES]\u0022, "+ "\u0022[LONGC]\u0022, "+ "\u0022[SCALE]\u0022 ) "+ "?>\t[CX_COL_NAME]" , ",\n\t", "","")%> from <%=odiRef.getTable("L", "COLL_NAME", "W")%>_ET <?} else {?> -- No view required <?};?>]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[3000]]></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-10-24 15:21:51.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:51.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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">null</Field> <Field name="ColTechno" type="java.lang.String"><![CDATA[FILE]]></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[33443000]]></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-10-24 15:21:51.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></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[67000]]></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-10-24 15:21:51.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LogLevDet" type="java.lang.String"><![CDATA[3]]></Field> <Field name="OrdTrt" type="com.sunopsis.sql.DbInt"><![CDATA[1]]></Field> <Field name="SqlName" type="java.lang.String"><![CDATA[Validate mapping location]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[33443000]]></Field> <Field name="TxtOrd" type="com.sunopsis.sql.DbInt"><![CDATA[0]]></Field> <Field name="Txt" type="java.lang.String"><![CDATA[<? int ODIKM_errorsFound = 0; /***********************************************/ /* For fixed length files: Check mappings done on staging */ /***********************************************/ int ODIKM_filePosMissing=0; ?><%=odiRef.getColList("", "<? if (\u0022[FILE_POS]\u0022.length()==0) {ODIKM_filePosMissing=1;}; ?>", "", "", "") %><? /* for fixed length file: any mapping done on source? */ if (ODIKM_filePosMissing==1 && "<%=odiRef.getSrcTablesList("", "[FILE_FORMAT]", ", ", "")%>".equals("F") ) { out.print( "raise '\nMapping NOT allowed on source!' "); ODIKM_errorsFound++; }; /**********************************************/ /* For delimited files: Check that source columns starting from the first one are mapped. No gaps allowed. Mapping on staging */ /**********************************************/ int ODIKM_colCounter=1; int ODIKM_invalidMapping=0; <%=odiRef.getColList("", "if (ODIKM_colCounter!=[POS]) { ODIKM_invalidMapping = 1; };\n", "ODIKM_colCounter++;\n", "", "")%> if (ODIKM_invalidMapping==1 && "D".equals("D") ) { out.print( "raise '\nFor delimited files all source columns between the first in file and the last mapped, need to be mapped on staging! No gaps allowed.' " ); ODIKM_errorsFound++; }; /* In case no errors were found, display message in log */ if (ODIKM_errorsFound==0) { out.print( "# No errors detected" ); }; ?>]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[3000]]></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-10-24 15:21:51.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:51.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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"><![CDATA[FILE]]></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[33444000]]></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-10-24 15:21:51.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></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[67000]]></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-10-24 15:21:51.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LogLevDet" type="java.lang.String"><![CDATA[3]]></Field> <Field name="OrdTrt" type="com.sunopsis.sql.DbInt"><![CDATA[131]]></Field> <Field name="SqlName" type="java.lang.String"><![CDATA[Initialize environment]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpTxt"> <Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[33444000]]></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 # Connect to the Source Database ie the one that hosts the journalized tables myCon = odiRef.getJDBCConnection("DEST") <? // Code for handling data type formats package com.oracle.odi.km.ext; public class FormatTranslator { // Java Date Formatting information available at http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html // Oracle Date Formatting information available in Oracle SQL Language Reference: Chapter "Basic Elements fo Oracle SQL": DateTime Format Elements static String[][] transTableDate = { {"y", "Y"}, // Year, supported: yyyy;yy => 1996;96 {"MMMM(M)*", "month"}, // Month, supported: MMMM => July {"MMM", "mon"}, // Month, supported: MMM => JUL {"M", "M"}, // Month, supported: MM;M => 07;7 {"month", "MONTH"}, // (auxiliary) {"mon", "MON"}, // (auxiliary) {"W", "W"}, // Week in month {"w", "WW"}, // Week in year {"DDD", "DDD"}, // Day in year {"dd", "DD"}, // Day in month {"a", "AM"}, // Am/pm marker {"HH", "HH24"}, // Hour in day (0-23) {"KK", "HH12"}, // Hour in day (0-11) {"mm", "MI"}, // Minute in hour {"SSSSSS", "FF6"}, // Millisecond in second {"SSSSS", "FF5"}, // Millisecond in second {"SSSS", "FF4"}, // Millisecond in second {"SSS", "FF3"}, // Millisecond in second {"SS", "FF2"}, // Millisecond in second {"S", "FF1"}, // Millisecond in second {"ss", "SS"}, // Second in minute {"Z", "TZH:TZM"} // Timezone, supported: Z => +02:00 }; public static String translate(String srcDT, String colFormat) throws Exception { String format = ""; if (colFormat.trim().length()==0) /* we use Oracle's default format */ format = ""; else { // Is source column a date? if ( srcDT.toUpperCase().equals( "DATE") ) { format = colFormat; for (int i = 0; i < transTableDate.length; i++) format = format.replaceAll( transTableDate[i][0], transTableDate[i][1] ); } else // Is source column a numeric? For now, no translation for Numerics if ( srcDT.toUpperCase().equals( "NUMERIC")) { format = ""; } else // Is source column anything else than a string? if ( !srcDT.toUpperCase().equals( "STRING" )) throw new Exception("No format translation defined for data type "+srcDT+"!"); }; if ( format.length() > 0 ) format = format; return format; } } public class extTabColFormat { public static boolean useView = false; public static String nlsDateLanguage = "<%= (odiRef.getOption("NLS_DATE_LANGUAGE").length()==0)?"":"NLS_DATE_LANGUAGE=''"+odiRef.getOption("NLS_DATE_LANGUAGE")+"''"%>"; public static boolean enforceNlsNumChars = <%=(odiRef.getOption("NLS_NUMERIC_CHARACTERS").length()>0)?"true":"false"%>; public static String nlsNumChars = "NLS_NUMERIC_CHARACTERS=''<%=odiRef.getOption("NLS_NUMERIC_CHARACTERS")%>''"; public static setUseView( boolean b ) { useView = b; } public static boolean getUseView() { return useView; } // Does the java format expression contain any language specific elements? public static boolean requiresView( String dataType, String colFormat ) { if (dataType.equals("DATE")) { // Does the date contain a lanaguage specific element? return (colFormat.indexOf("MMM")>-1 || colFormat.indexOf("a")>-1 ); } else if (dataType.equals("NUMERIC")) { // Do we need to enforce numeric characters or does the pattern contain a grouping character? return enforceNlsNumChars; } else return false; } public static String getExtTabFormat( String colName, srcDataType, destWriDataType, colFormat, colBytes, colLongC, colScale ) { return calcFormat( colName, srcDataType, destWriDataType, colFormat, colBytes, colLongC, colScale )[0]; } public static String getExtTabDataType( String colName, srcDataType, destWriDataType, colFormat, colBytes, colLongC, colScale ) { return calcFormat( colName, srcDataType, destWriDataType, colFormat, colBytes, colLongC, colScale )[1]; } public static String getViewExpression( String colName, srcDataType, destWriDataType, colFormat, colBytes, colLongC, colScale ) { return calcFormat( colName, srcDataType, destWriDataType, colFormat, colBytes, colLongC, colScale )[2]; } private static String[] calcFormat( String colName, srcDataType, destWriDataType, colFormat, colBytes, colLongC, colScale ) { String oracleDataFormat = FormatTranslator.translate( srcDataType, colFormat ); String extTabFormat = ""; String extTabDataType = ""; String viewExpr = ""; Integer len = Integer.parseInt( colBytes ); // Is the source column a DATE? if ("DATE".equals(srcDataType)) { // How many digits are there for milliseconds? int precision = colFormat.replaceAll("[^S]","").length(); // Does the source column contain a timezone? if (colFormat.indexOf("Z")>-1) { dataType = "TIMESTAMP WITH TIMEZONE"; dataConvFunc = "TO_TIMESTAMP_TZ"; // Does the source column contain milliseconds? } else { dataType = "TIMESTAMP"; dataConvFunc = "TO_TIMESTAMP"; }; // Does the source column contain a language specifc element? if (requiresView( srcDataType, colFormat )) { // Explicit conversion function required extTabFormat = "CHAR("+len.toString()+")"; extTabDataType = extTabFormat; viewExpr = dataConvFunc+"("+colName+", '"+oracleDataFormat+"'"; if (nlsDateLanguage.length()>0) viewExpr += ", '"+nlsDateLanguage+"'"; viewExpr += ")"; } else { // Is there an COL_FORMAT defined for this column? if (colFormat.length()>0) { // Implicit conversion by date_format clause extTabFormat = "CHAR("+len.toString()+") DATE_FORMAT "+dataType+" MASK "+(char)34+oracleDataFormat+(char)34; extTabDataType = destWriDataType; viewExpr = colName; } else { // No conversion specified. Use default format defined by database nls settings extTabFormat = ""; extTabDataType = destWriDataType; viewExpr = colName; }; }; } else // Is the source column a NUMERIC? if ("NUMERIC".equals(srcDataType)) { // Do we need to enforce NLS settings for numbers? if (requiresView(srcDataType, colFormat)) { extTabFormat = "CHAR("+len.toString()+")"; extTabDataType = "VARCHAR("+len.toString()+")"; int longc = new Integer( colLongC ).intValue(); int scale = new Integer( colScale ).intValue(); // Build a number format according to precision and scale digitsInFront = longc - ((scale==0)?0:(scale+1)); digitsBehind = scale; if (digitsInFront < 0) throw new Exception("Column " + colName +": Scale > Precision is not supported! Please correct precision/scale!"); viewExpr = "TO_NUMBER("+colName+", '"; viewExpr += "99999999999999999999999999999999999999".substring(0,digitsInFront); if (digitsBehind>0) { viewExpr += "D"; viewExpr += "99999999999999999999999999999999999999".substring(0,digitsBehind); }; viewExpr += "', '"+nlsNumChars+"')"; } else { extTabFormat = ""; extTabDataType = destWriDataType; viewExpr = colName; }; } else { // The source column is a STRING => no options to add extTabFormat = ""; extTabDataType = destWriDataType; viewExpr = colName; }; return new String[] {extTabFormat, extTabDataType, viewExpr}; } } ?><? // Calculate, whether we need a view on top of external table extTabColFormat.setUseView( false ); ?><%=odiRef.getColList("", "<? if (extTabColFormat.requiresView(\u0022[SOURCE_DT]\u0022,\u0022[COL_FORMAT]\u0022)) { "+ "extTabColFormat.setUseView( true ); "+ "}; ?>", "", "", "") %>]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[3000]]></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-10-24 15:21:51.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:51.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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[33445000]]></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[ORACLE]]></Field> <Field name="FirstDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:51.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></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[67000]]></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-10-24 15:21:51.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LogLevDet" type="java.lang.String"><![CDATA[5]]></Field> <Field name="OrdTrt" type="com.sunopsis.sql.DbInt"><![CDATA[171]]></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[33445000]]></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")%><?=(extTabColFormat.getUseView())?"_ET":""?>]]></Field> <Field name="LangName" type="java.lang.String">null</Field> <Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[3000]]></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-10-24 15:21:51.0]]></Field> <Field name="FirstUser" type="java.lang.String"><![CDATA[CKURZ]]></Field> <Field name="LastDate" type="java.sql.Timestamp"><![CDATA[2008-10-24 15:21:51.0]]></Field> <Field name="LastUser" type="java.lang.String"><![CDATA[CKURZ]]></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[67000]]></Field> <Field name="IUserExit" type="com.sunopsis.sql.DbInt"><![CDATA[1491000]]></Field> <Field name="OrdTrt" type="com.sunopsis.sql.DbInt"><![CDATA[1]]></Field> </Object> <Object class="com.sunopsis.dwg.dbobj.SnpLineTrtUe"> <Field name="ITrt" type="com.sunopsis.sql.DbInt"><![CDATA[67000]]></Field> <Field name="IUserExit" type="com.sunopsis.sql.DbInt"><![CDATA[410000]]></Field> <Field name="OrdTrt" type="com.sunopsis.sql.DbInt"><![CDATA[251]]></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[22]]></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[24]]></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[0]]></Field> </Object> </SunopsisExport>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de