Home » RDBMS Server » Server Utilities » Data loading by sql loader and trigger is not working (Oracle 10g r2 on linux 64 bit)
Data loading by sql loader and trigger is not working [message #328476] Fri, 20 June 2008 05:29 Go to next message
MIFI
Messages: 256
Registered: February 2008
Location: U.K.
Senior Member
Hi,
I am working on oracle 10g r2 on linux, i am loading data in table1 by using sql loader and want that whenever there is a loading of record in table1 the insert trigger must fire and insert or update record in table 2. but whenever i load data, first triggers are disabled and reenabled. but there is no change in table2 when i am loading data in table1

Re: Data loading by sql loader and trigger is not working [message #328480 is a reply to message #328476] Fri, 20 June 2008 05:40 Go to previous messageGo to next message
Michel Cadot
Messages: 68728
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
131 posts and you still don't know how to ask.
Create a simple test case.
Test it.
Post it.
And format it.

Regards
Michel
Re: Data loading by sql loader and trigger is not working [message #328490 is a reply to message #328476] Fri, 20 June 2008 05:48 Go to previous messageGo to next message
MIFI
Messages: 256
Registered: February 2008
Location: U.K.
Senior Member
Triggers are working fine, when i am inserting record manually, but when sql loader is used it is not updating table2
Re: Data loading by sql loader and trigger is not working [message #328497 is a reply to message #328490] Fri, 20 June 2008 06:00 Go to previous message
Michel Cadot
Messages: 68728
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Database Utilities
Chapter 11 11 Conventional and Direct Path Loads
Section Direct Loads, Integrity Constraints, and Triggers
Quote:
Table insert triggers are also disabled when a direct path load begins. After the rows are loaded and indexes rebuilt, any triggers that were disabled are automatically reenabled. The log file lists all triggers that were disabled for the load. There should not be any errors reenabling triggers.

Regards
Michel
Previous Topic: sqlldr
Next Topic: Import questions
Goto Forum:
  


Current Time: Tue Dec 24 11:27:04 CST 2024