2026-03-12 20:23:15
This commit is contained in:
27
tpt/demos/direct_load_cleanout.sql
Normal file
27
tpt/demos/direct_load_cleanout.sql
Normal file
@@ -0,0 +1,27 @@
|
||||
-- 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;
|
||||
--CREATE TABLE t (a CHAR(100)) PCTFREE 99 PCTUSED 1 TABLESPACE users;
|
||||
--@seg2 T
|
||||
--@gts T
|
||||
|
||||
TRUNCATE TABLE t;
|
||||
|
||||
INSERT /*+ APPEND */ INTO t SELECT 'x' FROM dual CONNECT BY LEVEL <= 1000;
|
||||
--@dump 4 99316 Start
|
||||
--@dump 4 99317 Start
|
||||
|
||||
ALTER SYSTEM FLUSH BUFFER_CACHE;
|
||||
|
||||
COMMIT;
|
||||
--@dump 4 99316 Start
|
||||
--@dump 4 99317 Start
|
||||
|
||||
--@ev 10203 2
|
||||
--@ev 10200 1
|
||||
--@ev 10046 8
|
||||
|
||||
SELECT COUNT(*) FROM t;
|
||||
--@dump 4 99316 Start
|
||||
--@dump 4 99317 Start
|
||||
Reference in New Issue
Block a user