This way it worked:
create table mytest(v varchar2(10) check (upper(substr(v, 1, 4)) = substr(v, 1, 4) ))
tablespace users;