Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • fkwoindex.sql /* Find FK without Index */ Oracle
  • perf_today.sql Oracle
  • For Search and replace unix command. Linux/Unix
  • Find all users who have DML privileges Oracle
  • get_vmstat_solaris Oracle
  • secure crt settings Linux/Unix
  • oracle fast start failover best practice Oracle
  • OEM-Commnds Oracle
  • Creating a Container Database using dbaascli Uncategorized
  • initUOCIOTTO.ora Oracle
  • Order by with ROWNUM Oracle
  • Check Oracle installed products using one command Oracle
  • How to collect CPU usage on Linux using Shell script Linux/Unix
  • Committing distributed transaction using commit force Oracle
  • tar and untar a dolder with all its subfolder. Linux/Unix

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

  • create database link syntax Oracle
  • How to calculate PROCESSES parameter Oracle
  • Renaming Oracle Instance Name Oracle
  • Gathering statistics with DBMS_STATS Oracle
  • Trace a SQL session from another session using ORADEBUG Oracle
  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (400)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (348)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • move_arch_files.ksh /* Good One */ Linux/Unix
  • Process Map for CPU and Memory for OS processes Linux/Unix
  • Renaming Oracle Instance Name Oracle
  • PLSQL Table Syntax 2 Oracle
  • Oracle Identifiers Oracle
  • good linux notes Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme