How to fix the Oracle error ORA-42399: cannot perform a DML operation on a read-only view?

In this post, you’ll learn more about the Oracle ErrorORA-42399: cannot perform a DML operation on a read-only view with the details on why you receive this error and the possible solution to fix it.

Oracle Error Description

ORA-42399: cannot perform a DML operation on a read-only view

Reason for the Error ORA-42399: cannot perform a DML operation on a read-only view

An attempt was made to insert, delete, or update row(s) of a view created with read-only option. DML operations on such views are explicitly prohibited.

How to fix the Error ORA-42399: cannot perform a DML operation on a read-only view ?

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

Perform the desired DML operation on the view’s underlying base table or issue ALTER VIEW … READ WRITE command to make the view updatable.

Tags :

Leave Your Comment