SQL>alter session set cursor_sharing=force; Session altered. SQL>drop table t; Table dropped. SQL>create table t(a number); Table created. SQL> SQL>create or replace procedure denis_proc(a in number) 2 is 3 begin 4 insert into t values(a); 5 commit; 6 end; 7 / Procedure created. SQL> SQL>exec denis_proc(1); PL/SQL procedure successfully completed. SQL>exec denis_proc(2); PL/SQL procedure successfully completed. SQL>exec denis_proc(3); PL/SQL procedure successfully completed. SQL>call denis_proc(4); Call completed. SQL>call denis_proc(5); Call completed. SQL>call denis_proc(6); Call completed. SQL> SQL>col sql_text format a30 SQL> SQL>select sql_id, executions, sql_text from v$sqlarea where sql_text like '%denis_proc%'; SQL_ID1G EXECUTIONS SQL_TEXT ------------- ---------- ------------------------------ 1ms5rkrgwt28v 1 BEGIN denis_proc(1); END; 0vcasv51bxgpv 1 BEGIN denis_proc(3); END; dcna79fxryrkx 1 BEGIN denis_proc(2); END; 6skbuvu6fb9k0 3 call denis_proc(:"SYS_B_0") SQL> SQL>select * from t; A ---------- 1 2 3 4 5 6 6 rows selected. SQL>
Everything Changes
1 week ago
No comments:
Post a Comment