SPOOL create_prop_v.lst

CREATE OR REPLACE VIEW profile_options_v AS
SELECT syop_id
     , sypr_id
FROM   profile_options
WHERE  sypr_id IN
      ( SELECT sypr_id
        FROM   system_profiles
        WHERE  UPPER(name) NOT IN ('SYSTEM','ADVANTICA')
      )
/

SPOOL OFF
