Return-Path: <oracle-l-bounce@freelists.org>
X-Original-To: oracle-l@orafaq.com
Delivered-To: oracle-l@orafaq.com
Received: from puck1183.startdedicated.com (localhost [127.0.0.1])
 by puck1183.startdedicated.com (Postfix) with ESMTP id 208081961051
 for <oracle-l@orafaq.com>; Thu,  3 Mar 2016 21:57:04 +0100 (CET)
Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180])
 by puck1183.startdedicated.com (Postfix) with ESMTPS
 for <oracle-l@orafaq.com>; Thu,  3 Mar 2016 21:57:04 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 94EE833C7C;
 Thu,  3 Mar 2016 15:57:02 -0500 (EST)
X-Virus-Scanned: Debian amavisd-new at turing.freelists.org
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id PVPsuMMOCP1w; Thu,  3 Mar 2016 15:57:02 -0500 (EST)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id E461933CFF;
 Thu,  3 Mar 2016 15:56:21 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Thu, 03 Mar 2016 15:55:41 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id DA8C733C29
 for <oracle-l@freelists.org>; Thu,  3 Mar 2016 15:55:40 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id z3FM+d9thTvA for <oracle-l@freelists.org>;
 Thu,  3 Mar 2016 15:55:40 -0500 (EST)
Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 9658D33BDB
 for <oracle-l@freelists.org>; Thu,  3 Mar 2016 15:55:40 -0500 (EST)
Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71])
 by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u23Ktdx7007733
 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
 Thu, 3 Mar 2016 20:55:39 GMT
Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235])
 by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u23KtcCG006935
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL);
 Thu, 3 Mar 2016 20:55:39 GMT
Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13])
 by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u23Ktc5P006156;
 Thu, 3 Mar 2016 20:55:38 GMT
MIME-Version: 1.0
Message-ID: <ba86bdc0-4bf2-4380-a892-b19e7018fc0e@default>
Date: Thu, 3 Mar 2016 12:55:34 -0800 (PST)
From: Jeff Smith <jeff.d.smith@oracle.com>
To: gogala.mladen@gmail.com, oracle-l@freelists.org
Subject: RE: I need to vent
References: <64a21060a19340f6bec90fc06d6f9256@wpvl1dag02.hcrec.com>
 <56D8A407.4010603@gmail.com>
In-Reply-To: <56D8A407.4010603@gmail.com>
Content-Type: multipart/alternative;
 boundary="__1457038538418247873abhmp0007.oracle.com"
X-Source-IP: userv0021.oracle.com [156.151.31.71]
X-archive-position: 63770
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: jeff.d.smith@oracle.com
Precedence: normal
Reply-To: jeff.d.smith@oracle.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:mark.bobak@proquest.com>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
--__1457038538418247873abhmp0007.oracle.com
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

Well, impossible to see until you learn to use a code formatter of course=
=20

=20

From: Mladen Gogala [mailto:gogala.mladen@gmail.com]=20
Sent: Thursday, March 03, 2016 3:52 PM
To: oracle-l@freelists.org
Subject: Re: I need to vent

=20

On 03/01/2016 10:56 AM, Matt Adams wrote:

1.8 million characters!!!!!   How in bloody hell does ANYTHING write a sing=
le sql statement that 1.8 million characters long.

=20

=20


Actually, it's quite simple:=20
select sysdate=20
<few millions of empty lines and space characters>
from dual;

Voila! One reason to write a thing like that would be to prank your favouri=
te DBA. You can do it in a little bit more expensive way by doing something=
 like this:

select count(*)
<few millions of empty lines with space characters>
from emp,emp,emp,emp,emp,emp,emp,emp,emp,emp,emp,emp,emp,emp,emp,emp,emp;

This is going to peg a CPU thread for a good 5 minutes, using 100% of CPU p=
ower. The "working part" is the FROM clause, which generates a Cartesian pr=
oduct and it is at the end of the mostly blank SQL, so it would be almost i=
mpossible to see using SQL*Developer or Toad. The downside of the SQL is th=
at as soon as the DBA sees SCOTT.EMP used in production, she or he will pro=
bably kill the session immediately. The good side of this SQL is that it wi=
ll send your BCHR through the roof.





