The growth orientation of YBa2Cu3O7−x (YBCO) is extremely sensitive to the growth atmosphere and the heat-treatment temperature. However, according to the existing literature, to obtain YBCO with preferred a-axis orientation, a buffer layer needs to be prepared on the substrate. In this work, YBCO films were grown via pulsed laser deposition, and the influence of N2 and O2 deposition atmospheres on the growth orientation of the YBCO films was studied. It was found that high-quality YBCO films with preferred c-axis orientation can be grown in O2 atmosphere, but it is difficult to grow a-axis-oriented YBCO films in O2 atmosphere without using a buffer layer; however, YBCO films with a high degree of preferred a-axis orientation can be grown in N2 atmosphere without using a buffer layer. Furthermore, an a/c-oriented homogeneous YBCO bilayer with c-axis orientation in the lower layer and a-axis orientation in the upper layer was prepared. X-ray diffraction and scanning transmission electron microscopy results show that the bilayer is epitaxial with a good a/c orientation, and the resistance–temperature curve shows the occurrence of two transitions at temperatures of 91 and 71 K. We believe that these temperatures correspond to the superconducting onset transition temperatures of YBCO in the c- and a-axis growth orientations, respectively. The superconducting current usually flows within the Cu–O plane. With its sudden change in the direction of the current at the interface, the homogeneous junction prepared in this work is expected to provide new ideas for the research of high-temperature superconducting junction devices.