Magento 2.x – How to restore an order from cancelled to processing with an script

As we know, a cancelled order cannot be restored with the default Magento order flow. But, if you need to perform that for a particular need, you can use the following script.

DB Based:

Magento Based:

Hope it helps.