﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / Working with Oracle  / I have a question about oracle / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sun, 19 May 2013 18:36:25 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: I have a question about oracle</title><link>http://www.sqlservercentral.com/Forums/Topic1247217-1042-1.aspx</link><description>[quote][b]PaulB-TheOneAndOnly (5/3/2012)[/b][hr][quote][b]Lynn Pettis (5/2/2012)[/b][hr]Question.  We know that TRUNCATE TABLE in SQL Server can be rolled back if inside a transaction.  How about in Oracle?[/quote]Can't rollback TRUNCATE in the Oracle world.Oracle's TRUNCATE is a DDL operation as opposed to a DML operation; it works at the catalog level reseting the high water mark of the affected table, it generates no redo log at all.[/quote]I'm wondering if this why people think the TRUNCATE TABLE in SQL Server can't be rolled back?Thanks for the info, I'll tuck it away for future reference.</description><pubDate>Thu, 03 May 2012 14:32:59 GMT</pubDate><dc:creator>Lynn Pettis</dc:creator></item><item><title>RE: I have a question about oracle</title><link>http://www.sqlservercentral.com/Forums/Topic1247217-1042-1.aspx</link><description>[quote][b]Lynn Pettis (5/2/2012)[/b][hr]Question.  We know that TRUNCATE TABLE in SQL Server can be rolled back if inside a transaction.  How about in Oracle?[/quote]Can't rollback TRUNCATE in the Oracle world.Oracle's TRUNCATE is a DDL operation as opposed to a DML operation; it works at the catalog level reseting the high water mark of the affected table, it generates no redo log at all.</description><pubDate>Thu, 03 May 2012 14:26:35 GMT</pubDate><dc:creator>PaulB-TheOneAndOnly</dc:creator></item><item><title>RE: I have a question about oracle</title><link>http://www.sqlservercentral.com/Forums/Topic1247217-1042-1.aspx</link><description>As PaulB mentioned, in OracleTRUNCATE is a DDL operation.Oracle implicitly commits DDL opeations so a truncate cannot be rolled back.</description><pubDate>Thu, 03 May 2012 00:49:55 GMT</pubDate><dc:creator>alan.jeskins-powell-1134784</dc:creator></item><item><title>RE: I have a question about oracle</title><link>http://www.sqlservercentral.com/Forums/Topic1247217-1042-1.aspx</link><description>[quote][b]PaulB-TheOneAndOnly (2/6/2012)[/b][hr][quote][b]fastformation01 (2/6/2012)[/b][hr]Which one is faster delete/truncate? Why?[/quote]Assuming you are talking about deleting the whole population of a table it doesn't matter if it's Oracle, SQL Server, DB2 or whatever other RDBMS truncate will always be faster.In the particular case of Oracle, truncate is not a DML but a pure DDL operation that resets the High Watermark of the table. Truncate statements in Oracle do not generate redo logs therefore, this is an instantaneous process - in SQL Server, truncate statements are minimally logged.[/quote]Question.  We know that TRUNCATE TABLE in SQL Server can be rolled back if inside a transaction.  How about in Oracle?</description><pubDate>Wed, 02 May 2012 15:13:00 GMT</pubDate><dc:creator>Lynn Pettis</dc:creator></item><item><title>RE: I have a question about oracle</title><link>http://www.sqlservercentral.com/Forums/Topic1247217-1042-1.aspx</link><description>[quote][b]rossss (5/2/2012)[/b][hr][quote]Can be? It is always faster. See my previous post for details.[/quote]I'm just quoting the official Oracle documentation, see the link.[/quote]It is always faster :-D</description><pubDate>Wed, 02 May 2012 15:10:06 GMT</pubDate><dc:creator>PaulB-TheOneAndOnly</dc:creator></item><item><title>RE: I have a question about oracle</title><link>http://www.sqlservercentral.com/Forums/Topic1247217-1042-1.aspx</link><description>[quote]Can be? It is always faster. See my previous post for details.[/quote]I'm just quoting the official Oracle documentation, see the link.</description><pubDate>Wed, 02 May 2012 05:07:58 GMT</pubDate><dc:creator>Ross.M</dc:creator></item><item><title>RE: I have a question about oracle</title><link>http://www.sqlservercentral.com/Forums/Topic1247217-1042-1.aspx</link><description>[quote][b]rossss (5/2/2012)[/b][hr]Removing rows with the TRUNCATE statement can be faster than removing all rows with the DELETE statement...[/quote]Can be? It is always faster. See my previous post for details.</description><pubDate>Wed, 02 May 2012 04:59:12 GMT</pubDate><dc:creator>PaulB-TheOneAndOnly</dc:creator></item><item><title>RE: I have a question about oracle</title><link>http://www.sqlservercentral.com/Forums/Topic1247217-1042-1.aspx</link><description>Removing rows with the TRUNCATE statement can be faster than removing all rows with the DELETE statement, especially if the table has numerous triggers, indexes, and other dependencies.[url]http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_10006.htm[/url]</description><pubDate>Wed, 02 May 2012 03:48:13 GMT</pubDate><dc:creator>Ross.M</dc:creator></item><item><title>RE: I have a question about oracle</title><link>http://www.sqlservercentral.com/Forums/Topic1247217-1042-1.aspx</link><description>[quote][b]fastformation01 (2/6/2012)[/b][hr]Which one is faster delete/truncate? Why?[/quote]Assuming you are talking about deleting the whole population of a table it doesn't matter if it's Oracle, SQL Server, DB2 or whatever other RDBMS truncate will always be faster.In the particular case of Oracle, truncate is not a DML but a pure DDL operation that resets the High Watermark of the table. Truncate statements in Oracle do not generate redo logs therefore, this is an instantaneous process - in SQL Server, truncate statements are minimally logged.</description><pubDate>Mon, 06 Feb 2012 06:44:42 GMT</pubDate><dc:creator>PaulB-TheOneAndOnly</dc:creator></item><item><title>I have a question about oracle</title><link>http://www.sqlservercentral.com/Forums/Topic1247217-1042-1.aspx</link><description>Which one is faster delete/truncate? Why?-------------------------------------------------------------------[b][url='http://www.starconfig.com.au/']Sydney Web Design Companies[/url][/b][b][url='http://www.starconfig.com.au/']Cheap Web Design Sydney[/url][/b]</description><pubDate>Mon, 06 Feb 2012 04:56:48 GMT</pubDate><dc:creator>fastformation01</dc:creator></item></channel></rss>