473,394 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

sql*loader utillity for importing text file into oracle

I'm trying to import text file into some oracle table.
I created control file, and text file, create table ..and run sqlldr80 from
command promt..
Imort was not succesfull..error occurs..sql*loader-524:partial record found
at end of data file (proba.ctl)
See what i done, and please help me..
CREATING TABLE
*******************
create tabale example(
column1 number(3),
column2 char(3))
*******************
CREATING CONTROL FILE
*******************
LOAD DATA
INFILE 'EXAMPLE.DAT'
INTO TABLE EXAMPLE
(COLUMN1 POSITION (01:03) INTEGER EXTERNAL,
COLUMN2 POSITION (04:06) CHAR)
*********************
CONTENT OF EXAMPLE.DAT FILE (after "C" Carriage Return)
********************
123ABC
234DEF
********************
text written in command prompt
*********************
sqlldr80 tomo/ko***@beq-local.world control = 'example.ctl'
data='example.dat'
*******************
all files are placed in root c:\
PLEASE HELP ME!! WHERE I DID IT WRONG?!!
Jul 19 '05 #1
3 17775
You can try putting a carriage return after the last line in your
example.dat.

As a side issue, it would be better to use varchar2 instead of char in
your table definition 'example'.

M

"Tomo" <to**************@vz.hinet.hr> wrote in message news:<bp**********@ls219.htnet.hr>...
I'm trying to import text file into some oracle table.
I created control file, and text file, create table ..and run sqlldr80 from
command promt..
Imort was not succesfull..error occurs..sql*loader-524:partial record found
at end of data file (proba.ctl)
See what i done, and please help me..
CREATING TABLE
*******************
create tabale example(
column1 number(3),
column2 char(3))
*******************
CREATING CONTROL FILE
*******************
LOAD DATA
INFILE 'EXAMPLE.DAT'
INTO TABLE EXAMPLE
(COLUMN1 POSITION (01:03) INTEGER EXTERNAL,
COLUMN2 POSITION (04:06) CHAR)
*********************
CONTENT OF EXAMPLE.DAT FILE (after "C" Carriage Return)
********************
123ABC
234DEF
********************
text written in command prompt
*********************
sqlldr80 tomo/ko***@beq-local.world control = 'example.ctl'
data='example.dat'
*******************
all files are placed in root c:\
PLEASE HELP ME!! WHERE I DID IT WRONG?!!

Jul 19 '05 #2
it's all right, i put enter key at the and of data in control file and data
file...stuff working just fine!
Exaple i wrote was just simple problem...i tried on my real data(not
example) and job is done!!!
Thanks Daniel and Jonathan!!And Soul survivor on other newsgroup!!!
Best regards!! Tomo!!

Jul 19 '05 #3
"Tomo" <to**************@vz.hinet.hr> wrote in message news:<bp**********@ls219.htnet.hr>...
I'm trying to import text file into some oracle table.
I created control file, and text file, create table ..and run sqlldr80 from
command promt..
Imort was not succesfull..error occurs..sql*loader-524:partial record found
at end of data file (proba.ctl)
See what i done, and please help me..
CREATING TABLE
*******************
create tabale example(
column1 number(3),
column2 char(3))
*******************
CREATING CONTROL FILE
*******************
LOAD DATA
INFILE 'EXAMPLE.DAT'
INTO TABLE EXAMPLE
(COLUMN1 POSITION (01:03) INTEGER EXTERNAL,
COLUMN2 POSITION (04:06) CHAR)
*********************
CONTENT OF EXAMPLE.DAT FILE (after "C" Carriage Return)
********************
123ABC
234DEF
********************
text written in command prompt
*********************
sqlldr80 tomo/ko***@beq-local.world control = 'example.ctl'
data='example.dat'
*******************
all files are placed in root c:\
PLEASE HELP ME!! WHERE I DID IT WRONG?!!


Is your text file very large?

Michael Tubuo Ngong
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bo Brunsgaard | last post by:
I have a problem trying to run SQL*Loader after migrating to Oracle 9. It used to run with no hicups on Oracle 8i, and I'm at my wits' end. Any help? I'm trying to run SQL*Loader from a command...
6
by: Hari Om | last post by:
Here are the details of my error log files: I execute the command and get following message at console: ---------------------------------------------------------------------- ../sqlldr...
0
by: stef | last post by:
Hi, I have a range partitioned (one partition = one month) table. On this table I have a local unique index and a local domain index (Oracle Text) on a CLOB column. I'm running Oracle...
0
by: Thomas R. Hummel | last post by:
Hello, I am currently in the process of converting an Oracle data warehouse over to SQL Server. The warehouse is loaded through a bunch of text files all through SQL Loader, using various...
1
by: gkata | last post by:
I have a file that originated on the mainframe that contains both text and packed fields. I'm using sql loader to load a Oracle table, but I'm having difficulty with the packed fields loading...
5
by: vshalpatel | last post by:
Hi I want to use SQL*Loader , an Oracle-supplied utility to load data from a flat file into one database tables. for this I have write the scripts in the SQL*LOADER control file named ...
1
by: jith87 | last post by:
hi, i am importing a text file into oracle database using sql loader.i need to ommit the first and last records of the text file while importing... can anybody help???? this is my text file... ...
3
by: Tomo | last post by:
I'm trying to import text file into some oracle table. I created control file, and text file, create table ..and run sqlldr80 from command promt.. Imort was not succesfull..error...
4
by: E11esar | last post by:
Hello there. I'm having several issues with regards to loading data into an Oracle database. I am developing in ASP.Net with C# and the source data is in a CSV file. What I am looking for is to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.