You are not using the correct syntax for conditions. Or-ing two conditions is done with -o. Furthermore, you should consider the case where $dbfile could be the empty string - this would result in "if [ ='...' ]; then", which is invalid syntax. Try this instead:
Code:
if [ "${dbfile}" = 'DBPTLFEP' -o "${dbfile}" = 'DBPTLLMP' ]; then
db2 deactivate ${dbfile}
fi