Example: Copydb
The following example shows copydb used against a distributed database named distdbname and a coordinator database named iidistdbname:
Linux:
cd /usr/mydir/iidistdbname
copydb iidistdbname
sql iidistdbname <copy.out
cd /usr/mydir/distdbname
copydb distdbname/star
createdb newdistdbname/star
cd /usr/mydir/iidistdbname
Edit copy.in to replace ’iidistdbname’ with ’iinewdistdbname’:
sql iinewdistdbname <copy.in
cd /usr/mydir/distdbname
Edit copy.in to replace ’distdbname’ with ’newdistdbname’:
sql newdistdbname <copy.in
Last modified date: 04/03/2024