October 03 2011

Informix: Tracing session’s hostname longer than 8 characters

Tagged Under : , , ,

Sometimes you like to find out the hostname/IP address the sessions that came from.

onstat -g ses only display 8 characters out the hostname.

Use below query to retrive the hostname direct from sysmaster database :-

# dbaccess sysmaster –

SQL> select sid, username, hostname from syssessions where sid=session_id

September 12 2010

shmget: [EEXIST][17]: key 52b14804: shared memory already exists.

Tagged Under : , , , ,

I was getting error “shmget: [EEXIST][17]: key 52b14804: shared memory already exists” in online log and I notice OS physical memory and kernel parameters (shmmax) have much more available memory. But Informix instance unable to allocate new shared memory virtual segment during run-time from OS kernel. I notice there is no AF file (Assert Failed) generated.

I have raised a case to IBM Informix and confirm it was encountering IDS bug with product defect number  idsdb00206627.

July 20 2010

How to check content of Informix TEMPSPACE when getting fill up?

Tagged Under : , , ,

Scenario:
TEMPSPACE “npts_tmpdbs3” is getting fill up.
We would like to check what is kept in this TEMPSPACE.
$ onstat -d | grep tmpdbs
8426c198 4        2001     4        1        N T      informix npts_tmpdbs1
8426c258 5        2001     5        1        N T      informix npts_tmpdbs2
8426c318 6 2001     6        1        N T      informix npts_tmpdbs3
8426c3d8 7        2001     7        1        N T      informix npts_tmpdbs4
83764f30 4   4   0        512000   509333            PO-   /dev/infdev/npts_tmpdbs1.1
83765038 5   5   0        512000   312458            PO-   /dev/infdev/npts_tmpdbs2.1
83765140 6   6   0        512000   9675              PO-   /dev/infdev/npts_tmpdbs3.1
83765248 7   7   0        512000   509421            PO-   /dev/infdev/npts_tmpdbs4.1

Steps:

(1) Get TBLspace partnum using DBspace number.