Return-Path: <ml-errors@fatcity.com>
Received: from ensim.rackshack.net (root@localhost)
 by orafaq.net (8.11.6/8.11.6) with ESMTP id h8Q1AmO07601
 for <oracle-l@orafaq.net>; Thu, 25 Sep 2003 20:10:48 -0500
X-ClientAddr: 66.27.56.210
Received: from ns3.fatcity.com (rrcs-west-66-27-56-210.biz.rr.com [66.27.56.210])
 by ensim.rackshack.net (8.11.6/8.11.6) with ESMTP id h8Q1Alc07596
 for <oracle-l@orafaq.net>; Thu, 25 Sep 2003 20:10:47 -0500
Received: from ns3.fatcity.com (localhost.localdomain [127.0.0.1])
 by ns3.fatcity.com (8.12.8/8.12.8) with ESMTP id h8PMU0mO025486
 for <oracle-l@orafaq.net>; Thu, 25 Sep 2003 15:32:04 -0700
Received: (from root@localhost)
 by ns3.fatcity.com (8.12.8/8.12.5/Submit) id h8PMKNPE023625
 for oracle-l@orafaq.net; Thu, 25 Sep 2003 15:20:23 -0700
Received: by fatcity.com (05-Jun-2003/v1.0g-b73/bab) via fatcity.com id 005D115B; Thu, 25 Sep 2003 15:19:35 -0800
Message-ID: <F001.005D115B.20030925151935@fatcity.com>
Date: Thu, 25 Sep 2003 15:19:35 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: Jared.Still@radisys.com
Sender: ml-errors@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: Jared.Still@radisys.com
Subject: RE: creating test sessions
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 73; ListGuru (c) 1996-2003 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="=_mixed 007A527C88256DAC_="
--=_mixed 007A527C88256DAC_=
Content-Type: multipart/alternative; boundary="=_alternative 007A527C88256DAC_="
--=_alternative 007A527C88256DAC_=
Content-Type: text/plain; charset="us-ascii"

This is actually just an excerpt from a set of scripts that do what you 
describe.

call sqlplus, kicks off a configurable number of sqlplus children via 
'host test.sh',
all the kids run simultaneously.

Do this for 2 iterations to stress test different methods of coding, 
collect all the
stats via Tom Kytes run_stats, compare the stats side by side.

Can be kind of fun.

Jared






"Jamadagni, Rajendra" <Rajendra.Jamadagni@espn.com>
Sent by: ml-errors@fatcity.com
 09/25/2003 12:44 PM
 Please respond to ORACLE-L

 
        To:     Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
        cc: 
        Subject:        RE: creating test sessions


one cool thing about this is you can have all your scripts (that would run 
in parallel) register to receive an alert. So you startup all sessions but 
they won't do anything. when you are ready to start processing, from 
another session you raise alert and commit, all sessions start processing 
within couple of seconds of each other.
 
Raj
-------------------------------------------------------------------------------- 
Rajendra dot Jamadagni at nospamespn dot com 
All Views expressed in this email are strictly personal. 
QOTD: Any clod can have facts, having an opinion is an art ! 
-----Original Message-----
Sent: Thursday, September 25, 2003 2:50 PM
To: Multiple recipients of list ORACLE-L


# get number of processes to run from cmd line 

if [ -z $1 ]; then 
        #default to 5 
        MAX_CHILD_COUNT=5 
else 
        MAX_CHILD_COUNT=$1 
fi 

echo Running $MAX_CHILD_COUNT children 

CHILD_COUNT=0 
while [ $CHILD_COUNT -lt $MAX_CHILD_COUNT ] 
do 
        (( CHILD_COUNT = CHILD_COUNT + 1)) 
        # run your command in the background 
        # sqlplus -s $USERNAME/$PASSWORD @thc1.sql $CHILD_COUNT 
2>/dev/null & 
        echo $CHILD_COUNT 
done 





<A.Bahar@billing-components.com> 
Sent by: ml-errors@fatcity.com 
 09/25/2003 09:54 AM 
 Please respond to ORACLE-L 
        
        To:        Multiple recipients of list ORACLE-L 
<ORACLE-L@fatcity.com> 
        cc:         
        Subject:        createing test sessions



   I want to run some sql scripts and i need to open 255 session at same 
time and 
  these session will run somw sql scripts.

  HOW CAN I OPEN  255 session at the same time ?
  may be a tool , may be shell script.....

 Help bittee........
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: <A.Bahar@billing-components.com
 INET: A.Bahar@billing-components.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




--=_alternative 007A527C88256DAC_=
Content-Type: text/html; charset="us-ascii"


