Rename chunks while specifying other options

To rename the chunks with command-line options while performing a restore of dbspace1 and dbspace2 where the rootdbs is the rootdbs, use the following command:
ontape -r -rename -p /chunk1 -o 0 -n /chunk1N -o 20000
         -rename -p /chunk2 -o 10000 -n /chunk2N -o 0
         -D rootdbs dbspace1 dbspace2
Alternatively, to rename the chunks by using file while performing a restore of dbspace1 and dbspace2, use the following command:
ontape -r -rename -f listfile -D rootdbs dbspace1 dbspace2

Perform a level-0 archive after the rename and restore operation is complete.