The access of a high proportion of photovoltaic (PV) will change the energy structure of the distribution network (DN), resulting in a series of safety operation risks. This paper proposes a two-stage PV hosting capacity (PVHC) calculation model to assess the maximum PVHC, considering the uncertainty and active management (AM). Firstly, we employ a robust optimization model to characterize the uncertainty of sources and loads in DN with PV and analyze the worst-case scenarios for PVHC. Subsequently, we construct a PVHC calculation model that takes into account AM, and convert the model into a mixed-integer second-order cone (MISOC) model using linearization techniques. Finally, we apply “heuristic optimization + CPLEX solver” to solve the model and introduce overvoltage and overcurrent indices to analyze the safety of the DN under PV limit access. Case studies are carried out on the IEEE 33-bus system and a practical case. Results show that (1) only the uncertainty that reduces the load or increases the output efficiency will affect PVHC; (2) for DN limited by overvoltage, AM can better improve PVHC; however, for DN limited by maximum transmission power, the effect of AM is low; (3) for most DN, SVC can improve PVHC, but the effect is modest. And network reconfiguration can significantly increase PVHC on the system with poor branch network, even reaching 150% of the original PVHC.