CREATE OR REPLACE TRIGGER DEVICE_SEQ_TRIGGER 
BEFORE INSERT ON DEVICE FOR EACH ROW
BEGIN
    :NEW.NRDEVICE := DEVICE_SEQ.NEXTVAL;
END;