shell 执行update语句

echo "update pm4h_ad.dbinfo set dbserverip = '$p_oracle';"|sqlplus "/as sysdba" >/dev/null
cat $PMP_ROOT/home/etc/profile.pmp |awk '{if(/ORACLE_IP=/){print "ORACLE_IP='$p_profile'"}else{print}}' > $PMP_ROOT/home/etc/profile.pmp.tmp

你可能感兴趣的:(oracle)