The performance of a unipolar optical code division multiple access (OCDMA) system basing on optical orthogonal code (OOC) has been analyzed. Compared with the ideal fiber case, numerical results show that the system performance decreases dramatically considering the dispersion and nonlinearity in the normal single-mode fiber. We also give some proposals to withhold the deterioration of the system performance caused by the dispersion and nonlinearity.