A. Command Reference : unloaddb Command--Create Files for Unloading and Reloading a Database : unloaddb Examples
 
Share this page                  
unloaddb Examples
1. Unload and reload the empdata database:
Windows:
cd\mydir\backup
unloaddb empdata
unload
destroydb empdata
createdb empdata
reload
sysmod empdata
Linux:
cd /mydir/backup
unloaddb empdata
unload.ing
destroydb empdata
createdb empdata
reload.ing
sysmod empdata
2. Unload the empdata database, specifying separate source and destination directories:
unloaddb empdata -source="misc/loaddir/" -dest="misc/dumpdir"
Copy statements in the reload script would have the form:
copy emps () from 'misc/loaddir/emps.bob'
Copy statements in the unload script would have the form:
copy emps () into 'misc/dumpdir/emps.bob'
3. Unload the empdata database from the $HOME directory, specifying the current directory as the source and destination directories:
unloaddb empdata -source="" -dest=""
Copy statements in the reload script would have the form:
copy emps () from 'emps.bob'
Copy statements in the unload script would have the form:
copy emps () into 'emps.bob'