Green’s Dictionary of Slang

oats n.4

also long oats (and ash beans)
[SE ash(plant), a walking-stick]

a beating, a flogging.

[UK]A. Mayhew Paved with Gold 141: [I’d] shout at him, and hit him as hard as I could — give him with all my might a good feed of ‘long oats’ and ‘ash beans’.
[UK]G. Ingram Cockney Cavalcade 33: Oats, who used to say he was going to give his father’s pony ‘oats’ (whipping – its opposite meaning, as are so many slang expressions), was one of a coster family.