Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • True Session Wait Activity in Oracle 10g Verygood Oracle
  • Facts about SCN and Rollback Segment Oracle
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • Database logon trigger issue Oracle
  • scp with ssh2 Linux/Unix
  • 556976.1 Oracle Clusterware: Components installed Oracle
  • CPU speed on solaris Linux/Unix
  • Jai Shree Ram Oracle
  • OEM-Commnds Oracle
  • proper cpu stats Linux/Unix
  • Oracle 11g Training on 29JAN1010 Oracle
  • Handling LOB data in Oracle Oracle
  • Rman Notes -1 Oracle
  • How to remove blank lines using vi editor command 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

  • reset Sequence Oracle
  • column level grant syntax Oracle
  • Export Oracle data and Compress at same time Oracle
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • Error Handling in Proc Oracle
  • How to Make Trace Files Created by Oracle Readable by All Users ? 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
  • Oracle 10g Wait Model Oracle
  • More info about /proc folder and its relation with processes. Linux/Unix
  • Query to Generate aggregate on every 30 mins. Oracle
  • Recovering lost SYS password Oracle
  • Small sample shell program Linux/Unix
  • send email from unix mailx with attachment. Linux/Unix
  • How to sort list of files on basis of their sizes. Linux/Unix
  • Kernel Parameters for Solaris Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme