Have a look at this link CHECK CONSTRAINTS
You cannot compare values from other table using check constraint, whether the table is in same database or other database.
From oracle document:
The condition of a check constraint can refer to any column in the table, but it cannot refer to columns of other tables.
If you want to restrict column values insertion you can write triggers for that table