<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Disappearing Columns</title>
	<atom:link href="http://technology.amis.nl/2006/12/19/disappearing-columns/feed/" rel="self" type="application/rss+xml" />
	<link>http://technology.amis.nl/2006/12/19/disappearing-columns/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=disappearing-columns</link>
	<description></description>
	<lastBuildDate>Tue, 11 Jun 2013 22:09:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Remco Blaakmeer</title>
		<link>http://technology.amis.nl/2006/12/19/disappearing-columns/#comment-4178</link>
		<dc:creator>Remco Blaakmeer</dc:creator>
		<pubDate>Thu, 24 Jun 2010 00:06:02 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1444#comment-4178</guid>
		<description><![CDATA[Alex,
I just thought of a solution to this problem, with this trigger:
Â 
create or replace trigger trg_prevent_create_xmltype
before create
on database
begin
if ora_dict_obj_owner != &#039;SYS&#039;
and upper(ora_dict_obj_name) = &#039;XMLTYPE&#039;
then
raise_application_error(-20000, &#039;Will not create XMLTYPE (ignore this error)&#039;);
end if;
end;
/
Â 
This generates an error when you forget to strip the CREATE TYPE statement. This might not be what you want if you execute the DDL from the Design Editor, but I don&#039;t do that anyway.
Â ]]></description>
		<content:encoded><![CDATA[<p>Alex,<br />
I just thought of a solution to this problem, with this trigger:<br />
Â <br />
create or replace trigger trg_prevent_create_xmltype<br />
before create<br />
on database<br />
begin<br />
if ora_dict_obj_owner != &#8216;SYS&#8217;<br />
and upper(ora_dict_obj_name) = &#8216;XMLTYPE&#8217;<br />
then<br />
raise_application_error(-20000, &#8216;Will not create XMLTYPE (ignore this error)&#8217;);<br />
end if;<br />
end;<br />
/<br />
Â <br />
This generates an error when you forget to strip the CREATE TYPE statement. This might not be what you want if you execute the DDL from the Design Editor, but I don&#8217;t do that anyway.<br />
Â </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Nuijten</title>
		<link>http://technology.amis.nl/2006/12/19/disappearing-columns/#comment-4177</link>
		<dc:creator>Alex Nuijten</dc:creator>
		<pubDate>Mon, 29 Jan 2007 12:32:31 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1444#comment-4177</guid>
		<description><![CDATA[Hi Rachana,
No that is not possible. I can see any praticle use for it either....

SQL&gt;
SQL&gt; set serveroutput on
SQL&gt; begin
  2     dbms_output.put_line (sqlerrm (-12983));
  3  end;
  4  /
ORA-12983: cannot drop all columns in a table

PL/SQL procedure successfully completed.

SQL&gt;]]></description>
		<content:encoded><![CDATA[<p>Hi Rachana,<br />
No that is not possible. I can see any praticle use for it either&#8230;.</p>
<p>SQL&gt;<br />
SQL&gt; set serveroutput on<br />
SQL&gt; begin<br />
  2     dbms_output.put_line (sqlerrm (-12983));<br />
  3  end;<br />
  4  /<br />
ORA-12983: cannot drop all columns in a table</p>
<p>PL/SQL procedure successfully completed.</p>
<p>SQL&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rachana</title>
		<link>http://technology.amis.nl/2006/12/19/disappearing-columns/#comment-4176</link>
		<dc:creator>Rachana</dc:creator>
		<pubDate>Mon, 29 Jan 2007 05:59:27 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1444#comment-4176</guid>
		<description><![CDATA[Can we drop all the columns in a table at a time ????????]]></description>
		<content:encoded><![CDATA[<p>Can we drop all the columns in a table at a time ????????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Gralike</title>
		<link>http://technology.amis.nl/2006/12/19/disappearing-columns/#comment-4175</link>
		<dc:creator>Marco Gralike</dc:creator>
		<pubDate>Sat, 23 Dec 2006 17:08:09 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1444#comment-4175</guid>
		<description><![CDATA[Bug, SR has been accepted by Oracle on all levels (not only the one shown here). I (but you triggered me, Alex) refer to this one, as my newly discovered (SQL) &quot;Database Injection&quot; bug (because it HAS some security implications, if you think about it...), and is not only data corruption related.

Alex, Harm, follow up can be read the SR via the BetaCSI]]></description>
		<content:encoded><![CDATA[<p>Bug, SR has been accepted by Oracle on all levels (not only the one shown here). I (but you triggered me, Alex) refer to this one, as my newly discovered (SQL) &#8220;Database Injection&#8221; bug (because it HAS some security implications, if you think about it&#8230;), and is not only data corruption related.</p>
<p>Alex, Harm, follow up can be read the SR via the BetaCSI</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: harm</title>
		<link>http://technology.amis.nl/2006/12/19/disappearing-columns/#comment-4174</link>
		<dc:creator>harm</dc:creator>
		<pubDate>Fri, 22 Dec 2006 12:08:16 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1444#comment-4174</guid>
		<description><![CDATA[Although not predefined in Designer, it HAS support for xmltype. You have to create the type yourself as TYPE object. After that you can reference to it in your tables and views and program units.]]></description>
		<content:encoded><![CDATA[<p>Although not predefined in Designer, it HAS support for xmltype. You have to create the type yourself as TYPE object. After that you can reference to it in your tables and views and program units.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Nuijten</title>
		<link>http://technology.amis.nl/2006/12/19/disappearing-columns/#comment-4173</link>
		<dc:creator>Alex Nuijten</dc:creator>
		<pubDate>Thu, 21 Dec 2006 09:13:58 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1444#comment-4173</guid>
		<description><![CDATA[Ah, good point.... you were miles ahead of me, now I understand what you mean. Thank you.]]></description>
		<content:encoded><![CDATA[<p>Ah, good point&#8230;. you were miles ahead of me, now I understand what you mean. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Gralike</title>
		<link>http://technology.amis.nl/2006/12/19/disappearing-columns/#comment-4172</link>
		<dc:creator>Marco Gralike</dc:creator>
		<pubDate>Wed, 20 Dec 2006 20:58:15 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1444#comment-4172</guid>
		<description><![CDATA[My problem is that it should behave as the following DATE contra XMLTYPE example... (in which the DATE behavior is the recommended one...)

To show that it shouldn&#039;t be happening or it is at least inconsistent behavior, two examples: one with &quot;XMLTYPE&quot; and one with &quot;DATE&quot;...

SQL&gt; CREATE OR REPLACE TYPE MYDATE AS OBJECT
  2  (X INT
  3  )
  4  /

Type created.

SQL&gt; drop type mydate;

Type dropped.

SQL&gt; CREATE OR REPLACE TYPE DATE AS OBJECT
  2  (X INT
  3  )
  4  /
CREATE OR REPLACE TYPE DATE AS OBJECT
                       *
ERROR at line 1:
ORA-02302: invalid or missing type name


SQL&gt; CREATE OR REPLACE TYPE XMLTYPE AS OBJECT
  2  (X INT
  3  )
  4  /

Type created.

SQL&gt; show user
USER is &quot;SYSTEM&quot;]]></description>
		<content:encoded><![CDATA[<p>My problem is that it should behave as the following DATE contra XMLTYPE example&#8230; (in which the DATE behavior is the recommended one&#8230;)</p>
<p>To show that it shouldn&#8217;t be happening or it is at least inconsistent behavior, two examples: one with &#8220;XMLTYPE&#8221; and one with &#8220;DATE&#8221;&#8230;</p>
<p>SQL&gt; CREATE OR REPLACE TYPE MYDATE AS OBJECT<br />
  2  (X INT<br />
  3  )<br />
  4  /</p>
<p>Type created.</p>
<p>SQL&gt; drop type mydate;</p>
<p>Type dropped.</p>
<p>SQL&gt; CREATE OR REPLACE TYPE DATE AS OBJECT<br />
  2  (X INT<br />
  3  )<br />
  4  /<br />
CREATE OR REPLACE TYPE DATE AS OBJECT<br />
                       *<br />
ERROR at line 1:<br />
ORA-02302: invalid or missing type name</p>
<p>SQL&gt; CREATE OR REPLACE TYPE XMLTYPE AS OBJECT<br />
  2  (X INT<br />
  3  )<br />
  4  /</p>
<p>Type created.</p>
<p>SQL&gt; show user<br />
USER is &#8220;SYSTEM&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Nuijten</title>
		<link>http://technology.amis.nl/2006/12/19/disappearing-columns/#comment-4171</link>
		<dc:creator>Alex Nuijten</dc:creator>
		<pubDate>Wed, 20 Dec 2006 15:00:10 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1444#comment-4171</guid>
		<description><![CDATA[How very true and how very sad. Still there are lots of companies who use Designer and rely heavily upon it.
In September 2004, we had a session about the future of Designer. Here is the link to that session: http://technology.amis.nl/blog/?p=164]]></description>
		<content:encoded><![CDATA[<p>How very true and how very sad. Still there are lots of companies who use Designer and rely heavily upon it.<br />
In September 2004, we had a session about the future of Designer. Here is the link to that session: <a href="http://technology.amis.nl/blog/?p=164" rel="nofollow">http://technology.amis.nl/blog/?p=164</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Friedman</title>
		<link>http://technology.amis.nl/2006/12/19/disappearing-columns/#comment-4170</link>
		<dc:creator>Michael Friedman</dc:creator>
		<pubDate>Wed, 20 Dec 2006 14:33:02 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1444#comment-4170</guid>
		<description><![CDATA[The real problem is that Oracle is not doing any further development with Designer.

Designer should support built in types and new data types like Intervals, etc.

It doesn&#039;t.

As we move on to 11g and onward it will become less and less feasible to build systems using it.]]></description>
		<content:encoded><![CDATA[<p>The real problem is that Oracle is not doing any further development with Designer.</p>
<p>Designer should support built in types and new data types like Intervals, etc.</p>
<p>It doesn&#8217;t.</p>
<p>As we move on to 11g and onward it will become less and less feasible to build systems using it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Nuijten</title>
		<link>http://technology.amis.nl/2006/12/19/disappearing-columns/#comment-4169</link>
		<dc:creator>Alex Nuijten</dc:creator>
		<pubDate>Wed, 20 Dec 2006 09:41:26 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1444#comment-4169</guid>
		<description><![CDATA[@Nigel:
Unfortunately it is not possible in Designer to set a flag to prevent generation of Types, you can for packages, procedures and the like but not for Types.
I am having trouble to see your workaround though, how is it possible to define a column in a table which has the XMLType as it&#039;s datatype?
Good point on revoking the CREATE TYPE privilege, too bad we need it for other Types.

@Marco
Do you ever sleep? ;-)
The XMLType that was created erroneously by the Designer Generator was the one I wanted to get rid of. Not the &quot;real&quot; XMLType which would destroy your XML DB...
Talking about reserved words, consider this:

SQL&gt; declare
  2     xmltype varchar2(10);
  3  begin
  4     xmltype := &#039;Hello&#039;;
  5     dbms_output.put_line (xmltype);
  6  end;
  7  /
Hello

PL/SQL procedure successfully completed.

SQL&gt; ed
Wrote file afiedt.buf

  1  declare
  2     date varchar2(10);
  3  begin
  4     date := &#039;Hello&#039;;
  5     dbms_output.put_line (date);
  6* end;
SQL&gt; /
Hello

PL/SQL procedure successfully completed.

SQL&gt;]]></description>
		<content:encoded><![CDATA[<p>@Nigel:<br />
Unfortunately it is not possible in Designer to set a flag to prevent generation of Types, you can for packages, procedures and the like but not for Types.<br />
I am having trouble to see your workaround though, how is it possible to define a column in a table which has the XMLType as it&#8217;s datatype?<br />
Good point on revoking the CREATE TYPE privilege, too bad we need it for other Types.</p>
<p>@Marco<br />
Do you ever sleep? <img src='http://technology.amis.nl/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /><br />
The XMLType that was created erroneously by the Designer Generator was the one I wanted to get rid of. Not the &#8220;real&#8221; XMLType which would destroy your XML DB&#8230;<br />
Talking about reserved words, consider this:</p>
<p>SQL&gt; declare<br />
  2     xmltype varchar2(10);<br />
  3  begin<br />
  4     xmltype := &#8216;Hello&#8217;;<br />
  5     dbms_output.put_line (xmltype);<br />
  6  end;<br />
  7  /<br />
Hello</p>
<p>PL/SQL procedure successfully completed.</p>
<p>SQL&gt; ed<br />
Wrote file afiedt.buf</p>
<p>  1  declare<br />
  2     date varchar2(10);<br />
  3  begin<br />
  4     date := &#8216;Hello&#8217;;<br />
  5     dbms_output.put_line (date);<br />
  6* end;<br />
SQL&gt; /<br />
Hello</p>
<p>PL/SQL procedure successfully completed.</p>
<p>SQL&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
