Return-Path: <root@fatcity.cts.com>
Received: from ensim.rackshack.net (root@localhost)
 by orafaq.net (8.11.6/8.11.6) with ESMTP id h24177a06484
 for <oracle-l@orafaq.net>; Mon, 3 Mar 2003 19:07:07 -0600
X-ClientAddr: 209.68.248.164
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by ensim.rackshack.net (8.11.6/8.11.6) with ESMTP id h24176306478
 for <oracle-l@orafaq.net>; Mon, 3 Mar 2003 19:07:06 -0600
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id NAA38908;
 Mon, 3 Mar 2003 13:43:54 -0800 (PST)
Received: by fatcity.com (26-Feb-2001/v1.0g-b72/bab) via UUCP id 0055EE24; Mon, 03 Mar 2003 12:59:14 -0800
Message-ID: <F001.0055EE24.20030303125914@fatcity.com>
Date: Mon, 03 Mar 2003 12:59:14 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Jamadagni, Rajendra" <Rajendra.Jamadagni@espn.com>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Jamadagni, Rajendra" <Rajendra.Jamadagni@espn.com>
Subject: RE: Sharing data between sessions
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 72; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: multipart/mixed;	boundary="----=_NextPartTM-000-e5d5bbe5-d0ae-47cd-aac0-a435acc5e625"
------=_NextPartTM-000-e5d5bbe5-d0ae-47cd-aac0-a435acc5e625
Content-Type: multipart/alternative;
 boundary="----_=_NextPart_001_01C2E1C7.CB551ED0"
------_=_NextPart_001_01C2E1C7.CB551ED0
Content-Type: text/plain;
 charset="iso-8859-1"

In Oracle all data is session specific ... even package data ... sessions
share the package code.

1. Use a small table to share the data.
or
2. Use dbms_pipe to receive request and send out data ... this will act as a
pseudo package header for all sessions.

These are the easiest ways ... of course I could just implement the
dbms_pipe interface using dbms_alert as well to make it transactional. 

Raj
-------------------------------------------------------------
Rajendra dot Jamadagni at espn dot com
Any views expressed here are strictly personal.
QOTD: Any clod can have facts, having an opinion is an art !!


-----Original Message-----
Sent: Monday, March 03, 2003 3:44 PM
To: Multiple recipients of list ORACLE-L


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

One of my developers wants to share data between sessions inside a
package. Specifically he wants to set some sort of global variable in
a package that session 1 executes, and when sessions 2,3...n fire a
trigger he wants them to be able to read that variable. Is there an
easy way to do this other than by using a table? I was thinking that
java might have this ability but I don't know java at all. I know you
can link a C program to a trigger and since this is on unix you could
theoretically create a shared memory segment that the trigger would
read but this sounds like to a lot of hoops to jump through.

Any suggestions?
- --
Chuck

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0 - not licensed for commercial use: www.pgp.com

iQA/AwUBPmO+jlVYIIV9CtSHEQKU1gCg01qayq76M7fZt07ffVQuPJXucIIAoKzn
hO4Qrd/tk2mrJd6TYufjwejv
=G56o
-----END PGP SIGNATURE-----


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Chuck Hamilton
  INET: chuckh@softhome.net

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).


------_=_NextPart_001_01C2E1C7.CB551ED0
Content-Type: text/html;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2654.19">
<TITLE>RE: Sharing data between sessions</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>In Oracle all data is session specific ... even =
package data ... sessions share the package code.</FONT>
</P>

<P><FONT SIZE=3D2>1. Use a small table to share the data.</FONT>
<BR><FONT SIZE=3D2>or</FONT>
<BR><FONT SIZE=3D2>2. Use dbms_pipe to receive request and send out =
data ... this will act as a pseudo package header for all =
sessions.</FONT>
</P>

<P><FONT SIZE=3D2>These are the easiest ways ... of course I could just =
implement the dbms_pipe interface using dbms_alert as well to make it =
transactional. </FONT></P>

