Oracle to Data Types Common to All Versions

This table lists the base Oracle data type to TDV data type mappings. Specific Oracle database versions might have additional data types. The additional data type mappings are listed in the sections for specific Oracle database versions.

Note: While Oracle honors trailing spaces in general, it ignores them when comparing CHARs. When TDV is set to honor trailing spaces, a filter on a CHAR column might return different results when executed in Oracle vs. TDV.

Oracle Base Data Type

TDV Data Type

Notes

BFILE

BLOB

 

BLOB

BLOB

 

CHAR

CHAR

Char and Varchar type will include special characters. The datatype length need not be explicitly increased to include the special characters.

CLOB

CLOB

 

DATE

TIMESTAMP

 

FLOAT

FLOAT

 

LONG

CLOB

 

LONG RAW

BLOB

 

LONG VARCHAR

CLOB

 

NCHAR

CHAR

 

NCLOB

CLOB

 

NUMBER

DECIMAL

See Oracle NUMBER Data Types and TDV Data Types.

NUMBER(2,0)

TINYINT







In these examples, a hyphen indicates that the value is not specified in Oracle.

NUMBER(4,0)

SMALLINT

NUMBER(8,0)

INTEGER

NUMBER(15,0)

BIGINT

NUMBER(22,0)

NUMERIC(22,0)

NUMBER(10,3)

DECIMAL(10,3)

NUMBER(-,0)

NUMERIC(38,0)

NUMBER(-,2)

DECIMAL(38,2)

NUMBER(12,-)

DOUBLE

NUMBER(-,-)

DOUBLE

NVARCHAR

VARCHAR

 

NVARCHAR2

VARCHAR

 

RAW

VARBINARY

 

ROWID

VARCHAR

 

UROWID

VARCHAR

 

VARCHAR

VARCHAR

Char and Varchar type will include special characters. The datatype length need not be explicitly increased to include the special characters.

VARCHAR2

VARCHAR