An alley-oop in NBA 2K9 is a lob pass finished at the rim. Get a teammate moving toward the basket, aim the left stick at them, then use the alley-oop lob rather than a standard pass — on most setups that means double-tapping the pass button or hitting the dedicated lob control.
Timing matters more than anything: release the pass just as your teammate goes up, and the game handles the finish for you.