connstr='user/password@DB'; $account='sqlplus -s $connstr < where to_char(end_date_time,"yyyymmdd") between '0' and '88888888' and error_code<>0; END ';