Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8115727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:33:45+00:00 2026-06-06T03:33:45+00:00

I am facing some issues in loading a CSV file through SQL Loader. Here

  • 0

I am facing some issues in loading a CSV file through SQL Loader.

Here is the control file:

LOAD DATA 
INFILE 'mp.csv'
BADFILE mp.bad'
INSERT 
INTO TABLE mp_staging
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
(
mp_id INTEGER,
mp_name CHAR,
mp_desc CHAR,
oid CHAR,
ptye_cd CHAR,
creation_tmstmp TIMESTAMP WITH TIME ZONE "YYYY-MM-DD HH24:MI:SS,FF9",
modified_tmstmp TIMESTAMP WITH TIME ZONE "YYYY-MM-DD HH24:MI:SS,FF9",
last_generation_tmstmp TIMESTAMP WITH TIME ZONE "YYYY-MM-DD HH24:MI:SS,FF9",
deact_dt DATE,
)

Here are some sample records from CSV file:

1083,"Test3","","mills_b","PRIVATE",2000-12-06 14:29:21.17,1999-12-06 14:29:21.17,2011-    10-01 04:03:44.6

116,"Mike1","","mills_b","PRIVATE",1999-09-15 11:15:29.42,1999-09-15 11:15:59.663,2011-    10-01 04:01:23.923,,0,"F",""

I am facing two issues –

  1. The second record gets inserted, but with a different mp_id in the table, as in the value inserted in the table is not 1083, but an alotgether differentnumber, which seems to be generated by a sequence, though I have not referred to any sequence in the control file.

  2. The first record fails to load, with this error:

Record 1: Rejected – Error on table EQ_MP_STAGING, column
CREATION_TMSTMP. ORA-01841: (full) year must be between -4713 and
+9999, and not be 0

Can someone help me in right direction, so that I can debug these issues?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T03:33:46+00:00Added an answer on June 6, 2026 at 3:33 am

    OK, I have figured the error. It was all related to the control file definition. All I had to do was remove the data type declarations.
    As far as I figured, when you specify data type, you got to specify the limit of the field. I tried to specify POSITION(*), thinking that this will take care of variable length fields, but I again got the same error.

    LOAD DATA  
    INFILE 'mp.csv' 
    BADFILE mp.bad' 
    INSERT  INTO TABLE mp_staging
    FIELDS TERMINATED BY ',' 
    OPTIONALLY ENCLOSED BY '"' 
    TRAILING NULLCOLS 
    ( mp_id , 
    mp_name , 
    mp_desc , 
    oid , 
    ptye_cd , 
    creation_tmstmp TIMESTAMP WITH TIME ZONE "YYYY-MM-DD HH24:MI:SS,FF9", 
    modified_tmstmp TIMESTAMP WITH TIME ZONE "YYYY-MM-DD HH24:MI:SS,FF9",              last_generation_tmstmp TIMESTAMP WITH TIME ZONE "YYYY-MM-DD HH24:MI:SS,FF9", 
    deact_dt )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am facing some issues while retrieving data from a doctrine pager object! Let
Extremly confusing title, i know. Hello, i am facing some funky issues here. I
I am facing some issues with fgets() on linux. fgets is returning me data
I am facing some issues while serializing objects (I am using JBoss Drools, and
Well, since I am facing some issues with OAuth implementation, I decided to go
I'm working using scriptaculous library. However I'm facing some issues with inclusion of the
Hello to all I am here facing some situation of detecting url in asp.net
I am using NHibernate 2.0.1 and .NET I am facing issues with Lazy loading
I am facing some issues in Spring JPA. I successfully configured the Spring JPA
I'm facing some issues with Apache mod_proxy_balancer regarding sticky sessions. We've developped a restful

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.