Oracle has been given the go-ahead to take over Sun Microsystems.