| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: how do you verify that create table ... nologging ... as sele
Jacques,
What about using the following script to measure actual amount of redo in the log file:
select
le.leseq log_sequence#,
substr(to_char(100 * cp.cpodr_bno / le.lesiz, '999.00'), 2) || '%' used ,
le.lesiz * le.lebsz /1024 /1024 logmbtotal,
cp.cpodr_bno * le.lebsz /1024 /1024 logmbinuse
from
sys.x$kcccp cp,
sys.x$kccle le
where
le.inst_id = userenv('Instance') and
cp.inst_id = userenv('Instance') and
le.leseq = cp.cpodr_seq
Maybe you could also try it in a tablespace set to nologging and compare the results?
Hope this helps,
Bruce Reardon
-----Original Message-----
Sent: Thursday, 10 January 2002 14:30
> -----Original Message-----
> From: Jeremiah Wilton [mailto:jwilton_at_speakeasy.net]
> ...
>The 'redo writes' and 'redo blocks' statistics are racked up by LGWR ,
>so you shouldn't see your session doing much of them.
>
>A better measurement of your session's redo generation would be the
>'redo size' statistic.
>
>select name, value from v$sesstat ss, v$statname sn where
>ss.statistic# = sn.statistic# and sn.name = 'redo size' and ss.sid =
>userenv('sessionid');
6 a.statistic# = b.statistic#
7 and b.name = 'redo size'
8 and a.sid = c.sid
9 and c.audsid = sys_context ('userenv', 'sessionid') ;
NAME VALUE
-------------------- ----------
redo size 2591128
6 a.statistic# = b.statistic#
7 and b.name = 'redo size'
8 and a.sid = c.sid
9 and c.audsid = sys_context ('userenv', 'sessionid') ;
NAME VALUE
-------------------- ----------
redo size 3590580
6 a.statistic# = b.statistic#
7 and b.name = 'redo size'
8 and a.sid = c.sid
9 and c.audsid = sys_context ('userenv', 'sessionid') ;
NAME VALUE
-------------------- ----------
redo size 3886432
6 a.statistic# = b.statistic#
7 and b.name = 'redo size'
8 and a.sid = c.sid
9 and c.audsid = sys_context ('userenv', 'sessionid') ;
NAME VALUE
-------------------- ----------
redo size 4885844
SQL> select * from dba_tablespaces where tablespace_name = 'DATA1' ;
TABLESPACE_NAME INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS
------------------------------ -------------- ----------- -----------
MAX_EXTENTS PCT_INCREASE MIN_EXTLEN STATUS CONTENTS LOGGING EXTENT_MAN
ALLOCATIO PLU
--------- ---
DATA1 14336 14336 1 2147483645 0 14336 ONLINE PERMANENT LOGGING LOCALUNIFORM NO
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: 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 Thu Jan 10 2002 - 02:35:19 CST
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
![]() |
![]() |