Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

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

RE: Unshared cursors redux

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

I have tried this again and in 9.2.0.7 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 [mailto:goran00_at_gmail.com] Sent: Tuesday, February 27, 2007 4:55 PM To: boris_dali_at_yahoo.ca
Cc: rjoralist_at_society.servebeer.com; Yasin Baskan; oracle-l_at_freelists.org
Subject: Re: Unshared cursors redux

problems with formatting...resending again...

well, I have a different experience - at least at 10.2.0.2/Linux...bind 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# =
:b;

  COUNT(9)


         0

GB_at_xxxxxx > var b varchar2(200);

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

  COUNT(9)


         0

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# =
:b

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# =
:b

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

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

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Feb 27 2007 - 09:25:10 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US