List of file SQL*Loader
GoodMorning,
i have one question of Sql*Loader!
Exist one list of extension file that Sql*Loader support?
I try with .dat .txt .csv .xml and this extesion is ok.
Can i load another type of file??
Thanks
Have a nice day
Post a working example.
Here's the data file which probably won't post correctly.
It contains 3 zoned decimal bytes (12|34|5D) followed by CR/LF:
?4]
Here's the table:
SQL> create table t (n number);
Table created.
The .ctl file
LOAD DATA
REPLACE
INTO TABLE T
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
(N DECIMAL(5)
The result:
SQL> select * from t;
N
-12345
{code}
Similar Messages
-
Using SQL LOADER in Oracle to import CSV file
I'm pretty new to databases and programming. Im not very good with the computer lingo so stick with me. I have a csv file that I'm trying to load into my oracle database. It contains account information such as name telephone number service dates ect. I've installed Oracle 11g Release 2. This is what I've done so far step by step..
1) Ran SQL Loader
I created a new table with the columns that I needed. For example
create table Billing ( TAP_ID char(10), ACCT_NUM char(10), MR_ID char(10), HOUSE_NUM char(10), STREET char(30), NAME char(50)
2) It prompted me that the Table was created. Next I created a control file for the data in notepad which was located in the same directory as my Billing table and has a .ctl extension. GIS.csv is the file im getting the data from and is also in the same directory and named it Billing.ctl, which looked like so..
load data
infile GIS.csv
into table Billing
fields terminated by ','
(TAP_ID, ACCT_NUM, MR_ID, HOUSE_NUM, STREET, NAME)
3) Run sqlldr from command line to use the control file
sqlldr myusername/mypassword Billing.ctl
This is where I am stuck. Ive seen video tutorials of exactly what I'm doing but I get this error:
SQL*Loader-350: Syntax error at line 1.
Expecting keyword LOAD, found "SERV TAP ID". "SERV TAP ID","ACCT NUMBER","MTR ID","SERV HOUSE","SERV STREET","SERV ^'
I dont understand why its coming up with that error. My billing.ctl has a load.
load data
infile GIS.csv
into table Billing
fields terminated by ','
(TAP_ID, ACCT_NUM, MTR_ID, SERV_HOUSE, SERV_STREET, SERV_TOWN, BIL_NAME, MTR_DATE_SET, BIL_PHONE, MTR_SIZE, BILL_CYCLE, MTR_RMT_ID)
Any thoughts?938115 wrote:
I also got this text file after the command was executed along with the GIS.bad file
SQL*Loader: Release 11.2.0.1.0 - Production on Fri Jun 1 09:56:52 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Control File: bill.ctl
Data File: GIS.csv
Bad File: GIS.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
I have thousands of records in this file and only 64 of them updated.How many record were in the table before and after? I doubt the difference is 64, unless you have exactly 64 rows but you said thousands. I believe you are probably misinterpreting the log file. can you share the full log file? As a test, create a empty table, use the same script and load same data file in this empty table. Once loading is complete, check if it has 64 rows or more. I believe what log file is saying, it is 'commiting after every 64 rows', not 'stopping after loading 64 rows'.
So, unless you show us the log file there is no way to be certain, feel free to mask confidential info, at-least top 15 and bottom 15 lines ? -
SQL LOADER NOT GENERATING BAD,LOG FILES
Hi
I am calling sqlloader from sql script using host command.We are using parameter file to mention about bad,log,ctl files.sql loader is running successfully all the records are inserted.but the problem is ,it is not creating log file,bad files ....Please give me suggestions.
Thanks.Hi,
As per ur saying the recodes are inserted successfully, so the bad file wont get created. And considering the log file, the path should mentioned in the CTL file and if not mentioned then the log file will created in the same area where the CTL file with the name of ctl file with extension .log instead of .ctl -
Hi,
I have only one field to load my table. That is there is only 1 column in my table. My control file looks like this
load data
infile '/tmp/clo.list'
--badfile 'temp_clo.bad'
into table temp_clo
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
(clo)
The fact is that my table is not getting loaded. In my input file I have a single value that has to be loaded. Please help me out.
Thanks in advanceSample Log file:
SQL*Loader: Release 9.2.0.1.0 - Production on Fri Jul 21 13:09:48 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Control File: C:\ONDEMAND_DEVELOPMENT\ond_lists.ctl
Data File: C:\ONDEMAND_DEVELOPMENT\ac_nelson_f.txt
Bad File: C:\ONDEMAND_DEVELOPMENT\ac_nelson_f.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
Table OND_LISTS, loaded from every logical record.
Insert option in effect for this table: APPEND
TRAILING NULLCOLS option in effect
Column Name Position Len Term Encl Datatype
CHANGE_TYPE FIRST * ~ O(") CHARACTER
CLASS_ID NEXT * ~ O(") CHARACTER
LIST_ID NEXT * ~ O(") CHARACTER
ITEM_ID NEXT * ~ O(") CHARACTER
HIER_ID NEXT * ~ O(") CHARACTER
PARENT_ITEM_ID NEXT * ~ O(") CHARACTER
TEXT1 NEXT * ~ O(") CHARACTER
NODE NEXT * ~ O(") CHARACTER
SELECTABLE NEXT * ~ O(") CHARACTER
CODE NEXT * ~ O(") CHARACTER
DATATYPE NEXT * ~ O(") CHARACTER
Table OND_LISTS:
2714 Rows successfully loaded.
0 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 181632 bytes(64 rows)
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 2714
Total logical records rejected: 0
Total logical records discarded: 0
Run began on Fri Jul 21 13:09:48 2006
Run ended on Fri Jul 21 13:09:54 2006
Elapsed time was: 00:00:05.67
CPU time was: 00:00:00.14 -
Invokin SQL*Loader from a stored procedure
I try to invoke SQL*LOADER from within a database package by using external C procedure (the procedure calls the system() C function) but the loader generates the following error in its log file :
SQL*Loader -523: error -2 writing to file (STDERR)
and no data is uploaded.
I have tried to use system() from within database procedures to execute OS commands and it works. Does anyone know what is the problem with using system() to execute "sqlldr <parameters>"? Is there some other way to call the loader from within a stored PL/SQL procedure?
Thank you very much for your help.
Aneta Valova
nullHi
What is your task and why you are trying to invoke SQL*Loader from strorage procedure or package? Maybe the redirecting of stderr will resolve your problem but thik is it the best way to do your job.
I am not sure, that invoking other executables from Oracle instance is good idea.
Regards
null -
Sql loader unable to read from pipe
Hi All:
I'm using named pipe along with Oracle SQL*Loader to load some 20 millions rows into database.
The source of the pipe is from a Java application which write to the pipe using simple FileOutputStream.
It can be observed that the Oracle SQL*Loader need to wait a lot on the Java application to produce enough data for loading.
The waiting is fine. However, the Oracle SQL*Loader always exist after loading about 1 million rows with output like:
SQL*Loader-501: Unable to read file (upipe.dat)
SQL*Loader-560: error reading file
SQL*Loader-2026: the load was aborted because SQL Loader cannot continue.
And in this case, the Java will throw IOException with information:
Exception in thread "main" java.io.IOException: Broken pipe
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java:284)
It runs on Linux environment with 11g database.
Any idea why this will happen?check
SQLLDR NOT LOADING ALL DATA IN DAT FILE : SQL*Loader-510/SQL*Loader-2026 [ID 741100.1] -
Problem with loading data using SQL LOADER
I am having following files with me when i run following command at command prompt
sqlldr scott/tiger@genuat control =c:\emp.ctl
then giving error as
SQL Loader 500: unable to open file
SQL Loader 553: file not found
emp.dat file data
1111,sneha,CLERK 7902,17-Dec-80,800,20
2222,manoj,SALESMAN,7698,20-Feb-72 ,1600,6500,30
3333,sheela,MANAGER,7839,8-Apr-81,2975,20
emp.ctl file
LOAD DATA
INFILE 'c:\emp.dat'
APPEND
INTO TABLE emp
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
(EMPNO,
ENAME ,
JOB,
MGR,
HIREDATE,
SAL ,
COMM,
DEPTNO)
can anyone tell me what is problem in above file why data is not loaded in table??I don't find any problem if you invoke the SQLLDR using the below command(and if you are certain that the control file resides in the C: drive).
sqlldr scott/tiger@genuat control =c:\emp.ctl
If this doesn't work then invoke the SQLLDR from the C: prompt itself.
sqlldr scott/tiger@genuat control=emp.ctl
It would locate the control file and check whether the sqlldr completes successfully? -
Using clob in sql loader utility in oracle 9i
Hi,
I want to load data into a table with 2 clob columns using a sql loader utility dat file and control file created programatically.
The size of clob in dat file can change and the clob columns are inline in data file.
As per 9i doc the size of clob is 4GB .
How can I change the control file so that it can load max 4 GB data in clob columns .
I am getting error while calling sqlldr using below control file :
SQL*Loader-350: Syntax error at line 13.
Expecting non-negative integer, found "-294967296".
,"NARRATIVE" char(4000000000)
^
control file :
LOAD DATA
INFILE '' "str X'3C213E0A'"
APPEND INTO TABLE PSD_TERM
FIELDS TERMINATED BY '~^'
TRAILING NULLCOLS
"PSD_ID" CHAR(16) NULLIF ("PSD_ID"=BLANKS)
,"PSD_SERIAL_NUM" CHAR(4) NULLIF ("PSD_SERIAL_NUM"=BLANKS)
,"PSD_TERM_COD" CHAR(4) NULLIF ("PSD_TERM_COD"=BLANKS)
,"PSD_TERM_SER_NO" CHAR(4) NULLIF ("PSD_TERM_SER_NO"=BLANKS)
,"VERSION_DT" DATE "DD-MON-YYYY HH:MI:SS AM" NULLIF ("VERSION_DT"=BLANKS)
,"LATEST_VERSION" CHAR(1) NULLIF ("LATEST_VERSION"=BLANKS)
,"NARRATIVE" char(4000000000)
,"PARTITION_DT" DATE "DD-MON-YYYY HH:MI:SS AM" NULLIF ("PARTITION_DT"=BLANKS)
,"NARRATIVE_UNEXPANDED" char(4000000000)
)Yes, you can do it. Create the sequence (suppose you call it "PK_SEQ_X") and then in your control file reference it as "PK_SEQ_X.NEXTVAL". For example suppose you wanted to put it into a column named 'Y' the entry in your control file will look like 'load data insert into table Z (Y "PK_SEQ_X.NEXTVAL", ....)'
Note that the double quotes around the sequence name are required. -
SQL*Loader-929: Error
Hi
I am getting following error
SQL*Loader-929: Error parsing insert statement for table XXEEG.XXCONV_NOR_OKS_CON_HEADERS.
ORA-00947: not enough values
while running SQL*Loader. I have same number and types of columns in target table, data file and in control file even after I am getting this error. One thing I want to mention is that there are some fields in my data file which are NULL. But I think this should not create any problem.
Please If any one can give the answer then it will be very helpful for me.Hi,
I am generating control file using a shell script and that shell script runs SQL*LOADER using that generated control file. The following control file is generating.
Control file:
OPTIONS (SKIP=1)
load data
INFILE '/home/C9976680/xxconv_nordic_oks_header.csv'
TRUNCATE
into table xxeeg.XXCONV_NOR_OKS_CON_HEADERS
fields terminated by "," optionally enclosed by '"' trailing nullcols
ID "xxconv_nordic_contract_pkg.get_seq_val('HDR')",
BATCH_NUMBER "xxconv_nordic_contract_pkg.get_batch_no(to_date(:START_DATE,'MM/DD/YYYY'),to_date(:END_DATE,'MM/DD/YYYY'))",
CONTRACT_NUMBER,
CONTRACT_VERSION,
ORACLE_CONTRACT_NUMBER "xxconv_nordic_contract_pkg.get_orcl_kno(:CONTRACT_NUMBER,CONTRACT_VERSION))",
START_DATE "to_date(:START_DATE,'MM/DD/YYYY')",
END_DATE "to_date(:END_DATE,'MM/DD/YYYY')",
STATUS,
PARTY_ID,
BILL_TO_ID,
SHIP_TO_ID,
ACCOUNTING_RULE_TYPE,
INVOICE_RULE_TYPE,
PAYMENT_TERMS,
INT_SALESREP_NAME,
EXT_SALESREP_NAME,
RENEWAL_CONTACT_NAME,
ISR_ZONE,
ORBITAL_PROFILE_ID,
CCHOLDER_NAME,
CC_ZIP,
CUST_PO,
CC_NO,
CC_EXPIRY_DATE,
ERROR_MESSAGE,
INTERFACED_STATUS_FLAG CONSTANT "N",
ERROR_STACK
Log file:
SQL*Loader: Release 8.0.6.3.0 - Production on Wed Feb 13 02:01:11 2008
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Control File: /opt/egapmdev/ebmdappl/xxeeg/bin/xxconv_nordic_oks_header.ctl
Data File: /home/C9976680/xxconv_nordic_oks_header.csv
Bad File: /opt/egapmdev/ebmdappl/xxeeg/bin/xxconv_nordic_oks_header.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 1
Errors allowed: 50
Bind array: 64 rows, maximum of 65536 bytes
Continuation: none specified
Path used: Conventional
Table XXEEG.XXCONV_NOR_OKS_CON_HEADERS, loaded from every logical record.
Insert option in effect for this table: TRUNCATE
TRAILING NULLCOLS option in effect
Column Name Position Len Term Encl Datatype
ID FIRST * , O(") CHARACTER
BATCH_NUMBER NEXT * , O(") CHARACTER
CONTRACT_NUMBER NEXT * , O(") CHARACTER
CONTRACT_VERSION NEXT * , O(") CHARACTER
ORACLE_CONTRACT_NUMBER NEXT * , O(") CHARACTER
START_DATE NEXT * , O(") CHARACTER
END_DATE NEXT * , O(") CHARACTER
STATUS NEXT * , O(") CHARACTER
PARTY_ID NEXT * , O(") CHARACTER
BILL_TO_ID NEXT * , O(") CHARACTER
SHIP_TO_ID NEXT * , O(") CHARACTER
ACCOUNTING_RULE_TYPE NEXT * , O(") CHARACTER
INVOICE_RULE_TYPE NEXT * , O(") CHARACTER
PAYMENT_TERMS NEXT * , O(") CHARACTER
INT_SALESREP_NAME NEXT * , O(") CHARACTER
EXT_SALESREP_NAME NEXT * , O(") CHARACTER
RENEWAL_CONTACT_NAME NEXT * , O(") CHARACTER
ISR_ZONE NEXT * , O(") CHARACTER
ORBITAL_PROFILE_ID NEXT * , O(") CHARACTER
CCHOLDER_NAME NEXT * , O(") CHARACTER
CC_ZIP NEXT * , O(") CHARACTER
CUST_PO NEXT * , O(") CHARACTER
CC_NO NEXT * , O(") CHARACTER
CC_EXPIRY_DATE NEXT * , O(") CHARACTER
ERROR_MESSAGE NEXT * , O(") CHARACTER
ERROR_STACK NEXT * , O(") CHARACTER
INTERFACED_STATUS_FLAG CONSTANT 'N'
Column ID had SQL string
"xxconv_nordic_contract_pkg.get_seq_val('HDR')"
applied to it.
Column BATCH_NUMBER had SQL string
"xxconv_nordic_contract_pkg.get_batch_no(to_date(:START_DATE,'MM/DD/YYYY'),to_date(:END_DATE,'MM/DD/YYYY'))"
applied to it.
Column ORACLE_CONTRACT_NUMBER had SQL string
"xxconv_nordic_contract_pkg.get_orcl_kno(:CONTRACT_NUMBER),to_char(:CONTRACT_VERSION))"
applied to it.
Column START_DATE had SQL string
"to_date(:START_DATE,'MM/DD/YYYY')"
applied to it.
Column END_DATE had SQL string
"to_date(:END_DATE,'MM/DD/YYYY')"
applied to it.
SQL*Loader-929: Error parsing insert statement for table XXEEG.XXCONV_NOR_OKS_CON_HEADERS.
ORA-00947: not enough values
Table Structure:
CREATE TABLE XXEEG.XXCONV_NOR_OKS_CON_HEADERS
( ID NUMBER CONSTRAINT HEAD_ID_PK PRIMARY KEY,
BATCH_NUMBER NUMBER,
CONTRACT_NUMBER VARCHAR2(50),
CONTRACT_VERSION NUMBER,
ORACLE_CONTRACT_NUMBER VARCHAR2(300),
START_DATE varchar2(20),
END_DATE varchar2(20),
STATUS VARCHAR2(20),
PARTY_ID NUMBER,
BILL_TO_ID NUMBER,
SHIP_TO_ID NUMBER,
ACCOUNTING_RULE_TYPE VARCHAR2(50),
INVOICE_RULE_TYPE VARCHAR2(50),
PAYMENT_TERMS VARCHAR2(50),
INT_SALESREP_NAME VARCHAR2(50),
EXT_SALESREP_NAME VARCHAR2(50),
RENEWAL_CONTACT_NAME VARCHAR2(50),
ISR_ZONE VARCHAR2(50),
ORBITAL_PROFILE_ID VARCHAR2(50),
CCHOLDER_NAME VARCHAR2(50),
CC_ZIP NUMBER,
CUST_PO VARCHAR2(50),
CC_NO NUMBER,
CC_EXPIRY_DATE varchar2(20),
ERROR_MESSAGE VARCHAR2(1000),
INTERFACED_STATUS_FLAG VARCHAR2(1),
ERROR_STACK VARCHAR2(2000)
Functions used above:
FUNCTION get_batch_no(p_start_date DATE, p_end_date DATE) RETURN NUMBER IS
BEGIN
RETURN 1;
END get_batch_no;
FUNCTION get_orcl_kno(p_contract_number VARCHAR2, p_contract_version NUMBER) RETURN VARCHAR2 IS
BEGIN
RETURN 'M'||p_contract_number||'v'||p_contract_version;
END get_orcl_kno;
FUNCTION get_seq_val (p_seqtype VARCHAR2) RETURN NUMBER IS
v_seqno NUMBER;
BEGIN
IF UPPER(p_seqtype) = 'HDR' THEN
SELECT XXCONV_NOR_HDR_S.NEXTVAL
INTO v_seqno
FROM dual;
RETURN v_seqno;
END IF;
IF UPPER(p_seqtype) = 'LINE' THEN
SELECT XXCONV_NOR_LINE_S.NEXTVAL
INTO v_seqno
FROM dual;
RETURN v_seqno;
END IF;
IF UPPER(p_seqtype) = 'SUBLINE' THEN
SELECT XXCONV_NOR_SUBLINE_S.NEXTVAL
INTO v_seqno
FROM dual;
RETURN v_seqno;
END IF;
IF UPPER(p_seqtype) = 'BILL_SCH' THEN
SELECT XXCONV_NOR_BILL_SCH_S.NEXTVAL
INTO v_seqno
FROM dual;
RETURN v_seqno;
END IF;
IF UPPER(p_seqtype) = 'PMS' THEN
SELECT XXCONV_NOR_PMS_S.NEXTVAL
INTO v_seqno
FROM dual;
RETURN v_seqno;
END IF;
IF UPPER(p_seqtype) = 'TEST' THEN
SELECT XXCONV_NOR_WARRANTY_S.NEXTVAL
INTO v_seqno
FROM dual;
RETURN v_seqno;
END IF;
END get_seq_val;
----------------------------------- -
Error while loading throug sql loader
Hi All,
Trying to use sql loader in order to laod csv format data. However, during load, I come across with errors.
Please find below my log,control and datafile.
------------Ctl File----------------
load data
discardfile 'c:\dis.log'
infile 'c:\csv\personal1.csv'
into table personal_expenses
fields terminated by ","
trailing nullcols
(PURCHASE_DATE date 'mm/dd/yy',PAYEE,RUPEE_SPENT,CATEGORY,SUB_CATEGORY,DESCRIPTION)
------------- Log FIle---------------------------
SQL*Loader: Release 10.1.0.2.0 - Production on Tue Aug 11 12:29:07 2009
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Control File: C:\control01.ctl.txt
There are 2 data files:
Data File: control01.ctl
Bad File: C:\control01.bad
Discard File: c:\dis.log
(Allow all discards)
Data File: c:\csv\personal.csv
Bad File: C:\personal.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
Table PERSONAL_EXPENSES, loaded from every logical record.
Insert option in effect for this table: INSERT
TRAILING NULLCOLS option in effect
Column Name Position Len Term Encl Datatype
PURCHASE_DATE FIRST * , DATE mm/dd/yyyy
PAYEE NEXT * , CHARACTER
RUPEE_SPENT NEXT * , CHARACTER
CATEGORY NEXT * , CHARACTER
SUB_CATEGORY NEXT * , CHARACTER
DESCRIPTION NEXT * , CHARACTER
Data File control01.ctl -
Record 1: Discarded - all columns null.
Record 3: Discarded - all columns null.
Record 5: Discarded - all columns null.
Record 2: Rejected - Error on table PERSONAL_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 4: Rejected - Error on table PERSONAL_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 6: Rejected - Error on table PERSONAL_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 7: Rejected - Error on table PERSONAL_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 8: Rejected - Error on table PERSONAL_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 9: Rejected - Error on table PERSONAL_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Data File c:\csv\personal.csv -
Record 10: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 11: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 12: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 13: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 14: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 15: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 16: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 17: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 18: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 19: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 20: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 21: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 22: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 23: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 24: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 25: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 26: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 27: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 28: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 29: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 30: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 31: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 32: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 33: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 34: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 35: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 36: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 37: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 38: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 39: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 40: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 41: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 42: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 43: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 44: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 45: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 46: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 47: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 48: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 49: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 50: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 51: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 52: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 53: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
Record 54: Rejected - Error on table PERSONAL_EXPENSES, column RUPEE_SPENT.
ORA-01722: invalid number
MAXIMUM ERROR COUNT EXCEEDED - Above statistics reflect partial run.
Table PERSONAL_EXPENSES:
0 Rows successfully loaded.
51 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
3 Rows not loaded because all fields were null.
Space allocated for bind array: 99072 bytes(64 rows)
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 73
Total logical records rejected: 51
Total logical records discarded: 3
Run began on Tue Aug 11 12:29:07 2009
Run ended on Tue Aug 11 12:29:08 2009
Elapsed time was: 00:00:00.55
CPU time was: 00:00:00.06
------------------------- Sample Data-----------------
04/05/09,Groceries,Withdrawal,83,Food,Groceries
05/05/09,Other,Withdrawal,50,Homeneeds,Other,,given to lali,
02/05/09,Groceries,Withdrawal,60,Food,Groceries,,Ice cream for all ,
05/05/09,Physcian,Withdrawal,400,Healthcare,Physician,,Consult to DR.ABBAS,
05/08/09,Dining Out,Withdrawal,35,Food,Dining out,,Juices,Ice cream,
05/07/09,Health,Withdrawal,120,Healthcare,Health,,Vasline Lotion,Cap Bcomplex,
05/10/09,clothing,Withdrawal,150,Homeneeds,Clothing,,Baby suit bought for Rupesh kid,
05/11/09,Physcian,Withdrawal,1500,Healthcare,Physician,,Ayurvedic Medicine from ABBASUsha,Me and Sonu,
05/11/09,Groceries,Withdrawal,55,Food,Groceries,,milk 1|2 kg, curd 1|2kg, sweet ,
05/17/09,Dining Out,Withdrawal,200,Food,Dining out,,me, sonu had dining out in bite-inkulfi,maze, special thali,
cold
05/17/09,Petorl,Withdrawal,300,Petrol,,,Petrol for CAR,
05/18/09,Health,Withdrawal,1500,Healthcare,Health,,Test : Ultrasound, Blood,
05/18/09,Physcian,Withdrawal,200,Healthcare,Physician,,ENT visit : Me,Poonam,
05/18/09,Health,Withdrawal,350,Healthcare,Health,,Medicine :-,
05/18/09,Dining Out,Withdrawal,165,Food,Dining out,,Dosa, lassi ,cold drinl ,shikanji , kulfi,
05/18/09,clothing,Withdrawal,730,Homeneeds,Clothing,,2 t shirt, 1lower , Braw , 1 purse
bindi , cluture , rubber bandlower Alok
05/21/09,Health,Withdrawal,325,Healthcare,Health,,Medicine bought for poona75+50.
Medicine start date is 21-may-09 for truboclosis,
05/21/09,Other,Withdrawal,100,Homeneeds,Other,,Rikshaw rent,
05/26/09,Internet,Withdrawal,550,Bills,Internet,,Gave sonu - 26-May-09,
05/30/09,Physcian,Withdrawal,200,Healthcare,Physician,,Dr. Sulabh Gupta consultation,
05/30/09,Groceries,Withdrawal,90,Food,Groceries,,Sweet ,
05/30/09,Party,Withdrawal,165,Leisure,Party,,Mc puff, Burger , Coke ,
05/30/09,Office food,Withdrawal,55,Food,Office food,,Lunch , Tea , Milk Bottel,
06/01/09,Medicine Alopathic,Withdrawal,538,Healthcare,Medicine Alopathic,,Poonam medicine + dendruf shampoo,
06/01/09,Fruits,Withdrawal,55,Food,Fruits,,Fruit juices + wayer bottel,
06/01/09,Gifts,Withdrawal,80,Gifts,,,sharpner, eraser,
06/01/09,Fruits,Withdrawal,55,Food,Fruits,,For poonam' home,
06/01/09,Dining Out,Withdrawal,50,Food,Dining out,,coke , curd , lays chipps,
06/04/09,Maintainance,Withdrawal,800,Maintainance,,,Bike Maintanence,
06/10/09,Medicine Alopathic,Withdrawal,250,Healthcare,Medicine Alopathic,,Medicine Sonu -- Dr Yogmaya.
06/10/09,Medicine Alopathic,Withdrawal,300,Healthcare,Medicine Alopathic,,Sonu medicine - Dr Salabh Gupta,
06/15/09,Medicine Alopathic,Withdrawal,570,Healthcare,Medicine Alopathic,,Medicine Poonam ,
06/22/09,Medicine Ayurvedic,Withdrawal,400,Healthcare,Medicine Ayurvedic,,Dr. Abbas,
06/22/09,Movies,Withdrawal,160,Leisure,Movies,,Movie -paying guest,
06/25/09,Dining Out,Withdrawal,150,Food,Dining out,,Chinees Combo+1 colddrink,
06/25/09,Internet,Withdrawal,550,Bills,Internet,,Internet payment,
06/29/09,Medical Test,Withdrawal,320,Healthcare,Medical Tests,,Blood Test :- Sonu - RA FACTOR,
06/29/09,Dining Out,Withdrawal,200,Food,Dining out,,Rasoi:- Special thali , cold drinks,
07/02/09,B'day,Withdrawal,1000,Leisure,B'day,,Mom's B'day,
07/01/09,Medicine Ayurvedic,Withdrawal,590,Healthcare,Medicine Ayurvedic,,Mine: Abbas,
07/02/09,B'day,Withdrawal,300,Leisure,B'day,,Afzal,
07/05/09,B'day,Withdrawal,1000,Leisure,B'day,,Amit B'day,
07/08/09,Travel,Withdrawal,2000,Vacation,Travel,,Trian tickets:-,
07/08/09,Dining Out,Withdrawal,1000,Food,Dining out,,During travelling to Gwalior,
07/16/09,Medicine Ayurvedic,Withdrawal,1000,Healthcare,Medicine Ayurvedic,,Dr. Abbas : Medicine Ayurvedic,
07/16/09,Petorl,Withdrawal,100,Petrol,,,For Bike,
07/17/09,Party,Withdrawal,290,Leisure,Party,,Office party : Dad earned golf medal.,
07/19/09,Other,Withdrawal,64,Homeneeds,Other,,Mother's in law--
07/20/09,Movies,Withdrawal,200,Leisure,Movies,,200 :- New York,
07/21/09,Dining Out,Withdrawal,200,Food,Dining out,,For movie,
07/21/09,clothing,Withdrawal,1700,Homeneeds,Clothing,,Sonu: 3 kurtas , one shirt usha,
07/23/09,Medicine Alopathic,Withdrawal,290,Healthcare,Medicine Alopathic,,Sonu's Medicine 10 days,
08/01/09,clothing,Withdrawal,200,Homeneeds,Clothing,,sonu leg-inns,
08/01/09,Give & take,Withdrawal,200,Bills,Give & Take,,sheetal for dress,
08/01/09,Give & take,Withdrawal,100,Bills,Give & Take,,given meenu,
08/02/09,Medicine Ayurvedic,Withdrawal,1400,Healthcare,Medicine Ayurvedic,,My Medicine from Dr Abbas,
08/03/09,Medicine Alopathic,Withdrawal,300,Healthcare,Medicine Alopathic,,Sonu's Medicine,
08/03/09,clothing,Withdrawal,100,Homeneeds,Clothing,,Stiching,
08/03/09,Cosmetics,Withdrawal,480,Homeneeds,Cosmetics,,Dio, Lipistick Nail color tec,
08/03/09,Outdoor foods,Withdrawal,100,Food,Outdoor foods,,lassi ras mala golgappe shikangi,
08/03/09,clothing,Withdrawal,60,Homeneeds,Clothing,,Peticote,
08/03/09,Give & take,Withdrawal,200,Bills,Give & Take,,given sheetal,
08/03/09,clothing,Withdrawal,150,Homeneeds,Clothing,,leg-inns for sonu,
08/06/09,Festivals,Withdrawal,1500,Leisure,Festivals,,1500 Rakshabandhan,
08/10/09,Dining Out,Withdrawal,150,Food,Dining out,,Bikaner-chineese plater-cold drink,
08/10/09,Medicine Ayurvedic,Withdrawal,150,Healthcare,Medicine Ayurvedic,,Sonu's Archiritis Medicine,
08/10/09,Give & take,Withdrawal,1000,Bills,Give & Take,,Komal's commettie,
08/19/09,clothing,Withdrawal,350,Homeneeds,Clothing,,Sonu's kurta,
08/20/09,Medicine Alopathic,Withdrawal,360,Healthcare,Medicine Alopathic,,Sonu's Medicine prscbd dr Alok,
08/20/09,Physcian,Withdrawal,200,Healthcare,Physician,,Ortopedic fee,
08/20/09,Dining Out,Withdrawal,75,Food,Dining out,,Burger carried from office,
08/20/09,other expences,Withdrawal,300,Vacation,other expences,,Return file fee,
08/20/09,Office food,Withdrawal,55,Food,Office food,,contrey rs 20 food rs 35,hare krishnaOne more thing, in second table, the same data set brough errors. I really failed to understand, why this is so, when the Sample data is same.
------------------ Log FIle------------------------------
SQL*Loader: Release 10.1.0.2.0 - Production on Tue Aug 25 23:11:21 2009
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Control File: C:\home.ctl.txt
There are 2 data files:
Data File: home.ctl
Bad File: C:\home.bad
Discard File: c:\dis.log
(Allow all discards)
Data File: c:\csv\home.csv
Bad File: C:\home.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
Table HOME_EXPENSES, loaded from every logical record.
Insert option in effect for this table: INSERT
TRAILING NULLCOLS option in effect
Column Name Position Len Term Encl Datatype
PURCHASE_DATE FIRST * , DATE mm/dd/yy
PAYEE NEXT * , CHARACTER
RUPEE_SPENT NEXT * , CHARACTER
CATEGORY NEXT * , CHARACTER
SUB_CATEGORY NEXT * , CHARACTER
DESCRIPTION NEXT * , CHARACTER
DESC1 NEXT * , CHARACTER
Data File home.ctl -
Record 1: Discarded - all columns null.
Record 3: Discarded - all columns null.
Record 5: Discarded - all columns null.
Record 7: Discarded - all columns null.
Record 18: Discarded - all columns null.
Record 25: Discarded - all columns null.
Record 29: Discarded - all columns null.
Record 38: Discarded - all columns null.
Record 39: Discarded - all columns null.
Record 41: Discarded - all columns null.
Record 44: Discarded - all columns null.
Record 47: Discarded - all columns null.
Record 50: Discarded - all columns null.
Record 53: Discarded - all columns null.
Record 56: Discarded - all columns null.
Record 59: Discarded - all columns null.
Record 62: Discarded - all columns null.
Record 65: Discarded - all columns null.
Record 68: Discarded - all columns null.
Record 71: Discarded - all columns null.
Record 74: Discarded - all columns null.
Record 77: Discarded - all columns null.
Record 80: Discarded - all columns null.
Record 83: Discarded - all columns null.
Record 86: Discarded - all columns null.
Record 89: Discarded - all columns null.
Record 2: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 4: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 6: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 8: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 9: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 10: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 11: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 12: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 13: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 14: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 15: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 16: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01843: not a valid month
Record 17: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 19: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 20: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 21: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 22: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 23: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 24: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 26: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 27: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 28: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 30: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 31: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 32: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 33: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 34: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 35: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 36: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 37: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 40: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 42: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 43: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 45: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 46: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 48: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 49: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 51: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 52: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 54: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 55: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 57: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 58: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 60: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 61: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 63: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 64: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 66: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 67: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 69: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
Record 70: Rejected - Error on table HOME_EXPENSES, column PURCHASE_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected
MAXIMUM ERROR COUNT EXCEEDED - Above statistics reflect partial run.
Table HOME_EXPENSES:
0 Rows successfully loaded.
51 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
26 Rows not loaded because all fields were null.
Space allocated for bind array: 115584 bytes(64 rows)
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 90
Total logical records rejected: 51
Total logical records discarded: 26
Run began on Tue Aug 25 23:11:21 2009
Run ended on Tue Aug 25 23:11:21 2009
Elapsed time was: 00:00:00.09
CPU time was: 00:00:00.05
--------------------------------- Sample Data-----------
5/5/2009,Gas,620,Automobile,Gas,2 cylinders,,,,
5/5/2009,clothing,900,Homeneeds,Clothing,suits for usha,meenu,sheetu,mummy,mousi & me one each
1/5/2009,Vegitables,250,Food,Vegitables,Potota 5 kg,,,,
5/5/2009,Petorl,500,Petrol,,Petrol for CAR,,,,
5/8/2009,Vegitables,250,Food,Vegitables,Vegitables for home.,,,,
1/9/2009,Maintainance,100,Maintainance,,Curtain Maintainence,,,,
5/11/2009,Groceries,25,Food,Groceries,Curd ,,,,
5/12/2009,Vegitables,35,Food,Vegitables,onion1kg,tomato 1kg ,,,
5/14/2009,Groceries,143,Food,Groceries,honey big size Rs130,milk 1.5 kg ,,,
5/18/2009,Spices,40,Spices,,Haldi ,,,,
5/25/2009,Give & take,50,Bills,Give & Take,Rs:-50 Medical for mom,,,,
5/25/2009,Groceries,85,Food,Groceries,Kurkure,Brush, Kitchen towl,Biscuit,
5/28/2009,Petorl,500,Petrol,,Petro for Car,,,,
5/28/2009,Medicine Alopathic,190,Healthcare,Medicine Alopathic,For mummy :- Dr Khosla priscribed,,,,
5/30/2009,Petorl,380,Petrol,,For car,bike and scooty,,
6/1/2009,Fruits,60,Food,Fruits,Mango 2 kg,,,
6/7/2009,Groceries,70,Food,Groceries,Haldi, besan , dahi,
6/7/2009,Maintainance,20,Maintainance,,Plug for cooler,,,
3/10/2009,Petorl,300,Petrol,,Car Petrol,,,
6/29/2009,Groceries,80,Food,Groceries,Pickle,,,
6/29/2009,Other,30,Homeneeds,Other,rikshaw rent, ac ,,
6/29/2009,Vegitables,200,Food,Vegitables,mango,patato,tomato, and many more
7/9/2009,Maintainance,100,Maintainance,,Inverter service,,,
7/13/2009,Vegitables,40,Food,Vegitables,Tamoto,,,
7/15/2009,Groceries,133,Food,Groceries,Ezee --,,,
7/17/2009,Vegitables,20,Food,Vegitables,Lemon : half kg,,,
7/17/2009,other expences,40,Vacation,other expences,Ironing,,,
7/23/2009,Medicine Alopathic,500,Healthcare,Medicine Alopathic,Usha's test and medicine,,,
7/23/2009,Vegitables,300,Food,Vegitables,Vegitable,,,
7/28/2009,Petorl,400,Petrol,,for car,,,
7/28/2009,Vegitables,62,Food,Vegitables,france been+sauses
7/29/2009,Maintainance,150,Maintainance,,Battery Chare
7/29/2009,Medicine Alopathic,150,Healthcare,Medicine Alopathic,Snowai injection
8/10/2009,Give & take,1000,Bills,Give & Take,Given mom
8/19/2009,Groceries,4500,Food,Groceries,shipra_mall_shopping_aug_offer
8/19/2009,Petorl,500,Petrol,,For Car
8/20/2009,Vegitables,100,Food,Vegitables,Vegitables
8/23/2009,Vegitables,200,Food,Vegitables,Vegitables
-------------------- Table Structure------------------
PURCHASE_DATE DATE
PAYEE VARCHAR2(40)
RUPEE_SPENT NUMBER(4)
CATEGORY VARCHAR2(30)
SUB_CATEGORY VARCHAR2(50)
DESCRIPTION VARCHAR2(100)
DESC1 VARCHAR2(40)hare krishna -
Loading spatial data by sql *loader
hi there
i have a load_kat_opcina.ctl file from which i should load spatial data into my 10g db table.
load_data.ctl file is as shown below:
LOAD DATA
INFILE *
REPLACE
CONTINUEIF NEXT(1:1) = '#'
INTO TABLE KAT_OPCINA
FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
(KO_MBR NULLIF KO_MBR=BLANKS,
KO_SIFRA NULLIF KO_SIFRA=BLANKS,
KO_NAZIV NULLIF KO_NAZIV=BLANKS,
KO_ID NULLIF KO_ID=BLANKS,
ID NULLIF ID=BLANKS,
is_null1 FILLER CHAR,
POVRSINA COLUMN OBJECT NULLIF is_null1='E'
( sdo_gtype INTEGER EXTERNAL,
sdo_srid INTEGER EXTERNAL NULLIF POVRSINA.sdo_srid=BLANKS,
SDO_POINT COLUMN OBJECT NULLIF is_null1='C'
( X INTEGER EXTERNAL,
Y INTEGER EXTERNAL,
Z INTEGER EXTERNAL NULLIF POVRSINA.SDO_POINT.Z=BLANKS),
SDO_ELEM_INFO VARRAY terminated by ';' NULLIF is_null1='P'
(SDO_ORDINATES INTEGER EXTERNAL),
SDO_ORDINATES VARRAY terminated by ':' NULLIF is_null1='P'
(SDO_ORDINATES INTEGER EXTERNAL)
BEGINDATA
0|426|MARKU[EVEC|314717|6789094|
0|3131|VURNOVEC|16605787|6789097|
#C|2003|||||1|1005|3|1|2|1|169|......|5589490440|5082192250:
0|3034|\UR\EKOVEC|16225011|6789100|
0|35|^EHI|12297784|6789190|
#C|2003|||||1|1005|2|1|2|1|239|....|5574944600|5064714553:
0|221|ODRANSKI OBRE@|12441649|6789193|
0|353|TRPUCI|14071974|6789199|
i have deleted most of data here due to space savings.
i call sql *loader from winxp command prompt as follows:
SQLLDR CONTROL=C:\temp\load_kat_opcina.ctl, USERID=username/pswrd@sid, LOG=logfile.log,BAD==baz.bad, DISCARD=DISCARD=toss.dsc
after executing command, table 'kat_opcina' is not filled with data from this .ctl file.
the following is the content of the log file:
SQL*Loader: Release 10.2.0.1.0 - Production on Sri Svi 31 14:20:28 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Control File: C:\TEMP\load_kat_opcina.ctl
Data File: C:\TEMP\load_kat_opcina.ctl
Bad File: C:\TEMP\baz.bad
Discard File: C:\TEMP\toss.dsc
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 256000 bytes
Continuation: 1:1 = 0X23(character '#'), in next physical record
Path used: Conventional
Table KAT_OPCINA, loaded from every logical record.
Insert option in effect for this table: REPLACE
TRAILING NULLCOLS option in effect
Column Name Position Len Term Encl Datatype
KO_MBR FIRST * | O(") CHARACTER
NULL if KO_MBR = BLANKS
KO_SIFRA NEXT * | O(") CHARACTER
NULL if KO_SIFRA = BLANKS
KO_NAZIV NEXT * | O(") CHARACTER
NULL if KO_NAZIV = BLANKS
KO_ID NEXT * | O(") CHARACTER
NULL if KO_ID = BLANKS
ID NEXT * | O(") CHARACTER
NULL if ID = BLANKS
IS_NULL1 NEXT * | O(") CHARACTER
(FILLER FIELD)
POVRSINA DERIVED * COLUMN OBJECT
NULL if IS_NULL1 = 0X45(character 'E')
*** Fields in POVRSINA
SDO_GTYPE NEXT * | O(") CHARACTER
SDO_SRID NEXT * | O(") CHARACTER
NULL if POVRSINA.SDO_SRID = BLANKS
SDO_POINT DERIVED * COLUMN OBJECT
NULL if IS_NULL1 = 0X43(character 'C')
*** Fields in POVRSINA.SDO_POINT
X NEXT * | O(") CHARACTER
Y NEXT * | O(") CHARACTER
Z NEXT * | O(") CHARACTER
NULL if POVRSINA.SDO_POINT.Z = BLANKS
*** End of fields in POVRSINA.SDO_POINT
SDO_ELEM_INFO DERIVED * ; VARRAY
NULL if IS_NULL1 = 0X50(character 'P')
*** Fields in POVRSINA.SDO_ELEM_INFO
SDO_ORDINATES FIRST * | O(") CHARACTER
*** End of fields in POVRSINA.SDO_ELEM_INFO
SDO_ORDINATES DERIVED * : VARRAY
NULL if IS_NULL1 = 0X50(character 'P')
*** Fields in POVRSINA.SDO_ORDINATES
SDO_ORDINATES FIRST * | O(") CHARACTER
*** End of fields in POVRSINA.SDO_ORDINATES
*** End of fields in POVRSINA
Record 1: Rejected - Error on table KAT_OPCINA.
ORA-29875: failed in the execution of the ODCIINDEXINSERT routine
ORA-13365: layer SRID does not match geometry SRID
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 623
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 227
Record 2: Rejected - Error on table KAT_OPCINA.
ORA-29875: failed in the execution of the ODCIINDEXINSERT routine
ORA-13365: layer SRID does not match geometry SRID
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 623
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 227
Record 33: Rejected - Error on table KAT_OPCINA.
ORA-29875: failed in the execution of the ODCIINDEXINSERT routine
ORA-13365: layer SRID does not match geometry SRID
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 623
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 227
SQL*Loader-510: Physical record in data file (C:\TEMP\load_kat_opcina.ctl) is longer than the maximum(65536)
SQL*Loader-2026: the load was aborted because SQL Loader cannot continue.
Specify SKIP=33 when continuing the load.
Table KAT_OPCINA:
0 Rows successfully loaded.
33 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 215168 bytes(64 rows)
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 33
Total logical records rejected: 33
Total logical records discarded: 0
Run began on Sri Svi 31 14:20:28 2006
Run ended on Sri Svi 31 14:20:32 2006
Elapsed time was: 00:00:04.51
CPU time was: 00:00:00.26
error messages are all the same for record numbers: 3-32.
so, i'd like to know what am i doing wrong that table cannot be filled with data using sql *loader.
also, would like to know if there's another way of loading data into table from .ctl file (using maybe some other tool)
appreciate any help
thanksHi,
You receive:
ORA-29875: failed in the execution of the ODCIINDEXINSERT routine
ORA-13365: layer SRID does not match geometry SRID
Have you created spatial index for table PORVSINA? I guess that yes, and you have created it with non NULL SRID value? So, ORA-13365 means that you are trying to insert spatial data with SRID that is not the same as SRID defined in spatial index.
Check index SRID and your data SRID, they must be the same. Or, you can disable spatial index.
Andrejus -
Hi,
First doubt:
When I execute the SQL*LOADER the following error occurs:
SQL*LOADER-350: Erro de sintaxe na linha 6.
Esperando especificagco de coluna valida, ", ou ")"; localizado "VARCHAR2".
(NAME POSITION(01:64) VARCHAR2,
^
The control file is like this:
ARQUIVO1.CTL
LOAD DATA
INFILE 'C:\testes\ARQUIVO1.TXT'
BADFILE 'C:\testes\ARQ1_ERRO.TXT'
TRUNCATE
INTO TABLE CARLA.TEMP_TESTE
(NAME POSITION(01:64) VARCHAR2,
ENDERECO POSITION(65:81) VARCHAR2,
TELEFONE POSITION(82:95) VARCHAR2)
Somebody, knows what happens?
Second doubt: How can I execute sqlldr in a procedure? Is there any command that simulates the DOS line command? Is there any example?
Thanks
CarlaHere are a couple of links to pages on Tom Kyte's site. The first one shows how to use java to enable execution of an operating system file from pl/sql. Just store your SQL*Loader commands in a .bat file and use Tom's code to enable execution of the .bat file from pl/sql. The second one uses utl_file that acts like a "mini sqlloader" in pl/sql and includes an example that demonstrates some data validation, checking for numeric values. I have used both methods succesfully. For large files, SQL*Loader is much faster than utl_file.
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:952229840241
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:464420312302 -
Row is loaded (SQL*LOAD) while it should be rejected !
Hello,
I have an input data file that contains a date :12-03-2007
I use a control file with SQL*LOADER that mentions :
DATE_INPUTFILE DATE 'YYYY-MM-DD HH24:MI:SS' terminated by ";",
I would expect the row to be rejected.
But for some reason, it is getting loaded properly onto the database with the value : 20-Mar-0012 07:00:00 AM !
Can someone tell me how to avoid this row to be loaded ?
Thanks.Here is CTL file :
LOAD DATA
REPLACE
INTO TABLE SMK_ITEM_TMP TRAILING NULLCOLS
ID_ITEM terminated by ";",
MODALITY terminated by ";",
ITEM terminated by ";",
ITEM_DESCRIPTION terminated by ";",
SUPPLIER_NAME terminated by ";",
MLS terminated by ";",
ORIGIN terminated by ";",
MINMAX terminated by ";",
DESTINATION terminated by ";",
SUPERMARKET terminated by ";",
SSOID terminated by ";",
DATE_MODIFIED DATE 'YYYY-MM-DD HH24:MI:SS' terminated by ";",
SERIAL terminated by ";",
LT terminated by ";",
WHERE_USED terminated by ";",
MODE_APPRO terminated by ";",
LOT terminated by ";",
NB_CARD terminated by ";",
ON_HAND terminated by ";",
CONSO terminated by ";",
TREMBLAY terminated by ";",
POIDS terminated by ";",
LENGTH terminated by ";",
LARGE terminated by ";",
HEIGHT terminated by ";",
QTY_PALETTE terminated by ";",
QTY_UNIT terminated by ";",
ICV terminated by ";",
VOLTA terminated by ";",
VELIZY terminated by ";",
CONTROL_MORN terminated by ";",
MIN_ORDER terminated by ";",
FIX_QTY terminated by ";",
MIN_QTY terminated by ";",
MAX_QTY terminated by ";",
DELIVERY terminated by ";",
PALETTE terminated by ";",
KITPK terminated by ";",
ACTION terminated by ";"
Here is result log file :
SQL*Loader: Release 10.2.0.3.0 - Production on Wed Mar 14 12:25:02 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Control File: /opt/appl/smk/zzdevl/parm/otrdbt01/ctl/SMK_ITEM_TMP.CTL
Data File: /opt/appl/smk/zzdevl/data/download/otrdbt01/SMK_ITEM.csv
Bad File: /opt/appl/smk/zzdevl/logs/otrdbt01/SMK_ITEM_TMP.BAD
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 999999
Bind array: 512 rows, maximum of 65536 bytes
Continuation: none specified
Path used: Conventional
Silent options: FEEDBACK
Table "SMKADMIN"."SMK_ITEM_TMP", loaded from every logical record.
Insert option in effect for this table: REPLACE
TRAILING NULLCOLS option in effect
Column Name Position Len Term Encl Datatype
ID_ITEM FIRST * ; CHARACTER
MODALITY NEXT * ; CHARACTER
ITEM NEXT * ; CHARACTER
ITEM_DESCRIPTION NEXT * ; CHARACTER
SUPPLIER_NAME NEXT * ; CHARACTER
MLS NEXT * ; CHARACTER
ORIGIN NEXT * ; CHARACTER
MINMAX NEXT * ; CHARACTER
DESTINATION NEXT * ; CHARACTER
SUPERMARKET NEXT * ; CHARACTER
SSOID NEXT * ; CHARACTER
DATE_MODIFIED NEXT * ; DATE YYYY-MM-DD HH24:MI:SS
SERIAL NEXT * ; CHARACTER
LT NEXT * ; CHARACTER
WHERE_USED NEXT * ; CHARACTER
MODE_APPRO NEXT * ; CHARACTER
LOT NEXT * ; CHARACTER
NB_CARD NEXT * ; CHARACTER
ON_HAND NEXT * ; CHARACTER
CONSO NEXT * ; CHARACTER
TREMBLAY NEXT * ; CHARACTER
POIDS NEXT * ; CHARACTER
LENGTH NEXT * ; CHARACTER
LARGE NEXT * ; CHARACTER
HEIGHT NEXT * ; CHARACTER
QTY_PALETTE NEXT * ; CHARACTER
QTY_UNIT NEXT * ; CHARACTER
ICV NEXT * ; CHARACTER
VOLTA NEXT * ; CHARACTER
VELIZY NEXT * ; CHARACTER
CONTROL_MORN NEXT * ; CHARACTER
MIN_ORDER NEXT * ; CHARACTER
FIX_QTY NEXT * ; CHARACTER
MIN_QTY NEXT * ; CHARACTER
MAX_QTY NEXT * ; CHARACTER
DELIVERY NEXT * ; CHARACTER
PALETTE NEXT * ; CHARACTER
KITPK NEXT * ; CHARACTER
ACTION NEXT * ; CHARACTER
value used for ROWS parameter changed from 512 to 6
Table "SMKADMIN"."SMK_ITEM_TMP":
1 Row successfully loaded.
0 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 60372 bytes(6 rows)
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 1
Total logical records rejected: 0
Total logical records discarded: 0
Run began on Wed Mar 14 12:25:02 2007
Run ended on Wed Mar 14 12:25:02 2007
Elapsed time was: 00:00:00.88
CPU time was: 00:00:00.04
Here is the input file (cut & paste from an Excel)
19381;BXV;2100405;Wrong Uppdate testPIGNON MOTEUR AT5 25 DENTS;BINDER MAGNETIC;frederic.xxnneson;1.672;t;RIP;t;100023935;12-03-2007;f;5;K7042-01;Min-Max;1;0;9;396;f;0.07;0;0;0;0;16;9;f;f;f;23;1;16;0;;f;t;U
Thanks -
Create sql loader data file dynamically
Hi,
I want a sample program/approach which is used to create a sql loader data file.
The program will read table name as i/p and will use
select stmt will column list derived from user_tab_columns from data dictionary
assuming multiple clob columns in the column list.
Thanks
ManojI 'm writing clob and other columns to a sql loader dat file.
Below sample code for writing clob column is giving file write error.
How can I write multiple clobs to dat file so that control file will handle it correctly
offset NUMBER := 1;
chunk VARCHAR2(32000);
chunk_size NUMBER := 32000;
WHILE( offset < dbms_lob.getlength(l_rec_type.narrative) )
LOOP
chunk := dbms_lob.substr(l_rec_type.narrative, chunk_size, offset );
utl_file.put( l_file_handle, chunk );
utl_file.fflush(l_file_handle);
offset := offset + chunk_size;
END LOOP;
utl_file.new_line(l_file_handle); -
SQL Loader and foreign characters in the data file problem
Hello,
I have run into an issue which I can't find an answer for. When I run SQL Loader, one of my control files is used to get file content (LOBFILE) and one of the fields in the data file has a path to that file. The control file looks like:
LOAD DATA
INFILE 'PLACE_HOLDER.dat'
INTO TABLE iceberg.rpt_document_core APPEND
FIELDS TERMINATED BY ','
doc_core_id "iceberg.seq_rpt_document_core.nextval",
-- created_date POSITION(1) date "yyyy-mm-dd:hh24:mi:ss",
created_date date "yyyy-mm-dd:hh24:mi:ss",
document_size,
hash,
body_format,
is_generic_doc,
is_legacy_doc,
external_filename FILLER char(275) ENCLOSED by '"',
body LOBFILE(external_filename) terminated by EOF
A sample data file looks like:
0,2012-10-22:10:09:35,21,BB51344DD2127002118E286A197ECD4A,text,N,N,"E:\tmp\misc_files\index_testers\foreign\شیمیایی.txt"
0,2012-10-22:10:09:35,17,CF85BE76B1E20704180534E19D363CF8,text,N,N,"E:\tmp\misc_files\index_testers\foreign\ลอบวางระเบิด.txt"
0,2012-10-22:10:09:35,23552,47DB382558D69F170227AA18179FD0F0,binary,N,N,"E:\tmp\misc_files\index_testers\foreign\leesburgis_á_ñ_é_í_ó_ú_¿_¡_ü_99.doc"
0,2012-10-22:10:09:35,17,83FCA0377445B60CE422DE8994900A79,binary,N,N,"E:\tmp\misc_files\index_testers\foreign\làm thế nào bạn làm ngày hôm nay"
The problem is that whan I run this, SQL Loader throws an error that it can't find the file. It appears that it can't interpret the foreign characters in a way that allows it to find that path. I have tried adding a CHARACTERSET (using AL32UTF8 or UTF8) value in the control file but that only has some success with Western languages, not the ones listed above. Also, there is no set of defined languages that could be found in the data file. It essentaially could be any language.
Does anyone know if there is a way to somehow get SQL Loader to "understand" the file system paths when a folder and/or file name could be in some other langauge?
Thanks for any thoughts - PeterThanks for the reply Harry. If I try to open the file in various text editors like Wordpad, Notepad, GVIM, andTextpad, they all display the foreign characters differently. Only Notepad comes close to displaying the characters properly. I have a C# app that will read the file and display the contents and it renders it fine. If you look at the directory of files in Windows Explorer, they all are displayed properly. So it seems things like .Net and Windows have some mechanism to understand the characters in order to render them properly. Other applications, again like Wordpad, do not know how to render them properly. It would seem that whatever SQL Loader is using to "read" the data files also is not rendering the characters properly which prevents it from finding the directory path to the file. If I add "CHARACTERSET AL32UTF8" in the control file, all is fine when dealing with Western langauges (ex, German, Spanish) but not for the Eastern languages (ex. Thai, Chinese). So .... telling SQL Loader to use a characterset seems to work, but not in all cases. The AL32UTF8 is the characterset that the Oracle database was created with. I have not had any luck if I try to set the CHARACTERSET to whatever the Thai character set is, for example. There problem there though is that even if that did work, I can't target specific lagauages because the data could come from anywhere. It's like I need some sort of global "super set" characterset to use. It seems like the CHARACTERSET is the right track to follow but I am not sure, and even if it is, is there a way to handle all languages.
Thanks - Peter
Maybe you are looking for
-
Sharing a database over 2 accounts on one computer using Parallels
Hello, We recently upgraded our computers at work (in a college library) to the Intel iMac. Prior to this, several of us had to use PC's as well, as some software wouldn't run on the Mac. I have bindery software (provided by our commercial binder), t
-
Hitachi 400gig HD as a 2nd Drive in RAID1
Hitachi HDS724040KLSA80 - I am in the process of ordering one of these as it is the same HD that came in my PM-G5 2.3 as the standard drive. I wanted another identical drive as an internal RAID backup drive. Goal: To have a 2nd drive as a backup/mirr
-
Would my I-Mac be able to handle Adobe Creative Suite?
I was looking to get Adobe Creative Suite 3 (web design-standard) to start learning some website developement. I listed the system requirements below. My concern is the first two. Like I mentioned I have an I-Mac with the Intel based duo core process
-
Dates in BEx query coming into designer as a dimension with Char data type
This must be an old issue with a well documented work around ... but alas i can find it ! When i build a universe over a BEx query with dates the universe designer builds them as Dimensions of CHAR type not DATE. Therefore all WebI date functional
-
Hi all, I don't know if any of you have had this problem but I can't seem to find the answer! Today I sent a group text message to two of my girlfriends, it went through and when they replied, it created two separate messages from the girls. I'd repl