Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Committing distributed transaction using commit force Oracle
  • replacing ^M character when passing files from Windows to Unix Linux/Unix
  • TNSNAMES entries details Oracle
  • find_string_in_database.sql Oracle
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • Search and Replace vi editor command. Linux/Unix
  • TRUNCATE table and disabling referential constraints. Oracle
  • Paste command syntax Linux/Unix
  • checking connectivity between two servers Linux/Unix
  • find_open_cur.sql Find open cursorts per session Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • sess1.sql 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

  • Insert cause enqueue locks Oracle
  • tblwopk.sql /* Find Tables Without PK */ Oracle
  • All Hints for Oracle Databases Oracle
  • Proc code Oracle
  • Btee and Bitmap Plans in Oracle 9i and higher Oracle
  • ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME 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
  • Database logon trigger issue Oracle
  • Good Site for Oracle Internals Oracle
  • eplan.sql Oracle
  • Oracle 11g Environment Setup Oracle
  • kill all processes from specific user in solaris. Linux/Unix
  • perf_today.sql Oracle
  • Changing unix system clock when Oracle database is running. Oracle
  • Oracle Support Metalink ID 161818.1 Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme