Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • v$backup.status information Oracle
  • DBMS_STATS Metalinks Notes Oracle
  • get_aix_vmstat.ksh Oracle
  • Rownum with Order by Oracle
  • SQL_PLAN.sql for checking real execution plan Oracle
  • Convert multiple rows to single column Oracle
  • Histogram information Oracle
  • Drop all SPM baselines for SQL handle Oracle
  • fdisk -l explaination about Primary-Logical-Extended Partitions Linux/Unix
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • good note for shared pool tunnig Oracle
  • Clean up Oracle
  • oracle Dba site Oracle
  • dbinv.sql Oracle
  • How to Modify the statistics collection by MMON for AWR repository Oracle

Optimizer SORT Operations

Posted on 28-Dec-2005 By Admin No Comments on Optimizer SORT Operations

(1) Operation : SORT UNIQUE

Cause : DISTINCT Clause, and IN sub-query where subquery is independent meand no co-relation with parenst query. If for IN subquery, there is an unique index on selected columns then SORT UNIQUE can be avoided.

(2) Operation : SORT AGGREGATE

Cause : Whenever u use group functions. It does not actually involve a sort. It is used when aggregates are being computed across the whole set of rows.

(3) Operation : SORT GROUP BY

Cause : when use “Group by” clause.

(4) Operation : SORT JOIN

Cause : SORT JOIN happens during a SORT MERGE JOIN, if the rows need to be sorted by the join key. Avoid this in OLTP with USE_NL(ALIAS1, ALIAS2) hint.

(5) Operation : SORT ORDER BY

Cause : SORT ORDER BY is required when the statement specifies an ORDER BY that cannot be satisfied by one of the indexes.

Oracle, SQL scripts

Post navigation

Previous Post: Good Site for Oracle Internals
Next Post: Virtual Indexes in Oracle

Related Posts

  • How to set Processes Parameter Oracle
  • SQL_PLAN.sql for checking real execution plan Oracle
  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • load SPM baseline from cursor cache Oracle
  • SYSOPER Mystery Oracle
  • online_ts_bkup.sql Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • backspace in SQL Plus not working then..? Linux/Unix
  • Oracle Data Direct to TAPE Oracle
  • Debugging Shell FIles Linux/Unix
  • New OFA for 11g Oracle
  • Find_stale_dr.sql finding stale physical DR.. Oracle
  • how to find OS block size Oracle
  • Is It Recommended To Apply Patch Bundles When PSU Is Available? -ID 743554.1 Oracle
  • oracle 10g on linux Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme