In this paper we consider Toeplitz and Hankel operators on the Bergman spaces of the unit ball and the polydisk in C whose symbols are bounded measurable functions. We give necessary and sufficient conditions on the symbols for these operators to be compact. We study the Fredholm theory of Toeplitz operators for which the corresponding Hankel operator is compact. For these Toeplitz operators the essential spectrum is computed and shown to be connected. We also consider symbols that extend to continuous functions on the maximal ideal space of H∞(Ω); for these symbols we describe when the Toeplitz or Hankel operators are compact.