CREATE OR REPLACE PROCEDURE INS_LOG_CUSTO_MEDIO(
   P_NRSEQUENCIAL NUMBER,
   P_DTOPERACAO DATE,
   P_CDPESQITEM VARCHAR2,
   P_NMRESPOPER VARCHAR2,
   P_DSRDMUSUOPER VARCHAR2,
   P_DSENDUSUOPER VARCHAR2,
   P_DSNMUSUOPER VARCHAR2,
   P_DSMETUSUOPER VARCHAR2,
   P_CDORESPOPER VARCHAR2)
IS
   PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
   INSERT INTO LOGBLOQCUSTMED
      (NRSEQUENCIAL, DTOPERACAO, CDPESQITEM, NMRESPOPER, DSRDMUSUOPER,
       DSENDUSUOPER, DSNMUSUOPER, DSMETUSUOPER, CDORESPOPER)
   VALUES
      (P_NRSEQUENCIAL, P_DTOPERACAO, P_CDPESQITEM, P_NMRESPOPER, P_DSRDMUSUOPER,
       P_DSENDUSUOPER, P_DSNMUSUOPER, P_DSMETUSUOPER, P_CDORESPOPER);
   COMMIT;
END;
/

-- VERSAO --
BEGIN ATUVEROBJ('INS_LOG_CUSTO_MEDIO','5.85.xxx'); END;
/