RE: ORACLE Statements in a PLSQL Block

From: Ric Van Dyke <ric.van.dyke_at_hotsos.com>
Date: Mon, 24 Feb 2014 08:51:56 -0600
Message-ID: <C970F08BBE1E164AA8063E01502A71CF022A9A34_at_WIN02.hotsos.com>



OK I blogged on it too. See the full test here:

http://ricramblings.blogspot.com/2014/02/plsql-and-formating-of-sql-text .html

-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of rajendra.pande_at_ubs.com
Sent: Monday, February 24, 2014 9:12 AM
To: Oracle-L_at_freelists.org
Subject: ORACLE Statements in a PLSQL Block

Came across this MOS note

How to Determine the SQL_ID of a SQL Statement in a PL/SQL Block (Doc ID 741724.1)
As part of the note it goes on to say that

"The SQL statement within the PL/SQL block is actually stored separately, but you cannot see it because:

  • every sql statement in a PL/SQL block is stored as capital letters
  • every comment and INTO clause are removed

If that is the case does it not have implications for the optimizer related to performance and statement tuning. .. Given that all hints are also removed

Wondering if someone has done some research and blogging on this topic

Regards
Please visit our website at
http://financialservicesinc.ubs.com/wealth/E-maildisclaimer.html for important disclosures and information about our e-mail policies. For your protection, please do not transmit orders or instructions by e-mail or include account numbers, Social Security numbers, credit card numbers, passwords, or other personal information.

--
http://www.freelists.org/webpage/oracle-l


--
http://www.freelists.org/webpage/oracle-l
Received on Mon Feb 24 2014 - 15:51:56 CET

Original text of this message