1833848 Members
2411 Online
110063 Solutions
New Discussion

Memory Window

 
SOLVED
Go to solution
Joydeep_1
Occasional Advisor

Memory Window

Dear Guru,

I have configured Memory windows in one of our testing server. It seems ok. I tried to run informix under memory windows. But when I am giving informix onstat command then it is showing below error.
onstat: Shared memory: permission denied.

If I can't user our informix command then how I can administrate our database.

/etc/services.window
informix 20

startDB.sh
WinId=$(getmemwindow informix)
setmemwindow -i $WinId /usr/informix_7.31/bin/oninit

I have downloaded memwin_stats . But I could not understand what actually it is showing in its output. Would anybody give me any help file
2 REPLIES 2
Mark Greene_1
Honored Contributor

Re: Memory Window

there's a patch for this:

http://us-support3.external.hp.com/cki/bin/doc.pl/sid=31221fd013af53e455/screen=ckiDisplayDocument?docId=200000054829873

it seems in some instances that the getmemwindow function will return the incorrect id.

HTH
---
mark
the future will be a lot like now, only later
Bill Hassell
Honored Contributor
Solution

Re: Memory Window

The getmemwindow command is just a simple grep of the /etc/services.window
file. Unless you're running lots of windows, it will be simpler to use the window number since that's all that HP-UX cares about.

However, your problem is likely due to running a related program in the wrong window. The Informix shared memory is mapped into window ID 20 but if you run other Informix utilities that need to look at shared memory, they must also be started in the same window, as in:

# setmemwindow -i 20 /usr/informix_7.31/bin/onstat

Memory windows work really well but once a process is started in a memory window, all other related programs must be run in that same window if they need to access Interprocess Communication (IPC) channels like shared memory.


Bill Hassell, sysadmin