--=20
Mladen Gogala
Oracle DBA
Tel: (347) 321-1217
--__1457038538418247873abhmp0007.oracle.com
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:x=3D"urn:schemas-microsoft-com:office:excel" xmlns:m=3D"http://schema=
s.microsoft.com/office/2004/12/omml" xmlns=3D"http://www.w3.org/TR/REC-html=
40"><head><META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=
=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 12 (filtered =
medium)"><style><!--
/* Font Definitions */
@font-face
=09{font-family:"Cambria Math";
=09panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
=09{font-family:Calibri;
=09panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
=09{font-family:Tahoma;
=09panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
=09{font-family:Consolas;
=09panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
=09{margin:0in;
=09margin-bottom:.0001pt;
=09font-size:11.0pt;
=09font-family:"Calibri","sans-serif";
=09color:black;}
a:link, span.MsoHyperlink
=09{mso-style-priority:99;
=09color:blue;
=09text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
=09{mso-style-priority:99;
=09color:purple;
=09text-decoration:underline;}
pre
=09{mso-style-priority:99;
=09mso-style-link:"HTML Preformatted Char";
=09margin:0in;
=09margin-bottom:.0001pt;
=09font-size:10.0pt;
=09font-family:"Courier New","serif";
=09color:black;}
span.EmailStyle17
=09{mso-style-type:personal;
=09font-family:"Calibri","sans-serif";
=09color:windowtext;}
span.HTMLPreformattedChar
=09{mso-style-name:"HTML Preformatted Char";
=09mso-style-priority:99;
=09mso-style-link:"HTML Preformatted";
=09font-family:Consolas;
=09color:black;}
span.EmailStyle20
=09{mso-style-type:personal-reply;
=09font-family:"Calibri","sans-serif";
=09color:#1F497D;}
.MsoChpDefault
=09{mso-style-type:export-only;
=09font-size:10.0pt;}
@page WordSection1
=09{size:8.5in 11.0in;
=09margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
=09{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=3Dwhite lang=3DEN-US=
 link=3Dblue vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal>=
<span style=3D'color:#1F497D'>Well, impossible to see until you learn to us=
e a code formatter of course <o:p></o:p></span></p><p class=3DMsoNormal><sp=
an style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style=3D'b=
order:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p cla=
ss=3DMsoNormal><b><span style=3D'font-size:10.0pt;font-family:"Tahoma","san=
s-serif";color:windowtext'>From:</span></b><span style=3D'font-size:10.0pt;=
font-family:"Tahoma","sans-serif";color:windowtext'> Mladen Gogala [mailto:=
gogala.mladen@gmail.com] <br><b>Sent:</b> Thursday, March 03, 2016 3:52 PM<=
br><b>To:</b> oracle-l@freelists.org<br><b>Subject:</b> Re: I need to vent<=
o:p></o:p></span></p></div></div><p class=3DMsoNormal><o:p>&nbsp;</o:p></p>=
<div><p class=3DMsoNormal>On 03/01/2016 10:56 AM, Matt Adams wrote:<o:p></o=
:p></p></div><blockquote style=3D'margin-top:5.0pt;margin-bottom:5.0pt'><p =
class=3DMsoNormal>1.8 million characters!!!!!&nbsp;&nbsp; How in bloody hel=
l does ANYTHING write a single sql statement that 1.8 million characters lo=
ng.<o:p></o:p></p><p class=3DMsoNormal>&nbsp;<o:p></o:p></p><p class=3DMsoN=
ormal><o:p>&nbsp;</o:p></p></blockquote><p class=3DMsoNormal><span style=3D=
'font-size:12.0pt;font-family:"Times New Roman","serif"'><br>Actually, it's=
 quite simple: <br>select sysdate <br>&lt;few millions of empty lines and s=
pace characters&gt;<br>from dual;<br><br>Voila! One reason to write a thing=
 like that would be to prank your favourite DBA. You can do it in a little =
bit more expensive way by doing something like this:<br><br>select count(*)=
<br>&lt;few millions of empty lines with space characters&gt;<br>from emp,e=
mp,emp,emp,emp,emp,emp,emp,emp,emp,emp,emp,emp,emp,emp,emp,emp;<br><br>This=
 is going to peg a CPU thread for a good 5 minutes, using 100% of CPU power=
. The &quot;working part&quot; is the FROM clause, which generates a Cartes=
ian product and it is at the end of the mostly blank SQL, so it would be al=
most impossible to see using SQL*Developer or Toad. The downside of the SQL=
 is that as soon as the DBA sees SCOTT.EMP used in production, she or he wi=
ll probably kill the session immediately. The good side of this SQL is that=
 it will send your BCHR through the roof.<br><br><br><br><o:p></o:p></span>=
</p><pre>-- <o:p></o:p></pre><pre>Mladen Gogala<o:p></o:p></pre><pre>Oracle=
 DBA<o:p></o:p></pre><pre>Tel: (347) 321-1217<o:p></o:p></pre></div></body>=
</html>
--__1457038538418247873abhmp0007.oracle.com--
--
http://www.freelists.org/webpage/oracle-l


