plsql - Getting error [PLS-00382: expression is of wrong type] -


i have stored procedure driving me nuts. know it's pretty simple thing, think not able figure out.

i getting error

"pls-00382: expression of wrong type"

in below line:

-- write result log v_logtext := 'summary elapsed time: ' || to_char(floor((cast(systimestamp date) - cast(v_starttime date)) * 86400)) || 'sec batchsize ' || to_char (v_batchsize); std.log (v_workername,'001','cas', '0', 'en', ' 00000000', v_logtext ); 

declarations:

v_logtext nvarchar2(2000);  v_batchsize number(10,0) := iv_batchsize; [ , iv_batchsize passed in procedure paramenet "iv_batchsize in number default null"] v_starttime date := sysdate; 

i tried change systimestamp sysdate no luck.

assuming amount of information provided, please check below way it. hope works you.

declare v_logtext nvarchar2(2000);  v_batchsize number(10,0) := 76363; v_starttime date := sysdate;  varchar2(100); begin  select to_char(floor((cast(systimestamp date) - cast(v_starttime -1 date)) * 86400))  dual;   v_logtext := 'summary elapsed time: ' || || 'sec batchsize ' || to_char (v_batchsize);   dbms_output.put_line(v_logtext);  end; 

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -