various fixes

1) primary db logswitch fix; 2) sqlplus whenever sqlerror to catch any
sql errors; 3) add back rman configure backup optimization