Created
July 26, 2017 13:01
-
-
Save anjuls/cdb0515702a4c6cbebc5756fdbe389e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ "$1" = '-s' ]]; then | |
sqlplus -s scott/oracle@ORCL<<EOF | |
declare | |
foo clob; | |
begin | |
dbms_application_info.set_action('LOBLOAD'); | |
foo:=rpad(dbms_random.value(),30000,dbms_random.value()); | |
for i in 1..1000 loop | |
insert into T (id, payload1) | |
(select secfile_seq.nextval, foo from dual connect by level | |
<=1000); | |
commit; | |
end loop; | |
end; | |
/ | |
EOF | |
exit | |
fi | |
c=0 | |
while [[ $c -lt 20 ]]; do | |
let c=$c+1 | |
$0 -s >>lobload.log & | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment