Formate LKM support of Oracle (TABLE EXTRENAL) data LENGTH FIXED files?
Hi allI'm working on a simple test to create an external table using the "LKM to Oracle (TABLE EXTRENAL)" file to load a data file of fixed length (no separator/delimiter). After running, the error is as follows:
2009-11-23 07:26:02 PM (DwgCmdExecutionThread): SnpSessTask.treatSqlException: 29913: 99999: java.sql.SQLException: ORA-29913: error in executing ODCIEXTTABLEOPEN legend
ORA-29400: data cartridge error
KUP-00554: error occurred when parsing the access settings
KUP-01005: syntax error: found 'colon': expected an of: "asterisk, number.
KUP-01007: in the column of the row 12 28
java.sql.SQLException: ORA-29913: error in executing ODCIEXTTABLEOPEN legend
ORA-29400: data cartridge error
KUP-00554: error occurred when parsing the access settings
KUP-01005: syntax error: found 'colon': expected an of: "asterisk, number.
KUP-01007: in the column of the row 12 28
The external table creation code generated is:
«"createTblCmd = r»»»
create the table ODI_WORK_SCHEMA. C$ _0PARTIAL_SHPT_TMP
(
C1_RECORD_TYPE VARCHAR2 (2),
C2_ISN VARCHAR2 (8).
C3_AWB_UID VARCHAR2 (11),
C4_FLIGHT_ID VARCHAR2 (7).
C5_FLIGHT_DATE VARCHAR2 (8).
C6_AIRCRAFT_FLOW_TYPE VARCHAR2 (1).
C7_PORT_CODE VARCHAR2 (3),
C8_SHPT_BD_PIECES VARCHAR2 (5).
C9_SHPT_BD_WEIGHT VARCHAR2 (9).
C10_SHPT_MAN_PIECES VARCHAR2 (5).
C11_SHPT_MAN_WEIGHT VARCHAR2 (9).
C12_SHPT_MAN_VOLUME VARCHAR2 (12)
)
EXTERNAL ORGANIZATION
(
TYPE ORACLE_LOADER
Dat_dir default DIRECTORY
ACCESS SETTINGS
(
RECORDS DELIMITED BY 0 x '0D0A '.
CHARACTERSET "WE8ISO8859P1".
STRING SIZES ARE IN CHARACTERS
BADFILE "PARTIAL_SHPT_FIXED_NHF.dat_%a.bad."
LOGFILE "PARTIAL_SHPT_FIXED_NHF.dat_%a.log".
DISCARDFILE 'PARTIAL_SHPT_FIXED_NHF.dat_%a.dsc '.
SKIP 0
FIELDS
MISSING FIELD VALUES ARE NULL
(
C1_RECORD_TYPE POSITION (:),
C2_ISN POSITION (:),
C3_AWB_UID POSITION (:),
C4_FLIGHT_ID POSITION (:),
C5_FLIGHT_DATE POSITION (:),
C6_AIRCRAFT_FLOW_TYPE POSITION (:),
C7_PORT_CODE POSITION (:),
C8_SHPT_BD_PIECES POSITION (:),
C9_SHPT_BD_WEIGHT POSITION (:),
C10_SHPT_MAN_PIECES POSITION (:),
C11_SHPT_MAN_WEIGHT POSITION (:),
C12_SHPT_MAN_VOLUME POSITION (:)
)
)
LOCATION ("PARTIAL_SHPT_FIXED_NHF.dat")
)
PARALLEL
REJECT LIMIT UNLIMITED
"""
# Create the statement
mystmt = myCon.createStatement)
# Run the trigger creation
myStmt.execute (createTblCmd)
myStmt.close)
mystmt = None
# Commit, just in case
myCon.commit)
1. How can I solve this problem?
2. If my data file have no record separator and the field delimiter, how do I configure in sub ODI?
Remarks:
1. the format of file under the "files" is "fixed".
Thank you very much!!
Tao
Tao,
Your problem is not LKM(External Table). You will need to set the interface diagram. Select each column in the pane "DataStore target" of the "Diagram" tab when you open the interface.
Mark "run" for each column to be on the "staging area".
Currently, you have all the columns marked in 'Source '.
This will fix the problem.
Hope that helps.
PS Don't forget to mark as good/useful solutions if you feel they were.
Tags: Business Intelligence
Similar Questions
-
How to save a Table of data on Excel file
Hi anyone knows how to save data to the table of labview, I want to save this data to the excel file.
Double Post
http://forums.NI.com/T5/LabVIEW/how-to-save-a-multicolumn-ListBox-data-to-Excel-file/m-p/2974581
You can use,
1. write in the worksheet File.vi
2 report generation toolkit
-
write table 2D data in the file but the file is empty
Hello
I tried to write all reading of powermeter data to a file in two ways, I can see the output in the Arrais indicator data but when I write to "File.vi of the worksheet" or write to 'text file', the files are empty.
Please help me.
Try to remove the vi "STOP".
I suspect, it prevents the main vi before the backup occurs.
As a second point: given that you save data inside a while loop be sure you add the data from the file and not crash each time.
wire that is a 'real' terminal 'Add file '.
Kind regards
Marco
-
I have installed the latest updates (02/27/10) and when I open sony vegas to edit some files avi... they were offline... when I tried to read with windows media player it says format not supported... before when I played these files, they would not have to synchronize audio... it never happened with my other computer with Vista... system restore solved the problem of format not supported... but so far has caused this problem? and what about the problems of synchronization? the files seem to sync when played with the hp program...
Hi derlonewolf,Because you performed a System Restore you would not be able to determine which update problem from occurring. You will have to wait for the update to your computer to determine the update that caused the problem. The update does not necessarily cause the problem to occur again. However, you can view the history of updates to updating history.1. open the control panel (all items view), and click the Windows Update icon.2. click on the link to view update history.3. to view the details of a single Windows Update-(A) select and right-click on a Windows Update list, and then click details.(B) click on close when finished.As far as the question of timing is concerened, you can scan SFC on your computer and check if the problem persists.
Steps to perform a scan SFC:1. Click Start, click principally made programs, accessories, right-click Guest, and then click Run as administrator. If you are prompted for an administrator password or a confirmation, type the password, or click on allow2. type the following command and press ENTER:sfc/scannow[The command sfc /scannow. analysis of all protected system files and replaces incorrect versions with appropriate Microsoft versions.]A message appears indicating that "the system scan will start. Be patient, because the analysis may take some time3. If all the files require that a SFC replace will replace them. You may be asked to insert your Win7 DVD for this process to continue4. If all goes although you should, after the analysis, see the following message "Windows resource protection not found any breach of integrity.5. once the scan is finished, close the command prompt window, restart the computer and check.Check the link below for further guidance on scan SFC - mentioned
You can also make manual updates instead of automatic updates and then see what are updates will be installed on the computer.See : http://windows.microsoft.com/en-us/windows7/Turn-automatic-updating-on-or-off
Post back with the status
Aziz Nadeem - Microsoft Support -
Change the mask of the executing (Oracle forms 6i) date field format
Hello
I use Oracle forms 6i. I have a domain where I use to store dates. I need to change the format mask of this date the runtime field.
Y at - it no set_item_property built in that I can use to achieve this?
Kind regards
Bet.
Published by: 1009523 on June 3, 2013 11:11Part 2, help information on the Format mask item property; you will need to make sure that you set the property correctly.
Sorry, I had to drill two answers but my first attempt surpassed the eligible characters in an answer ;-)
Format Mask property Description Specifies the display format and input accepted for data in text items. Applies to text item Set Form Builder, programmatically Refer to Built-in n GET_ITEM_PROPERTY n SET_ITEM_PROPERTY Required/Optional optional Usage Notes Valid format masks for character strings, numbers and dates are described in the following tables. Character Strings The following table describes valid format masks for character strings. Element Example Description FM FMXX99 Fill mode: accept string as typed, do not right justify. Allows end user input string to be shorter than the format mask. X XXXX Any alphabetic, numeric, or special character. End user input string must be exact length specified by format mask. 9 9999 Numeric characters only. End user input string must be exact length specified by format mask. A AAAA Alphabetic characters only. End user input string must be exact length specified by format mask. Character String Examples Format Mask Description XXAA Will accept: --ab, abcd, 11ab; will not accept: --11, ab11, or ab--(must use XX to accept hyphens and other special characters). XXXX Will accept any combination of alphabetic, numeric, or special characters: --ab, abcd, 11ab, --11, ab11, or ab--. Will accept 1234 or abcd; will not accept 123 or abc. (To accept input string shorter than mask, use FMXXXX.) FMXX99 Will accept ab12, ab1, ab followed by two spaces; will not accept 12ab or abcd. (To produce the Form Builder Version 3.0 Alpha datatype, use FMAAAAAA.) n To embed additional characters such as a hyphen (-) or a comma (,), surround the character with double-quotes ("). n Embedded characters are separate from text item values and are not collated along with text item values, even when the end user enters them. NUMBERS The following table describes valid format masks for numbers. Element Example Description 9 9999 Number of nines determines display width. Any leading zeros will be displayed as blanks. 0 0999 Display leading zeros. 0 9990 Display zero value as zero, not blank. $ $9999 Prefix value with dollar sign. B B9999 Display zero value as blank, not "0". MI 9999MI Display "-" after a negative value. PR 9999PR Display a negative value in
. comma 9,999 Display a comma in this position. For correct behavior in multilingual applications, substitute G to return the appropriate group (thousands) separator. period 99.99 Display a decimal point in this position. For correct behavior in multilingual applications, substitute D to return the appropriate decimal separator. E 9.999EEEE Display in scientific notation (format must contain exactly four "E"s). FM FM999 Fill mode: accept string as typed, do not right justify. n When you mask a number with nines (9), Form Builder adds a space in front of the number to accommodate the plus (+) or minus (-) sign. However, since the plus sign is not displayed, it appears as if Form Builder adds a space in front of the number. (The minus sign is displayed.) n To embed additional characters such as a hyphen (-) or a comma (,), surround the character with double-quotes ("). n Embedded characters are separate from text item values and are not collated along with text item values, even when the end user enters them. NUMBER Examples Format Mask Description FM099"-"99"-"9999 Displays the social security number as formatted, including hyphens, even if end user enters only nine digits.To create a Social Security column, create an 11-character column, set to fixed length, with a format mask of 099"-"99"-"9999. This mask will accommodate Social Security numbers that begin with zero, accepting 012-34-5678 or 012345678 (both stored as 012345678). 99999PR Accepts -123; reformats as <123>. 999MI Accepts -678; reformats as 678-. 9.999EEEE Displays as 1.00E+20. How Forms handles length mismatches If a runtime user enters a numeric string that exceeds the format mask specification, the value will be rejected. For example: Format Mask User enters Result 99.9 321.0 Invalid 99.9 21.01 Invalid 99.9 21.1 21.1 99.9 01.1 1.1 In contrast, if a numeric value fetched from the database exceeds the format mask specification for its display field, the value is displayed, but truncated, with rounding, to fit the mask. (The item itself within the Forms application retains its full value.) For example, if the database held the value 2.0666, and the format mask was 99.9, the value displayed to the user would be 2.1. However, the value of the item within the form would be the full 2.0666. Dates The following table describes valid format masks for dates. Element Description YYYY or SYYYY 4-digit year; "S" prefixes "BC" date with "-". YYY or YY or Y Last 3, 2, or 1 digits of year. Y,YYY Year with comma in this position. BC or AD BC/AD indicator. B.C. or A.D. BD/AD indicator with periods. RR Defaults to correct century. Deduces the century from a date entered by comparing the 2 digit year entered with the year and century to which the computer's internal clock is set. Years 00-49 will be given the 21st century (the year 2000), and years from 50-99 will be given the 20th century (the year 1900). MM Month (01-12; JAN = 01). MONTH Name of month, padded with blanks to length of 9 characters. MON Name of month, 3-letter abbreviation. DDD Day of year (1-366). DD Day of month (1-31). D Day of week (1-7; Sunday=1). DAY Name of day, padded with blanks to length of 9 characters. DY Name of day, 3-letter abbreviation. J Julian day; the number of days since January 1, 4712 BC. AM or PM Meridian indicator. A.M. or P.M. Meridian indicator with periods. HH or HH12 Hour of day (1-12). HH24 Hour of day (0-23). MI Minute (0-59). SS Second (0-59). SSSSS Seconds past midnight (0-86399). /. , . Punctuation is reproduced in the result. "..." Quoted string is reproduced in the result. FM Fill mode: assumes implied characters such as O or space; displays significant characters left justified. Allows end user input to be shorter than the format mask. (Use in conjunction with FX to require specific delimiters.) FX All date literals must match the format mask exactly, including delimiters. n When you prefix a date mask with FX, the end user must enter the date exactly as you define the mask, including the specified delimiters: Date Examples Format Mask Description FXDD-MON-YY Will accept 12-JAN-94, but will not accept 12.JAN.94 or 12/JAN/94 because the delimiters do not match the mask. Will not accept 12JAN94 because there are no delimiters. Will accept 01-JAN-94 but will not accept 1-JAN-94. FMDD-MON-YY Will accept 01-JAN-94. Will also accept the entry of other delimiters, for example 01/JAN/94 and 01 JAN 94. However, will not accept 01JAN94. Will accept 1-JAN-94, converting it to 01-JAN-94. DD-MON-YY Will accept 12.JAN.94, 12/JAN/94 or 12-JAN-94. Note: Any delimiter characters will be accepted, but if delimiters are omitted by the end user, this mask will interpret date characters as a delimiters. Will accept 12-JAN94, (but will erroneously interpret as 12-JAN-04); but will not accept 12JAN94, because "AN" is not a valid month name. n Use of a format mask only affects how the data looks. Form Builder stores full precision, regardless of how the data is presented. n Embedded characters are separate from text item values and are not collated along with text item values, even when the end user enters them. n To embed additional characters such as a hyphen (-) or a comma (,), surround the character with double-quotes ("). Note, however, that double-quotes themselves cannot be used as a character. In other words, trying to achieve output of DD"MM by specifying a mask of DD"""MM would not work. Format Mask Description FMMONTH" "DD", "YYYY Displays the text item data in the specified date format: JANUARY 12, 1994, including the appropriate blank spaces and comma. FMDD-MONTH-YYYY Displays as 12-JANUARY-1994. DY-DDD-YYYY Displays as WED-012-1994. Note: for input validation including day of the week, a mask that allows specific determination of the day is required, such as this example or DY-DD-MM-YY. n When you use day of the week formats, be sure that the data includes day of the week information. To avoid illogical masks, display also either the day of the year (1-366) or the month in some format. Format Mask Description DD-MONTH-YYYY Displays as 12-JANUARY-1994. DY-DDD-YYYY Displays as WED-012-1994. DY-DD-MON-YY Displays as WED-12-JAN-94. Be sure to include month. Avoid masks such as DY-DD-YY, which could generate an error. NLS Format Masks The following table describes valid National Language Support (NLS) format masks. Element Example Description C C999 Returns the international currency symbol. L L9999 Returns the local currency symbol. D 99D99 Returns the decimal separator. G 9G999 Returns the group (thousands) separator. comma 9,999 Displays a comma in this position. period 9.999 Displays a decimal point in this position. Displays a decimal point in this position. NLS Format Mask Examples Format Mask Description L99G999D99 Displays the local currency symbol, group, and decimal separators: if NLS_LANG=American, this item displays as $1,600.00; if NLS_LANG=Norwegian, this item displays as Kr.1.600,00. C99G999D99 Displays the appropriate international currency symbol: if NLS_LANG=American, this item displays as USD1,600.00; if NLS_LANG=French, this item displays as FRF1.600,00. Craig...
-
Insert data as XML into the Oracle Table
Hi all
I have a requirement where the data in XML format, and I need to insert into the Oracle Table. For example, I get XML data in the following format,
< results >
< row >
< BANK_ACCOUNT_ID > 10010 < / BANK_ACCOUNT_ID >
< BANK_ID > 300968 < / BANK_ID >
Vision operations < LEGAL_ENTITY > < / LEGAL_ENTITY >
< BANK_NAME > BofA < / BANK_NAME >
< BANK_ACCOUNT_NUM > 10271-17621-619 < / BANK_ACCOUNT_NUM >
< BANK_ACCOUNT_NAME > BofA-204 < / BANK_ACCOUNT_NAME >
< BRANCH_NAME > New York < / BRANCH_NAME >
USD < CURRENCY_CODE > < / CURRENCY_CODE >
< BALANCE_DATE > 2007 - 11 - 09 < / BALANCE_DATE >
< LEDGER_BALANCE > 432705900.56 < / LEDGER_BALANCE >
< / row >
< row >
< BANK_ACCOUNT_ID > 10091 < / BANK_ACCOUNT_ID >
< BANK_ID > 300984 < / BANK_ID >
Vision industries < LEGAL_ENTITY > < / LEGAL_ENTITY >
Barclay Bank < BANK_NAME > < / BANK_NAME >
< BANK_ACCOUNT_NUM > 70986798 < / BANK_ACCOUNT_NUM >
Bank Multi currency-626 < BANK_ACCOUNT_NAME > Barclays < / BANK_ACCOUNT_NAME >
Reading < BRANCH_NAME > < / BRANCH_NAME >
GBP < CURRENCY_CODE > < / CURRENCY_CODE >
< BALANCE_DATE > 2007 - 11 - 14 < / BALANCE_DATE >
< LEDGER_BALANCE > 24244085.24 < / LEDGER_BALANCE >
< / row >
< row >
< BANK_ACCOUNT_ID > 10127 < / BANK_ACCOUNT_ID >
< BANK_ID > 300968 < / BANK_ID >
< LEGAL_ENTITY > SSC U.S. 01 < / LEGAL_ENTITY >
< BANK_NAME > BofA < / BANK_NAME >
< BANK_ACCOUNT_NUM > 4898744 < / BANK_ACCOUNT_NUM >
< BANK_ACCOUNT_NAME > BofA SSC U.S. 02-7188 < / BANK_ACCOUNT_NAME >
< BRANCH_NAME > New York < / BRANCH_NAME >
USD < CURRENCY_CODE > < / CURRENCY_CODE >
< BALANCE_DATE > 2007 - 11 - 28 < / BALANCE_DATE >
< LEDGER_BALANCE > 10783815.28 < / LEDGER_BALANCE >
< / row >
< / results >
I like to write PLSQL code that will receive these data with XML tags and insert it into the Oracle Table. Is this possible with built-in XML features provided in the Oracle database?
Please Guide...
Kind regards
PriyankaBut the problem is the file XML is to have the details of the records if you carefully observed the XML file. But by using more high statement select I get output in the following format.
ORG_ID REQ_LINE PO_NUMBER EXPECTED_REC_QTY USER_NAME REQ_NUMBER
204204 1444714450 11 64446445 11 OPERATIONSOPERATIONSThe table has only one row, so you get a single row as output.
I'm surprised that you find useful examples showing how to divide the data into several lines.(1) create the table with the following option, it will optimize the performance of storage and query for large XML documents:
CREATE TABLE xxios_xml_data_test(xml_data XMLTYPE) XMLTYPE COLUMN xml_data STORE AS SECUREFILE BINARY XML ;
(2) interview table with:
SQL> select x.* 2 from xxios_xml_data_test t 3 , xmltable( 4 '/Results/Row' 5 passing t.xml_data 6 columns ORG_ID number path 'ORG_ID' 7 , REQ_NUMBER number path 'REQ_NUMBER' 8 , REQ_LINE number path 'REQ_LINE' 9 , PO_NUMBER number path 'PO_NUMBER' 10 , EXPECTED_REC_QTY number path 'EXPECTED_REC_QTY' 11 , USER_NAME varchar2(30) path 'USER_NAME' 12 ) x 13 ; ORG_ID REQ_NUMBER REQ_LINE PO_NUMBER EXPECTED_REC_QTY USER_NAME ---------- ---------- ---------- ---------- ---------------- ------------------------------ 204 14447 1 6444 1 OPERATIONS 204 14450 1 6445 1 OPERATIONS
-
Import excel data in oracle tables
Hello gurus,
Importing excel data in oracle tables...
I know it's the most common question on the wire... First, I searched the forum, I found lots of threads with loading data using sqlloader, excellent in conversion. Txt, file delimited by tabs, file .csv etc...
Finally, I was totally confused in terms of how to get there...
Here's wat I
Here's wat I want to do... .i don't know if its possible- Excel file on local computer. - i have laod data into dev environment tables(So no risk involved, but want to try something simple) - Oracle version 11.1.0.7 - Sqlplus and toad (editors)
SQLLOADER could be an option... but I don't want to go the unix server to place files and newspapers and stuff.- Without going to unix server can i do everthing on local system by making use of oracle db and sqlplus or toad
Wat will be the best option and the easiest to do? and wat format better convert excel csv or txt or tab delimited etc...
If you suggest sqlloader, any example of code will be greatly appreciated.
Thank you very much!!!Hello
Toad version 9.0.0.160, you can directly load data excel file (or any other specified) to table using the navigation "database > import > import the data in the table.
You need to connect to the database, then go to the above navigation. Select the table, validation interval (i.e. commit after each record or once all records), map columns in excel file to your table and press ok.
It loads data directly to your table.But, if you use characters multibyte (such as Chinese) in excel file you want to load, then you must make some settings in your machine.
Don't know if its possible in another version of Toad.
Concerning
Imran -
formatting oracle.jbo.domain.date
Hello
I use JDev 11.1.2.4.
I'm trying to update VO with the current date and time by using the code below.
DateFormat df = new SimpleDateFormat ("YYYY/MM/dd HH: mm :"); ")
java.util.Date currentDate = new java.util.Date ();
row.setAttribute ("Date sent", df.format (currentDate));
However, I run error
Houston-27023: Impossible to validate all the lines in a transaction.
any ideas?
Thank you
Hello
When you define the attribute that you do not need to set the format of datetime.
If you want to set the attribute to current date time use this
If the attribute is of type Timestamp, you can set date current time like that
row.setAttribute("ShippedDate",new oracle.jbo.domain.Date(new java.sql.Timestamp(System.currentTimeMillis())));
If the data type of the attribute is oracle.jbo.domain.Date you can set the date current time like that
row.setAttribute("ShippedDate",new oracle.jbo.domain.Date(oracle.jbo.domain.Date.getCurrentDate()));
and to display that date in the page with the format DD/MM/YYYY HH: mm: follow these steps:
1 - Open the viewobject and select Date sending attribute.
2 - starting from the indications of the UI, tab set Type-> Simple Date Format
3. as text the value of-> MM/DD/YYYY HH: mm:
-
Need help for query flat_file type clobdata oracle table data.
Hi Sir,
I need help to query oracle table flat file data having given clob type.
COLUMN FOR CHAR_DATA FLAT_FILEOracle Version: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product PL/SQL Release 10.2.0.1.0 - Production "CORE 10.2.0.1.0 Production" TNS for 32-bit Windows: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production Source table CREATE TABLE order_details ( QUEUE_SEQNUM NUMBER(10,0) NOT NULL ENABLE, LINE_SEQNUM NUMBER(10,0) NOT NULL ENABLE, CHAR_DATA CLOB, OPTIMISTIC_LOCK_KEY NUMBER(20,0) )
EXPECTED RESULTS:EU,6067AT,AT10,000000402004,NexiumGERDManagementProject,Z435,,ZZ29,NIS-GOLD,AT EU,6067AT,AT10,000000402038,NIS-OEU-ARI-2007/1,Z450,,ZZ29,NIS-OEU-ARI-2007/1,AT EU,6067AT,AT10,000000402039,SymbicortNISinCOPD,Z450,,ZZ29,NIS-REU-DUM-2007/1,AT EU,6067AT,AT10,000000402040,D1443L00044SeroquelXRRuby,Z450,,ZZ29,D1443L00044,AT EU,6067AT,AT10,000000402041,NIS-GEU-DUM-2008/1,Z450,,ZZ29,NIS-GEU-DUM-2008/1,AT EU,6067AT,AT10,000000402042,SonstigeAktivitätenLCM,Z450,,ZZ29,.,AT EU,6067AT,AT10,000000402134,D1680L00002Saxagliptin,Z450,,ZZ29,D1680L00002,AT EU,6067AT,AT10,000000402199,SeroquelWaveNIS,Z450,,ZZ29,NIS-NEU-DUM-2009/1,AT EU,6067AT,AT10,000000402313,SeroquelExtra(D1443L00082),Z450,,ZZ29,D1443L00082,AT EU,6067AT,AT10,000000402517,AtlanticD5130L00006(AZD6140),Z450,,ZZ29,D5130L00006,AT EU,6067AT,AT10,000000554494,ArimidexSt.Gallen(13+2),Z142,,ZZ09,,AT EU,6067AT,AT10,000000554495,ArimidexASCO(5delegates),Z142,,ZZ09,,AT EU,6067AT,AT10,000000554496,ArimidexSanAntonio6delegates,Z142,,ZZ09,,AT EU,6067AT,AT10,000000554497,ArimidexBreastCancerSummit(13+2),Z130,,ZZ09,,AT EU,6067AT,AT10,000000554498,ArimidexEIH(15delegates),Z130,,ZZ09,,AT EU,6067AT,AT10,000000554499,ArimidexNIFA(200delegates),Z135,,ZZ09,,AT EU,6067AT,AT10,000000554500,ArimidexNIFAworkshops(8x25),Z135,,ZZ09,,AT EU,6067AT,AT10,000000554501,ArimidexPraktischeGyn.Fortbildung,Z147,,ZZ09,,AT EU,6067AT,AT10,000000554502,ArimidexAGO,Z147,,ZZ09,,AT EU,6067AT,AT10,000000554503,ArimidexHämato/OnkologieKongress,Z147,,ZZ09,,AT EU,6067AT,AT10,000000554504,ARIMIDEXGYNäKOLOGENKONGRESS,Z147,,ZZ09,,AT EU,6067AT,AT10,000000554505,ArimidexChirurgenkongress,Z147,,ZZ09,,AT
AFFIRM_CODE COMPANY_CODE INTERNAL_ORDER_CODE INTERNAL_ORDER_DESC ENIGMA_ACTIVITY SUB_ACTIVITY_CODE IN_AFF_IND ORDER_TYPE EXTERNAL_ORDER COUNTRY EU 6067AT AT10 000000402004 NEXIUMGERDMANAGEMENTPROJECT Z435 NULL ZZ29 NIS-GOLD AT EU 6068AT AT11 000000402005 NEXIUMGERDMANAGEMENTPROJECT Z435 NULL ZZ29 NIS-GOLD AT
Sorry, my bad. Without database at hand, I'll try 'baby steps' (borrowed from Frank) so you don't confuse it with errors that I might add (happens far too often already, but at least you won't "swallow" as forum members think is one of the main goals of this fighter - help her learn - providing not only the proverbial fish.)
Search the Forum - your problem is one of its best sellers. Watching {message identifier: = 10694602} ("split string into" was the key word used in research) you can try something asselect table_row, level clob_row, regexp_substr(char_data,'[^' || chr(13) || chr(10) || ']+',1,level) the_line from (select to_char(queue_seqnum)||':'||to_char(line_seqnum) table_row, char_data from order_details ) connect by regexp_substr(char_data,'[^' || chr(13) || chr(10) || ']+',1,level) is not null and prior char_data = char_data and prior table_row = table_row and prior sys_guid() is not null
to get all the s the_lineall CLOB and after that the use of the example even to get your columns of each the_line.
Concerning
Etbin
Edited by: Etbin on 3.2.2013 09:01
.. .but I m connected to do things according to the instructions, I can't do something.
Used to happen to me too and I did as told to the but only after explaining any disadvantages, I was aware of in time. The last sentence is usually: "O.K. now be just and Don't come back with that kind of thing when it turns out that this isn't the right thing."
rp0428 post - something to remember. -
Load since excellent data to Oracle Tables
Hi all
I want to create a table with the payment year as default sysdate (to_char(sysdate,'yyyy')) and months in the form 'MM' (as default payment_month < (syadate, 'MM') >
I'm doing it in vain. Help me please, and the other is want to load data from EXCEL to ORACLE table.
I used to load the load data using SQL * LOADER. can you please let me know is possible to load data without using SQL * Loader? Please give me the solution for this.
Thank you
ORA.
-
Load huge data in oracle table
Hello
I am using oracle 11g Express Edition, I have formed a .csv file, which includes a 500MB size data that must be downloaded into the oracle table.
Please suggest which would be the best method to load data into the table. Data are historical employee ticket, i.e. huge data.
How to make download of mass data in the suggestion of experts need oracle table on this requirement.
Thank you
Sudhirbest way SQL LOADER
-
Transparent data encryption are supported with Oracle Advanced Replication?
Which version of DB, TDE supported with Oracle Advanced Replication?user939188 wrote:
Which version of DB, TDE supported with Oracle Advanced Replication?"Materialized views do not support columns that have been encrypted by using transparent data encryption."
Source - http://oracle.su/docs/11g/server.112/e10706/repmview.htm
-
problem loading data from oracle table excel table / oracle
Hi all
I'm working on the form of data transformation 2 different sources to a target table only oracle.
My first source - excel sheet.
2nd source - oracle table.
Creation of data servers, dsn(for excel), reversing everything done very well.
When I try to display the data there is a problem.
EXCEL - serial number column is displayed as 1.0,2.0,.3.0 etc. need 1,2,3,4,5...
Oracle tables-> after that reverse it does not display the data types for the selected columns.
I am not able to create a join and run.
Help, please.
Thank you
Chaitanya.Hello
Just a thought, why not u cast TO_NUMBER to the interface mapping for the serial number column?
Thank you
Guru -
Load xml data into an Oracle table
Hello
I went through some threads in the forums itself, but for my requirement that nothing comes closer, I write my request. I have a XML like this
<? XML version = "1.0"? >
< ACCOUNT_HEADER_ACK >
< HEADER >
< STATUS_CODE > 100 < / STATUS_CODE >
Check < STATUS_REMARKS > < / STATUS_REMARKS >
< / Header >
< DETAILS >
< DETAIL >
< SEGMENT_NUMBER > 2 < / SEGMENT_NUMBER >
PR Polytechnic < REMARKS > < / COMMENTS >
< / DETAILS >
< DETAIL >
< SEGMENT_NUMBER > 3 < / SEGMENT_NUMBER >
< REMARKS > PR Polytechnic administration < / COMMENTS >
< / DETAILS >
< DETAIL >
< SEGMENT_NUMBER > 4 < / SEGMENT_NUMBER >
< REMARKS > rp Polytechnique finance < / COMMENTS >
< / DETAILS >
< DETAIL >
< SEGMENT_NUMBER > 5 < / SEGMENT_NUMBER >
< REMARKS > logistics Polytechnique rp < / COMMENTS >
< / DETAILS >
< / DETAILS >
< HEADER >
< STATUS_CODE > 500 < / STATUS_CODE >
< STATUS_REMARKS > process exception < / STATUS_REMARKS >
< / Header >
< DETAILS >
< DETAIL >
< SEGMENT_NUMBER > 20 < / SEGMENT_NUMBER >
Basic Polytechnique < REMARKS > < / COMMENTS >
< / DETAILS >
< DETAIL >
< SEGMENT_NUMBER > 30 < / SEGMENT_NUMBER >
< / DETAILS >
< DETAIL >
< SEGMENT_NUMBER > 40 < / SEGMENT_NUMBER >
Finance basic Polytechnique < REMARKS > < / COMMENTS >
< / DETAILS >
< DETAIL >
< SEGMENT_NUMBER > 50 < / SEGMENT_NUMBER >
Logistics base Polytechnique < REMARKS > < / COMMENTS >
< / DETAILS >
< / DETAILS >
< / ACCOUNT_HEADER_ACK >
Here is the xml structure of the master structure and child I want to insert data in Oracle tables using the sql * loader initially tried to create a control file, but I don't know how to terminate in the control file, so I created two control files
load data
INFILE 'acct.xml' ' str ' < / DETAIL >»»
TRUNCATE
in the xxrp_acct_detail table
TRAILING NULLCOLS
(
dummy fill finished by "< DETAIL >."
SEGMENT_NUMBER surrounded by '< SEGMENT_NUMBER >' and ' < / SEGMENT_NUMBER >, "
REMARKS framed by 'Of REMARKS <>' and ' < / COMMENTS >.
)
load data
ACCT.XML INFILE' "str" < / header > ' "»
TRUNCATE
in the xxrp_acct_header table
fields terminated by '< HEADER >.
TRAILING NULLCOLS
(
dummy fill finished by "< HEADER >."
STATUS_CODE framed by '< STATUS_CODE >' and ' < / STATUS_CODE >. "
STATUS_REMARKS surrounded by '< STATUS_REMARKS >' and ' < / STATUS_REMARKS >.
)
I refer to the same xml file in two control files, where with regard to the first control file, I was able to load the files but the second which I suppose as table header not able to load the records of rest. I get the below error.
Sheet 2: Rejected - error on the XXRP_ACCT_HEADER, column DUMMY table.
Field in the data file exceeds the maximum length
Sheet 3: Rejected - error on the XXRP_ACCT_HEADER, column DUMMY table.
Field in the data file exceeds the maximum length
In fact if its possible to seggrate a control file so it will be very useful for me. I'm also open for the external table as option. Please help me in this regard.
Thanks in advance.
Concerning
Mr. NagendraHere are two possible solutions:
(1) reading the headers and separate details using two XMLTables:
DECLARE acct_doc xmltype := xmltype( bfilename('TEST_DIR','acct.xml'), nls_charset_id('AL32UTF8') ); BEGIN insert into xxrp_acct_details (status_code, status_remarks, segment_number, remarks) select x1.status_code, x1.status_remarks, x2.segment_number, x2.remarks from xmltable( '/ACCOUNT_HEADER_ACK/HEADER' passing acct_doc columns header_no for ordinality, status_code number path 'STATUS_CODE', status_remarks varchar2(100) path 'STATUS_REMARKS' ) x1, xmltable( '$d/ACCOUNT_HEADER_ACK/DETAILS[$hn]/DETAIL' passing acct_doc as "d", x1.header_no as "hn" columns segment_number number path 'SEGMENT_NUMBER', remarks varchar2(100) path 'REMARKS' ) x2 ; END;
All first (alias X 1) retrieves all headers in separate lines. The HEADER_NO generated column is used to keep track of the position of the header into the document.
Then, we join a second XMLTable (X 2), passing HEADER_NO, so that we can access the corresponding items in DETAIL.(2) reading with one XMLTable, but somewhat more complex XQuery:
DECLARE acct_doc xmltype := xmltype( bfilename('TEST_DIR','acct.xml'), nls_charset_id('AL32UTF8') ); BEGIN insert into xxrp_acct_details (status_code, status_remarks, segment_number, remarks) select x.* from xmltable( 'for $i in /ACCOUNT_HEADER_ACK/HEADER return for $j in $i/following-sibling::DETAILS[1]/DETAIL return element r {$i, $j}' passing acct_doc columns status_code number path 'HEADER/STATUS_CODE', status_remarks varchar2(100) path 'HEADER/STATUS_REMARKS', segment_number number path 'DETAIL/SEGMENT_NUMBER', remarks varchar2(100) path 'DETAIL/REMARKS' ) x ; END;
Here, we use an XQuery query to extract the information that we need.
Basically it's the same logic as above, but with two nested loops which access each header, then each RETAIL location immediately after in the order of the documents.Here is the link to the documentation XMLTable and XQuery in Oracle:
http://download.Oracle.com/docs/CD/B28359_01/AppDev.111/b28369/xdb_xquery.htm#CBAGCBGJ -
Download the XML data in an oracle table
I need to download data from an XML file to the oracle table.
I use 10.1.0.3.0 database.Refer to the Oracle XML DB Developer's Guide - loading XML in Oracle XML DB content
Maybe you are looking for
-
Buttons for the CD/DVD drive
I installed original computer, but the buttons for playback audio CDs do not work.I have widows mediaplayer assigned as a toshiba player.Default player for mp3 is Winamp. Anyone know what should I do? Tomaz cordially
-
No opening of the project helps FCPX
Hi Please help me I have a library that a single file does not work. Whenever I tried to open the cashed project fcpx. It occurred with a particular project. I tried this but did not work https://discussions.apple.com/thread/5810717?tstart=0
-
find if in the sequence editor API call
I swear that I found this somewhere once but can't find it now. What is the API call (or another mechanism) to determine if I am running out of sequence with respect to a user interface editor? What I want to do is if running the sequence editor, ma
-
Original title: Cannot install siverlight wants cdrom When I try to install from a download of Microsoft Silverlight, I come me next survey on my screen: The feature you are trying to use is on a CD-ROM or another removable disk that is not available
-
The formatting of the SD card.
Hello. I do not have a rocket for the moment, but will buy one in a few days or more. I just want to know what I need to get to work immediately with minimum fuss. I will also buy a 4 or 8 GB microsdhc with her card. Should I just leave the map as -