(Reuters) - Oracle Corp said it agreed to buy software maker Eloqua Inc, which recently went public, for about $871 million.

The $23.50 per share offer price represents a 31 percent premium to Eloqua's close on the Nasdaq on Wednesday.

(Reporting by Sayantani Ghosh in Bangalore)