Files
oracle/tpt/demos/rowdep_cleanup.sql
2026-03-12 21:23:47 +01:00

41 lines
815 B
SQL

-- 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;