Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Oracle SQL load question

Posted on 2014-09-29
1
Medium Priority
?
539 Views
Last Modified: 2014-10-22
I need to upload a datafile to an Oracle database via SQL load process. It is a working system but the SQL load process stopped working.
The control file of the SQL load process looks like the following:

LOAD DATA
INFILE '${DATFILE}'
APPEND
INTO TABLE rnt.incidents
FIELDS TERMINATED BY x'1'
TRAILING NULLCOLS
...
...
...


And the datafile one record is like:

2014-09-07 00:00:17     2014-09-07 00:00:17     Operations       140907-013931  \N      \N      \N


could anyone assist me to understand what the expected delimited in the datafile is, given the control file content of "FIELDS TERMINATED BY x'1'" .. ?
Thanks a lot.
0
Comment
Question by:toooki
1 Comment
 
LVL 78

Accepted Solution

by:
slightwv (䄆 Netminder) earned 2000 total points
ID: 40351369
Have you looked in the docs?

X'hex_string' is a byte string in hexadecimal format

http://docs.oracle.com/cd/E11882_01/server.112/e22490/ldr_concepts.htm#SUTIL984

It means the fields are delimited by a Hex 1.

Granted, I've never seen this but based on information from http://www.asciitable.com/
that is a "Start of Heading" character.

You will likely need a hex editor to view the input file to see if that is the correct character.

>>It is a working system but the SQL load process stopped working.

Please explain what this means.  It was working but then stopped?

If so, what changed?  Please don't say 'nothing'.  Things just don't stop working.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question