HZ_GEOGRAPHIES_INT

HZ_GEOGRAPHIES_INT is an interface table to load data to TCA geography tables such as HZ_GEOGRAPHIES, HZ_GEOGRAPHY_IDENTIFIERS, HZ_RELATIONSHIPS, and HZ_HIERARCHY_NODES. SOURCE_ID and PARENT_SOURCE_ID are arbitrary user-provided numbers to connect a geography and its parent within a job id of this interface table. For example, if United States has a SOURCE_ID 1, all states under it should have the PARENT_SOURCE_ID 1. All counties under California must have a PARENT_SOURCE_ID 22 if SOURCE_ID of California is 22.

Details

  • Schema: FUSION

  • Object owner: HZ

  • Object type: TABLE

  • Tablespace: INTERFACE

Columns

Name Datatype Length Precision Not-null Comments
INTERFACE_ROW_ID NUMBER 18 Yes Unique identifier for this interface record. (internal use only)
BATCH_ID NUMBER 18 Yes Unique identifier for a geography import batch in HZ_IMP_BATCH_SUMMARY.
RECORD_TYPE_CODE NUMBER 2 Yes Specifies what data needs to be created.
GEOGRAPHY_TYPE VARCHAR2 30 Type of geography.
PRIMARY_GEOGRAPHY_NAME VARCHAR2 360 Primary name of the geography.
PRIMARY_GEOGRAPHY_CODE VARCHAR2 30 Primary code of the geography.
PRIMARY_GEOGRAPHY_CODE_TYPE VARCHAR2 30 Primary code type of the geography.
COUNTRY_CODE VARCHAR2 2 Yes Code of the Country to which the Geography belongs.
LEVEL_NUMBER NUMBER 2 Country structure level number.
SOURCE_ID NUMBER 18 User identifier of this geography.
PARENT_SOURCE_ID NUMBER 18 User identifier of parent geography.
GEOGRAPHY_ID NUMBER 18 Unique geography identifier used in TCA geography tables (internal use only).
PARENT_GEOGRAPHY_ID NUMBER 18 Unique geography identifier of the parent used in TCA geography tables (internal use only).
PARENT_GEOGRAPHY_TYPE VARCHAR2 30 Type of parent geography (internal use only).
RELATIONSHIP_ID NUMBER 18 Relationship identifier for this geography and its parent in HZ_RELATIONSHIPS table (internal use only).
START_DATE DATE Start date from which this geography is valid for use.
END_DATE DATE Date from which this geography is no longer valid.
GEO_DATA_PROVIDER VARCHAR2 30 Name of the data source provider.
PROVIDER_GEO_ID VARCHAR2 64 Identifier provided by the geography data provider.
PARENT_PROVIDER_GEO_ID VARCHAR2 64 Identifier of the parent provided by the geography data provider.
LANGUAGE_CODE VARCHAR2 4 Stores the language in which identifier_value is stored. (Foreign key to FND_ LANGUAGES.LANGUAGE_CODE)
TIMEZONE_CODE VARCHAR2 64 Time zone of the geography (Foreign key to FND_TIMEZONES_B.TIMZONE_CODE)
IDENTIFIER_TYPE VARCHAR2 30 Specifies whether the value in identifier_value is a code or a name .
IDENTIFIER_SUBTYPE VARCHAR2 30 Specifies the type of a code or a name.
IDENTIFIER_VALUE VARCHAR2 360 Stores the value of the identifier type.
INSERT_UPDATE_FLAG VARCHAR2 1 Indicates if a record should be explicitly inserted or updated (internal use only).
ERROR_ID NUMBER 18 Error ID in HZ_IMP_ERRORS. (internal use only)
FILE_RECORD_NUM NUMBER 10 File import wizard uses this column to relate records in this interface table to rows in a file. (internal use only)
IMPORT_STATUS_CODE VARCHAR2 30 File import wizard status: I - In Progress, O - Obsolete(This would be the status of all the interface table records that were run before), E - Errored, S - Successful (internal use only)
INTERNAL_ACTION_CODE VARCHAR2 30 Indicates the action of insert(I), move(M), delete(D) or update(U) for internal use.
LAST_UPDATE_DATE TIMESTAMP Who column: indicates the date and time of the last update of the row.
LAST_UPDATED_BY VARCHAR2 64 Who column: indicates the user who last updated the row.
CREATION_DATE TIMESTAMP Who column: indicates the date and time of the creation of the row.
CREATED_BY VARCHAR2 64 Who column: indicates the user who created the row.
LAST_UPDATE_LOGIN VARCHAR2 32 Who column: indicates the session login associated to the user who last updated the row.
OBJECT_VERSION_NUMBER NUMBER 9 Yes Used to implement optimistic locking. This number is incremented every time that the row is updated. The number is compared at the start and end of a transaction to detect whether another session has updated the row since it was queried.
FILE_NAME_SYSTASK_ID NUMBER 18 Stores systask id for each import csv file.
GEOGRAPHY_IDENTIFIER_ID NUMBER 18 Unique identifier for a geography in HZ_GEOGRAPHY_IDENTIFIERS table (internal use only), used as primary key for master geography export
PREV_GEOGRAPHY_ID NUMBER 18 Previous geography identifier of existing geography for move use case (internal use only).
PREV_END_DATE DATE End date of geography before move operation. This will be used to restore the end date if Incremental Geography Import fails during move operation.
ACTION_CODE VARCHAR2 30 Indicates the action code set by import flow.
DELTA_OPERATION VARCHAR2 30 Indicates the action of match, add, update or parent_change for internal use.
PROVIDER_GEO_VERSION VARCHAR2 240 Version number associated with the geographies loaded for the country.

Indexes

Index Uniqueness Tablespace Columns
HZ_GEOGRAPHIES_INT_N1 Non Unique Default BATCH_ID, SOURCE_ID, ERROR_ID
HZ_GEOGRAPHIES_INT_N2 Non Unique Default BATCH_ID, PARENT_SOURCE_ID, SOURCE_ID, PARENT_GEOGRAPHY_TYPE, GEOGRAPHY_TYPE
HZ_GEOGRAPHIES_INT_N3 Non Unique Default BATCH_ID, GEOGRAPHY_ID, ERROR_ID
HZ_GEOGRAPHIES_INT_N4 Non Unique Default BATCH_ID, PARENT_GEOGRAPHY_ID, GEOGRAPHY_ID, ERROR_ID
HZ_GEOGRAPHIES_INT_N5 Non Unique Default BATCH_ID, INSERT_UPDATE_FLAG, RECORD_TYPE_CODE, PRIMARY_GEOGRAPHY_CODE
HZ_GEOGRAPHIES_INT_N6 Non Unique Default BATCH_ID, LEVEL_NUMBER, ERROR_ID
HZ_GEOGRAPHIES_INT_N7 Non Unique Default PARENT_SOURCE_ID, BATCH_ID, LEVEL_NUMBER, INSERT_UPDATE_FLAG
HZ_GEOGRAPHIES_INT_N8 Non Unique Default BATCH_ID, IMPORT_STATUS_CODE
HZ_GEOGRAPHIES_INT_N9 Non Unique Default BATCH_ID, PROVIDER_GEO_ID, PARENT_PROVIDER_GEO_ID, START_DATE, END_DATE, GEO_DATA_PROVIDER
HZ_GEOGRAPHIES_INT_U1 Unique Default BATCH_ID, INTERFACE_ROW_ID