In 1925, Oldendorf, now a commander, assumed his first command, the destroyer , Afterwards, he was aide to successive commandants of the Philadelphia Navy Yard, Rear Admiral Thomas P. Magruder and Julian Lane Latimer from 1927 to 1928.