Question

I am using sqlldr to do a bulk load of data, but I need to set a context value before the data loads so that a trigger has a value, but I cannot find a way to execute arbitrary sql as part of a data load.

Was it helpful?

Solution

In theory an after logon trigger can run code for you, but it would be difficult to switch functionality like that on and off on demand.

Consider using an external table instead of SQL*Loader, and you can do just about whatever you like as part of the session.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top