Tag: Oracle

  • Scaling up Cardinality Estimates in 12.1.0.2

    Scaling up Cardinality Estimates in 12.1.0.2

    Scaling up Cardinality Estimates in 12.1.0.2 Topic: Counting the number of distinct values (NDV) for a table column has important applications in the database domain, ranging from query optimization to optimizing reports for large data warehouses. However the legacy SQL method of using SELECT COUNT (DISTINCT <COL>) can be very slow. This is a well

    Explore →

  • How to verify if archived log deletion policy is correctly applied?

    How to verify if archived log deletion policy is correctly applied?

    How to verify if archived log deletion policy is correctly applied? What is the best way to handle archived logs deletion in environments with standby and downstream capture databases? One could use own scripts, to delete for example all backed up archived logs, older than n days. But better way, will be to set RMAN

    Explore →

  • How to speed up external C functions via Java

    How to speed up external C functions via Java

    How to speed up external C functions via Java Are you calling external C libraries from inside your Oracle SQL? Especially if those calls are made on a row-by-row basis you might see a significant performance benefit from calling your external C libraries via Java! Introduction: As part of my work as an Openlab fellow

    Explore →

  • Oracle Optimizer Investigated with Flame Graphs

    Oracle Optimizer Investigated with Flame Graphs

    Oracle Optimizer Investigated with Flame Graphs Topic: This post is about investigating the Oracle Optimizer using stack sampling and flame graphs. We will see how the complexity of the Optimizer has increased over the years and in particular with the introduction of cost-based optimization and more recently with 12c adaptive optimization. Context and goal: Stack

    Explore →

  • Flame Graphs for Oracle

    Flame Graphs for Oracle

    Flame Graphs for Oracle Topic: This post is a hands-on introduction to using on-CPU Flame Graphs for investigating Oracle workloads. This technique is about collecting and visualizing sampled stack trace data to analyze and troubleshoot Oracle processes at the OS level (in particular applied to Linux). Motivations: The techniques and tools described here can be

    Explore →

  • A Closer Look at CALIBRATE_IO

    A Closer Look at CALIBRATE_IO

    A Closer Look at CALIBRATE_IO Topic: This blog entry is about investigating Oracle’s DBMS_RESOURCE_MANAGER.CALIBRATE_IO Spoiler: For quantitative analysis of storage performance and in particular for measuring random read I/O in Oracle, I’d rather advise the use tools that allow generating test workloads in a controlled manner, in a way that can be understood and measured

    Explore →