Consultor Eletrônico



Kbase P20619: proshut returns System Error: Can't attach Shared Memory
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   3/18/2003
Status: Unverified

FACT(s) (Environment):

HP-UX 11

FACT(s) (Environment):

Progress 9.1D

SYMPTOM(s):

proshut returns System Error: Can't attach Shared Memory

System Error: Can't attach Shared Memory with segment_id: <> for <>

There is no server for database <dbname>. (1423)

CHANGE:

A set of backup scripts were implemented to copy the production databases into a test environment.

CAUSE:

The scripts were set up incorrectly, and the .db files from the test environment was being copied into the production environment using os utilities.

To reproduce the behaviour on HP-UX 11 -

1. prodb sports sports
2. echo "a ." > add.st
3. prostrct add sports add.st, so that the database becomes an absolute path database.
4. mkdir test
5. cp * test
6. proserve sports
7. proserve test/sports

PROGRESS Version 9.1D02 as of Sun Oct 27 19:26:34 EST 2002
11:32:32 BROKER : linenumber 116, error 3877, state -12568 (4665)
11:32:32 BROKER 0: /usr1/tse/jacarter/91d/test/test/sports.db is a copy of /usr1/tse/jacarter/91d/test/sports.db. Database cannot be opened. (598)
11:32:32 BROKER : Removed shared memory with segment_id: 1408
11:32:32 BROKER : ** This process terminated with exit code 2. (8619)

8. cp test/sports.db sports.db
9. proshut sports returns:

SYSTEM ERROR: Can't attach shared memory with segment_id: 1408 for sports
There is no server for database sports. (1423)

FIX:

Ensure that you aren't going to overwrite the .db that you are using.

Ensure that if you are copying database files using system utilities that you are copying the correct files and that you are copying them into the correct locations.