Skip to content
Advertisement

oracle trigger and json_value

Hi I want to store some values from :new.payload via an trigger.

this works in sql-developer but not in a trigger…

‘{“timestamp”:”2019-05-09T14:00:00Z”,”value”:0,”unit”:”W/m²”}’ is my :new.payload

i tried also:

i get the error ORA-00904: “DECL_OBJ#” ;/

(Error: ORA-00604: Recursive Error SQL-Level 1 ORA-00904: “DECL_OBJ #”: invalid ID)

Advertisement

Answer

This is a wild guess, but try this:

1.Open SQL Developer Set the PLScope identifiers parameter (Tools > Preferences > Database > PL/SQL Compiler > PLScope identifiers) from All to None.

  1. Close and open the SQL Developer
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement