When a tube is oscillated at a resonant frequency, acoustic variables such as density, velocity, and pressure undergo very large perturbation, often described as nonlinear oscillation. In order to analyze these phenomena, nonlinear governing equation has been drived and solved numerically. Numerical simulations were accomplished to study the effect of the tube shape on the maximum pressure we can obtain. The tubes of cylindrical, conical, and cosine-shape, which have same volume and length, were investigated. Results show that the resonant frequency and patterns of pressure waves strongly depend on not only the tube shape but also the amplitude of driving acceleration. The degree of non-linearity of wave patterns was also measured by the newly defined nonlinear energy ratio of the pressure signals. It was found that the 1/2 cosine-shape tube is more suitable to induce high compression ratio than other shapes.