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*/ Unexpected result (more redo log)

RE: insert /*+APPEND*/ Unexpected result (more redo log)

From: Stephane Paquette <stephane.paquette_at_standardlife.ca>
Date: Tue, 06 May 2003 08:17:04 -0800
Message-ID: <F001.005912B0.20030506081704@fatcity.com>


Is your table in nologging mode ?

Stephane Paquette
Administrateur de bases de donnees

Database Administrator

Standard Life

www.standardlife.ca

Tel. (514) 925-7187

stephane.paquette_at_standardlife.ca

  -----Original Message-----
  From: root_at_fatcity.com [mailto:root_at_fatcity.com]On Behalf Of Saminathan_Seerangan_at_i2.com
  Sent: Tuesday, May 06, 2003 9:52 AM
  To: Multiple recipients of list ORACLE-L   Subject: insert /*+APPEND*/ Unexpected result (more redo log)

  Hi All,

  I'm getting UNEXPECTED result in both 8i and 9iR2.

  Could someone please tell me why insert /*+APPEND*/ generates more redo log.

  I'm pretty sure that there is NO index involved in my test table(redolog_test).
  Also the user is not a SYS and SYSTEM.   The DB is running in ARCHIVE LOG mode.

  SQL> show user
  USER is "MUT"

  SQL> drop table redolog_test;
  Table dropped.

  SQL> create table redolog_test pctfree 99 pctused 1 as select * from all_objects
  where 1=2;
  Table created.

  SQL> insert into redolog_test select * from all_objects;   19412 rows created.

  Statistics


         2003  recursive calls
        89992  db block gets
       161720  consistent gets
            0  physical reads
     10661144  redo size  <========
          438  bytes sent via SQL*Net to client
          433  bytes received via SQL*Net from client
            4  SQL*Net roundtrips to/from client
            2  sorts (memory)
            0  sorts (disk)
        19412  rows processed

  SQL> truncate table redolog_test;
  Table truncated.

  SQL> insert /*+APPEND*/ into redolog_test select * from all_objects;   19412 rows created.

  Statistics


         2012  recursive calls
          365  db block gets
       142229  consistent gets
            0  physical reads
    159534376  redo size  <=======(15 Times higher)
          430  bytes sent via SQL*Net to client
          445  bytes received via SQL*Net from client
            4  SQL*Net roundtrips to/from client
            2  sorts (memory)
            0  sorts (disk)
        19412  rows processed

  SQL>   What could be wrong?

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Stephane Paquette
  INET: stephane.paquette_at_standardlife.ca

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 May 06 2003 - 11:17:04 CDT

Original text of this message

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