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: would nologging work on alter table add primary key ?

Re: would nologging work on alter table add primary key ?

From: Tanel Poder <tanel_at_@peldik.com>
Date: Fri, 18 Jul 2003 19:10:22 +0300
Message-ID: <3f181bf1$1_1@news.estpak.ee>


Hi!

Either use nologging when specifying PK index creation parameters or precreate index w. nologging and enable PK constraint afterwards.

Example syntax:

alter table t add constraint c primary key (a) using index storage (initial 10k) tablespace ts2k nologging;

Tanel.

"Ted Chyn" <tedchyn_at_yahoo.com> wrote in message news:44a19320.0307171337.1fe30685_at_posting.google.com...
> create index .. nologging can reduce the amount of redo generation.
> Is this true for ' alter table add constraint primary key ( ) using
> index tablespace '
>
> I did a test on this and found there is no reduction in redo generation
when
> using 'alter table add constraint primary key' to create primary key
index.
>
> my question:
>
> 1. Is my observation correct ?
> 2. If so why the difference ?
>
> thanks ted
Received on Fri Jul 18 2003 - 11:10:22 CDT

Original text of this message

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