====== How to Rename a Site ======
– Shut down all processes
* hcistopallp
* hciprocstatus
* confirm that all processes are down
– hcisitectl -K
* stop the monitor and lock manager daemons
– cd $HCIROOT
– mv oldSiteName newSiteName
* ex. mv testbn_d testbnd
– vi server/server.ini
* change the site name where found
* :%s/oldSiteName/newSiteName/g
– cd
* change to the home directory
– grep -l oldSiteName * .*
* search for files, including hidden files, where the old site name is found
* change the site name where found
:%s/oldSiteName/newSiteName/g
* At Boones, these are the alias files:
* vi .cshrc
* vi .profile.local.end
* vi .tcshrc
– exit
* exit from the terminal window
– log back into the server
* refreshes the site aliases and environmental variables for the new site
– newSiteName (set the site, ex. testbnd)
– cd $HCISITEDIR/iig/bin
– grep -l oldSiteName * .*
* change the site name where found
* :%s/oldSiteName/newSiteName/g
– cds
– crontab -e
* change the site name where found
* :%s/oldSiteName/newSiteName/g
– rm
* if it exists (this is a Boone archive file)
– cd /opt/archives/
– mv oldSiteName newSiteName
– cd /data/xfer/ftp
– mv oldSiteName newSiteName
– cds
* change to the site directory
– vi NetConfig
* change the site name where found
* :%s/oldSiteName/newSiteName/g
– cd $HCISITEDIR/exec
– find . -name pid
* remove if found
– rm exec/mid.ctr
– rm exec/monitorShmemFile
– rm exec/databases/lm_qdx5.6_
– hcidbinit -ACf
* reinitialize the database
– hcimsiutil -Z
* clear the stats
– hcisitectl -S
* start the monitor and lock manager daemons
– hcidbdump -r -U max
* check to make sure there are no errors with the recovery database
– hcidbdump -e -U max
* check to make sure there are no errors with the error database
– bring up processes and threads
-- Max Drown (Infor)