HPL and shared memory problem
Posted in 2000
Hello all helpful informix experts !
I am trying to find the optimal method for copying all data from one
database to another.
Both databases have the same structure except for indexes in the target
database.
My method works until I'm trying to run two HPL jobs in parallel (not
for the same database tables)
or when I starts a new job after the first one is finished. The I get
shared memory problem .
See listing bellow .
The point whith this method is to do the copy without storing unloded
data on a divice
but through a unix special file ( mknod </usr/sbin/mknod file> p
Create a FIFO (named pipe)).
Why do I get shared memory problem ?
Is there anybody out there that know :
Why do I get shared memory problem ?
A better way to copy data from one database to another ?
cponl2hist script:
------
#!/bin/sh
TABLE=laddress
/usr/sbin/mknod /tmp/hplpipe${$} p
echo "cat >/tmp/hplpipe${$}" >/tmp/hpluload${$}
echo "cat /tmp/hplpipe${$}" >/tmp/hplload${$}
chmod a+x,a+w /tmp/hplpipe${$} /tmp/hplload${$} /tmp/hpluload${$}
onpload -d /tmp/hpluload${$} -p history -m test01_${TABLE} -fpu -D
sourcedb &
onpload -d /tmp/hplload${$} -p history -m test01_${TABLE} -fpl
rm /tmp/hplpipe${$} /tmp/hplload${$} /tmp/hpluload${$}
--------------------------------------------------------------------------
tonga% cponl2hist
14:55:56 shmget: [EEXIST][17]: key 49010000: shared memory alreadyexists
14:55:56 mt_shm_init: can't create resident segment
HPL failpoint: 15903
Cannot initialize shared memory - errno 17
Thu Jan 13 14:55:59 2000
SHMBASE 0xa000000CLIENTNUM 0x49010000
Session ID 89
Load Database -> test01
Load Table -> laddress
Load File -> /tmp/hplload2169
Record Mapping -> test01_laddress
Set mode of constraint u160_187 to disabled
^CGot Interrupt
-- Shutting Down
To force abnormal shutdown, kill -15 2174
Reset mode of constraints "informix".u160_187 to original enabled mode
--
--
Frode Solli
Alcatel Telecom Norway
Tlf: +47 2263 7788 Fax: +47 2263 7725
e-mail: Frode.Solli@alcatel.no