Hi tabrez16,
the procedure is correct. I usually use it for support purposes and migration scenarios. If you intend to to do a manual database maintenance using this commands you should notice that this is no longer required with the current IDB in DP A.09.00. PostgresSQL has autovacuum enabled and the vast majority of data resides in the DCBFs. Compared with the old Raima datbase the new IDB is pretty small and does not suffer framentation.
Regards,
Sebastian Koehler