Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get procedure to use no logging

518702Aug 28 2008 — edited Aug 29 2008
We currently have a table build procedure that runs nightly to create our data warehouse. This procedure is spinning off too many archive/logging files.

The procedure does a truncate/replace nightly

eg -

truncate table lifcdw_staging.tablename;

insert into lifcdw_staging.tablename
select a.name, a.territory
from sales_reps a
where a.territory_region='east'


we tried to add the following hint:

INSERT /*+ append nologging */ into lifcdw_staging.tablename

this seems to work ok when individual parts of the script are run but if i execute the procedure via toad, the whole thing finishes in about 3 seconds (normally takes over an hour). Obviously it is not running correctly as a procedure with the hint in each insert statement. I have compiled with debug and found no errors.

any help is appreciated.

Jason

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 26 2008
Added on Aug 28 2008
11 comments
809 views