Table 10-2 shows which conversions between Oracle database data types and SQL*Loader control file datetime and interval data types are supported and which are not.
In the table, the abbreviations for the Oracle Database data types are as follows:
N = NUMBER
C = CHAR
or VARCHAR2
D = DATE
T = TIME
and TIME
WITH
TIME
ZONE
TS = TIMESTAMP
and TIMESTAMP
WITH
TIME
ZONE
YM = INTERVAL
YEAR
TO
MONTH
DS = INTERVAL
DAY
TO
SECOND
For the SQL*Loader data types, the definitions for the abbreviations in the table are the same for D, T, TS, YM, and DS. However, as noted in the previous section, SQL*Loader does not contain data type specifications for Oracle internal data types such as NUMBER,CHAR
, and VARCHAR2
. However, any data that the Oracle database can convert can be loaded into these or other database columns.
For an example of how to read this table, look at the row for the SQL*Loader data type DATE
(abbreviated as D). Reading across the row, you can see that data type conversion is supported for the Oracle database data types of CHAR
, VARCHAR2
, DATE
, TIMESTAMP
, and TIMESTAMP WITH TIME ZONE
data types. However, conversion is not supported for the Oracle database data types NUMBER
, TIME
, TIME
WITH
TIME
ZONE
, INTERVAL
YEAR
TO
MONTH
, or INTERVAL
DAY
TO
SECOND
data types.
Table 10-2 Data Type Conversions for Datetime and Interval Data Types
SQL*Loader Data Type | Oracle Database Data Type (Conversion Support) |
---|---|
N |
N (Yes), C (Yes), D (No), T (No), TS (No), YM (No), DS (No) |
C |
N (Yes), C (Yes), D (Yes), T (Yes), TS (Yes), YM (Yes), DS (Yes) |
D |
N (No), C (Yes), D (Yes), T (No), TS (Yes), YM (No), DS (No) |
T |
N (No), C (Yes), D (No), T (Yes), TS (Yes), YM (No), DS (No) |
TS |
N (No), C (Yes), D (Yes), T (Yes), TS (Yes), YM (No), DS (No) |
YM |
N (No), C (Yes), D (No), T (No), TS (No), YM (Yes), DS (No) |
DS |
N (No), C (Yes), D (No), T (No), TS (No), YM (No), DS (Yes) |