Hi Omer,
I tried to create my stored procedure in another schema(owned by my user), but I still can't active the rdl file.
Also, I can't execute the following sql statement using my user or the system user:
set schema "RIVERPRJ";
grant execute on MY_PROCEDURE_TEST3 to _SYS_REPO with grant option;
The error message is:
Could not execute 'grant execute on MY_PROCEDURE_TEST3 to _SYS_REPO with grant option' in 10 ms 659 µs .
SAP DBTech JDBC: [258] (at 17): insufficient privilege: Not authorized to grant the privilege on the procedure: line 1 col 18 (at pos 17)
If I active the rdl file, the error message is as follows:
In the procedure, if I do some queries from the tables created by the rdl, it did not work, but it works if I do some queries from the tables which were not created by the rdl file.
I think this maybe the reason for the error message "A transaction rollback may have left the object in an inconsistent state." .
In my opinion, I think we can not use a stored procedure that do some queries from tables created by the rdl entities.
Because create the entity and call the procedure at the same time may left the object in an inconsistent state.
Put the queries in an action is ok, but the river can not support some key words like "lag over",.
So i am trying to put these things in a procedure and call it in the action.
If we can't use procedure, how could I use some sql key words like "lag over"?
Could you give me some suggestions?
Thanks very much for your help.
Regards
Eric
