Question:
How to migrate data in a column of size varchar(400) using sql loader?
rakshitha c
2009-04-19 00:38:22 UTC
I am trying to migrate data from one table to other using sql loader.One of the columns having too long data is getting cut in the middle and is not flowing ibto the table.There are no data errors.The column size is varchar(400).Do I have to set some option for sql loader??
Three answers:
John
2009-04-19 01:09:03 UTC
Oracle has a limit of 4,000 bytes (thats bytes not characters!) per column. your 400 charcters should be well within that limit and SQL Loader should be able to load such data correctly.



so why does the truncation occur? does the source table have the same definition as the target or are the fields different?
TheMadProfessor
2009-04-21 15:41:19 UTC
Is the break occurring at the same spot for every record with a field >= a particular value? Is so, sounds like somehow SQL Loader is misinterpreting the definition somehow. If not, sounds more like a problem with the data itself (contains a character interpreted as a delimiter or some such.)
?
2016-12-09 02:53:53 UTC
u can do it utilising replace command, all rows interior the column would be assigned to null at atime. that's the table i had on the beginning up: sq.> choose * from cmsws_users; USERNAME PASSWORD form ------------------------- ------------------------- -------------------- mythri mythri dmexp meetu meetu mmgr anm anm dme the outline of the table: sq.> desc cmsws_users; call Null? form ----------------------------------------... -------- ---------------- USERNAME VARCHAR2(25) PASSWORD VARCHAR2(25) form VARCHAR2(20) make beneficial that the column which u needed to change would desire to enable null values. now the question to change is : sq.> replace cmsws_users SET form = NULL; 3 rows as much as date. the table after utilising replace question is: sq.> choose * from cmsws_users; USERNAME PASSWORD form ------------------------- ------------------------- --------------- mythri mythri meetu meetu anm anm verify this out the preparation interior the shape column is deleted with out deleting the column itself.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...