In recent years, oceanic lidar has seen a wide range of oceanic applications, such as optical profiling and detecting bathymetry. Furthermore, spaceborne lidars, CALIOP and ICESat-2, designed for atmospheric and ice science applications, have been used for ocean backscattering retrievals, but, until now, there has been no spaceborne lidar specifically designed for ocean detection. There is a demand for an effective lidar simulator to study the detection potential capability of spaceborne oceanic lidar. In this study, an open-source spaceborne oceanic lidar simulator named SOLS was developed, which is available freely. Moreover, the maximum detectable depth and corresponding optimal wavelength for spaceborne lidar were analyzed at a global scale by using SOLS. The factors controlling detection limits of a spaceborne ocean profiling lidar in different cases were discussed. Then, the maximum detectable depths with different relative measurement errors and the influence of solar background radiance were estimated. Subsequently, the effects of laser and detector parameters on maximum detectable depths were studied. The relationship between the lidar detectable depth and the ocean mixed layer depth was also discussed. Preliminary results show that the maximum detectable depth could reach deeper than 120 m in the oligotrophic sea at low latitudes. We found that 490 nm is the optimal wavelength for most of the open seawater. For coastal water, 532 nm is a more suitable choice considering both the technical maturity and geophysical parameters. If possible, a lidar equipped with 440 nm could achieve the greatest depth in oligotrophic seawater in subtropical gyres north and south of the equator. The upper mixed layer vertical structure in most of the global open ocean is within the lidar maximum detectable depth. These results show that SOLS can help the design of future spaceborne oceanic lidar systems a lot.