<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Little Things Doth Crabby Make Part III. Non-Erroring Errors and Erroneous Experiments.</title>
	<atom:link href="http://kevinclosson.wordpress.com/2008/03/28/little-things-doth-crabby-make-part-iii-non-erroring-errors-and-erroneous-experiments/feed/" rel="self" type="application/rss+xml" />
	<link>http://kevinclosson.wordpress.com/2008/03/28/little-things-doth-crabby-make-part-iii-non-erroring-errors-and-erroneous-experiments/</link>
	<description>Oracle-related Platform, Storage and Clustering Topics (with the occasional rant)</description>
	<pubDate>Sat, 17 May 2008 20:39:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
		<item>
		<title>By: Freek</title>
		<link>http://kevinclosson.wordpress.com/2008/03/28/little-things-doth-crabby-make-part-iii-non-erroring-errors-and-erroneous-experiments/#comment-32587</link>
		<dc:creator>Freek</dc:creator>
		<pubDate>Sat, 29 Mar 2008 22:58:18 +0000</pubDate>
		<guid isPermaLink="false">http://kevinclosson.wordpress.com/?p=553#comment-32587</guid>
		<description>Kevin,

Even so, sqlplus would receive an "enter" if the statement was followed by a blank line.
If your "alter session" would have been directly followed by the select statement, sqlplus would have given an error message:


sys@ORCL&#62; host type c:\little_things.sql
alter session set nls_date_format='DD/MM/YYYY HH24:MI:SS'

select sysdate from dual;


alter session set nls_date_format='DD/MM/YYYY HH24:MI:SS';

select sysdate from dual;

alter session set nls_date_format='DD/MM/YYYY'
select sysdate from dual;

sys@ORCL&#62; @c:\little_things.sql
sys@ORCL&#62; alter session set nls_date_format='DD/MM/YYYY HH24:MI:SS'
  2
sys@ORCL&#62; select sysdate from dual;

SYSDATE
----------
29/03/2008

sys@ORCL&#62;
sys@ORCL&#62;
sys@ORCL&#62; alter session set nls_date_format='DD/MM/YYYY HH24:MI:SS';

Session altered.

sys@ORCL&#62;
sys@ORCL&#62; select sysdate from dual;

SYSDATE
-------------------
29/03/2008 18:12:43

sys@ORCL&#62;
sys@ORCL&#62; alter session set nls_date_format='DD/MM/YYYY'
  2  select sysdate from dual;
