<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <id>http://www.cocomment.com/comments/laurentschneider</id>
    <title>coComments related to laurentschneider</title>
    <link rel="self" href="http://www.cocomment.com/comments/laurentschneider"/>
    <rights>Copyright 2007 coComment.com</rights>
    <updated>2009-11-22T12:09:07.504+01:00</updated>
    <icon>http://www.cocomment.com/images/logo4rss.gif</icon>
    <entry>
        <id>http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=2468993&amp;comment_id=68821051</id>
        <title>I am amazed by your solution. </title>
        <author>
            <name>Laurent Schneider</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=2468993&amp;comment_id=68821051"/>
        <content>I am amazed by your solution. I did read about it in your book, but had no clue it was working in 11.2.

I would definitely vote for yours :)</content>
        <published>2009-03-26T20:29:29.634+01:00</published>
        <updated>2009-03-26T20:29:29.634+01:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=965140&amp;comment_id=68392175</id>
        <title>Maybe XML format or otherwise </title>
        <author>
            <name>Anonymous</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=965140&amp;comment_id=68392175"/>
        <content>Maybe XML format or otherwise InterMedia</content>
        <published>2009-03-25T07:28:59.673+01:00</published>
        <updated>2009-03-25T07:28:59.673+01:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=2309750&amp;comment_id=50351184</id>
        <title>&lt;a href="#comment-8534"&gt;@carri</title>
        <author>
            <name>Anonymous</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=2309750&amp;comment_id=50351184"/>
        <content>&lt;a href="#comment-8534"&gt;@carrie b&lt;/a&gt; 
yes, username=password and it is hardcoded everywhere :(</content>
        <published>2009-01-19T20:02:00.560+01:00</published>
        <updated>2009-01-19T20:02:00.560+01:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=965140&amp;comment_id=49994918</id>
        <title>really? could you copy paste y</title>
        <author>
            <name>Anonymous</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=965140&amp;comment_id=49994918"/>
        <content>really? could you copy paste your input/output and provide version?</content>
        <published>2009-01-18T18:34:39.188+01:00</published>
        <updated>2009-01-18T18:34:39.188+01:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=1167508&amp;comment_id=28734249</id>
        <title>the OPATCH options are identic</title>
        <author>
            <name>Laurent Schneider</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=1167508&amp;comment_id=28734249"/>
        <content>the OPATCH options are identical. I cannot confirm if the dummy patch exists on Windows.</content>
        <published>2008-07-16T21:59:02.862+02:00</published>
        <updated>2008-07-16T21:59:02.862+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=1497206&amp;comment_id=28726901</id>
        <title>yes, quite special :)

SQL&amp;gt;</title>
        <author>
            <name>laurentschneider</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=1497206&amp;comment_id=28726901"/>
        <content>yes, quite special :)

SQL&amp;gt; with x$dual as (select '1' from dual) select * from x$dual;
ORA-32031: illegal reference of a query name in WITH clause</content>
        <published>2008-07-16T07:12:38.701+02:00</published>
        <updated>2008-07-16T07:12:38.701+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=1497206&amp;comment_id=28708210</id>
        <title>Fun, but it works only in one </title>
        <author>
            <name>laurentschneider</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=1497206&amp;comment_id=28708210"/>
        <content>Fun, but it works only in one direction :mrgreen:

with dual as (select 'x' from v$instance) select * from dual;
with dual as (select 'x' from v$instance) select * from dual
                                                        *
ERROR at line 1:
ORA-32035: unreferenced query name defined in WITH clause</content>
        <published>2008-07-15T11:51:14.526+02:00</published>
        <updated>2008-07-15T11:51:14.526+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=1153398&amp;comment_id=22661986</id>
        <title>Well, I cannot test it it as I</title>
        <author>
            <name>Laurent Schneider</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=1153398&amp;comment_id=22661986"/>
        <content>Well, I cannot test it it as I have full privilege right now, but as I remember print was not working that well... 

Thanks for the tip, I keep it in case I have to use a castrated version of toad again</content>
        <published>2007-12-19T21:24:21.313+01:00</published>
        <updated>2007-12-19T21:24:21.313+01:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=965140&amp;comment_id=22161717</id>
        <title>SQL&amp;gt; set mark html on table</title>
        <author>
            <name>Laurent Schneider</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=965140&amp;comment_id=22161717"/>
        <content>SQL&amp;gt; set mark html on table "&amp;gt;&amp;lt;img src=/images/laurentschneider.png&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;br&amp;gt;&amp;lt;table"
SQL&amp;gt; select * from dual;





D




X</content>
        <published>2007-11-08T03:16:19.178+01:00</published>
        <updated>2007-11-08T03:16:19.178+01:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=965140&amp;comment_id=18369962</id>
        <title>I will have a look</title>
        <author>
            <name>Laurent Schneider</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=965140&amp;comment_id=18369962"/>
        <content>I will have a look</content>
        <published>2007-08-21T20:04:27.300+02:00</published>
        <updated>2007-08-21T20:04:27.300+02:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=573759&amp;comment_id=10885996</id>
        <title>Firstly, I find that it is mor</title>
        <author>
            <name>Laurent Schneider</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=573759&amp;comment_id=10885996"/>
        <content>Firstly, I find that it is more difficult to understand what the code is supposed to do, and it is much more easy (for most of us) to put an error in the connect by as by reusing YOUR stragg function.

Secondly, I think connect by will not scale well

A little test (well, it is just a test, it is not supposed to prove anything)


set timi on lin 9999 trims on newp none pages 0 termout off

spool /tmp/stragg.txt
select trunc(object_id/100),stragg(object_name)
from all_objects
group by trunc(object_id/100) 
-- having stragg(object_name)='XYZ';
spool off

spool /tmp/connect.txt
select o,
max(sys_connect_by_path(object_name, ' ' )) scbp
from (select trunc(object_id/100) o, object_name,
row_number() over
(partition by trunc(object_id/100) order by object_name) rn
from all_objects
)
start with rn = 1
connect by prior rn = rn-1 and prior o = o
group by o
-- having max(sys_connect_by_path(ename, ' ' ))='XYZ'
/
spool off



the first query finished in 5 secs. After 3 min, the second one ended with &lt;i&gt;ORA-30004: when using SYS_CONNECT_BY_PATH function, cannot have seperator as part of column value&lt;/i&gt; (why?)

If I replace all_objects by user_objects the first try takes 0.03 sec and the second one takes 0.35.

So when used with such a complex view as ALL_OBJECTS, connect by artifice is not very attractive to me.</content>
        <published>2007-03-23T16:47:49.770+01:00</published>
        <updated>2007-03-23T16:47:49.770+01:00</updated>
    </entry>
    <entry>
        <id>http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=573759&amp;comment_id=10883994</id>
        <title>why? I like your stragg</title>
        <author>
            <name>Laurent Schneider</name>
        </author>
        <link rel="self" href="http://www.cocomment.com/sidebar?object=people&amp;context=explore&amp;mode=detail&amp;id=laurentschneider&amp;conv=573759&amp;comment_id=10883994"/>
        <content>why? I like your stragg</content>
        <published>2007-03-23T16:13:40.124+01:00</published>
        <updated>2007-03-23T16:13:40.124+01:00</updated>
    </entry>
</feed>
