Executez en etant connecté dba/system
Ensuite executez sous sqldeveloper
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 alter system flush shared_pool;
et par la suite pour le sql_id obtenu
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 ALTER SESSION SET NLS_SORT = BINARY_AI; ALTER SESSION SET NLS_COMP = LINGUISTIC; SELECT * FROM table_nlssort WHERE desc1 = 'aÉ'; Select sql_id from v$sql where sql_text like '%SELECT * FROM table_nlssort%' And sql_text not like '%SELECT * FROM table_nlssort%v$sql%' /
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 SQL> Select * from table(dbms_xplan.display_cursor('b3xgtxfw0azxv')) 2 / PLAN_TABLE_OUTPUT -------------------------------------------------------------------------------- SQL_ID b3xgtxfw0azxv, child number 0 ------------------------------------- SELECT * FROM table_nlssort WHERE desc1 = 'aÉ' Plan hash value: 1570464067 -------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | C -------------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | | | | 1 | TABLE ACCESS BY INDEX ROWID| TABLE_NLSSORT | 4 | 56 | |* 2 | INDEX RANGE SCAN | IX_TABLE_NLSSORT_DESC1 | 4 | | -------------------------------------------------------------------------------- Predicate Information (identified by operation id): --------------------------------------------------- 2 - access("TABLE_NLSSORT"."SYS_NC00003$"=HEXTORAW('0061006500') ) 19 rows selected SQL>
Partager