db42_upgrade: 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 CentOS possible default full paths are:

/usr/bin/db42_upgrade - from package: compat-db42

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