0
CREATE OR REPLACE FUNCTION CONCAT_BLOB(A in BLOB,B in BLOB) RETURN BLOB IS
 C BLOB;
BEGIN
DBMS_LOB.APPEND (C,A);
DBMS_LOB.APPEND (C,B);
RETURN C;
END;

CREATE OR REPLACE PROCEDURE update_NEW_REC_tmp is 


 tempBlob BLOB :=utl_raw.cast_to_raw('^');

  begin 

  execute immediate  'update audt set new_rec= CONCAT_BLOB(tempBlob,new_rec)' ;
    commit;

    end;

exec update_NEW_REC_tmp;

while executing the procedure getting an error:ORA-00904: "TEMPBLOB": invalid identifier

1 Answers1

0

I think you have to use binding variables in your anonymous statement:

update audt set new_rec= CONCAT_BLOB(tempBlob,new_rec)

tempBlob and new_rec variables are out of scope.

I think you can helpful Oracle Documentation: click here

m.genova
  • 377
  • 6
  • 15