The
NLS_COMP
parameter controls how Oracle Database performs string comparison operations in SQL statements.
This parameter works in conjunction with
NLS_SORT
to determine whether character comparisons use binary values or linguistic rules.
The NLS_COMP parameter affects all comparison operations including WHERE clauses, JOIN conditions, DISTINCT operations, GROUP BY clauses, and ORDER BY statements.
When set to BINARY, Oracle ignores the NLS_SORT setting and performs direct binary comparisons.
When set to LINGUISTIC, Oracle uses the collation rules specified by the NLS_SORT parameter to perform linguistic appropriate comparisons.
For detailed explanation of NLS_SORT parameter values, see
NLS_SORT Parameter
For indexing strategies with this parameter, see
NLSSORT Function Indexes