title: Oracle Error ORA-06512
body: <p>Just can't figure out why it gives me ORA-06512 Error</p>
  
  <pre><code>PROCEDURE PX(pNum INT,pIdM INT,pCv VARCHAR2,pSup FLOAT)
  AS
      vSOME_EX EXCEPTION;
  
  BEGIN 
      IF ((pNum &lt; 12) OR (pNum &gt; 14)) THEN     
          RAISE vSOME_EX;
      ELSE  
          EXECUTE IMMEDIATE  'INSERT INTO M'||pNum||'GR (CV, SUP, IDM'||pNum||') VALUES('||pCv||', '||pSup||', '||pIdM||')';
      END IF;
  END PX;
  </code></pre>
  
  <p>The structure base for the table where the insert is made:</p>
  
  <pre><code>CREATE TABLE "DB"."M12GR" (
      "IDM12GR" NUMBER(10,0) NOT NULL ENABLE, 
      "CV" VARCHAR(5) NOT NULL ENABLE, 
      "SUP" FLOAT(126) NOT NULL ENABLE, 
      "IDM12" NUMBER(10,0) NOT NULL ENABLE, 
  
      CONSTRAINT "PRIMARY_30" PRIMARY KEY ("IDM12GR"),
      CONSTRAINT "M12SUELORM12" FOREIGN KEY ("IDM12") REFERENCES "DB"."M12" ("IDM12") ENABLE
  )
  </code></pre>