Skip to content

Oracle Database Insights: Truncate Performance, UUID Defaults, and Online Reorganization

Overview of Ask Tom Live Holiday Session

Conor McDonald hosts a relaxed end-of-year Ask Tom Live, focusing on unexplored Oracle Database questions and recent developments such as SQL Developer for VS Code enhancements and Oracle 26 AI updates. With user participation encouraged via chat, the session addresses practical Oracle challenges and tool improvements.


Key Topics Covered

1. Why Is TRUNCATE Slow in Data Warehouses?

  • Although TRUNCATE is inherently fast, it can be delayed by flushing dirty blocks from memory to disk before execution to prevent data corruption.
  • Extensive DML operations on large tables result in numerous dirty blocks, increasing the flushing time and causing TRUNCATE delays.
  • Solutions to improve TRUNCATE speed:
    • Run queries on the table to trigger delayed block cleanout.
    • Execute an ALTER SYSTEM CHECKPOINT to flush dirty blocks preemptively.
    • Prefer direct mode or parallel DML (e.g., INSERT APPEND) to minimize dirty block creation.
  • A slow TRUNCATE may indicate inefficient application logic around data handling.

2. UUID Default Value Issue in Oracle 26 AI

  • Oracle introduced a new UUID function to generate truly random UUIDs, supporting future versions like version 7 (time-ordered UUIDs) aligned with OS implementations.
  • Bug: Using UUID() directly as a default value in table columns is currently unsupported due to SQL engine misinterpretation.
  • Workaround: Create the table without the default and then alter the column to add DEFAULT UUID().
  • An official fix is planned in an upcoming release update.
  • This functionality ties closely with advancements discussed in Oracle AI Database 26AI: Revolutionizing AI-Driven Applications and Analytics.

3. Online Table Reorganization Without Enterprise Edition

  • Standard Edition lacks online ALTER TABLE MOVE and DBMS_REDEFINITION features.
  • Manual workaround:
    • Create a materialized view log and create a materialized view that represents the reorganized table.
    • Periodically refresh the view to sync data during online use.
    • Brief outage required to finalize: refresh view, convert it to a table, drop old table and rename.
  • Alternative approach is using ALTER TABLE ENABLE ROW MOVEMENT; ALTER TABLE SHRINK SPACE; which operates online but is slower and generates more redo.
  • Enterprise Edition features significantly simplify and speed up these operations.
  • For in-depth understanding of related table alteration commands, refer to Understanding the ALTER Command in SQL: A Comprehensive Guide.

4. Additional Insights and Q&A

  • PR and PT Scripts Explained: Dynamic SQL scripts for formatting query output vertically, using SQL*Plus buffer manipulation.
  • Streaming Gear: Use of DSLR cameras with Elgato Cam Link for high-quality webinar video and a quality microphone emphasizing audio importance.
  • Memory Target and Huge Pages: Oracle 26 AI now supports huge pages with unified memory_target, but for large memory systems (>4GB), separate SGA_TARGET and PGA_AGGREGATE_TARGET remain recommended.
  • Large Log Buffers: On high-core systems like Exadata, large log buffers (e.g., 1GB) are normal; ensure redo logs are sized accordingly to avoid performance issues.
  • Temporary Tablespace Groups: Mostly legacy solutions to cross-instance contention; local temporary tablespaces on RAC reduce the need for them.
  • Materialized View Privileges Error: "Insufficient privileges" error may actually indicate a non-existent MV or missing CREATE TABLE privilege for non-atomic refresh.
  • AI and Future of DBA Roles: AI skills are increasingly vital; AI likely will not replace DBAs outright but will advantage those with AI competencies.
  • For broader context on AI integration and DBA roles, see How Infosys Drives Enterprise AI Transformation and Innovation and Unlocking the Power of Gemini 2.5's Deep Research for Business Intelligence.

Conclusion and Community Engagement

Conor thanks the community for participation over the year, encourages supporting user groups, and invites ongoing engagement in upcoming conferences and sessions. He stresses broad skill sets including AI as essential for future IT professionals and wishes everyone a safe and joyous holiday season.

Keep this summary

Save it to LunaNotes and it becomes a real note in your library — editable, searchable, and ready to turn into flashcards or a diagram. Free to start.

Save to LunaNotes

Or summarise for another video.

This summary and transcript were automatically generated using AI with the Free YouTube Transcript Summary Tool by LunaNotes.

Related summaries

Oracle's AI Revolution: AI Database, App Dev, Lakehouse & Data Platform Explained

Oracle's AI Revolution: AI Database, App Dev, Lakehouse & Data Platform Explained

Explore how Oracle integrates AI with data management through AI-native databases, app development, open lakehouse analytics, and the comprehensive AI Data Platform. Learn about AI vectors, trusted app generation, AI agents, and open standards that empower enterprises to secure, scale, and innovate using AI-driven insights and automation.

Oracle AI Database 26AI: Revolutionizing AI-Driven Applications and Analytics

Oracle AI Database 26AI: Revolutionizing AI-Driven Applications and Analytics

Oracle AI Database 26AI delivers groundbreaking features that unify data models, enhance developer productivity, and enable mission-critical AI at scale. Its converged architecture simplifies application development, accelerates AI analytics on open data lakehouses, and safeguards data with advanced security, transforming how enterprises innovate with AI.

PowerBI Self-Study Course & SQL Deep Dive: Truncate vs Delete

PowerBI Self-Study Course & SQL Deep Dive: Truncate vs Delete

In this exciting class, the instructor unveils a brand-new, AI-powered self-study course for PowerBI, packed with videos, documentation, screenshots, labs, and quizzes. The second half of the class provides a comprehensive SQL lesson, breaking down the critical differences between clustered and non-clustered indexes, and the definitive comparison between TRUNCATE and DELETE commands, complete with a hands-on lab.

Lifting the Veil Career Paths: SQL Training & Job Stacking Strategy Revealed

Lifting the Veil Career Paths: SQL Training & Job Stacking Strategy Revealed

This video reveals the new Lifting the Veil IT Academy platform, featuring structured career paths (Data Analyst, Data Engineer, AI Engineer, etc.) and job stacking strategies. The instructor discusses the TSQL-based curriculum, resume-building labs, industry secrets about certification cheating in India, and explains database normalization (1NF, 2NF, 3NF) plus the difference between star and snowflake schemas.

monday.com Q1 2026 Updates: Campaigns, CRM, AI & Platform Features

monday.com Q1 2026 Updates: Campaigns, CRM, AI & Platform Features

Discover the latest innovations across the monday.com platform, including AI-powered campaign creation, enhanced CRM tools like a new quotes editor and lead agent, and platform-wide updates for dashboards and admin control. This webinar recap covers key features from the Q1 2026 release designed to streamline sales, marketing, and project management workflows.

Found this summary useful?

Take it with you. One click puts it in your own LunaNotes library.

Save to LunaNotes

Start taking better notes today with LunaNotes