bb=/opt/oracle/oradb/oradata/bbdb.dbsed -i "/aadb/s_/opt/oracle/oradata/aadb.db_$bb_" aa.sql
All formats below are ok.
s/A/B/
s#A#B#
s_A_B_