I am using this script:
#!/bin/sh
for i in $(seq 1 20);
do
echo "CREATE TABLE eugene_$i (id NUMBER NOT NULL);
! sleep 10
DECLARE j NUMBER;
BEGIN
FOR j IN 1..20 LOOP
select * from eugene_$i;
! sleep 10
END LOOP;
END;
DROP TABLE eugene_$i;" | sqlplus system/password &
done
wait
My intent is to keep the connection alive, and run repetitive queries for testing.
The goal is wait 10 seconds after each select and call the next one.
I am not getting selects at all. I assume the inner for loop has some syntax problem.