Green’s Dictionary of Slang

oats (and barley) n.

[rhy. sl.]

1. a watchman [= charlie n.1 (1)].

[UK]Hotten Dict. of Modern Sl. etc.
[UK]Hotten Sl. Dict.
[UK]Sl. Dict.

2. the name Charlie/Charley.

[UK]Binstead & Wells Pink ’Un and Pelican 149: Bob and his particular chum Oats (which is short rhyming slang for Charley. ‘Oats-and-barley’ it is in full, but the true art of it lies in the abbreviation) [F&H].
[UK]‘P.P.’ Rhy. Sl. 5: All right this morning ‘Oats?’.
[UK]S.T. Kendall Up the Frog 11: Old oats and barley ’as a lovely Conan Doyle on the back of ’is bushel and peck.