Holographic stereogram, as a marriage of holography and multi-view display technique, benefits of these two 3D display technologies. Recent research about the dual-view holographic stereogram 3D display technology shows an attractive way to present the visual information. However, due to the utilization of the random phase to smooth the spatial frequency spectrum, the troublesome of the quality of reconstructed images from holographic stereograms are those images containing speckle noise. In this paper, inspiring by the works about the computer-generated holograms, we introduced an optimized phase for the generation of dual-view holographic stereogram based on integral imaging to get a better suppression effect of speckle noise. The key goal is to determine the complex amplitude employed to calculate the holographic stereogram. Firstly, the pickup process of multiple parallax images corresponding to the left-view field and right-view field are finished by the virtual cameras. Then, the optimized phase is generated by the full-support iterative process, whose phase range is limited in the first time. Next, instead of the random phase, it is combined with corresponding parallax image to yield the complex amplitude. Holographic stereogram plane is segmented into many element holograms and each of them is generated by the Fourier transforming of the above complex amplitude. The phase of each complex element holograms is retained to generated the phase-only holographic stereogram, which have higher diffraction efficiency and no conjugate image than amplitude type holographic stereogram. Finally, the two set of holograms are combined together to reconstruct the corresponding dual-view. The optimized phase as the initial phase is demonstrated by simulations, the comparison of the simulated reconstructions shows that the method of this paper could improve the reproduction quality of the dual-view holographic stereogram, that extended its applicability and practicality.