473,406 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

DB2 Session variables (or equivalent)

Bob
Hi there

While developing in DB2, I am trying to store information in session
variables for auditing purposes. I am currently working in v8.2 for
UNIX but we will be going to v9.1 before we deploy to production (so
any answers for either are appreciated).

By session variables, I mean a variable that will return the value set
to within that session even if there are 100 sessions setting their
own values.

Can anyone answer the following questions:

1. Is there a way to store session-specific information using a
methodology other than the DSN3@ATH and DSN3@SGN exit routines?

2. Where do the DSN3@ATH and DSN3@SGN routines reside? I have
searched the file system and cannot find them. Are they optionally
installed with DB2 and if so, where do they end up?

Thanks very much
Bob

Nov 6 '07 #1
9 4999
Bob wrote:
Hi there

While developing in DB2, I am trying to store information in session
variables for auditing purposes. I am currently working in v8.2 for
UNIX but we will be going to v9.1 before we deploy to production (so
any answers for either are appreciated).

By session variables, I mean a variable that will return the value set
to within that session even if there are 100 sessions setting their
own values.

Can anyone answer the following questions:

1. Is there a way to store session-specific information using a
methodology other than the DSN3@ATH and DSN3@SGN exit routines?

2. Where do the DSN3@ATH and DSN3@SGN routines reside? I have
searched the file system and cannot find them. Are they optionally
installed with DB2 and if so, where do they end up?
How about storing such information in a temporary table?

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Nov 6 '07 #2
Bob wrote:
Hi there

While developing in DB2, I am trying to store information in session
variables for auditing purposes. I am currently working in v8.2 for
UNIX but we will be going to v9.1 before we deploy to production (so
any answers for either are appreciated).

By session variables, I mean a variable that will return the value set
to within that session even if there are 100 sessions setting their
own values.

Can anyone answer the following questions:

1. Is there a way to store session-specific information using a
methodology other than the DSN3@ATH and DSN3@SGN exit routines?

2. Where do the DSN3@ATH and DSN3@SGN routines reside? I have
searched the file system and cannot find them. Are they optionally
installed with DB2 and if so, where do they end up?
This sounds like DB2 for i5/OS... DB2 for LUW does not have these.

In DB2 9.5 for LUW we have exactly what you ask for: GLOBAL SESSION
VARIABLES

Prior to DB2 9.5 Declared global temporary tables (DGTT) are probably
your best bet. The problem is that there is no authorization needed to
muck with these, which may defeat your auditing requirement.

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Nov 6 '07 #3
Bob
Thanks everyone for the help. Looks like it may be temporary tables
until we upgrade.

Does anyone know the answers to the questions on DSN3@ATH and
DSN3@SGN?

Bob
Nov 6 '07 #4
Ian
Bob wrote:
Thanks everyone for the help. Looks like it may be temporary tables
until we upgrade.

Does anyone know the answers to the questions on DSN3@ATH and
DSN3@SGN?
Your post is a little confusing, because you don't specify what platform
you're running DB2 on. You specified versions 8.2 and 9.1, which would
imply DB2 for Linux/Unix/Windows (LUW) (since 8.2 was available ONLY on
LUW).

However, DSN3@SGN and DSN3@ATH are not part of DB2 LUW -- I believe they
are for DB2 on z/OS.

Nov 6 '07 #5
Bob
I did notice that they talked alot about z/OS in the posts about these
functions. I did say it was unix, though, in my original post. More
specifically, it is AIX. This place is all about the IBM.

I don't get this about DB2 - what is with the functionalities on one
platform and not another? Why haven't they just wrapped the core
functionality with platform specific wrappers? I hear about all this
great functionality on z/OS - better routine debugging, etc. What is
up with that?

Thanks for clarifying on the LUW

Nov 9 '07 #6
Bob wrote:
I did notice that they talked alot about z/OS in the posts about these
functions. I did say it was unix, though, in my original post. More
specifically, it is AIX. This place is all about the IBM.
DSN3xxx sounds very much like z/OS and not at all like DB2 LUW. Maybe you
are mixing some things here?
I don't get this about DB2 - what is with the functionalities on one
platform and not another? Why haven't they just wrapped the core
functionality with platform specific wrappers?
Because it is not that simple. Both DB2 products (actually 4 if you
consider DB2 Everyplace, DB2 for iSeries, DB2 z/OS, and DB2 LUW) take
advantage of the different features and restrictions on the respective
platform. For example, doing I/O operations on z/OS is completely
different than I/O on Unix. And because performance is the most critical
factor for any serious DBMS, it is not an option to introduce emulation
layers. Also, DB2 z/OS was initially (and still is) written PL/X and
Assembler. It also employs WLM for stored procedure/UDF execution - while
LUW always had a different process model for external routines simply
because WLM wasn't available in the beginning. This is not easily portable
to other platforms. DB2 for iSeries is integrated into the operating
system. This is yet another model, and DB2 Everyplace (still) has to work
on very limited hardware and you can't even install a full-blown Enterprise
Server Edition.

