5. Using a Distributed Database : Unloading and Reloading a Database : Example: Unloaddb
 
Share this page                  
Example: Unloaddb
The following example shows unloaddb used against a distributed database named distdbname and a coordinator database named iidistdbname:
UNIX:
cd /usr/mydir/iidistdbname
unloaddb iidistdbname
unload.ing

cd /usr/mydir/distdbname
unloaddb distdbname/star

createdb newdistdbname/star

cd /usr/mydir/iidistdbname
Edit reload.ing to replace ’iidistdbname’ by ’iinewdistdbname’:
reload.ing

cd /usr/mydir/distdbname
reload.ing
VMS:
set def usr_disk:[mydir.iidistdbname]
unloaddb iidistdbname
@unload.ing

set def usr_disk:[mydir.distdbname]
unloaddb distdbname/star

createdb newdistdbname/star

set def usr_disk:[mydir.iidistdbname]
Edit reload.ing to replace ’iidistdbname’ by ’iinewdistdbname’:
@reload.ing

set def usr_disk:[mydir.distdbname]
Edit reload.ing to replace ’distdbname’ by ’newdistdbname’:
@reload.ing