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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Insert append generating redo

Re: Insert append generating redo

From: Robert Pegram <pegramrg_at_yahoo.com>
Date: Tue, 09 Apr 2002 11:35:42 -0800
Message-ID: <F001.0043FD46.20020409113542@fatcity.com>


Stephane,

I don't understand what you mean when you say you can select on t1 before any commit.

I just tried this on an 8.1.7 database, and there was a signicant reduction in redo. There was only 668 bytes of redo generated vs. 2320 (see below). I think some redo will still be generated as you allocate extents (my tablespace is dictionary managed).

Rob Pegram
Oracle Certified DBA



SQL> create table t as select * from dba_users;

Table created.

SQL> alter table t nologging;

Table altered.

SQL> delete from t;

15 rows deleted.

SQL> commit;

Commit complete.

SQL> select value

   from v$mystat, v$statname
  where v$mystat.statistic# = v$statname.statistic#
    and v$statname.name = 'redo size'

     VALUE

    117720

SQL> insert /*+ append */ into t as select * from dba_users;
insert /*+ append */ into t as select * from dba_users

                            *

ERROR at line 1:
ORA-00926: missing VALUES keyword

SQL> insert /*+ append */ into t select * from dba_users;

15 rows created.

SQL> commit;

Commit complete.

SQL> select value

   from v$mystat, v$statname
  where v$mystat.statistic# = v$statname.statistic#
    and v$statname.name = 'redo size'

     VALUE

    118388

SQL> delete from t;

15 rows deleted.

SQL>
SQL> commit;

Commit complete.

SQL> select value

   from v$mystat, v$statname
  where v$mystat.statistic# = v$statname.statistic#
    and v$statname.name = 'redo size'

     VALUE

    123856

SQL> insert into t select * from dba_users;

15 rows created.

SQL> commit;

Commit complete.

SQL> select value

   from v$mystat, v$statname
  where v$mystat.statistic# = v$statname.statistic#
    and v$statname.name = 'redo size'

     VALUE

    126176


Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Robert Pegram
  INET: pegramrg_at_yahoo.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue Apr 09 2002 - 14:35:42 CDT

Original text of this message

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