So you see that there are many good reasons why different architectures are
used. I guess that everyone why worked with the some of those different
platforms can understand those differences. What IBM tries to do is to
present a mostly consistent user/application interface while still taking
advantage of platform-specific features. But again, you have to consider a
different customer set on LUW and z/OS, for example. If certain features
are more important on LUW, they have a higher chance to get into the
development plans on LUW than on z/OS and maybe not at all in DB2
Everyplace.

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Nov 9 '07 #7
>I don't get this about DB2 - what is with the functionalities on one
>platform and not another? Why haven't they just wrapped the core
functionality with platform specific wrappers?
Because it is not that simple. Both DB2 products (actually 4 if you
consider DB2 Everyplace, DB2 for iSeries, DB2 z/OS, and DB2 LUW) take
advantage of the different features and restrictions on the respective
platform. For example, doing I/O operations on z/OS is completely
different than I/O on Unix. And because performance is the most critical
factor for any serious DBMS, it is not an option to introduce emulation
layers. Also, DB2 z/OS was initially (and still is) written PL/X and
Assembler. It also employs WLM for stored procedure/UDF execution - while
LUW always had a different process model for external routines simply
because WLM wasn't available in the beginning. This is not easily portable
to other platforms.
DB2 for iSeries is integrated into the operating
system.
Search for more post about "DB2 for i5/OS" in *as400* newsgroups (from
whom I come), like "comp.sys.ibm.as400.misc" or "it.comp.as400" (in
italian, but you may find messages in english too).

This is yet another model, and DB2 Everyplace (still) has to work
on very limited hardware and you can't even install a full-blown Enterprise
Server Edition.
"DB2 is not DB2 is not DB2" ;-)
Regards
Stefano P.

--
"Niuna impresa, per minima che sia,
può avere cominciamento e fine senza queste tre cose:
e cioè senza sapere, senza potere, senza con amor volere"
[Anonimo fiorentino, XIV sec.]

(togliere le "pinzillacchere" dall'indirizzo email ;-)
Nov 30 '07 #8
Stefano P. wrote:
"DB2 is not DB2 is not DB2" ;-)
Hah, yes. We admit in shame that we can't squeeze the DB2 Warehouse
product onto a cell phone. But I do blame the cell phones for that... :-)

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Nov 30 '07 #9
>"DB2 is not DB2 is not DB2" ;-)

May be - but I may fail - that Mike (Cain) told us this phrase...

Hah, yes. We admit in shame that we can't squeeze the DB2 Warehouse
product onto a cell phone. But I do blame the cell phones for that... :-)
ROTFL :-D
Even if at work I like DB2 (for i5/OS ;-) very much, I rather like to
use my cell phone for what it is: as a telephone ;-)
Regards
Stefano P.

--
"Niuna impresa, per minima che sia,
può avere cominciamento e fine senza queste tre cose:
e cioè senza sapere, senza potere, senza con amor volere"
[Anonimo fiorentino, XIV sec.]

(togliere le "pinzillacchere" dall'indirizzo email ;-)
Nov 30 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Pack Fan | last post by:
I've noticed that session variables will persist on Mac IE even after all browser windows have been closed. One must quit the program to clear the session variables. This presents a security risk...
6
by: Lina Manjarres | last post by:
Hello, I have a session variable in a login page. Then I go to a form page where I uses the ProfileID and the UserID. Then I go to a result page where I would like to use the UserID as a filter,...
4
by: PJ | last post by:
A particular page seems to be having issues with correctly setting Session variables. I am setting a couple of session variables on the Page_Unload event. While stepping through code, the...
31
by: Harry Simpson | last post by:
I've come from the old ASP camp where session variables were not used. When i started using ASP.NET in 2001, I started using them again because it was ok from what I'd read. I've been merrily...
7
by: Kermit Piper | last post by:
Hello, How can you clear session variables when a reset button is pressed? I thought I might be able to do something like: <% If request.form("Reset") = "Reset" then Session("variable") =...
2
by: james | last post by:
Hi I am considering storing my session variables within one static object with session scope. The static object will be a class with accessor functions to get and set the equivalent session...
18
by: BillE | last post by:
When a user opens a new IE browser window using File-New-Window the integrity of an application which relies on session state is COMPLETELY undermined. Anyone who overlooks the fact that...
26
by: BillE | last post by:
Some ASP.NET applications use Session Variables extensively to maintain state. These should be re-written to use viewstate, hidden fields, querystring, etc. instead. This is because if a user...
12
by: MrHelpMe | last post by:
Hello again all, I've finished my whole application and now I don't like the whole session variables that I am using. I have a form, user fills in info clicks submit and using CDOSYSMail an...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.