Solved

Oracle SQL load question

Posted on 2014-09-29
1
506 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 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now