How to fix the Oracle error RMAN-06141: cannot specify ARCHIVELOG LIKE option with RESTORE?

In this post, you’ll learn more about the Oracle ErrorRMAN-06141: cannot specify ARCHIVELOG LIKE option with RESTORE with the details on why you receive this error and the possible solution to fix it.

Oracle Error Description

RMAN-06141: cannot specify ARCHIVELOG LIKE option with RESTORE

Reason for the Error RMAN-06141: cannot specify ARCHIVELOG LIKE option with RESTORE

The ARCHIVELOG LIKE option was specified with RESTORE. This is not permitted because recovery catalog contains only those records that are not deleted from disk.

How to fix the Error RMAN-06141: cannot specify ARCHIVELOG LIKE option with RESTORE ?

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

Remove the ARCHIVELOG LIKE option and re-run the command.