SQLLOADER Not Loading Timestamp Correctly
(Doc ID 2683037.1)
Last updated on JUNE 24, 2020
Applies to:Oracle Database - Enterprise Edition - Version 184.108.40.206.0 and later
Information in this document applies to any platform.
Oracle sample schema(s), Public Documentation delivered with an Oracle database product or other training material.
Any similarity to actual environments, actual persons, living or dead, is purely coincidental and not intended in any manner.
Trying to load timestamp with nanoseconds into Oracle table with column datatype as timestamp(9) defined.
For timestamp like - 2020-06-20 23:59:59.999999999, ORacle is rounding it up to next day. When we insert the same timestamp using insert statement, its inserted correctly.
SQLLOADER control file:
Options (skip = 1 , errors = 2147483647)^M
load data ^M
infile 'authdb_trans.ck_withhold.csv' "str '<LINE~END>\n'"^M
into table authdb_trans.ck_withhold^M
fields terminated by '¬'^M
EXPIRATION_DATE TIMESTAMP 'YYYY-MM-DD HH24:MI:SS.FF9',
WITHHOLD_TS TIMESTAMP 'YYYY-MM-DD HH24:MI:SS.FF9'^M
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document