Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Need PL/SQL suggestion

Re: Need PL/SQL suggestion

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Tue, 5 Oct 1999 18:50:36 +0100
Message-ID: <939146078.21451.0.nnrp-08.9e984b29@news.demon.co.uk>


Which version of Oracle ?

  1. Don't do a delete, use dbms_sql or dbms_util.execute_ddl_statement to do a truncate (I may have wrong name for the execute_ddl)
  2. If running 8.1 then insert /*+ append */ into a nologging table. But after a truncate the 'insert into here select from there' should be faster.

--

Jonathan Lewis
Yet another Oracle-related web site: http://www.jlcomp.demon.co.uk

Greg Akins wrote in message <05043480.94cc796f_at_usw-ex0108-057.remarq.com>...
>My company had a stored procedure which did simply:
>
>begin
> delete from members ;
> insert into members (select * from members_at_dblink2) ;
>end ;
>
Received on Tue Oct 05 1999 - 12:50:36 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US