To the question of why it was sold to a company with such a vastly different culture.
Because it does not matter to the shareholders what kind of culture Oracle has. The only metric that mattered was how much money Oracle was willing to pay for Sun vs another bidder.
Using any other criteria would just launch a nasty shareholder lawsuit against Sun's soon to be departed management...
^ More hackers need to understand this. When you go pubic with an IPO, the shareholders are in charge. The Board and CEO are elected on behalf of those shareholders. The Board and CEO's function is to maximize shareholder value. If a CEO doesn't consider an extremely generous bid then he is breaking his fiduciary duty to those shareholders, and will be out of a job.
How did Oracle maximize their value by buying Sun? Sun has Solaris, Java, and VirtualBox. All are free. When Oracle took over, everyone that worked for Sun quit.
So Oracle paid a lot of money for a bunch of free stuff. Why?
Recent history suggests for Sun's patents, not their software.
Oracle has claimed they bought Sun for their hardware (e.g. so they could do vertical integration selling like IBM), but that remains to be seen if it is true or not.
Oracle used Sun's hardware to build the Exadata - which they very aggressively sell as a data warehouse solution. Competing with Netezza, Teradata, Greenplum and the likes.
Because it does not matter to the shareholders what kind of culture Oracle has. The only metric that mattered was how much money Oracle was willing to pay for Sun vs another bidder.
Using any other criteria would just launch a nasty shareholder lawsuit against Sun's soon to be departed management...