Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: get package variables for every session

Re: get package variables for every session

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Sun, 15 May 2005 08:48:13 +0200
Message-ID: <54sd81pr1s7bv7jdqsod5400f4miblh7d2@4ax.com>


On 14 May 2005 23:32:18 -0700, "mkm" <kostya_at_malishich.com> wrote:

>Hi all experts. Need some help.
>I have a package like that:
>---
>CREATE OR REPLACE PACKAGE PACK1 AS
> VAR1 INTEGER;
> VAR2 INTEGER;
> ...
>END;
>CREATE OR REPLACE PACKAGE BODY PACK1 AS
> ...
>END PACK1;
>---
>Every user, when connected, sets the package var1, var2 for self to
>some values by this query:
>---
>BEGIN
> PACK1.VAR1:=111;
> PACK1.VAR2:=222;
>END;
>---
>
>I am loggin in as DBA and want to view all users connected and their
>var1, var2 values.
>Somthing like SELECT SID, VAR1, VAR2 FROM SOMETHING ...
>If package is not initialized, return NULL for var1,var2
>
>Any body know how to solve this?

No selects possible. Maybe by dumping session stacks using oradebug.

--
Sybrand Bakker, Senior Oracle DBA
Received on Sun May 15 2005 - 01:48:13 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US