Home » RDBMS Server » Server Utilities » sqlldr: Replace or Truncate
sqlldr: Replace or Truncate [message #71778] Thu, 09 January 2003 23:53 Go to next message
Deborah
Messages: 18
Registered: June 2002
Junior Member
Hi,
in sqlloader, I have to clean up one table before
loading fresh data.

Which one is better option in the control file?

TRUNCATE INTO TABLE ITM_MSTR_TEMP

OR

REPLACE INTO TABLE ITM_MSTR_TEMP

And why?

TIA,
Debby
Re: sqlldr: Replace or Truncate [message #71779 is a reply to message #71778] Fri, 10 January 2003 02:39 Go to previous message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
actaully,
even if you specify replace,
an internal truncate is used by sql*loader is different (it will re-use tables extents) and is slower (a bit...not a big difference unless it is a real huge table).
I prefer to truncate the table before loading the data
Previous Topic: dont get utilities
Next Topic: Re: SQL*Loader-501 when file size =0
Goto Forum:
  


Current Time: Tue May 14 04:31:39 CDT 2024