declare
    dup_val_on_index  exception;
    pragma exception_init (dup_val_on_index  , -00001);
begin
    execute immediate 'INSERT INTO PRICING_ESP_CANAL_VENTA pe
  (
    pe.PRICINGESPCANAL_ID,
    pe.TIPOPTOVTA_ID,
    pe.PRICINGESPECIFICO_ID,
    pe.ACTIVO,
    pe.FECMODIF,
    pe.USUARIO_ID
  )
SELECT PRICING_ESP_CANAL_SEQ.nextval ,
  p.TIPOPTOVTA_ID,
  p.PRICINGESPECIFICO_ID,
  1,
  sysdate,
  1
FROM PRICING_ESPECIFICO p
WHERE ACTIVO=1';
       exception when dup_val_on_index  then null;
end;