(1) Except as otherwise provided in ORS 138.510 to 138.680, a petition pursuant to ORS 138.510 to 138.680 shall be the exclusive means, after judgment rendered upon a conviction for a crime, for challenging the lawfulness of such judgment or the proceedings upon which it is based. The remedy created by ORS 138.510 to 138.680 does not replace or supersede the motion for new defendant pleads "not guilty" and witnesses are required to come to court to give evidence. Source: U.S. DOJ “>trial, the motion in arrest of judgment or direct appellate review of the sentence or conviction, and a petition for relief under ORS 138.510 to 138.680 shall not be filed while such motions or appellate review remain available. With the exception of habeas corpus, all common law post-conviction remedies, including the motion to correct the record, coram nobis, the motion for relief in the nature of coram nobis and the motion to vacate the judgment, are abolished in criminal cases.
(2) When a person restrained by virtue of a judgment upon a conviction of crime asserts the illegality of the restraint upon grounds other than the unlawfulness of such judgment or the proceedings upon which it is based or in the appellate review thereof, relief shall not be available under ORS 138.510 to 138.680 but shall be sought by habeas corpus or other remedies, if any, as otherwise provided by law. As used in this subsection, such other grounds include but are not limited to unlawful revocation of parole or conditional pardon or completed service of the sentence imposed. [1959 c.636 § 4]