Re: sql*loader datatype question
Lisa, A suggestion, and I hope it's not too late. :) Change the datatype to varchar2. Phone numbers are not actually numbers, they're character fields. My rule of thumb is: if you don't do math on it, it isn't a number. Jared On Thursday 30 August 2001 10:33, Koivu, Lisa wrote: I'm hitting a wall here. I'm trying to load data into a large table. Two of the fields are phone numbers (10 digits). The database field is defined as number(10). When I try to load these records, they err out with an error similar to below. Record 858: Rejected - Error on table INV_OWNER.FPSITE, column FPS_AFFIL_LTD_PTS_FPS. ORA-01722: invalid number So I change the fields to character, get the data in and it truly is all 10-digit numbers. I'm wondering if I'm missing something in the format. The doco says that INTEGER EXTERNAL is to be used for human readable numbers, non-binary, when you want to specify the length. The length I've chosen is correct. I can even create a table with number(10) columns and insert the varchar(10) phone number data into it! What am I missing? I really do not want to change all my number fields to character. It would defeat the purpose. I have a feeling I'm missing some sort of conversion in SQL*Loader but I don't see it off the top of my head. Thanks in advance for any suggestions. Lisa Koivu wanna-be DBA Hand Holder (that's what I've been doing this morning with an ex-coworker) and DBA Ft. Lauderdale, FL, USA The information in the electronic mail message is Cendant confidential and may be legally privileged, it is intended solely for the addressee(s) access to this internet electronic mail message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. Cendant Corporation or Affiliates are not liable for any loss or damage arising in any way from this message or its attachments. Content-Type: text/html; name=Attachment: 1 Content-Transfer-Encoding: quoted-printable Content-Description: -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Jared Still INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists 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: sql*loader datatype question
Title: RE: sql*loader datatype question Hi David, Know what... I casted the phone number and that field works fine. AFter dumping the data and looking at where it ended up I saw that I was cross-eyed and had my column numbers off by like 1 or 2. This gets really tedious with 100+ fields and a record length of 1500. MY BAD Thanks everyone for your help. However, I think I'm beyond help today (football on the brain) Lisa -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 2:59 PM To: Multiple recipients of list ORACLE-L Subject: Re: sql*loader datatype question Lisa, Can you show us the control file and a couple of lines of sample data? Are you sure you don't have an unprintable character before/after the phone number? Is this occurring for all the phone numbers? David A. Barbour Oracle DBA, OCP AISD 512-414-1002 Koivu, Lisa lisa.koivu@efair To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] field.com cc: Sent by: Subject: sql*loader datatype question [EMAIL PROTECTED] 08/30/2001 12:33 PM Please respond to ORACLE-L I'm hitting a wall here. I'm trying to load data into a large table. Two of the fields are phone numbers (10 digits). The database field is defined as number(10). When I try to load these records, they err out with an error similar to below. Record 858: Rejected - Error on table INV_OWNER.FPSITE, column FPS_AFFIL_LTD_PTS_FPS. ORA-01722: invalid number So I change the fields to character, get the data in and it truly is all 10-digit numbers. I'm wondering if I'm missing something in the format. The doco says that INTEGER EXTERNAL is to be used for human readable numbers, non-binary, when you want to specify the length. The length I've chosen is correct. I can even create a table with number(10) columns and insert the varchar(10) phone number data into it! What am I missing? I really do not want to change all my number fields to character. It would defeat the purpose. I have a feeling I'm missing some sort of conversion in SQL*Loader but I don't see it off the top of my head. Thanks in advance for any suggestions. Lisa Koivu wanna-be DBA Hand Holder (that's what I've been doing this morning with an ex-coworker) and DBA Ft. Lauderdale, FL, USA The information in the electronic mail message is Cendant confidential and may be legally privileged, it is intended solely for the addressee(s) access to this internet electronic mail message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. Cendant Corporation or Affiliates are not liable for any loss or damage arising in any way from this message or its attachments. -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists 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: sql*loader datatype question
Lisa, in the modeling world, unless you are performing a calculation(like on phone number), i've always been told to make them character. joe [EMAIL PROTECTED] 08/30/01 01:33PM I'm hitting a wall here. I'm trying to load data into a large table. Two of the fields are phone numbers (10 digits). The database field is defined as number(10). When I try to load these records, they err out with an error similar to below. Record 858: Rejected - Error on table INV_OWNER.FPSITE, column FPS_AFFIL_LTD_PTS_FPS. ORA-01722: invalid number So I change the fields to character, get the data in and it truly is all 10-digit numbers. I'm wondering if I'm missing something in the format. The doco says that INTEGER EXTERNAL is to be used for "human readable" numbers, non-binary, when you want to specify the length. The length I've chosen is correct. I can even create a table with number(10) columns and insert the varchar(10) phone number data into it! What am I missing? I really do not want to change all my number fields to character. It would defeat the purpose. I have a feeling I'm missing some sort of conversion in SQL*Loader but I don't see it off the top of my head. Thanks in advance for any suggestions. Lisa Koivu wanna-be DBA Hand Holder (that's what I've been doing this morning with an ex-coworker) and DBA Ft. Lauderdale, FL, USA The information in the electronic mail message is Cendant confidential and may be legally privileged, it is intended solely for the addressee(s) access to this internet electronic mail message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. Cendant Corporation or Affiliates are not liable for any loss or damage arising in any way from this message or its attachments.
Re: sql*loader datatype question
Title: sql*loader datatype question Lisa, Try to specify 'BADFILE' when using SQL*LOADER, should help you to find bad record. From FM: When SQL*Loader executes, it can create a file called a bad file or reject file in which it places records that were rejected because of formatting errors or because they caused Oracle errors. If you have specified that a bad file is to be created, the following applies: if one or more records are rejected, the bad file is logged. Igor Neyman, OCP DBAPerceptron, Inc.(734)414-4627[EMAIL PROTECTED] - Original Message - From: Koivu, Lisa To: Multiple recipients of list ORACLE-L Sent: Thursday, August 30, 2001 1:33 PM Subject: sql*loader datatype question I'm hitting a wall here. I'm trying to load data into a large table. Two of the fields are phone numbers (10 digits). The database field is defined as number(10). When I try to load these records, they err out with an error similar to below. Record 858: Rejected - Error on table INV_OWNER.FPSITE, column FPS_AFFIL_LTD_PTS_FPS. ORA-01722: invalid number So I change the fields to character, get the data in and it truly is all 10-digit numbers. I'm wondering if I'm missing something in the format. The doco says that INTEGER EXTERNAL is to be used for "human readable" numbers, non-binary, when you want to specify the length. The length I've chosen is correct. I can even create a table with number(10) columns and insert the varchar(10) phone number data into it! What am I missing? I really do not want to change all my number fields to character. It would defeat the purpose. I have a feeling I'm missing some sort of conversion in SQL*Loader but I don't see it off the top of my head. Thanks in advance for any suggestions. Lisa Koivu wanna-be DBA Hand Holder (that's what I've been doing this morning with an ex-coworker) and DBA Ft. Lauderdale, FL, USA The information in the electronic mail message is Cendant confidential and may be legally privileged, it is intended solely for the addressee(s) access to this internet electronic mail message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. Cendant Corporation or Affiliates are not liable for any loss or damage arising in any way from this message or its attachments.
RE: sql*loader datatype question
Title: RE: sql*loader datatype question Yup, looked at that too. Unfortunately the record is 1500 characters long. That's a lot to just eyeball. Thanks -Original Message- From: Igor Neyman [SMTP:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 2:31 PM To: Multiple recipients of list ORACLE-L Subject: Re: sql*loader datatype question Lisa, Try to specify 'BADFILE' when using SQL*LOADER, should help you to find bad record. From FM: When SQL*Loader executes, it can create a file called a bad file or reject file in which it places records that were rejected because of formatting errors or because they caused Oracle errors. If you have specified that a bad file is to be created, the following applies: if one or more records are rejected, the bad file is logged. Igor Neyman, OCP DBA Perceptron, Inc. (734)414-4627 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] - Original Message - From: Koivu, Lisa mailto:[EMAIL PROTECTED] To: Multiple recipients of list ORACLE-L mailto:[EMAIL PROTECTED] Sent: Thursday, August 30, 2001 1:33 PM Subject: sql*loader datatype question I'm hitting a wall here. I'm trying to load data into a large table. Two of the fields are phone numbers (10 digits). The database field is defined as number(10). When I try to load these records, they err out with an error similar to below. Record 858: Rejected - Error on table INV_OWNER.FPSITE, column FPS_AFFIL_LTD_PTS_FPS. ORA-01722: invalid number So I change the fields to character, get the data in and it truly is all 10-digit numbers. I'm wondering if I'm missing something in the format. The doco says that INTEGER EXTERNAL is to be used for human readable numbers, non-binary, when you want to specify the length. The length I've chosen is correct. I can even create a table with number(10) columns and insert the varchar(10) phone number data into it! What am I missing? I really do not want to change all my number fields to character. It would defeat the purpose. I have a feeling I'm missing some sort of conversion in SQL*Loader but I don't see it off the top of my head. Thanks in advance for any suggestions. Lisa Koivu wanna-be DBA Hand Holder (that's what I've been doing this morning with an ex-coworker) and DBA Ft. Lauderdale, FL, USA The information in the electronic mail message is Cendant confidential and may be legally privileged, it is intended solely for the addressee(s) access to this internet electronic mail message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. Cendant Corporation or Affiliates are not liable for any loss or damage arising in any way from this message or its attachments.
RE: sql*loader datatype question
how about a cut of the 10 chars, then grep looking for A-Z, a-z in whats left. joe [EMAIL PROTECTED] 08/30/01 02:58PM Yup, looked at that too. Unfortunately the record is 1500 characters long. That's a lot to just eyeball. Thanks -Original Message- From: Igor Neyman [SMTP:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 2:31 PM To: Multiple recipients of list ORACLE-L Subject: Re: sql*loader datatype question Lisa, Try to specify 'BADFILE' when using SQL*LOADER, should help you to find bad record. From FM: When SQL*Loader executes, it can create a file called a bad file or reject file in which it places records that were rejected because of formatting errors or because they caused Oracle errors. If you have specified that a bad file is to be created, the following applies: if one or more records are rejected, the bad file is logged. Igor Neyman, OCP DBAPerceptron, Inc.(734)414-4627[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] - Original Message - From: Koivu, Lisa mailto:[EMAIL PROTECTED] To: Multiple recipients of list ORACLE-L mailto:[EMAIL PROTECTED] Sent: Thursday, August 30, 2001 1:33 PM Subject: sql*loader datatype question I'm hitting a wall here. I'm trying to load data into a large table. Two of the fields are phone numbers (10 digits). The database field is defined as number(10). When I try to load these records, they err out with an error similar to below. Record 858: Rejected - Error on table INV_OWNER.FPSITE, column FPS_AFFIL_LTD_PTS_FPS.ORA-01722: invalid number So I change the fields to character, get the data in and it truly is all 10-digit numbers. I'm wondering if I'm missing something in the format. The doco says that INTEGER EXTERNAL is to be used for "human readable" numbers, non-binary, when you want to specify the length. The length I've chosen is correct. I can even create a table with number(10) columns and insert the varchar(10) phone number data into it! What am I missing? I really do not want to change all my number fields to character. It would defeat the purpose. I have a feeling I'm missing some sort of conversion in SQL*Loader but I don't see it off the top of my head. Thanks in advance for any suggestions. Lisa Koivuwanna-be DBA Hand Holder (that's what I've been doing this morning with an ex-coworker) and DBAFt. Lauderdale, FL, USA The information in the electronic mail message is Cendant confidential and may be legally privileged, it is intended solely for the addressee(s) access to this internet electronic mail message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. Cendant Corporation or Affiliates are not liable for any loss or damage arising in any way from this message or its attachments.
Re: sql*loader datatype question
Lisa, Is the field you are attempting to load the last field in the string? is the delimited in place? The reason being is the EXTERNAL INTEGER data might be interpreted at char including the space at the end of the string. That has bit me before and now all non-numbers are enclosed in quotes. ROR mª¿ªm [EMAIL PROTECTED] 08/30/01 01:33PM I'm hitting a wall here. I'm trying to load data into a large table. Two of the fields are phone numbers (10 digits). The database field is defined as number(10). When I try to load these records, they err out with an error similar to below. Record 858: Rejected - Error on table INV_OWNER.FPSITE, column FPS_AFFIL_LTD_PTS_FPS. ORA-01722: invalid number So I change the fields to character, get the data in and it truly is all 10-digit numbers. I'm wondering if I'm missing something in the format. The doco says that INTEGER EXTERNAL is to be used for human readable numbers, non-binary, when you want to specify the length. The length I've chosen is correct. I can even create a table with number(10) columns and insert the varchar(10) phone number data into it! What am I missing? I really do not want to change all my number fields to character. It would defeat the purpose. I have a feeling I'm missing some sort of conversion in SQL*Loader but I don't see it off the top of my head. Thanks in advance for any suggestions. Lisa Koivu wanna-be DBA Hand Holder (that's what I've been doing this morning with an ex-coworker) and DBA Ft. Lauderdale, FL, USA The information in the electronic mail message is Cendant confidential and may be legally privileged, it is intended solely for the addressee(s) access to this internet electronic mail message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. Cendant Corporation or Affiliates are not liable for any loss or damage arising in any way from this message or its attachments. -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Ron Rogers INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists 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: sql*loader datatype question
Lisa, Have you tried loading without specifying any datatype and length in the control file? Just a thought... Prakash -Original Message- Sent: Thursday, August 30, 2001 1:33 PM To: Multiple recipients of list ORACLE-L I'm hitting a wall here. I'm trying to load data into a large table. Two of the fields are phone numbers (10 digits). The database field is defined as number(10). When I try to load these records, they err out with an error similar to below. Record 858: Rejected - Error on table INV_OWNER.FPSITE, column FPS_AFFIL_LTD_PTS_FPS. ORA-01722: invalid number So I change the fields to character, get the data in and it truly is all 10-digit numbers. I'm wondering if I'm missing something in the format. The doco says that INTEGER EXTERNAL is to be used for human readable numbers, non-binary, when you want to specify the length. The length I've chosen is correct. I can even create a table with number(10) columns and insert the varchar(10) phone number data into it! What am I missing? I really do not want to change all my number fields to character. It would defeat the purpose. I have a feeling I'm missing some sort of conversion in SQL*Loader but I don't see it off the top of my head. Thanks in advance for any suggestions. Lisa Koivu wanna-be DBA Hand Holder (that's what I've been doing this morning with an ex-coworker) and DBA Ft. Lauderdale, FL, USA The information in the electronic mail message is Cendant confidential and may be legally privileged, it is intended solely for the addressee(s) access to this internet electronic mail message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. Cendant Corporation or Affiliates are not liable for any loss or damage arising in any way from this message or its attachments. -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Bala, Prakash INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists 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: sql*loader datatype question
Lisa, Can you show us the control file and a couple of lines of sample data? Are you sure you don't have an unprintable character before/after the phone number? Is this occurring for all the phone numbers? David A. Barbour Oracle DBA, OCP AISD 512-414-1002 Koivu, Lisa lisa.koivu@efair To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] field.com cc: Sent by:Subject: sql*loader datatype question [EMAIL PROTECTED] 08/30/2001 12:33 PM Please respond to ORACLE-L I'm hitting a wall here. I'm trying to load data into a large table. Two of the fields are phone numbers (10 digits). The database field is defined as number(10). When I try to load these records, they err out with an error similar to below. Record 858: Rejected - Error on table INV_OWNER.FPSITE, column FPS_AFFIL_LTD_PTS_FPS. ORA-01722: invalid number So I change the fields to character, get the data in and it truly is all 10-digit numbers. I'm wondering if I'm missing something in the format. The doco says that INTEGER EXTERNAL is to be used for human readable numbers, non-binary, when you want to specify the length. The length I've chosen is correct. I can even create a table with number(10) columns and insert the varchar(10) phone number data into it! What am I missing? I really do not want to change all my number fields to character. It would defeat the purpose. I have a feeling I'm missing some sort of conversion in SQL*Loader but I don't see it off the top of my head. Thanks in advance for any suggestions. Lisa Koivu wanna-be DBA Hand Holder (that's what I've been doing this morning with an ex-coworker) and DBA Ft. Lauderdale, FL, USA The information in the electronic mail message is Cendant confidential and may be legally privileged, it is intended solely for the addressee(s) access to this internet electronic mail message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. Cendant Corporation or Affiliates are not liable for any loss or damage arising in any way from this message or its attachments. -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists 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: sql*loader datatype question
Title: RE: sql*loader datatype question Well noo it's fixed-length and I think I'd end up with a big jumble, wouldn't I? No delims in the file. -Original Message- From: Bala, Prakash [SMTP:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 2:48 PM To: Multiple recipients of list ORACLE-L Subject: RE: sql*loader datatype question Lisa, Have you tried loading without specifying any datatype and length in the control file? Just a thought... Prakash -Original Message- Sent: Thursday, August 30, 2001 1:33 PM To: Multiple recipients of list ORACLE-L I'm hitting a wall here. I'm trying to load data into a large table. Two of the fields are phone numbers (10 digits). The database field is defined as number(10). When I try to load these records, they err out with an error similar to below. Record 858: Rejected - Error on table INV_OWNER.FPSITE, column FPS_AFFIL_LTD_PTS_FPS. ORA-01722: invalid number So I change the fields to character, get the data in and it truly is all 10-digit numbers. I'm wondering if I'm missing something in the format. The doco says that INTEGER EXTERNAL is to be used for human readable numbers, non-binary, when you want to specify the length. The length I've chosen is correct. I can even create a table with number(10) columns and insert the varchar(10) phone number data into it! What am I missing? I really do not want to change all my number fields to character. It would defeat the purpose. I have a feeling I'm missing some sort of conversion in SQL*Loader but I don't see it off the top of my head. Thanks in advance for any suggestions. Lisa Koivu wanna-be DBA Hand Holder (that's what I've been doing this morning with an ex-coworker) and DBA Ft. Lauderdale, FL, USA The information in the electronic mail message is Cendant confidential and may be legally privileged, it is intended solely for the addressee(s) access to this internet electronic mail message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. Cendant Corporation or Affiliates are not liable for any loss or damage arising in any way from this message or its attachments. -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Bala, Prakash INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists 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: sql*loader datatype question
Title: RE: sql*loader datatype question Good explanation but no it's not -Original Message- From: Ron Rogers [SMTP:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 2:48 PM To: Multiple recipients of list ORACLE-L Subject: Re: sql*loader datatype question Lisa, Is the field you are attempting to load the last field in the string? is the delimited in place? The reason being is the EXTERNAL INTEGER data might be interpreted at char including the space at the end of the string. That has bit me before and now all non-numbers are enclosed in quotes. ROR mª¿ªm [EMAIL PROTECTED] 08/30/01 01:33PM I'm hitting a wall here. I'm trying to load data into a large table. Two of the fields are phone numbers (10 digits). The database field is defined as number(10). When I try to load these records, they err out with an error similar to below. Record 858: Rejected - Error on table INV_OWNER.FPSITE, column FPS_AFFIL_LTD_PTS_FPS. ORA-01722: invalid number So I change the fields to character, get the data in and it truly is all 10-digit numbers. I'm wondering if I'm missing something in the format. The doco says that INTEGER EXTERNAL is to be used for human readable numbers, non-binary, when you want to specify the length. The length I've chosen is correct. I can even create a table with number(10) columns and insert the varchar(10) phone number data into it! What am I missing? I really do not want to change all my number fields to character. It would defeat the purpose. I have a feeling I'm missing some sort of conversion in SQL*Loader but I don't see it off the top of my head. Thanks in advance for any suggestions. Lisa Koivu wanna-be DBA Hand Holder (that's what I've been doing this morning with an ex-coworker) and DBA Ft. Lauderdale, FL, USA The information in the electronic mail message is Cendant confidential and may be legally privileged, it is intended solely for the addressee(s) access to this internet electronic mail message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. Cendant Corporation or Affiliates are not liable for any loss or damage arising in any way from this message or its attachments. -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Ron Rogers INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists 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: sql*loader datatype question
I agree with Joe. I always have declared the data to be char, even if I am loading a number field. Always seems to work. Tom Mercadante Oracle Certified Professional -Original Message-From: JOE TESTA [mailto:[EMAIL PROTECTED]]Sent: Thursday, August 30, 2001 2:48 PMTo: Multiple recipients of list ORACLE-LSubject: Re: sql*loader datatype question Lisa, in the modeling world, unless you are performing a calculation(like on phone number), i've always been told to make them character. joe [EMAIL PROTECTED] 08/30/01 01:33PM I'm hitting a wall here. I'm trying to load data into a large table. Two of the fields are phone numbers (10 digits). The database field is defined as number(10). When I try to load these records, they err out with an error similar to below. Record 858: Rejected - Error on table INV_OWNER.FPSITE, column FPS_AFFIL_LTD_PTS_FPS. ORA-01722: invalid number So I change the fields to character, get the data in and it truly is all 10-digit numbers. I'm wondering if I'm missing something in the format. The doco says that INTEGER EXTERNAL is to be used for "human readable" numbers, non-binary, when you want to specify the length. The length I've chosen is correct. I can even create a table with number(10) columns and insert the varchar(10) phone number data into it! What am I missing? I really do not want to change all my number fields to character. It would defeat the purpose. I have a feeling I'm missing some sort of conversion in SQL*Loader but I don't see it off the top of my head. Thanks in advance for any suggestions. Lisa Koivu wanna-be DBA Hand Holder (that's what I've been doing this morning with an ex-coworker) and DBA Ft. Lauderdale, FL, USA The information in the electronic mail message is Cendant confidential and may be legally privileged, it is intended solely for the addressee(s) access to this internet electronic mail message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. Cendant Corporation or Affiliates are not liable for any loss or damage arising in any way from this message or its attachments.
RE: sql*loader datatype question
Anyway, what if you need to add some non-domestic phone numbers? Henry -Original Message-From: Mercadante, Thomas F [mailto:[EMAIL PROTECTED]]Sent: Thursday, August 30, 2001 3:46 PMTo: Multiple recipients of list ORACLE-LSubject: RE: sql*loader datatype question I agree with Joe. I always have declared the data to be char, even if I am loading a number field. Always seems to work. Tom Mercadante Oracle Certified Professional -Original Message-From: JOE TESTA [mailto:[EMAIL PROTECTED]]Sent: Thursday, August 30, 2001 2:48 PMTo: Multiple recipients of list ORACLE-LSubject: Re: sql*loader datatype question Lisa, in the modeling world, unless you are performing a calculation(like on phone number), i've always been told to make them character. joe [EMAIL PROTECTED] 08/30/01 01:33PM I'm hitting a wall here. I'm trying to load data into a large table. Two of the fields are phone numbers (10 digits). The database field is defined as number(10). When I try to load these records, they err out with an error similar to below. Record 858: Rejected - Error on table INV_OWNER.FPSITE, column FPS_AFFIL_LTD_PTS_FPS. ORA-01722: invalid number So I change the fields to character, get the data in and it truly is all 10-digit numbers. I'm wondering if I'm missing something in the format. The doco says that INTEGER EXTERNAL is to be used for "human readable" numbers, non-binary, when you want to specify the length. The length I've chosen is correct. I can even create a table with number(10) columns and insert the varchar(10) phone number data into it! What am I missing? I really do not want to change all my number fields to character. It would defeat the purpose. I have a feeling I'm missing some sort of conversion in SQL*Loader but I don't see it off the top of my head. Thanks in advance for any suggestions. Lisa Koivu wanna-be DBA Hand Holder (that's what I've been doing this morning with an ex-coworker) and DBA Ft. Lauderdale, FL, USA The information in the electronic mail message is Cendant confidential and may be legally privileged, it is intended solely for the addressee(s) access to this internet electronic mail message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. Cendant Corporation or Affiliates are not liable for any loss or damage arising in any way from this message or its attachments.
RE: sql*loader datatype question
Title: RE: sql*loader datatype question Lisa, A .bad file with the offending record should have been created when sqlloader abended. Even at 1500 characters you should be able to eyeball the single bad record in a good editor and figure out what values are in the phone number part of the record. --Walt Weaver Bozeman, Montana -Original Message-From: Koivu, Lisa [mailto:[EMAIL PROTECTED]]Sent: Thursday, August 30, 2001 1:46 PMTo: Multiple recipients of list ORACLE-LSubject: RE: sql*loader datatype question Good explanation but no it's not -Original Message- From: Ron Rogers [SMTP:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 2:48 PM To: Multiple recipients of list ORACLE-L Subject: Re: sql*loader datatype question Lisa, Is the field you are attempting to load the last field in the string? is the delimited in place? The reason being is the EXTERNAL INTEGER data might be interpreted at char including the "space" at the end of the string. That has bit me before and now all non-numbers are enclosed in quotes. ROR mª¿ªm [EMAIL PROTECTED] 08/30/01 01:33PM I'm hitting a wall here. I'm trying to load data into a large table. Two of the fields are phone numbers (10 digits). The database field is defined as number(10). When I try to load these records, they err out with an error similar to below. Record 858: Rejected - Error on table INV_OWNER.FPSITE, column FPS_AFFIL_LTD_PTS_FPS. ORA-01722: invalid number So I change the fields to character, get the data in and it truly is all 10-digit numbers. I'm wondering if I'm missing something in the format. The doco says that INTEGER EXTERNAL is to be used for "human readable" numbers, non-binary, when you want to specify the length. The length I've chosen is correct. I can even create a table with number(10) columns and insert the varchar(10) phone number data into it! What am I missing? I really do not want to change all my number fields to character. It would defeat the purpose. I have a feeling I'm missing some sort of conversion in SQL*Loader but I don't see it off the top of my head. Thanks in advance for any suggestions. Lisa Koivu wanna-be DBA Hand Holder (that's what I've been doing this morning with an ex-coworker) and DBA Ft. Lauderdale, FL, USA The information in the electronic mail message is Cendant confidential and may be legally privileged, it is intended solely for the addressee(s) access to this internet electronic mail message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. Cendant Corporation or Affiliates are not liable for any loss or damage arising in any way from this message or its attachments. -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Ron Rogers INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists 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: sql*loader datatype question
Check your positioning. David A. Barbour Oracle DBA, OCP AISD 512-414-1002 Koivu, Lisa lisa.koivu@efair To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] field.com cc: Sent by:Subject: RE: sql*loader datatype question [EMAIL PROTECTED] 08/30/2001 02:46 PM Please respond to ORACLE-L Well noo it's fixed-length and I think I'd end up with a big jumble, wouldn't I? No delims in the file. -Original Message- From: Bala, Prakash [SMTP:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 2:48 PM To: Multiple recipients of list ORACLE-L Subject:RE: sql*loader datatype question Lisa, Have you tried loading without specifying any datatype and length in the control file? Just a thought... Prakash -Original Message- Sent: Thursday, August 30, 2001 1:33 PM To: Multiple recipients of list ORACLE-L I'm hitting a wall here. I'm trying to load data into a large table. Two of the fields are phone numbers (10 digits). The database field is defined as number(10). When I try to load these records, they err out with an error similar to below. Record 858: Rejected - Error on table INV_OWNER.FPSITE, column FPS_AFFIL_LTD_PTS_FPS. ORA-01722: invalid number So I change the fields to character, get the data in and it truly is all 10-digit numbers. I'm wondering if I'm missing something in the format. The doco says that INTEGER EXTERNAL is to be used for human readable numbers, non-binary, when you want to specify the length. The length I've chosen is correct. I can even create a table with number(10) columns and insert the varchar(10) phone number data into it! What am I missing? I really do not want to change all my number fields to character. It would defeat the purpose. I have a feeling I'm missing some sort of conversion in SQL*Loader but I don't see it off the top of my head. Thanks in advance for any suggestions. Lisa Koivu wanna-be DBA Hand Holder (that's what I've been doing this morning with an ex-coworker) and DBA Ft. Lauderdale, FL, USA The information in the electronic mail message is Cendant confidential and may be legally privileged, it is intended solely for the addressee(s) access to this internet electronic mail message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. The sender believes that this E-mail and any attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. This message and its attachments could have been infected during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective and remedial action about viruses and other defects. Cendant Corporation or Affiliates are not liable for any loss or damage arising in any way from this message or its attachments. -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Bala, Prakash INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists