Что именно не работает?
SQL> create table tech_personnel( col1 number );
Table created.
SQL> ALTER TABLE Tech_personnel ADD years_of_experience NUMBER(30);
Table altered.
SQL> ALTER TABLE Tech_personnel ADD CONSTRAINT non_neg CHECK(years_of_experience > 0);
Table altered.
SQL> insert into tech_personnel values( 1, -1 );
insert into tech_personnel values( 1, -1 )
*
ERROR at line 1:
ORA-02290: check constraint (SCOTT.NON_NEG) violated
SQL> insert into tech_personnel values( 1, null );
1 row created.
SQL> insert into tech_personnel values( 1, 1 );
1 row created.
Возможно, вы также хотите убедиться, что YEARS_OF_EXPERIENCE
не равен NULL?