SQLLDR [message #642987] |
Thu, 24 September 2015 03:02  |
chintu00
Messages: 91 Registered: February 2007 Location: NJ, US
|
Member |
|
|
Kindly give me pointers to loading large urls into Oracle database and what would be a recommended columns for loading URLs.
I have data in a text file along with a serial number.
I have tried loading, it loads few rows and aborts as soon as it finds a row with special characters. Can't insert either
Example
144578,
http://506.xg4ken.com/media/redir.php?prof=21&camp=100950&affcode=cr688935&cid={creative}|2227550|{keyword}&mType={matchtype}&networkType={ifContent:content}{ifSearch:search}&kdv={device}&url[]=http%3A%2F%2Fdiscover.solarcity.com%2Fsemb%3Futm_source%3Dgoogle%26utm_medium%3Dcpc%26utm_content%3Dcov672982s%26utm_campaign%3DSEMGeneric
|
|
|
Re: SQLLDR [message #642988 is a reply to message #642987] |
Thu, 24 September 2015 03:37   |
cookiemonster
Messages: 13966 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
For the column type - I can't see any reason to use anything other than varchar2.
As for why sqlloader isn't working - posting the log file with the error messages would help.
What problem do you have with insert?
|
|
|
|
|
Re: SQLLDR [message #642998 is a reply to message #642988] |
Thu, 24 September 2015 12:05   |
chintu00
Messages: 91 Registered: February 2007 Location: NJ, US
|
Member |
|
|
The insert worked eventually by doing a set scan off on SQL*PLus
However the SQLLDR continued to fail, my control file was as below
load data
infile 'C:\RCL\DDUrl.txt'
append
into table DDUrl
fields terminated by "," optionally enclosed by '"' trailing nullcols
(DestinationUrlKey,
DestinationUrl)
After I included char(1000) as below it worked, thanks to littlefoot.
load data
infile 'C:\RCL\DDUrl.txt'
append
into table DDUrl
fields terminated by "," optionally enclosed by '"' trailing nullcols
(DestinationUrlKey,
DestinationUrl char(1000)
)
What is the difference between including and not including char(1000) when I already have varchar2(1000) in my table definition.
|
|
|
|
|