Silently deploy HCL OneDB on Windows
The third task of the embeddability tutorial is to silently deploy the HCL OneDB™ snapshot.
Before you begin
Deploying the HCL OneDB instance and its dbspaces is a two-step process:
- Deploy dbspaces from the snapshot that was created using the deployment assistant.
- Deploy the server instance, optionally relocate the dbspaces, and start the instance by using the deployment utility.
You can automate this process by using a simple batch script. The ifx_silent_deploy.cmd script is an example batch script which serves this purpose.
Prerequisites:
- You must be logged in to the target computer as an Administrator user.
- You must have a snapshot of the HCL OneDB instance and any associated dbspaces that was created with the deployment assistant.
- Installation of 7-zip on the target computer. If you need to install 7-zip, download and install it on the target computer at the default location C:\Program Files\7-Zip.
- A folder named informixtemp must exist on the C:\ drive of the target computer.
- The ONEDB_HOME environment variable must be set.
- All the dbspaces' chunks must be cooked files, and they must be located in a single directory.
- The following files and utilities must be in the C:\informixtemp folder
on the target computer:
- HCL OneDB server instance snapshot (Example: demo_on.zip)
- dbspaces snapshot (Example: demo_on_db.zip)
- deployment utility (ifxdeploy.exe)
- deployment utility configuration file (ifxdeploy.conf)
- the ifx_silent_deploy.cmd script to complete silent deployment
Procedure
Results
See the C:\informixtemp\ifxdeploy.log file for messages that are logged by the deployment utility. If the HCL OneDB instance does not start automatically, the probable cause is that during creation of the snapshot you removed a feature or package that is required by the base server instance to run.
You can delete the ifxdeploy.conf file from C:\informixtemp after deploying the HCL OneDB instance.