BRabbit27
BRabbit27

Reputation: 6623

Dynamic SQL-Loader control file

I have 20 tables that are temp-tables where we load and validate data constantly and I have a control file for each table.

How can I have a unique control file that just changes the table the data is loaded into? Any suggestion?

Thanks in advance!

---Oracle info---

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi

Upvotes: 2

Views: 3214

Answers (2)

Andrew Wolfe
Andrew Wolfe

Reputation: 2096

Suggest you write your control file load the data into a synonym rather than into the specific table. Begin each load run by redefining the synonym to the table you want.

Upvotes: 2

A.B.Cade
A.B.Cade

Reputation: 16915

Maybe you can use multiple INTO TABLE clauses, and distinguish bitween them, somehow, with the WHEN clause.
Look here for more details

Upvotes: 0

Related Questions