DB2 or SQL/DS Datatype | Oracle Datatype |
CHARACTER (n) | CHAR (n) |
VARCHAR (n) | VARCHAR2 (n) |
LONG VARCHAR | LONG |
DECIMAL (p,s) | NUMBER (p,s) |
INTEGER, SMALLINT | NUMBER (38) |
FLOAT (p) | FLOAT (p) |
DATE | DATE |
The ANSI/ISO datatypes NUMERIC, DECIMAL, and DEC can specify only fixed-point numbers. For these datatypes, s defaults to 0.