RE: LF and CR (chr(10)||chr(13)) problem -- problem solved
Kitty , it is nice on your part to share the solution with the list. For future : (On the lines of what Stefan said) May be dd if=inputfile of=outputfile conv=ebcdic/ebcdicb/ibm/ibmb might have helped. Check with "man dd". The suggestion given by Raj is worth keeping in mind. HTH GovindanK On Fri, 14 Nov 2003 08:34:25 -0800, "Kitty Luo" <[EMAIL PROTECTED]> said: > > Hi List, > > Finally, I used HexCmp and found out the file generated by Oracle PLSQL > or report writer only contains a CR (chr(13)) even if I had a chr(13) and > chr(10) in the query. > > I re-wrote my export scripts in java, then resulting file is OK. > > Thanks to all of you who responded my problem. > > Have a great weekend! > > Kitty > -Original Message- > Sent: Friday, November 14, 2003 9:09 AM > To: Multiple recipients of list ORACLE-L > > > Kitty, > > when the file is written by pl/sql note its size. Then open and save in > notepad and note its size. If both sizes are different, you know there is > a CR/LF problem, else problems is somewhere else. > > Raj > > Rajendra dot Jamadagni at nospamespn dot com > All Views expressed in this email are strictly personal. > QOTD: Any clod can have facts, having an opinion is an art ! > > > -Original Message- > Sent: Friday, November 14, 2003 8:54 AM > To: Multiple recipients of list ORACLE-L > > > Joze, > > It's not that simply. I already tried all the possible combination: > chr(13)||chr(10) , chr(10)||chr(13), chr(13) , chr(10)||chr(10)... > > Thanks for your input anyway. > > Regards, > Kitty > -Original Message- > Sent: Friday, November 14, 2003 6:09 AM > To: Multiple recipients of list ORACLE-L > > > The solution is simple. The correct sequence of characters is not > chr(10)||chr(13) but rather chr(13)||chr(10). This is obviously changed > by notepad. > > regards, Joze > > -Original Message- > Sent: Friday, November 14, 2003 5:59 AM > To: Multiple recipients of list ORACLE-L > > > > Hi, > > Currently I am working on a project that requires me to transfer > "Customer Master Record" data into SAP R/3 system from my oracle > database (9.2.0.4 running on Solaris 5.9). The text file (contains LF > and CR) generated by PLSQL or Oracle reporter builder could not be > loaded into the SAP database (running on the same version of oracle > database on W2K). It breaks on the CR. However, when I open the text > file by notepad, do nothing, just simply save the file, re-run the data > load, then everything works fine. Does anyone know anything about this? > Please help. > > Thanks in advance. > > Kitty Luo > Oracle DBA, OCP > Onlane Inc. > www.onlane.com > [EMAIL PROTECTED] -- http://www.fastmail.fm - Faster than the air-speed velocity of an unladen european swallow -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: GovindanK INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
RE: LF and CR (chr(10)||chr(13)) problem -- problem solved
Hi List, Finally, I used HexCmp and found out the file generated by Oracle PLSQL or report writer only contains a CR (chr(13)) even if I had a chr(13) and chr(10) in the query. I re-wrote my export scripts in java, then resulting file is OK. Thanks to all of you who responded my problem. Have a great weekend! Kitty -Original Message- Sent: Friday, November 14, 2003 9:09 AM To: Multiple recipients of list ORACLE-L Kitty, when the file is written by pl/sql note its size. Then open and save in notepad and note its size. If both sizes are different, you know there is a CR/LF problem, else problems is somewhere else. Raj Rajendra dot Jamadagni at nospamespn dot com All Views expressed in this email are strictly personal. QOTD: Any clod can have facts, having an opinion is an art ! -Original Message- Sent: Friday, November 14, 2003 8:54 AM To: Multiple recipients of list ORACLE-L Joze, It's not that simply. I already tried all the possible combination: chr(13)||chr(10) , chr(10)||chr(13), chr(13) , chr(10)||chr(10)... Thanks for your input anyway. Regards, Kitty -Original Message- Sent: Friday, November 14, 2003 6:09 AM To: Multiple recipients of list ORACLE-L The solution is simple. The correct sequence of characters is not chr(10)||chr(13) but rather chr(13)||chr(10). This is obviously changed by notepad. regards, Joze -Original Message- Sent: Friday, November 14, 2003 5:59 AM To: Multiple recipients of list ORACLE-L Hi, Currently I am working on a project that requires me to transfer "Customer Master Record" data into SAP R/3 system from my oracle database (9.2.0.4 running on Solaris 5.9). The text file (contains LF and CR) generated by PLSQL or Oracle reporter builder could not be loaded into the SAP database (running on the same version of oracle database on W2K). It breaks on the CR. However, when I open the text file by notepad, do nothing, just simply save the file, re-run the data load, then everything works fine. Does anyone know anything about this? Please help. Thanks in advance. Kitty Luo Oracle DBA, OCP Onlane Inc. www.onlane.com [EMAIL PROTECTED] -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Kitty Luo INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Joze Senegacnik INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Kitty Luo INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). ** This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you. **5 -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Jamadagni, Rajendra INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, Californ
RE: LF and CR (chr(10)||chr(13)) problem
sorry your attachments were filtered out ... can you attach them as txt files? Raj Rajendra dot Jamadagni at nospamespn dot com All Views expressed in this email are strictly personal. QOTD: Any clod can have facts, having an opinion is an art ! -Original Message- Sent: Friday, November 14, 2003 9:44 AM To: Multiple recipients of list ORACLE-L The size do differ between two files. I attached both files. The problem is between the end of line2 "/" and the begin of line3 "2" in the customer.txt. Thanks, Kitty -Original Message- Sent: Friday, November 14, 2003 9:09 AM To: Multiple recipients of list ORACLE-L Kitty, when the file is written by pl/sql note its size. Then open and save in notepad and note its size. If both sizes are different, you know there is a CR/LF problem, else problems is somewhere else. Raj Rajendra dot Jamadagni at nospamespn dot com All Views expressed in this email are strictly personal. QOTD: Any clod can have facts, having an opinion is an art ! -Original Message- Sent: Friday, November 14, 2003 8:54 AM To: Multiple recipients of list ORACLE-L Joze, It's not that simply. I already tried all the possible combination: chr(13)||chr(10) , chr(10)||chr(13), chr(13) , chr(10)||chr(10)... Thanks for your input anyway. Regards, Kitty -Original Message- Sent: Friday, November 14, 2003 6:09 AM To: Multiple recipients of list ORACLE-L The solution is simple. The correct sequence of characters is not chr(10)||chr(13) but rather chr(13)||chr(10). This is obviously changed by notepad. regards, Joze -Original Message- Sent: Friday, November 14, 2003 5:59 AM To: Multiple recipients of list ORACLE-L Hi, Currently I am working on a project that requires me to transfer "Customer Master Record" data into SAP R/3 system from my oracle database (9.2.0.4 running on Solaris 5.9). The text file (contains LF and CR) generated by PLSQL or Oracle reporter builder could not be loaded into the SAP database (running on the same version of oracle database on W2K). It breaks on the CR. However, when I open the text file by notepad, do nothing, just simply save the file, re-run the data load, then everything works fine. Does anyone know anything about this? Please help. Thanks in advance. Kitty Luo Oracle DBA, OCP Onlane Inc. www.onlane.com [EMAIL PROTECTED] -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Kitty Luo INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Joze Senegacnik INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Kitty Luo INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). ** This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you. *
RE: LF and CR (chr(10)||chr(13)) problem
The size do differ between two files. I attached both files. The problem is between the end of line2 "/" and the begin of line3 "2" in the customer.txt. Thanks, Kitty -Original Message- Sent: Friday, November 14, 2003 9:09 AM To: Multiple recipients of list ORACLE-L Kitty, when the file is written by pl/sql note its size. Then open and save in notepad and note its size. If both sizes are different, you know there is a CR/LF problem, else problems is somewhere else. Raj Rajendra dot Jamadagni at nospamespn dot com All Views expressed in this email are strictly personal. QOTD: Any clod can have facts, having an opinion is an art ! -Original Message- Sent: Friday, November 14, 2003 8:54 AM To: Multiple recipients of list ORACLE-L Joze, It's not that simply. I already tried all the possible combination: chr(13)||chr(10) , chr(10)||chr(13), chr(13) , chr(10)||chr(10)... Thanks for your input anyway. Regards, Kitty -Original Message- Sent: Friday, November 14, 2003 6:09 AM To: Multiple recipients of list ORACLE-L The solution is simple. The correct sequence of characters is not chr(10)||chr(13) but rather chr(13)||chr(10). This is obviously changed by notepad. regards, Joze -Original Message- Sent: Friday, November 14, 2003 5:59 AM To: Multiple recipients of list ORACLE-L Hi, Currently I am working on a project that requires me to transfer "Customer Master Record" data into SAP R/3 system from my oracle database (9.2.0.4 running on Solaris 5.9). The text file (contains LF and CR) generated by PLSQL or Oracle reporter builder could not be loaded into the SAP database (running on the same version of oracle database on W2K). It breaks on the CR. However, when I open the text file by notepad, do nothing, just simply save the file, re-run the data load, then everything works fine. Does anyone know anything about this? Please help. Thanks in advance. Kitty Luo Oracle DBA, OCP Onlane Inc. www.onlane.com [EMAIL PROTECTED] -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Kitty Luo INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Joze Senegacnik INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Kitty Luo INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). ** This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you. **5 -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Jamadagni, Rajendra INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this m
RE: LF and CR (chr(10)||chr(13)) problem
Maybe possible that this is related to what Unix needs at that end of a line and what DOS needs at the end of line and what happens when such files get FTP-ed in ascii mode from one to the other? -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: <[EMAIL PROTECTED] INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
RE: LF and CR (chr(10)||chr(13)) problem
Title: RE: LF and CR (chr(10)||chr(13)) problem Then you should use an editor that is capable to show file contents in hex. Or you can use a program that compares two files - the original and the one "transformed" by notepad and see the difference. Regards, Joze -Original Message- From: Kitty Luo [mailto:[EMAIL PROTECTED]] Sent: Friday, November 14, 2003 2:54 PM To: Multiple recipients of list ORACLE-L Subject: RE: LF and CR (chr(10)||chr(13)) problem Joze, It's not that simply. I already tried all the possible combination: chr(13)||chr(10) , chr(10)||chr(13), chr(13) , chr(10)||chr(10)... Thanks for your input anyway. Regards, Kitty -Original Message- Sent: Friday, November 14, 2003 6:09 AM To: Multiple recipients of list ORACLE-L The solution is simple. The correct sequence of characters is not chr(10)||chr(13) but rather chr(13)||chr(10). This is obviously changed by notepad. regards, Joze -Original Message- Sent: Friday, November 14, 2003 5:59 AM To: Multiple recipients of list ORACLE-L Hi, Currently I am working on a project that requires me to transfer "Customer Master Record" data into SAP R/3 system from my oracle database (9.2.0.4 running on Solaris 5.9). The text file (contains LF and CR) generated by PLSQL or Oracle reporter builder could not be loaded into the SAP database (running on the same version of oracle database on W2K). It breaks on the CR. However, when I open the text file by notepad, do nothing, just simply save the file, re-run the data load, then everything works fine. Does anyone know anything about this? Please help. Thanks in advance. Kitty Luo Oracle DBA, OCP Onlane Inc. www.onlane.com [EMAIL PROTECTED] -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Kitty Luo INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Joze Senegacnik INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Kitty Luo INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
RE: LF and CR (chr(10)||chr(13)) problem
Kitty, when the file is written by pl/sql note its size. Then open and save in notepad and note its size. If both sizes are different, you know there is a CR/LF problem, else problems is somewhere else. Raj Rajendra dot Jamadagni at nospamespn dot com All Views expressed in this email are strictly personal. QOTD: Any clod can have facts, having an opinion is an art ! -Original Message- Sent: Friday, November 14, 2003 8:54 AM To: Multiple recipients of list ORACLE-L Joze, It's not that simply. I already tried all the possible combination: chr(13)||chr(10) , chr(10)||chr(13), chr(13) , chr(10)||chr(10)... Thanks for your input anyway. Regards, Kitty -Original Message- Sent: Friday, November 14, 2003 6:09 AM To: Multiple recipients of list ORACLE-L The solution is simple. The correct sequence of characters is not chr(10)||chr(13) but rather chr(13)||chr(10). This is obviously changed by notepad. regards, Joze -Original Message- Sent: Friday, November 14, 2003 5:59 AM To: Multiple recipients of list ORACLE-L Hi, Currently I am working on a project that requires me to transfer "Customer Master Record" data into SAP R/3 system from my oracle database (9.2.0.4 running on Solaris 5.9). The text file (contains LF and CR) generated by PLSQL or Oracle reporter builder could not be loaded into the SAP database (running on the same version of oracle database on W2K). It breaks on the CR. However, when I open the text file by notepad, do nothing, just simply save the file, re-run the data load, then everything works fine. Does anyone know anything about this? Please help. Thanks in advance. Kitty Luo Oracle DBA, OCP Onlane Inc. www.onlane.com [EMAIL PROTECTED] -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Kitty Luo INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Joze Senegacnik INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Kitty Luo INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). ** This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you. **5 -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Jamadagni, Rajendra INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like s
RE: LF and CR (chr(10)||chr(13)) problem
Peter, Thanks for your input. You misunderstood the problem. The point is the SAP needs that LF and CR (chr(10) and chr(13)). Of course, I used a hex editor to look at it, they are OK (0A and 0D). That's why it is frustrate. Anybody who had a similar problem before, please help me. Thanks, Kitty -Original Message- Sent: Friday, November 14, 2003 7:20 AM To: Multiple recipients of list ORACLE-L Strip out the chr(10) and chr(13) using update tname set field = replace(field,chr(13),' ') where instr(column_name,chr(13)) > 0 having count(*) > 0;' BUT check whether you want to replace your chr(10) and chr(13) with a space( ' ') or nothing (''). Use the above 'where' clause in a select to look for these non-printers first. Oh yes - don't judge data contents by what Notepad might show you. Use a hex editor (or dump) if you really want to check. peter edinburgh > -Original Message- > From: Kitty Luo [mailto:[EMAIL PROTECTED] > Sent: Friday, November 14, 2003 4:59 AM > To: Multiple recipients of list ORACLE-L > Subject: LF and CR (chr(10)||chr(13)) problem > > > > Hi, > > Currently I am working on a project that requires me to > transfer "Customer Master Record" data into SAP R/3 system > from my oracle database (9.2.0.4 running on Solaris 5.9). The > text file (contains LF and CR) generated by PLSQL or Oracle > reporter builder could not be loaded into the SAP database > (running on the same version of oracle database on W2K). It > breaks on the CR. However, when I open the text file by > notepad, do nothing, just simply save the file, re-run the > data load, then everything works fine. Does anyone know > anything about this? Please help. > > Thanks in advance. > > Kitty Luo > Oracle DBA, OCP > Onlane Inc. > www.onlane.com > [EMAIL PROTECTED] > -- > Please see the official ORACLE-L FAQ: http://www.orafaq.net > -- > Author: Kitty Luo > INET: [EMAIL PROTECTED] > > Fat City Network Services-- 858-538-5051 http://www.fatcity.com > San Diego, California-- Mailing list and web hosting services > - > To REMOVE yourself from this mailing list, send an E-Mail message > to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in > the message BODY, include a line containing: UNSUB ORACLE-L > (or the name of mailing list you want to be removed from). You may > also send the HELP command for other information (like subscribing). > * This e-mail message, and any files transmitted with it, are confidential and intended solely for the use of the addressee. If this message was not addressed to you, you have received it in error and any copying, distribution or other use of any part of it is strictly prohibited. Any views or opinions presented are solely those of the sender and do not necessarily represent those of the British Geological Survey. The security of e-mail communication cannot be guaranteed and the BGS accepts no liability for claims arising as a result of the use of this medium to transmit messages from or to the BGS. .http://www.bgs.ac.uk * -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Robson, Peter INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Kitty Luo INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
RE: LF and CR (chr(10)||chr(13)) problem
Joze, It's not that simply. I already tried all the possible combination: chr(13)||chr(10) , chr(10)||chr(13), chr(13) , chr(10)||chr(10)... Thanks for your input anyway. Regards, Kitty -Original Message- Sent: Friday, November 14, 2003 6:09 AM To: Multiple recipients of list ORACLE-L The solution is simple. The correct sequence of characters is not chr(10)||chr(13) but rather chr(13)||chr(10). This is obviously changed by notepad. regards, Joze -Original Message- Sent: Friday, November 14, 2003 5:59 AM To: Multiple recipients of list ORACLE-L Hi, Currently I am working on a project that requires me to transfer "Customer Master Record" data into SAP R/3 system from my oracle database (9.2.0.4 running on Solaris 5.9). The text file (contains LF and CR) generated by PLSQL or Oracle reporter builder could not be loaded into the SAP database (running on the same version of oracle database on W2K). It breaks on the CR. However, when I open the text file by notepad, do nothing, just simply save the file, re-run the data load, then everything works fine. Does anyone know anything about this? Please help. Thanks in advance. Kitty Luo Oracle DBA, OCP Onlane Inc. www.onlane.com [EMAIL PROTECTED] -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Kitty Luo INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Joze Senegacnik INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Kitty Luo INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
RE: LF and CR (chr(10)||chr(13)) problem
Strip out the chr(10) and chr(13) using update tname set field = replace(field,chr(13),' ') where instr(column_name,chr(13)) > 0 having count(*) > 0;' BUT check whether you want to replace your chr(10) and chr(13) with a space( ' ') or nothing (''). Use the above 'where' clause in a select to look for these non-printers first. Oh yes - don't judge data contents by what Notepad might show you. Use a hex editor (or dump) if you really want to check. peter edinburgh > -Original Message- > From: Kitty Luo [mailto:[EMAIL PROTECTED] > Sent: Friday, November 14, 2003 4:59 AM > To: Multiple recipients of list ORACLE-L > Subject: LF and CR (chr(10)||chr(13)) problem > > > > Hi, > > Currently I am working on a project that requires me to > transfer "Customer Master Record" data into SAP R/3 system > from my oracle database (9.2.0.4 running on Solaris 5.9). The > text file (contains LF and CR) generated by PLSQL or Oracle > reporter builder could not be loaded into the SAP database > (running on the same version of oracle database on W2K). It > breaks on the CR. However, when I open the text file by > notepad, do nothing, just simply save the file, re-run the > data load, then everything works fine. Does anyone know > anything about this? Please help. > > Thanks in advance. > > Kitty Luo > Oracle DBA, OCP > Onlane Inc. > www.onlane.com > [EMAIL PROTECTED] > -- > Please see the official ORACLE-L FAQ: http://www.orafaq.net > -- > Author: Kitty Luo > INET: [EMAIL PROTECTED] > > Fat City Network Services-- 858-538-5051 http://www.fatcity.com > San Diego, California-- Mailing list and web hosting services > - > To REMOVE yourself from this mailing list, send an E-Mail message > to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in > the message BODY, include a line containing: UNSUB ORACLE-L > (or the name of mailing list you want to be removed from). You may > also send the HELP command for other information (like subscribing). > * This e-mail message, and any files transmitted with it, are confidential and intended solely for the use of the addressee. If this message was not addressed to you, you have received it in error and any copying, distribution or other use of any part of it is strictly prohibited. Any views or opinions presented are solely those of the sender and do not necessarily represent those of the British Geological Survey. The security of e-mail communication cannot be guaranteed and the BGS accepts no liability for claims arising as a result of the use of this medium to transmit messages from or to the BGS. .http://www.bgs.ac.uk * -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Robson, Peter INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
RE: LF and CR (chr(10)||chr(13)) problem
The solution is simple. The correct sequence of characters is not chr(10)||chr(13) but rather chr(13)||chr(10). This is obviously changed by notepad. regards, Joze -Original Message- Sent: Friday, November 14, 2003 5:59 AM To: Multiple recipients of list ORACLE-L Hi, Currently I am working on a project that requires me to transfer "Customer Master Record" data into SAP R/3 system from my oracle database (9.2.0.4 running on Solaris 5.9). The text file (contains LF and CR) generated by PLSQL or Oracle reporter builder could not be loaded into the SAP database (running on the same version of oracle database on W2K). It breaks on the CR. However, when I open the text file by notepad, do nothing, just simply save the file, re-run the data load, then everything works fine. Does anyone know anything about this? Please help. Thanks in advance. Kitty Luo Oracle DBA, OCP Onlane Inc. www.onlane.com [EMAIL PROTECTED] -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Kitty Luo INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Joze Senegacnik INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- Mailing list and web hosting services - To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).