(2) If a foreign corporation is convicted of a second offense under ORS 59.730 to 59.810, the circuit court has jurisdiction in an action brought as provided in subsection (1) of this section to restrain the corporation from doing business in this state.