My Oracle Support Banner

Wrong Ordering With Nls_sort=german With Strings Longer Than 1000 (Doc ID 2696507.1)

Last updated on MARCH 04, 2021

Applies to:

Oracle Database - Enterprise Edition - Version 19.6.0.0.0 and later
Information in this document applies to any platform.

Goal

alter session set nls_sort=german;

select col
from (
select '10' col
from dual
union all
select '20'
from dual
union all
select '30'
from dual
)
order by lpad(col, 1001);

Session altered.

COL
---
10
30
20

3 rows selected.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.