Loading through sql* loader
Hi,
I want to load xml file data using sql*loader into Oracle.
Kindly advice what could be the pros & cons for this.
Is there any online document for this?
Thanks
Deepak
Is there any online document for this?<br>
Here it is
Similar Messages
-
Check data before loading through SQL *Loader
Hi all,
I have a temp table which is loaded through SQL*Loader.This table is used by a procedure for inserting data into another table.
I get error of 0RA-01722 frequently during procdures execution.
I have decided to check for the error data through the control file itself.
I have few doubts about SQL Loader.
Will a record containing character data for column declared as INTEGER EXTERNAL in ctrl file get discarded?
Does declaring column as INTERGER EXTERNAL take care of NULL values?
Does a whole record gets discarded if one of the column data is misplaced in the record in input file?
Control File is of following format:
LOAD DATA
APPEND INTO TABLE Temp
FIELDS TERMINATED BY "|" optionally enclosed by "'"
trailing nullcols
FILEDATE DATE 'DD/MM/YYYY',
ACC_NUM INTEGER EXTERNAL,
REC_TYPE ,
LOGO , (Data:Numeric Declared:VARCHAR)
CARD_NUM INTEGER EXTERNAL,
ACTION_DATE DATE 'DD/MM/YYYY',
EFFECTIVE_DATE DATE 'DD/MM/YYYY',
ACTION_AMOUNT , (Data:Numeric Declared:NUMBER)
ACTION_STORE , (Data:Numeric Declared:VARCHAR)
ACTION_AUTH_NUM ,
ACTION_SKU_NUM ,
ACTION_CASE_NUM )
What changes do I need to make in this file regarding above questions?Is there any online document for this?<br>
Here it is -
Importing oracle.sql.BLOB through SQL Loader
Hello,
Currently the system we have creates .sql files and executes them. This takes a long time, so we're attempting to change to using SQL Loader. The one problem I'm having that I can't seem to fix is finding out how to imitate the behavior of this SQL statement through SQL Loader:
INSERT INTO KRSB_QRTZ_BLOB_TRIGGERS (BLOB_DATA,TRIGGER_GROUP,TRIGGER_NAME)
VALUES (oracle.sql.BLOB@515263,'KCB-Delivery','PeriodicMessageProcessingTrigger')
I tried creating a lobfile and placing the text oracle.sql.BLOB@515263 within it this way
INTO TABLE KRSB_QRTZ_BLOB_TRIGGERS
WHEN tablename = 'KRSB_QRTZ_BLOB_TRIGGERS'
FIELDS TERMINATED BY ',' ENCLOSED BY '##'
TRAILING NULLCOLS
tablename FILLER POSITION(1),
TRIGGER_NAME CHAR(80),
TRIGGER_GROUP CHAR(80),
ext_fname FILLER,
BLOB_DATA LOBFILE(ext_fname) TERMINATED BY EOF
However, as expected, it merely loaded the text "oracle.sql.BLOB@515263" into the database. So does anyone have any ideas of how to imitate that insert statement through SQL Loader? The only information I have available is the string "oracle.sql.BLOB@515263", no other files or anything to aid with actually getting the binary data.
When the .sql file is run with that insert statement in it, a 1.2kb BLOB is inserted into the database versus a 22 byte BLOB that contains nothing useful when done through SQL Loader.
AlexMy preference is DBMS_LOB.LOADFROMFILE
http://www.morganslibrary.org/reference/dbms_lob.html
did you try it? -
Is this possible through sql loader
hi grus,
i want to load a data through sql loader but the problem is, data file contains some numeric values and after each numeric value there is sign character,
for example
position 1 to 9 = 12345678- (in case of negative)
or
position 1 to 9 = 12345678% (% represents blank space in case of positive)
is there any way to load this numeric value into one field, where the sign follow the numeric value?
ThanksHi Jim/Jenis
Just want to know why the below statement dosn't work.
when i used "MI" format then all the records which trailing blank rejected by the loader only trailing "-" loaded.
CURR_MON_OPEN_BAL position(0045:0053) "to_number(:CURR_MON_OPEN_BAL, '99999999MI')"
then i use the following trick and works fine.
CURR_MON_OPEN_BAL position(0045:0053) "to_number(rpad(:CURR_MON_OPEN_BAL,9,'+', '99999999S')"
Could you guys explain why the MI format doesn't work in my case? -
Defaulting org id value into a table through SQL Loader program
Hi ,
We have a requirement that we need to load some data from flat file to a table.we are using sql loader to do that. so far no problem but now the requirement is that we need to populate the org id from which we are running the program.
I tried fnd_profile.value('ORG_ID') and it is populating site level org id.
Coudl any one please help me how to default org id or request id into a table through sql loader program.
Thanks,
Yuser12001627 wrote:
Hi Srini,
Thanks for looking into this!!
We are on EBS 11.5.10 and OS is solaris.
I tried fnd_profile,fnd_global but no luck.
Here is the control file which we are using to load data.
load data
infile *
replace into table XXXX_YYYY_STAG
trailing nullcols
(line POSITION(1:2000)
I would like to populate org id when I load the data from file.unfortunately there is no identifier in the file that says for which org id the data is in the file.Only the way to identify the file org is based on file name
Where do you want to populate the ORG_ID ? There is no column for it in your stage table above
Is there way we can pass through concurrent program parameters?
Thanks
YHTH
Srini -
Comparison of Data Loading techniques - Sql Loader & External Tables
Below are 2 techniques using which the data can be loaded from Flat files to oracle tables.
1) SQL Loader:
a. Place the flat file( .txt or .csv) on the desired Location.
b. Create a control file
Load Data
Infile "Mytextfile.txt" (-- file containing table data , specify paths correctly, it could be .csv as well)
Append or Truncate (-- based on requirement) into oracle tablename
Separated by "," (or the delimiter we use in input file) optionally enclosed by
(Field1, field2, field3 etc)
c. Now run sqlldr utility of oracle on sql command prompt as
sqlldr username/password .CTL filename
d. The data can be verified by selecting the data from the table.
Select * from oracle_table;
2) External Table:
a. Place the flat file (.txt or .csv) on the desired location.
abc.csv
1,one,first
2,two,second
3,three,third
4,four,fourth
b. Create a directory
create or replace directory ext_dir as '/home/rene/ext_dir'; -- path where the source file is kept
c. After granting appropriate permissions to the user, we can create external table like below.
create table ext_table_csv (
i Number,
n Varchar2(20),
m Varchar2(20)
organization external (
type oracle_loader
default directory ext_dir
access parameters (
records delimited by newline
fields terminated by ','
missing field values are null
location ('file.csv')
reject limit unlimited;
d. Verify data by selecting it from the external table now
select * from ext_table_csv;
External tables feature is a complement to existing SQL*Loader functionality.
It allows you to –
• Access data in external sources as if it were in a table in the database.
• Merge a flat file with an existing table in one statement.
• Sort a flat file on the way into a table you want compressed nicely
• Do a parallel direct path load -- without splitting up the input file, writing
Shortcomings:
• External tables are read-only.
• No data manipulation language (DML) operations or index creation is allowed on an external table.
Using Sql Loader You can –
• Load the data from a stored procedure or trigger (insert is not sqlldr)
• Do multi-table inserts
• Flow the data through a pipelined plsql function for cleansing/transformation
Comparison for data loading
To make the loading operation faster, the degree of parallelism can be set to any number, e.g 4
So, when you created the external table, the database will divide the file to be read by four processes running in parallel. This parallelism happens automatically, with no additional effort on your part, and is really quite convenient. To parallelize this load using SQL*Loader, you would have had to manually divide your input file into multiple smaller files.
Conclusion:
SQL*Loader may be the better choice in data loading situations that require additional indexing of the staging table. However, we can always copy the data from external tables to Oracle Tables using DB links.Please let me know your views on this.
-
Need faster data loading (using sql-loader)
i am trying to load approx. 230 million records (around 60-bytes per record) from a flat file into a single table. i have tried sql-loader (conventional load) and i'm seeing performance degrade as the file is being processed. i am avoiding direct path sql-loading because i need to maintain uniqueness using my primary key index during the load. so the degradation of the load performance doesn't shock me. the source data file contains duplicate records and may contain records that are duplicates of those that are already in the table (i am appending during sql-loader).
my other option is to unload the entire table to a flat file, concatenate the new file onto it, run it through a unique sort, and then direct-path load it.
has anyone had a similar experience? any cool solutions available that are quick?
thanks,
jeffIt would be faster to suck into a Oracle table, call it a temporary table and then make a final move into the final table.
This way you could direct load into an oracle table then you could
INSERT /*+ APPEND */ INTO Final_Table
SELECT DISTINCT *
FROM Temp_Table
ORDER BY ID;This would do a 'direct load' type move from your temp teable to the final table, which automatically merging the duplicate records;
So
1) Direct Load from SQL*Loader into temp table.
2) Place index (non-unique) on temp table column ID.
3) Direct load INSERT into the final table.
Step 2 may make this process faster or slower, only testing will tell.
Good Luck,
Eric Kamradt -
Track flat files that failed loading in sql loader
Hi,
Can anyone please suggest me any way to track the flat files which failed while loading in sql loader. And pass this failed flat file name to any column of a database table
Thanks in advance.
Edited by: 806821 on Nov 2, 2010 10:22 AMHi Morgan thnannks for ur reply.
Define failed. 1 row not loaded ... no rows not loaded ... what operating system ... what version of the Oracle database ... track in a table, send an email?
Your inquiry is long on generalities and short on specifics: Fill in all the blanks ... not just the ones I've listed above.
even if 1 row is not loaded even then it should be considered failed to load and the name of the that particular flat file should be fetched.
Operating system is unix
Oracle database we are using is R12
track in a table , yeah we want to send an email notificaiton whenever the flat files fails to load.
Thanks once again...!! -
SQL Loader error: SQL*Loader-926. Please help
Hi,
While loading some files to my database table, I am getting the following error. I am using 'Truncate' option while loading the file:
Error:
====
SQL*Loader-926: OCI error while executing delete/truncate (due to REPLACE/TRUNCATE keyword) for table LOS_STAGE_DS4
ORA-01426: numeric overflow
Here's the loader properties(excerpts from load log)
================================
SQL*Loader: Release 11.1.0.6.0 - Production on Fri Nov 26 04:54:18 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Control File: d:\Prod\rent_Load\Bin\rent_Load.ctl
Data File: d:\Prod\rent_Load\Data\rent.704
Bad File: d:\Prod\rent_Load\Bad\rent.704
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 1000000000
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
Table LS_STAGE, loaded from every logical record.
Insert option in effect for this table: TRUNCATE
Column Name Position Len Term Encl Datatype
Could someone please help and advise what is the root cause of this error?
Thanks,The root cause is in the error ora-1426, which you can look up in the online error documentation at http://tahiti.oracle.com . No one knows every error message by heart. This means it is expected you look up the error prior to posting, and you don't expect any volunteer in this forum to look up the error on your behalf.
Also this is a typical candidate for being a known problem, and known problems can be found on My Oracle Support.
Sybrand Bakker
Senior Oracle DBA -
Why no exclusive lock for conventional path loading for SQL*Loader?
why no exclusive lock for conventional path loading for SQL*Loader?
it use insert statement so it should use exclusive lock right?
thanksok, so only update statement would put a lock but not for insert statement?
because I have seen a situation where a user update rows in a sesssion (without commit) prevent another user update the rows.
thanks -
Extracting Multiple Logical Records through sql loader
Hello gurus,
I have few questions regarding the sql loader. I m totally new to this i have never used, this is the first time i m using
1.
How do i find the position number of the charcter or a number ? do i need to physically count the position ? is ther any specific way of counting or use textpad to do that ?
I know it sounds like silly question... but i wanted to know if there is any better way of doing it
2.
example data
1119 Smith 1120 Yvonne
1121 Albert 1130 Thomas
The following control file extracts the logical records:
INTO TABLE emp
(empno POSITION(1:4) INTEGER EXTERNAL,
ename POSITION(6:15) CHAR)
INTO TABLE emp
(empno POSITION(17:20) INTEGER EXTERNAL,
ename POSITION(21:30) CHAR)---
2. Can you please expalin me what does the "null if deptno = blanks " ?
deptno POSITION(1:2) INTEGER EXTERNAL(2)
NULLIF deptno=BLANKS,I really appriciate it ~
ThanksHi,
The NULLIF means load blanks as NULL
http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/ldr_field_list.htm#sthref1129
Not sure I understand your first question. You must of course know the format of the file, TextPad could be an ok tool for determining that format for a fixed column width file.
Regards
Peter -
Load two input file into One Target table through SQL LOADER
Hi Expert,
I have 2 .cvs files.
1st file having cols as account_no & first name
2nd file having cols as account_no & last name
There is a table called temp has 3 cols accounts_number first name & last name
accounts number in both files are same
Now I wann upload these 2 files in to table temp
how do I do that
Pls suggest
Thx
Umesh GoelUG wrote:
I dont want truncate my table bcoz account no and first name from first file and last name from second file.
so pls suggest something else....Hang on, I'll go find you some glasses. I think you're having trouble reading.
First file : Control file truncates and loads data
Second file : Control file does not truncate and loads data
2 Calls to SQL*Loader
Is that a little clearer?
Are you saying there is a relationship between the data in the two files?
How do you know which last name relates to which first name in the first file? Is there a reference key between the records on the two files?
Perhaps you'd better show us an example of the contents of the files so we can see what you are trying to do. -
How to validate data is in specific list while loading from SQL*Loader
I have a sample data file like below
1,name1,05/02/2012 10:00:00,blue
2,name2,06/02/2012 10:00:00,red
3,name3,07/02/2012 10:00:00,yellow
4,name4,08/02/2012 10:00:00,white
I would like to validate 4Th column to be a valid color (ie) All color should be in a specific list, if it is not in the lis then the record should do to bad/discard file
How can do that while loading Data From SQL*Loader?user8860934 wrote:
I have a sample data file like below
1,name1,05/02/2012 10:00:00,blue
2,name2,06/02/2012 10:00:00,red
3,name3,07/02/2012 10:00:00,yellow
4,name4,08/02/2012 10:00:00,white
I would like to validate 4Th column to be a valid color (ie) All color should be in a specific list, if it is not in the lis then the record should do to bad/discard file
How can do that while loading Data From SQL*Loader?Probably a lot easier with an EXTERNAL TABLE (they're much more flexible).
Is SQL Loader a mandatory requirement for some reason? -
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 -
Records rejected while loading by SQL *Loader
Hi,
I am loading CSV data into an Oracle table T1. This table has a column C1 which has a FK constraint with C2 from a parent table T2. I added one value in C2 which is present in T1, but SQL *Loader is rejecting all rows and not loading matching records.
Is there some option to allow SQL *Loader to load matching record and reject the rest.
Thanks In advance.
Rajeev.If I understand your requirements right, you may want to consider Loading Records Based on a Condition.
Maybe you are looking for
-
Classic report - Highlight row
APEX 4.2.1 With all the latest and greatest dynamic action and jQuery goodness in 4.2.1, what is the easiest, declarative way to highlight rows in a classic report region (Generic Column Template) based on data condition using values on the row, usin
-
Trying to serialize C# object and store as XML Datatype in Sql Server 2005
using if (Obj != null) MemoryStream stream = new MemoryStream(); StreamWriter writer = new StreamWriter(stream); XmlSerializer x = new XmlSerializer(Obj.GetType()); x.Serialize(writer, Obj);
-
Alternative sequence - operations number
Hi all, I've got an issue on the alternative sequence. The standard sequence is made by operation 10, 20 and 30. I try to add a new alternative sequence to substitute the operation 20 with 2 different operations: 20 and 25. The system give me an erro
-
i'm trying to change the character set of my oracle 8.1.6 database from USANSCII to UTF8,using the alter database command. ALTER DATABASE CHARACTER SET UTF8; But the error being thrown is "New charset needs to be a superset of the old charset. Can i
-
MRP type & planning time fence
Hello. When I enter MRP type at MM01, error message comes up; "The MRP type requires you to specify a planning time fence." This check is not necessary for us. Please teach me how to deactive this check. Thank you in advance. Emma S