Help with my perl script
- From: joebayerii@xxxxxxxxx (Joe Bayer)
- Date: Wed, 23 Aug 2006 11:04:42 -0700 (PDT)
Group,
I am trying to write a load testing script.
The script goes like this:
++++++++++++++++++++++++++++++++++
my $j = 0;
while ($j < 300)
{
$dbh[$j] = DBI->connect ( "dbi:Oracle:$instance[$i]",
"$username[$i]",
"$passwd[$i]",
{
PrintError => 1,
RaiseError => 1,
AutoCommit => 1
}
) || die "Database Connection not made $DBI::errstr" ;# Create a Database
#do some random, endless select statement here.
$j++;
}
++++++++++++++++++++++++++++++++++++++++++
What I want is 300 session do the select statement simultaneously. But this script will do one session after another.
Do I REALLY have to start 300 perl script in order to this testing, or there is some way in perl that one script can start up 300 session and do their invidual select simultaneously?
Thanks for your help.
Joe
---------------------------------
All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.
- Follow-Ups:
- Re: Help with my perl script
- From: Stephen Carville
- RE: Help with my perl script
- From: Will Rutherdale
- Re: Help with my perl script
- References:
- Re: Problem on Perl DBI for Oracle-DBD-1.18
- From: Vasundhar
- Re: Problem on Perl DBI for Oracle-DBD-1.18
- Prev by Date: Re: Problem on Perl DBI for Oracle-DBD-1.18
- Next by Date: RE: Help with my perl script
- Previous by thread: Re: Problem on Perl DBI for Oracle-DBD-1.18
- Next by thread: RE: Help with my perl script
- Index(es):
Relevant Pages
|