Once you've learned the Dodge Roll ability, equip it, then press Square while running and Sora will roll clear of the attack. Note that Dodge Roll isn't in Kingdom Hearts II — the sequel replaced it with Reflect and Guard.