1.7 Bulk Loading into Version-Enabled Tables
You can use SQL*Loader to perform bulk loading into version-enabled tables, but you must also call some special Workspace Manager procedures, and some restrictions apply.
You can perform both direct-path and conventional-path bulk loading of data into either the latest version of any workspace or into the root version (version number 0, which is in the LIVE
workspace). The root version is the ancestor of all other versions, so data in the root version is visible from all other workspaces (unless non-LIVE
workspaces have updated the data).
Follow these general steps for bulk loading into a version-enabled table:
If you commit the bulk loading changes, Workspace Manager ensures that the data is updated in the required workspace and version. By default, the bulk-loaded data is checked for each unique or referential constraint defined on the table, and any bulk-loaded rows that are in violation of any constraints are moved to a discards table specified as a parameter to the CommitBulkLoading procedure. If you specified to check for duplicates (that is, records in the data to be bulk loaded that have the same values in the primary key columns), for any duplicate records only the record with the lowest ROWID value is loaded into the table, and the rest are moved to the discards table.
The following restrictions apply to bulk loading with version-enabled tables in the current release:
-
Bulk loading into a table with a self-referential integrity constraint is not allowed.
-
Bulk loading into a workspace, other than
LIVE
, that has continually refreshed child workspaces is not allowed. -
Only the owner of a table or a user with the
WM_ADMIN
system privilege can bulk load into a version-enabled table. -
The user that is bulk loading the version-enabled table must have the
INSERT
privilege for <table_name>_LT
. -
User-defined triggers on version-enabled tables are not executed during bulk loading.
-
Session locking mode is not enforced for the bulk-loaded rows. Use the LockRows procedure to lock these rows.
Parent topic: Introduction to Workspace Manager