Link to home
Start Free TrialLog in
Avatar of rayskelton
rayskelton

asked on

How do you truncade a database in Oracle sqlldr before loading fresh data.

How do you truncade a database in Oracle sqlldr before loading fresh data. I can do this in sqlplus but would prefer to do inthrough sqlldr.
Avatar of jwahl
jwahl
Flag of Austria image

do you mean truncate TABLE or really DATABASE?
Avatar of RainMan82
RainMan82

  execute immediate 'truncate table tablename;
ASKER CERTIFIED SOLUTION
Avatar of RainMan82
RainMan82

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rayskelton

ASKER

Will this work as control file option in sqlldr or is this a command line option?

'truncate table tablename';
truncate as a control file option works good,
thanks