Data types
- Last Updated: January 17, 2024
- 3 minute read
- OpenEdge
- Version 12.8
- Documentation
Oracle data types differ from OpenEdge data types. However, each Oracle internal data type supported by the DataServer has at least one OpenEdge equivalent.
The DataServer translates the Oracle data types into OpenEdge equivalents. When
an Oracle data type has more than one OpenEdge equivalent, the
DataServer supplies a default data type. The schema image contains
the OpenEdge data definitions for the Oracle columns, which you
can modify by using the Data Dictionary. For example, the DataServer
assigns the NUMBER data type the OpenEdge equivalent, DECIMAL.
You can then change the data type from DECIMAL to
either INTEGER, INT64,or LOGICAL.
INTEGER and INT64 data
types, respectively, can each be recognized by the Oracle NUMBER data
type. See Modifying a schema image for an explanation of how to change OpenEdge data types in the schema image.
Oracle allows users to define their own data types, known as external data
types. Oracle converts these external types to an equivalent internal type. For example, a
FLOAT data type maps to NUMBER. The DataServer also
considers it to be a NUMBER and maps it to DECIMAL in the
schema image by default. However, beginning in OpenEdge Release 10.1B, you can choose to
update the NUMBER definition to an alternative INT64 data type. For more
information, see the following table.
The following table lists the Oracle internal data types supported by the DataServer and their OpenEdge equivalents. The table also shows the default equivalent supplied by the DataServer for those Oracle data types with more than one OpenEdge equivalent. The sections directly following the table provide additional details about several of the Oracle data types and each data type's OpenEdge equivalent.
| Oracle data type | OpenEdge equivalent data type |
|---|---|
CHAR |
CHARACTER
|
CFILE |
CLOB
|
CLOB |
CLOB
|
VARCHAR2 |
CHARACTER
|
NCHAR1
|
CHARACTER
|
NCLOB1 |
CLOB
|
NUMBER
|
DECIMAL
|
NUMBER (10)3
|
INT64
|
NUMBER (11)3
|
INT64
|
NUMBER (7,2)4
NUMBER(13,2)5
NUMBER (20*)6
|
DECIMAL
|
CURSOR
|
INTEGER
|
DATE
|
DATE
|
LONG
|
CHARACTER
|
RAW (limited support)
|
RAW
|
LONG RAW
|
RAW
|
BLOB
|
BLOB
|
BFILE
|
BLOB
|
FLOAT
|
DECIMAL
|
DATETIME (CHAR)7
|
CHARACTER
|
TIME
|
INTEGER
|
LONG CHARACTER
|
CHARACTER
|
UNDEFINED
|
CHARACTER
|
ROWID
|
CHARACTER
|
LOGICAL
|
LOGICAL
|
ROWID. The Oracle ROWID, however,
has its programming equivalent in the OpenEdge ROWID.
See the for more information.