My Oracle Support Banner

How to Load Primary/Detail and Associate Primary/Foreign Keys (Doc ID 1048470.6)

Last updated on DECEMBER 17, 2023

Applies to:

Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.

Goal

You have a data file that needs to be loaded into two tables.  The first table is your primary table, and the second table is your detail table. You need to create a primary/foreign key relationship for these tables at the time the data is loaded.

You are loading your data using Sql*Loader.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.