Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • PLSQL Table Syntax 1 Oracle
  • Convert multiple rows to single column Oracle
  • Check SQL Server edition SQL Server
  • replace alphabets using sed Linux/Unix
  • Important Script Method for tuning Oracle
  • Roles and Stored Procs II Oracle
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • Monitor and Trace Unix processes using truss Linux/Unix
  • Move WordPress site from one hosting service to other. PHP/MYSQL/Wordpress
  • Free conference number from http://www.freeconference.com Oracle
  • Another export with Query Oracle
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • Oracle Support Metalink ID 161818.1 Oracle
  • Oracle Material from OTN Oracle
  • eplan9i.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

  • Goldengate document from Porus Oracle
  • Temporary tablespace explaination Oracle
  • Kill a session dynanically using execute immediate Oracle
  • Oracle 10g Installation/Applying Patches Tips Oracle
  • Find sort details from Db find_sort.sql Oracle
  • Export Oracle data and Compress at same time Oracle

Leave a Reply Cancel reply

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

Categories

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

Recent Posts

  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • avail.sh ( find filesystem spae usage) Linux/Unix
  • restarting network in linux Linux/Unix
  • shr1.sql for MTS or Shared server configuration Oracle
  • SAN Linux/Unix
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle
  • Mutating Table Error while using database trigger Oracle
  • To see how much time or progress of long transaction Oracle
  • Clean up Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme