dms_promote_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_promote_replica - from package: dms-dr

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