Forum
Hi Andreas,
mit Starten, Stoppen oder Booten ist das Problem nicht zu beheben, da es ein Problem mit den Einträgen in den DB2-DB-/Node-Directories ist.
IBM sagt:
Problem: SQL1031 error occurs when using switchname in the db2nodes.cfg file
Solution
Symptom: Error SQL1031 occurs intermittently even though the database name does exist in the system and local database directory.
Possible Cause: DB2 could not resolve the correct nodenumber and therefore defaulted to -1.
Action: Change the switchname to the hostname in the second column in the db2nodes.cfg file.
Ich würde zuerst ein "db2 list node directory machen" (und auch erwarten, daß nichts drin steht), dann ein "db2 list db directory on …" für das lokale DB-Directory. Wenn der Eintrag ok ist, würde ich die Datenbank aus dem zentralen DB Directory entkatalogisieren und nochmal neu katalogisieren – in der Hoffnung, daß dann die Partitionsnummer wieder 0 ist. Ob es hilft, weiß ich aber nicht.
MfG
AxelP