Unix Technical Forum

how to I know I am connected to shared memory.

This is a discussion on how to I know I am connected to shared memory. within the Informix forums, part of the Database Server Software category; --> Hi, I am hoping some Informix expert can give me some info on this. I have setup shared memory ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 04:34 PM
louis.lam@guardium.com
 
Posts: n/a
Default how to I know I am connected to shared memory.


Hi,

I am hoping some Informix expert can give me some info on this. I
have setup shared memory connection for informix. After I connected
to the database using shared memory, is there a way to verified what I
connected. Like may be some database views or tables that show the
information. My sqlhosts is setup like this.

in0pheas ontlitcp pheasant nettcp3
il0pheas ontlitcp pheasant nettee
is0pheas onipcshm pheasant sqlexec

is0pheas is the one that is setup for shared memory.

Thanks for any help.
Louis.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 04:34 PM
Everett Mills
 
Posts: n/a
Default RE: how to I know I am connected to shared memory.

Louis-
Assuming you connected with dbaccess or isql, look just below
the ring menu after you connect to a database. It should read something
like:

-------------mydatabase@myserver--------------

If myserver = is0pheas, then you have a shared memory connection. Also,
if your connecting through 4GL and your $INFORMIXSERVER is is0pheas and
you don't have to change servers when you connect, you are connecting to
shared memory on is0pheas. If you are connecting another way, you need
to specify what you're using for a better answer.

--EEM

> -----Original Message-----
> From: informix-list-bounces@iiug.org [mailto:informix-list-
> bounces@iiug.org] On Behalf Of louis.lam@guardium.com
> Sent: Friday, May 18, 2007 10:39 AM
> To: informix-list@iiug.org
> Subject: how to I know I am connected to shared memory.
>
>
> Hi,
>
> I am hoping some Informix expert can give me some info on this. I
> have setup shared memory connection for informix. After I connected
> to the database using shared memory, is there a way to verified what I
> connected. Like may be some database views or tables that show the
> information. My sqlhosts is setup like this.
>
> in0pheas ontlitcp pheasant nettcp3
> il0pheas ontlitcp pheasant nettee
> is0pheas onipcshm pheasant sqlexec
>
> is0pheas is the one that is setup for shared memory.
>
> Thanks for any help.
> Louis.
>
> _______________________________________________
> Informix-list mailing list
> Informix-list@iiug.org
> http://www.iiug.org/mailman/listinfo/informix-list

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 04:35 PM
Jonathan Leffler
 
Posts: n/a
Default Re: how to I know I am connected to shared memory.

louis.lam@guardium.com wrote:
> I am hoping some Informix expert can give me some info on this. I
> have setup shared memory connection for informix. After I connected
> to the database using shared memory, is there a way to verified what I
> connected. Like may be some database views or tables that show the
> information. My sqlhosts is setup like this.
>
> in0pheas ontlitcp pheasant nettcp3
> il0pheas ontlitcp pheasant nettee
> is0pheas onipcshm pheasant sqlexec
>
> is0pheas is the one that is setup for shared memory.


How are you connecting? Which language are you using?

Connection failures return any of a large variety of errors, and most
likely you'd see one unless you studiously ignore them. If you want to
be sure, you could try selecting data from the system catalog:

SELECT owner, tabname FROM "informix".systables WHERE tabid = 1;

Should return owner = "informix" and tabname = "systables".

--
Jonathan Leffler #include <disclaimer.h>
Email: jleffler@earthlink.net, jleffler@us.ibm.com
Guardian of DBD::Informix v2007.0226 -- http://dbi.perl.org/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-20-2008, 04:35 PM
louis.lam@guardium.com
 
Posts: n/a
Default Re: how to I know I am connected to shared memory.

Thank you for all your reply, I have found the solution from another
user email to me. It is

onstat -g ntu

Work good for me, I can identified the session and see the type of
connection. I am using DBACCESS.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-20-2008, 04:35 PM
Art S. Kagel
 
Posts: n/a
Default Re: how to I know I am connected to shared memory.

louis.lam@guardium.com wrote:
> Hi,
>
> I am hoping some Informix expert can give me some info on this. I
> have setup shared memory connection for informix. After I connected
> to the database using shared memory, is there a way to verified what I
> connected. Like may be some database views or tables that show the
> information. My sqlhosts is setup like this.
>
> in0pheas ontlitcp pheasant nettcp3
> il0pheas ontlitcp pheasant nettee
> is0pheas onipcshm pheasant sqlexec
>
> is0pheas is the one that is setup for shared memory.
>
> Thanks for any help.
> Louis.


If you want to be able to verify your connection from outside that session,
you can, presumably from another session, do:

select *
from syssessions
where uid = 'client user id' and pid = <client pid> and hostname = 'client
host';

Art S. Kagel

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:16 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com