<br><font size=2 face="sans-serif">This is actually just an excerpt from a set of scripts that do what you describe.</font>
<br>
<br><font size=2 face="sans-serif">call sqlplus, kicks off a configurable number of sqlplus children via 'host test.sh',</font>
<br><font size=2 face="sans-serif">all the kids run simultaneously.</font>
<br>
<br><font size=2 face="sans-serif">Do this for 2 iterations to stress test different methods of coding, collect all the</font>
<br><font size=2 face="sans-serif">stats via Tom Kytes run_stats, compare the stats side by side.</font>
<br>
<br><font size=2 face="sans-serif">Can be kind of fun.</font>
<br>
<br><font size=2 face="sans-serif">Jared</font>
<br><font size=2 face="sans-serif"><br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>&quot;Jamadagni, Rajendra&quot; &lt;Rajendra.Jamadagni@espn.com&gt;</b></font>
<br><font size=1 face="sans-serif">Sent by: ml-errors@fatcity.com</font>
<p><font size=1 face="sans-serif">&nbsp;09/25/2003 12:44 PM</font>
<br><font size=2 face="sans-serif">&nbsp;</font><font size=1 face="sans-serif">Please respond to ORACLE-L</font>
<br>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; &nbsp; &nbsp; &nbsp;Multiple recipients of list ORACLE-L &lt;ORACLE-L@fatcity.com&gt;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc: &nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; &nbsp; &nbsp; &nbsp;RE: creating test sessions</font></table>
<br>
<br>
<br><font size=2 color=blue face="Courier New">one cool thing about this is you can have all your scripts (that would run in parallel) register to receive an alert. So you startup all sessions but they won't do anything. when you are ready to start processing, from another session you raise alert and commit, all sessions start processing within couple of seconds of each other.</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 color=blue face="Courier New">Raj</font>
<br><font size=2 face="Courier New">--------------------------------------------------------------------------------</font><font size=3 face="Times New Roman"> </font><font size=2 face="Courier New"><br>
Rajendra dot Jamadagni at nospamespn dot com</font><font size=3 face="Times New Roman"> </font><font size=2 face="Courier New"><br>
All Views expressed in this email are strictly personal.</font><font size=3 face="Times New Roman"> </font><font size=2 face="Courier New"><br>
QOTD: Any clod can have facts, having an opinion is an art !</font><font size=3 face="Times New Roman"> </font>
<br><font size=2 face="Tahoma">-----Original Message-----<b><br>
From:</b> Jared.Still@radisys.com [mailto:Jared.Still@radisys.com]<b><br>
Sent:</b> Thursday, September 25, 2003 2:50 PM<b><br>
To:</b> Multiple recipients of list ORACLE-L<b><br>
Subject:</b> Re: createing test sessions<br>
</font>
<br><font size=2 face="sans-serif"><br>
# get number of processes to run from cmd line</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
if [ -z $1 ]; then</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;#default to 5</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;MAX_CHILD_COUNT=5</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
else</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;MAX_CHILD_COUNT=$1</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
fi</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
echo Running $MAX_CHILD_COUNT children</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
CHILD_COUNT=0</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
while [ $CHILD_COUNT -lt $MAX_CHILD_COUNT ]</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
do</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;(( CHILD_COUNT = CHILD_COUNT + 1))</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;# run your command in the background</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;# sqlplus -s $USERNAME/$PASSWORD @thc1.sql $CHILD_COUNT 2&gt;/dev/null &amp;</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;echo $CHILD_COUNT</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
done</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
</font><font size=3 face="Times New Roman"><br>
<br>
<br>
</font>
<table width=100%>
<tr valign=top>
<td width=2%>
<td width=35%><font size=1 face="sans-serif"><b>&lt;A.Bahar@billing-components.com&gt;</b></font><font size=3 face="Times New Roman"> </font><font size=1 face="sans-serif"><br>
Sent by: ml-errors@fatcity.com</font><font size=3 face="Times New Roman"> </font>
<p><font size=1 face="sans-serif">&nbsp;09/25/2003 09:54 AM</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 </font><font size=1 face="sans-serif">Please respond to ORACLE-L</font><font size=3 face="Times New Roman"> </font>
<td width=62%><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=1 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;To: &nbsp; &nbsp; &nbsp; &nbsp;Multiple recipients of list ORACLE-L &lt;ORACLE-L@fatcity.com&gt;</font><font size=3 face="Times New Roman"> </font><font size=1 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;cc: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=3 face="Times New Roman"> </font><font size=1 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;Subject: &nbsp; &nbsp; &nbsp; &nbsp;createing test sessions</font></table>
<br><font size=3 face="Times New Roman"><br>
<br>
</font><font size=2 face="Courier New"><br>
 &nbsp; I want to run some sql scripts and i need to open 255 session at same time and <br>
 &nbsp;these session will run somw sql scripts.<br>
<br>
 &nbsp;HOW CAN I OPEN &nbsp;255 session at the same time ?<br>
 &nbsp;may be a tool , may be shell script.....<br>
<br>
 Help bittee........<br>
-- <br>
Please see the official ORACLE-L FAQ: http://www.orafaq.net<br>
-- <br>
Author: &lt;A.Bahar@billing-components.com<br>
 INET: A.Bahar@billing-components.com<br>
<br>
Fat City Network Services &nbsp; &nbsp;-- 858-538-5051 http://www.fatcity.com<br>
San Diego, California &nbsp; &nbsp; &nbsp; &nbsp;-- Mailing list and web hosting services<br>
---------------------------------------------------------------------<br>
To REMOVE yourself from this mailing list, send an E-Mail message<br>
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in<br>
the message BODY, include a line containing: UNSUB ORACLE-L<br>
(or the name of mailing list you want to be removed from). &nbsp;You may<br>
also send the HELP command for other information (like subscribing).</font><font size=3 face="Times New Roman"><br>
<br>
</font>
<br>
<br>
--=_alternative 007A527C88256DAC_=--
--=_mixed 007A527C88256DAC_=
Content-Type: text/plain; name="InterScan_Disclaimer.txt"
Content-Disposition: attachment; filename="InterScan_Disclaimer.txt"
Content-Transfer-Encoding: 7bit

<encoded content removed -- binaries not allowed by ListGuru>
--=_mixed 007A527C88256DAC_=--
Content-Type: text/plain; name="ReadMe.txt"; charset="us-ascii"
Content-Transfer-Encoding: 7bit

The previous attachment was filtered out by the ListGuru mailing
software at fatcity.com because binary attachments are not appropriate
for mailing lists.  If you want a copy of the attachment which was
removed, contact the sender directly and ask for it to be sent to
you by private E-mail.

This warning is inserted into all messages containing binary
attachments which have been removed by ListGuru.  If you have questions
about this message, contact Postmaster@fatcity.com for clarification.

--=_mixed 007A527C88256DAC_=--
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: Jared.Still@radisys.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

