5V to 12V output

using transistors is also no alternative?
and if I use a 9V battery plus the 5V from arduino, how will I be able to control all of this?