Entry
How do I configure a database on Windows to start automatically after a reboot?
Jan 13th, 2004 07:38
Daniel Dittmar,
1. The service (SAPDB: <database name>) must be set to 'Startup type:
AUTOMATIC'
2. The kernel parameter RESTART_SHUTDOWN must be set to AUTO (DBM Gui:
Configuration=>Parameters=>Tab General)
If you want to activate Autosave Log as well:
1. The service (SAPDB: <database name>) must be set to 'Startup type:
MANUAL'
2. add a new entry to the registry at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run.
The key is up to you, the value should be
dbmcli -d ... -u ... db_online.
It's probably best to use an absolute path to dbmcli.
This has the drawback that username and password of the dbm user are
visible in the registry.
Note: MaxDB 7.5 uses the Autosave Log state when
the database is started as a service. The first solution is
all that is needed.