Oracle agrees to buy Sun for $7.4B. Oracle has signed a deal to purchase Sun Microsystems for US$7.4 billion, plunging the enterprise software vendor into the hardware market and making Sun the latest company to be subsumed by the Silicon Valley giant.