<P><FONT SIZE=3D2>Raj</FONT>
<BR><FONT =
SIZE=3D2>-------------------------------------------------------------</=
FONT>
<BR><FONT SIZE=3D2>Rajendra dot Jamadagni at espn dot com</FONT>
<BR><FONT SIZE=3D2>Any views expressed here are strictly =
personal.</FONT>
<BR><FONT SIZE=3D2>QOTD: Any clod can have facts, having an opinion is =
an art !!</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Chuck Hamilton [<A =
HREF=3D"mailto:chuckh@softhome.net">mailto:chuckh@softhome.net</A>]</FON=
T>
<BR><FONT SIZE=3D2>Sent: Monday, March 03, 2003 3:44 PM</FONT>
<BR><FONT SIZE=3D2>To: Multiple recipients of list ORACLE-L</FONT>
<BR><FONT SIZE=3D2>Subject: Sharing data between sessions</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>-----BEGIN PGP SIGNED MESSAGE-----</FONT>
<BR><FONT SIZE=3D2>Hash: SHA1</FONT>
</P>

<P><FONT SIZE=3D2>One of my developers wants to share data between =
sessions inside a</FONT>
<BR><FONT SIZE=3D2>package. Specifically he wants to set some sort of =
global variable in</FONT>
<BR><FONT SIZE=3D2>a package that session 1 executes, and when sessions =
2,3...n fire a</FONT>
<BR><FONT SIZE=3D2>trigger he wants them to be able to read that =
variable. Is there an</FONT>
<BR><FONT SIZE=3D2>easy way to do this other than by using a table? I =
was thinking that</FONT>
<BR><FONT SIZE=3D2>java might have this ability but I don't know java =
at all. I know you</FONT>
<BR><FONT SIZE=3D2>can link a C program to a trigger and since this is =
on unix you could</FONT>
<BR><FONT SIZE=3D2>theoretically create a shared memory segment that =
the trigger would</FONT>
<BR><FONT SIZE=3D2>read but this sounds like to a lot of hoops to jump =
through.</FONT>
</P>

<P><FONT SIZE=3D2>Any suggestions?</FONT>
<BR><FONT SIZE=3D2>- --</FONT>
<BR><FONT SIZE=3D2>Chuck</FONT>
</P>

<P><FONT SIZE=3D2>-----BEGIN PGP SIGNATURE-----</FONT>
<BR><FONT SIZE=3D2>Version: PGP 8.0 - not licensed for commercial use: =
www.pgp.com</FONT>
</P>

<P><FONT =
SIZE=3D2>iQA/AwUBPmO+jlVYIIV9CtSHEQKU1gCg01qayq76M7fZt07ffVQuPJXucIIAoKz=
n</FONT>
<BR><FONT SIZE=3D2>hO4Qrd/tk2mrJd6TYufjwejv</FONT>
<BR><FONT SIZE=3D2>=3DG56o</FONT>
<BR><FONT SIZE=3D2>-----END PGP SIGNATURE-----</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>Please see the official ORACLE-L FAQ: <A =
HREF=3D"http://www.orafaq.net" =
TARGET=3D"_blank">http://www.orafaq.net</A></FONT>
<BR><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>Author: Chuck Hamilton</FONT>
<BR><FONT SIZE=3D2>&nbsp; INET: chuckh@softhome.net</FONT>
</P>

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

</BODY>
</HTML>
------_=_NextPart_001_01C2E1C7.CB551ED0--


------=_NextPartTM-000-e5d5bbe5-d0ae-47cd-aac0-a435acc5e625
Content-Type: text/plain;
 name="ESPN_Disclaimer.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="ESPN_Disclaimer.txt"

*********************************************************************This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you.*********************************************************************1

------=_NextPartTM-000-e5d5bbe5-d0ae-47cd-aac0-a435acc5e625--

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jamadagni, Rajendra
  INET: Rajendra.Jamadagni@espn.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).

