Oracle data types and corresponding DataStage data types
Oracle data types and corresponding DataStage data types
Oracle data type | DataStage data type |
---|---|
CHAR(n BYTE) |
SQL type: CHAR |
CHAR(n CHAR ) single-byte |
SQL type: CHAR |
CHAR(n CHAR) multibyte |
SQL type: NCHAR |
CHAR single-byte | If the NLS_LENGTH_SEMANTICS database parameter is set to CHAR, then see CHAR(n CHAR). Otherwise, see CHAR(n BYTE) single-byte. In both cases, assume that n = 1. |
CHAR multibyte | If the NLS_LENGTH_SEMANTICS database parameter is set to CHAR, then see CHAR(n CHAR). Otherwise, see CHAR(n BYTE) multibyte. In both cases, assume that n = 1 |
VARCHAR2(n BYTE) |
SQL type: VARCHAR |
VARCHAR2(n CHAR) single-byte |
SQL type: VARCHAR |
VARCHAR2(n CHAR) multibyte |
SQL type: NVARCHAR |
CLOB single-byte |
SQL type: LONGVARCHAR |
CLOB multibyte |
SQL type: LONGNVARCHAR |
LONG single-byte |
SQL type: LONGVARCHAR |
LONG multibyte |
SQL type: LONGNVARCHAR |
NCHAR(n) |
SQL type: NCHAR |
NCHAR | See NCHAR(n) and assume that n = 1. |
NVARCHAR2(n) |
SQL type: NVARCHAR |
NCLOB |
SQL type: LONGNVARCHAR |
NUMBER |
SQL type: DOUBLE |
NUMBER (p, s) {p>=s} {s>=0} |
SQL type: DECIMAL |
NUMBER(p, s) {p<s} {s>=0} |
SQL type: DECIMAL |
NUMBER(p, s) {s<0} |
SQL type: DECIMAL |
FLOAT(p) {1 <=p <=63} |
SQL type: FLOAT |
FLOAT(p) {64 <=p <= 127} |
SQL type: DOUBLE |
BINARY_FLOAT |
SQL type: FLOAT |
BINARY_DOUBLE |
SQL type: DOUBLE |
LONG RAW |
SQL type: LONGVARBINARY |
RAW(n) |
SQL type: VARBINARY |
BLOB |
SQL type: LONGVARBINARY |
BFILE |
SQL type: VARCHAR |
DATE |
SQL type: DATE |
TIMESTAMP(fsp) |
SQL type: TIMESTAMP |
TIMESTAMP(fsp) WITH TIME ZONE |
SQL type: TIMESTAMP |
TIMESTAMP(fsp) WITH LOCAL TIME ZONE |
SQL type: TIMESTAMP |
TIMESTAMP | See TIMESTAMP(fsp) and assume that fsp=6. |
TIMESTAMP WITH TIME ZONE | See TIMESTAMP(fsp) WITH TIME ZONE and assume that fsp=6. |
TIMESTAMP WITH LOCAL TIME ZONE | See TIMESTAMP(fsp) WITH LOCAL TIME ZONE and assume that fsp=6. |
INTERVAL YEAR (yp) TO MONTH |
SQL type: VARCHAR |
INTERVAL DAY TO SECOND (sp) |
SQL type: VARCHAR |
INTERVAL DAY (dp) TO SECOND |
SQL type: VARCHAR |
INTERVAL DAY (dp) TO SECOND (sp) |
SQL type: VARCHAR |
INTERVAL YEAR TO MONTH | See INTERVAL YEAR (yp) TO MONTH and assume yp=2. |
INTERVAL DAY TO SECOND | See INTERVAL DAY (dp) TO SECOND (sp) and assume that dp=2 and thatsp=6. |
ROWID |
SQL type: CHAR |
UROWID(n) |
SQL type: VARCHAR |
UROWID | See UROWID(n) and assume that n=4000. |
XMLType stored as CLOB or |
See CLOB single-byte. |
XMLType stored as CLOB or |
See CLOB multibyte. |
XMLType stored as |
See BLOB. |
Other |
SQL type: UNKNOWN |