1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
| drop table t purge
drop table t purge succeeded.
create table t as select * from dept nologging
create table t as select * from dept nologging succeeded.
Objet = scott.t
-------------------------
total_blocs ............. = 8
total_octets ............ = 65536
unused_blocs ............ = 4
unused_octets ........... = 32768
hwm_file_id ............. = 5
hwm_extent_head ......... = 77497
hwm_block_in_extent ..... = 4
select count(*) from t
COUNT(*)
--------
11
1 rows selected
select file#, unrecoverable_time, unrecoverable_change#, first_nonlogged_scn, first_nonlogged_time
from v$datafile
where file# = 5
FILE# UNRECOVERABLE_TIME UNRECOVERABLE_CHANGE# FIRST_NONLOGGED_SCN FIRST_NONLOGGED_TIME
----- ------------------ --------------------- ------------------- --------------------
5 2008-03-05 6526455 0
select logging
from dba_tables
where table_name = 'T'
and owner = 'SCOTT'
LOGGING
-------
YES
1 rows selected
insert /*+ append nologging */
into t
select * from t
insert /*+ append nologging */
into t
select * from t succeeded.
commit
commit succeeded.
Objet = scott.t
-------------------------
total_blocs ............. = 8
total_octets ............ = 65536
unused_blocs ............ = 3
unused_octets ........... = 24576
hwm_file_id ............. = 5
hwm_extent_head ......... = 77497
hwm_block_in_extent ..... = 5
select file#, unrecoverable_time, unrecoverable_change#, first_nonlogged_scn, first_nonlogged_time
from v$datafile
where file# = 5
FILE# UNRECOVERABLE_TIME UNRECOVERABLE_CHANGE# FIRST_NONLOGGED_SCN FIRST_NONLOGGED_TIME
----- ------------------ --------------------- ------------------- --------------------
5 2008-03-05 6526455 0
alter table t nologging
alter table t nologging succeeded.
select logging
from dba_tables
where table_name = 'T'
and owner = 'SCOTT'
LOGGING
-------
NO
1 rows selected
insert /*+ append nologging */
into t
select * from t
insert /*+ append nologging */
into t
select * from t succeeded.
commit
commit succeeded.
Objet = scott.t
-------------------------
total_blocs ............. = 8
total_octets ............ = 65536
unused_blocs ............ = 2
unused_octets ........... = 16384
hwm_file_id ............. = 5
hwm_extent_head ......... = 77497
hwm_block_in_extent ..... = 6
select file#, unrecoverable_time, unrecoverable_change#, first_nonlogged_scn, first_nonlogged_time
from v$datafile
where file# = 5
FILE# UNRECOVERABLE_TIME UNRECOVERABLE_CHANGE# FIRST_NONLOGGED_SCN FIRST_NONLOGGED_TIME
----- ------------------ --------------------- ------------------- --------------------
5 2008-03-05 6526523 0 |
Partager