Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Unshared cursors redux

RE: Unshared cursors redux

From: Yasin Baskan <>
Date: Tue, 27 Feb 2007 17:25:10 +0200
Message-ID: <083667B535F3464CA0DD0D1DAFA4E3760CA63EA3@camexc1.kfs.local>

I have tried this again and in it sets BIND_MISMATCH to Y. I will try to find the case I saw to see if I am remembering something wrong.

From: goran bogdanovic [] Sent: Tuesday, February 27, 2007 4:55 PM To:
Cc:; Yasin Baskan;
Subject: Re: Unshared cursors redux

problems with formatting...resending again...

well, I have a different experience - at least at variable length do count in v$sql_shared_cursor...

GB_at_xxxxxx > var b varchar2(100);
GB_at_xxxxxx > select /* goran2 */ count(9) from brisi where instanceid# =



GB_at_xxxxxx > var b varchar2(200);

GB_at_xxxxxx > select /* goran2 */ count(9) from brisi where instanceid# =



GB_at_xxxxxx > select sql_text, version_count, sql_id   2 from v$sqlarea
  3 where sql_text like '%goran2%'
  4 ;

SQL_TEXT                       VERSION_COUNT SQL_ID
------------------------------ ------------- -------------
select /* goran2 */ count(9) f             2 dv7phzzypq13t
rom brisi where instanceid# =

select sql_text, version_count 1 ghqmf9yaw3ju6 , sql_id from v$sqlarea where
1=1 and sql_text like '%goran2

GB_at_xxxxxx > select sa.sql_text, sc.bind_mismatch, sc.child_number   2 from v$sql_shared_cursor sc, v$sqlarea sa   3 where sc.sql_id = 'dv7phzzypq13t'
  4 and sc.sql_id = sa.sql_id
  5 ;

SQL_TEXT                       B CHILD_NUMBER
------------------------------ - ------------
select /* goran2 */ count(9) f N            0
rom brisi where instanceid# =

select /* goran2 */ count(9) f Y 1 rom brisi where instanceid# =

GB_at_xxxxxx > spool off

Bu mesaj ve onunla iletilen tum ekler gonderildigi kisi ya da kuruma ozel ve Bankalar Kanunu geregince, gizlilik yukumlulugu tasiyor olabilir. Bu mesaj, hicbir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz; mesajin yetkili alicisi veya alicisina iletmekten sorumlu kisi degilseniz, mesaj icerigini ya da eklerini kopyalamayiniz, yayinlamayiniz, baska kisilere yonlendirmeyiniz ve mesaji gonderen kisiyi derhal uyararak bu mesaji siliniz. Bu mesajin iceriginde ya da eklerinde yer alan bilgilerin dogrulugu, butunlugu ve guncelligi Bankamiz tarafindan garanti edilmemektedir ve bilinen viruslere karsi kontrolleri yapilmis olarak yollanan mesajin sisteminizde yaratabilecegi zararlardan Bankamiz sorumlu tutulamaz.

This message and the files attached to it are under the privacy liability in accordance with the Banking Law and confidential to the use of the individual or entity to whom they are addressed. This message cannot be copied, disclosed or sold monetary consideration for any purpose. If you are not the intended recipient of this message, you should not copy, distribute, disclose or forward the information that exists in the content and in the attachments of this message; please notify the sender immediately and delete all copies of this message. Our Bank does not warrant the accuracy, integrity and currency of the information transmitted with this message. This message has been detected for all known computer viruses thence our Bank is not liable for the occurrence of any system corruption caused by this message

Received on Tue Feb 27 2007 - 09:25:10 CST

Original text of this message