I have created a procedure and used the below statement inside that .
select sql_id into v_sql_id from v_$sql where sql_text =v_sql;
I am getti
See my answer here. It might be because you are using specific capitalisation somewhere