Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shared memory error

Status
Not open for further replies.

cpmarvel

Programmer
Joined
Dec 10, 2003
Messages
3
Location
BR
Hi folks, Let me explain the whole thing. I´m trying to make informix to run on my play box that has no network. I read on the manuals that whithout network, I can use a loopback configuration and also a shared memory configuration. I´ve already used both types of configuration and still get the same error messages, although I don´t get any error messages when I oninit -ivy, this command runs successfully.

Any ideas?

Thanks in advance.

Marvel.

--------------------------------
- When I dbaccess and try to connect
25588 The appl process cannot connect to Dynamic Server 'informix'.
not such file or directory

- When I give the command:
onspaces -c -d root_chunk -p /usr/data/root_chunk -o 0 -s 30000
shared memory not initialized for INFORMIXSERVER 'informix'

- When I onmonitor and dbspaces:
Unable to attach to shared memory
ISAM error: Cannot attach to shared memory

------------------------------
My configuration is:

/opt/informix/etc/sqlhosts:
informix onsoctcp 127.0.0.1 informix_lop # For shared memory
informix onipcshm 127.0.0.1 dummy # For loopback

/etc/services:
informix_lop 1545/tcp

/etc/hosts
127.0.0.1 localhost
10.10.10.1 myplaybox

- To create dbspace I did:
cd /usr/data
cat /dev/null > root_chunk
chmod 660 root_chunk
chown informix:informix root_chunk

/opt/informix/etc/onconfig
ROOTNAME root_chunk
ROOTPATH /usr/data
MSGPATH /opt/informix/logs/online.log
TAPEDEV /dev/null
LTAPEDEV /dev/null
DBSERVERNAME informix
# Related to the following lines, I used NETTYPE ipcshm
# and tried it. After that, I changed it to soctcp and
# tried again.
NETTYPE ipcshm # I used this for share memory conf.
NETTYPE soctcp # I used this for loopback conf.
# Other parameters in this file I left as default.

- My environment variables are:
export TERM=xterm
export TERMCAP=/opt/informix/etc/termcap
export INFORMIXDIR=/opt/informix
export INFORMIXSERVER=informix
export ONCONFIG=onconfig
export PATH=$PATH:$INFORMIXDIR/bin

 
Hi,

First make these changes in various files:

/opt/informix/etc/sqlhosts:
instance1 onipcshm 127.0.0.1 dummy # For shared mem conn.
instance2 onsoctcp 127.0.0.1 informix_lop # For network conn.

/etc/services:
informix_lop 1545/tcp

/etc/hosts
127.0.0.1 localhost

/opt/informix/etc/onconfig
DBSERVERNAME instance1
DBSERVERALIASES instance2
NETTYPE ipcshm,1,50,CPU

onmonitor -> Parameters -> Initialize and follow the instructions. After rootdbs got initialized, exit from the onmonitor menu. Change the mode of the instance to online fire: onmode -m

Immidiately after this the dbserver starts creating 2 backend databases, i.e., sysmaster and sysutils, confirm this by onstat -m

Regards,
Shriyan
 
Shriyan,

Thanks for the reply. I followed the steps you told me, and after I initialize rootdbs I try onmode -m and get the following error:

shared memory not initialized for INFORMIXSERVER 'instance1'

Then I oninit -s to initialize shared memory and get the following error:

onmode: Cannot attach to shared memory . errno = 156

Do you have any ideas?

Thanks again,

Marvel.
 
Marvel:

Please post latest message log file contents. Also post contents of oninit -v

Regards,
Shriyan
 
Thanks for now...

I had a problem with the box, and I'll had to reinstall it.
As son as I do that, I'll send you the messages.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top