I play on a few songs in other locations but am not an expert on them
First, pick a position that you want to focus on. Play through scales of pieces that you will use the position on, practicing shifting in and out of those positions. Don't necessarily play your scales in order - shift around notes on them to be able to simulate how pieces might play, and go all over the fingerboard.
If you are struggling with intonation, laying down tape to mark locations may also work.
I don't think there will be a substitute for this rather than practice, but you can get creative with it - improvise in different positions over scales, for example, if playing rote scales is boring.
Take out your copy of the "Bach violin solo sonatas and partitas" urtexts and pick out the pieces that are monophonic preferringly containing an ample amount of slurs. Try not to break slurs or other obvious phrases across strings.
That makes for a solid amount of exercise for 2nd position but also 3rd and 4th.
Lots of study books tackle higher positions, for example
And some pieces are written to help beginners explore other positions, for example
Such studies will help you feel secure out of first position, and (as tarun mentions) scales will too.