How to fix the Oracle error ORA-02181: invalid option to ROLLBACK WORK?

In this post, you’ll learn more about the Oracle ErrorORA-02181: invalid option to ROLLBACK WORK with the details on why you receive this error and the possible solution to fix it.

Oracle Error Description

ORA-02181: invalid option to ROLLBACK WORK

Reason for the Error ORA-02181: invalid option to ROLLBACK WORK

A token other than TO follows ROLLBACK [WORK].

How to fix the Error ORA-02181: invalid option to ROLLBACK WORK ?

You can fix this error in Oracle by following the below steps

Place nothing or TO SAVEPOINT after ROLLBACK [WORK].