Oxford have been drawn at Aldershot in the first round of the Johnstone's Paint Trophy Northern Section (West).
The U's last competed in the competition in 2005, reaching the quarter-finals before a 2-1 loss to Cheltenham at Whaddon Road.
The tie will be played in the week commencing August 30.
Source: PA