select sysdate from dual
*
ERROR at line 2:
ORA-00922: missing or invalid option
</description>
		<content:encoded><![CDATA[<p>Kevin,</p>
<p>Even so, sqlplus would receive an &#8220;enter&#8221; if the statement was followed by a blank line.<br />
If your &#8220;alter session&#8221; would have been directly followed by the select statement, sqlplus would have given an error message:</p>
<p>sys@ORCL&gt; host type c:\little_things.sql<br />
alter session set nls_date_format=&#8217;DD/MM/YYYY HH24:MI:SS&#8217;</p>
<p>select sysdate from dual;</p>
<p>alter session set nls_date_format=&#8217;DD/MM/YYYY HH24:MI:SS&#8217;;</p>
<p>select sysdate from dual;</p>
<p>alter session set nls_date_format=&#8217;DD/MM/YYYY&#8217;<br />
select sysdate from dual;</p>
<p>sys@ORCL&gt; @c:\little_things.sql<br />
sys@ORCL&gt; alter session set nls_date_format=&#8217;DD/MM/YYYY HH24:MI:SS&#8217;<br />
  2<br />
sys@ORCL&gt; select sysdate from dual;</p>
<p>SYSDATE<br />
&#8212;&#8212;&#8212;-<br />
29/03/2008</p>
<p>sys@ORCL&gt;<br />
sys@ORCL&gt;<br />
sys@ORCL&gt; alter session set nls_date_format=&#8217;DD/MM/YYYY HH24:MI:SS&#8217;;</p>
<p>Session altered.</p>
<p>sys@ORCL&gt;<br />
sys@ORCL&gt; select sysdate from dual;</p>
<p>SYSDATE<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
29/03/2008 18:12:43</p>
<p>sys@ORCL&gt;<br />
sys@ORCL&gt; alter session set nls_date_format=&#8217;DD/MM/YYYY&#8217;<br />
  2  select sysdate from dual;<br />
select sysdate from dual<br />
*<br />
ERROR at line 2:<br />
ORA-00922: missing or invalid option</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary</title>
		<link>http://kevinclosson.wordpress.com/2008/03/28/little-things-doth-crabby-make-part-iii-non-erroring-errors-and-erroneous-experiments/#comment-32586</link>
		<dc:creator>Gary</dc:creator>
		<pubDate>Sat, 29 Mar 2008 21:29:49 +0000</pubDate>
		<guid isPermaLink="false">http://kevinclosson.wordpress.com/?p=553#comment-32586</guid>
		<description>In a .sql script, you wouldn't expect an SQL command to be discarded, so there really should be an error that could be caught (or at least reported on so that you could search for it in a log file).

Actually SET SQLBLANKLINES ON would have had that effect, as the new line wouldn't have terminated the SQL command. Perhaps I should recommend that as a 'good practice' for SQL scripts.</description>
		<content:encoded><![CDATA[<p>In a .sql script, you wouldn&#8217;t expect an SQL command to be discarded, so there really should be an error that could be caught (or at least reported on so that you could search for it in a log file).</p>
<p>Actually SET SQLBLANKLINES ON would have had that effect, as the new line wouldn&#8217;t have terminated the SQL command. Perhaps I should recommend that as a &#8216;good practice&#8217; for SQL scripts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kevinclosson</title>
		<link>http://kevinclosson.wordpress.com/2008/03/28/little-things-doth-crabby-make-part-iii-non-erroring-errors-and-erroneous-experiments/#comment-32582</link>
		<dc:creator>kevinclosson</dc:creator>
		<pubDate>Sat, 29 Mar 2008 17:06:11 +0000</pubDate>
		<guid isPermaLink="false">http://kevinclosson.wordpress.com/?p=553#comment-32582</guid>
		<description>Freek,

  This was not an interactive SQL*Plus session...it is in a .sql
script...so, I never hit enter at all</description>
		<content:encoded><![CDATA[<p>Freek,</p>
<p>  This was not an interactive SQL*Plus session&#8230;it is in a .sql<br />
script&#8230;so, I never hit enter at all</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Freek</title>
		<link>http://kevinclosson.wordpress.com/2008/03/28/little-things-doth-crabby-make-part-iii-non-erroring-errors-and-erroneous-experiments/#comment-32581</link>
		<dc:creator>Freek</dc:creator>
		<pubDate>Sat, 29 Mar 2008 13:10:59 +0000</pubDate>
		<guid isPermaLink="false">http://kevinclosson.wordpress.com/?p=553#comment-32581</guid>
		<description>yep,

you would expect that sqlplus would keep asking for the semicolon. Instead it ignores (silently) the command when you just hit enter again.</description>
		<content:encoded><![CDATA[<p>yep,</p>
<p>you would expect that sqlplus would keep asking for the semicolon. Instead it ignores (silently) the command when you just hit enter again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hemant K Chitale</title>
		<link>http://kevinclosson.wordpress.com/2008/03/28/little-things-doth-crabby-make-part-iii-non-erroring-errors-and-erroneous-experiments/#comment-32575</link>
		<dc:creator>Hemant K Chitale</dc:creator>
		<pubDate>Sat, 29 Mar 2008 07:33:17 +0000</pubDate>
		<guid isPermaLink="false">http://kevinclosson.wordpress.com/?p=553#comment-32575</guid>
		<description>That's a 9.64% increase in query response time
on what can be a very large table.  I wouldn'd
find that worthy of a remark. [oops, I am
making an observation about it ?]

[I remember that the 11i upgrade scripts had a 
few bugslogged for queries on this table 
during the upgrade process.]</description>
		<content:encoded><![CDATA[<p>That&#8217;s a 9.64% increase in query response time<br />
on what can be a very large table.  I wouldn&#8217;d<br />
find that worthy of a remark. [oops, I am<br />
making an observation about it ?]</p>
<p>[I remember that the 11i upgrade scripts had a<br />
few bugslogged for queries on this table<br />
during the upgrade process.]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Johnson</title>
		<link>http://kevinclosson.wordpress.com/2008/03/28/little-things-doth-crabby-make-part-iii-non-erroring-errors-and-erroneous-experiments/#comment-32574</link>
		<dc:creator>Rob Johnson</dc:creator>
		<pubDate>Fri, 28 Mar 2008 21:05:29 +0000</pubDate>
		<guid isPermaLink="false">http://kevinclosson.wordpress.com/?p=553#comment-32574</guid>
		<description>The first "alter session" command didn't execute because there was no semicolon at the end, but the second alter session command did execute.  Does that explain the discrepancy in the timings, although they are fairly close?</description>
		<content:encoded><![CDATA[<p>The first &#8220;alter session&#8221; command didn&#8217;t execute because there was no semicolon at the end, but the second alter session command did execute.  Does that explain the discrepancy in the timings, although they are fairly close?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
