Hi All,
As part of a Disaster Recovery Plan I'm in the process of trialling a Perl based configuration file editor.
All I'm changing is the database extent directory. I'm not adding new locations, I'm simply amending the path strings to reflect the new host and installation.
Other than the path name, I'm changing only the integer field which holds the path length.
The amended file is then written to disk. It has the same length as the original. My editor has no problem re-reading the amended file and displaying its contents….but Ingres sure doesn't like it!
An infodb bombs out with E_DM923A_CONFIG_OPEN_ERROR
And in the errlog we see:
E_DM923C_CONFIG_FORMAT_ERROR Error in configuration file format.
E_DM923A_CONFIG_OPEN_ERROR Error occurred opening configuration file (aaaaaaaa.cnf).
Anyone got any idea what else I need to change?
Martin Bowes
Hi Marty,
You usually get this if another session is in CBF or the like & hence has the config.dat locked.
Regards,
Ian
Yep. I checked the open source and that was definitly the gist of what I read in dm0c.c etc.
This has me puzzelled! I've opened and closed the files to edit them. Nothing else should be holding a lock on them so I'm stumped. Is a lock status written into the config file itself? Something that’s says 'Hi I've been opened by application X.'?
Marty
_______________________________________________
Info-Ingres mailing list
Info-...@kettleriverconsulting.com
http://ext-cando.kettleriverconsulting.com/mailman/listinfo/info-ingres
FYI. The config file structure is in:
$ING_SRC/back/dmf/hdr/dm0c.h
$ING_SRC/back/dmf/dmp/dm0c.c.
But best of luck reading the code!
Marty
| Internet
martin...@ctsu.ox.ac.uk Sent by: info-ingr...@kettleriverconsulting.com 28/11/2011 11:36
|
|
Hi Lin,
Thanks for that. I'll try monkeying with the c*.dmp first and see if that shakes the problem loose.
Marty
| Internet
martin...@ctsu.ox.ac.uk Sent by: info-ingr...@kettleriverconsulting.com 02/12/2011 08:27
|
|