dms_start_as_replica: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/sbin/dms_start_as_replica - from package: dms-dr

You may install the required package with command apt-get install {package}
Error in other languages:
dms_start_as_replica: bevel nie gevind nie
dms_start_as_replica: comandă negăsită
dms_start_as_replica: comando não encontrado
dms_start_as_replica: commande introuvable
dms_start_as_replica: command not found
dms_start_as_replica: käsku ei ole
dms_start_as_replica: không tìm thấy lệnh
dms_start_as_replica: komanda nerasta
dms_start_as_replica: Kommando nicht gefunden.
dms_start_as_replica: kommandot finns inte
dms_start_as_replica: komut yok
dms_start_as_replica: nie znaleziono polecenia
dms_start_as_replica: níor aimsíodh an t-ordú
dms_start_as_replica: no se encontró la orden
dms_start_as_replica: no s'ha trobat l'ordre
dms_start_as_replica: opdracht niet gevonden
dms_start_as_replica: parancs nem található
dms_start_as_replica: perintah tidak ditemukan
dms_start_as_replica: príkaz nenájdený
dms_start_as_replica: příkaz nenalezen
dms_start_as_replica: команда не найдена
dms_start_as_replica: командата не е открита
dms_start_as_replica: 命令找不到
dms_start_as_replica: コマンドが見つかりません