Second-harmonic generation and parametric oscillation in RTP