2026-03-12 20:23:15

This commit is contained in:
root
2026-03-12 21:23:47 +01:00
parent eab4b36eca
commit 93039b8489
3332 changed files with 699614 additions and 0 deletions

32
tpt/lotssparses2.sql Normal file
View File

@@ -0,0 +1,32 @@
-- 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.
--------------------------------------------------------------------------------
--
-- File name: lotssparses.sql
-- Purpose: Generate Lots of soft parses and library cache/mutex activity
-- for testing purposes
--
-- Author: Tanel Poder
-- Copyright: (c) http://www.tanelpoder.com
--
-- Usage: @lotsparses <number>
-- @lotsparses 100
-- @lotsparses 1000000
--
-- Other: You probably don't want to run this in production as it can
-- fill your shared pool with junk and flush out any useful stuff!
--
--------------------------------------------------------------------------------
prompt alter session set session_cached_cursors=0;
alter session set session_cached_cursors=0;
declare
x number;
begin
for i in 1..&1 loop
execute immediate 'select count(*) cnt from dual x1 where rownum = 1';
end loop;
end;
/