CREATE OR REPLACE TRIGGER regionit
BEFORE INSERT ON region
FOR EACH ROW

when (NEW.DBID IS NULL)
BEGIN
    SELECT regionis.NEXTVAL INTO:NEW.DBID FROM DUAL;
    END;