Originally Posted by
kkjay77
If one buys code-share UA flight, but actual flight is operated by OZ (for example), (s)he does not earn bonus miles.
Right, and similarly if it's an OZ codeshare on UA metal you do get the bonus. All that matter is the metal the flight is flown on in that regard.