2026-03-12 20:23:15
This commit is contained in:
40
tpt/demos/rowdep_cleanup.sql
Normal file
40
tpt/demos/rowdep_cleanup.sql
Normal file
@@ -0,0 +1,40 @@
|
||||
-- Copyright 2018 Tanel Poder. All rights reserved. More info at http://tanelpoder.com
|
||||
-- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions.
|
||||
|
||||
drop table t;
|
||||
|
||||
Prompt Creating table with NO rowdependencies...
|
||||
|
||||
|
||||
create table t tablespace users as select * From dba_objects;
|
||||
|
||||
update t set object_id = 1;
|
||||
|
||||
alter system flush buffer_cache;
|
||||
|
||||
@db
|
||||
commit;
|
||||
|
||||
pause Press any key to select count(*) from t...
|
||||
|
||||
select distinct ora_rowscn from t;
|
||||
|
||||
pause Done. Press any key to continue...
|
||||
|
||||
drop table t;
|
||||
|
||||
Prompt Creating table WITH rowdependencies...
|
||||
|
||||
|
||||
create table t tablespace users ROWDEPENDENCIES as select * From dba_objects;
|
||||
|
||||
update t set object_id = 1;
|
||||
|
||||
alter system flush buffer_cache;
|
||||
|
||||
@db
|
||||
commit;
|
||||
|
||||
pause Press any key to select count(*) from t...
|
||||
|
||||
select distinct ora_rowscn from t;
|
||||
Reference in New Issue
Block a user