O'Neal had 23 points and 13 rebounds while Green totaled 18 and 10 for the Warriors, winners of three straight.
Stephen Curry had 17 points, eight assists and five rebounds.
Deron Williams paced the Nets with 20 points and six assists. Brooklyn lost for the second time in five games.
'How to Train Your Dragon 2' releases 5-minute clip
Yosemite climber falls 30 feet, suffers major injuries