On Dynamic Server:
onmode -ky
On Extended Parallel Server:
xctl onmode -ky
On UNIX:
ISM_CLIENT = source_hostname ISM_SERVER = target_hostname ISM_DATA_VOLUME_POOL = same_value_on_source_host ISM_LOG_VOLUME_POOL = same_value_on_source_host export ISM_CLIENT ISM_SERVER export ISM_DATA_VOLUME_POOL export ISM_LOG_VOLUME_POOL
On Windows:
set ISM_CLIENT = source_hostname set ISM_SERVER = target_hostname set ISM_DATA_VOLUME_POOL = same_value_on_source_host set ISM_LOG_VOLUME_POOL = same_value_on_source_host
ism_catalog -recreate_from device_name
nsrim -v
ism_show -devices ism_op -unmount device_name ism_show -volumes ism_config -volume volume_name -only_restore no ism_op -mount device_name
oncfg_source_dbservername.servernum ixbar.servernum # for UNIX users only $ONCONFIG sqlhosts # for Windows users only %ONCONFIG%
Use regedit to copy the sqlhosts information from the source computer to the target computer. Use the following registry entry:
HKEY_LOCAL_MACHINE/SOFTWARE/Informix/SQLHOSTS/...
Rename the oncfg* file and replace the host database server name with the target database server name. For example:
oncfg_target_dbservername.servernum
onconfig.sourcecomputer Bixbar.hostname.servernum oncfg_source_dbservername.servernumber.coservernumber sqlhosts xcfg_sourcecomputer.servernumber
For the following files, replace the host database server name with the target database server name:
oncfg_source_dbservername.servernumber.coservernumber xcfg_hostname.servernumber Bixbar.hostname.servernum
Edit the xcfg_hostname.servernumber file to change the source database server name to the target database server name.
In the sqlhosts file, change the database server name in the first and fourth entries on each line, if necessary. Change the hostname in the third entry to the target hostname.
DBSERVERNAME target_dbservername
For Extended Parallel Server only, change the hostnames in the NODE lines. Delete the SADDR, LADDR, and HADDR lines that follow each NODE line in the ONCONFIG file.
Make sure they reside at the same path locations as they do on the source database server. User informix and group informix also should own these dbspaces.
onbar -r
Do not change the settings of the ISM_CLIENT and ISM_SERVER environment variables.