Watch the Major Scale Shape 2 Overview online guitar lesson by Rob Garland from Melodic Soloing: Major Scale

This is called Shape 2 because it begins on the 2nd note of the key, in this case D. Look at where the first octave begins and ends and where the second octave runs from. Say the notes out loud as you play them.