SQL> create table t(id number,name char(5));
Table created.
SQL> insert into t values(1,'a');
1 row created.
SQL> create view a1 as select * from t where id=1 with check option;
View created.
SQL> select * from a1;
ID NAME
---------- -----
1 a
SQL> insert into a1 values(2,'a');
insert into a1 values(2,'a')
*
ERROR at line 1:
ORA-01402: view WITH CHECK OPTIONwhere-clause violation
SQL> update a1 set id=2 where name='a';
update a1 set id=2 where name='a'
*
ERROR at line 1:
ORA-01402: view WITH CHECK OPTIONwhere-clause violation