A man threatened a boy aged 11 with a kitchen knife in Bicester, Oxford Crown Court has heard.