Bonjour,
Je vais reprendre un petit peu la démarche de korian.
J'ai une BDD oracle 9.0.2.4 en mode OLTP. J'ai constaté que le fichier temp n'arrêtait pas de grossir, je suis donc allé sur le forum et suis tombé sur le lien avec sort_area_size puis sur pga_agregate_target. Dans mon cas workarea_size_policy est en AUTO.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 Oracle9i Release 9.2.0.4.0 - Production PL/SQL Release 9.2.0.4.0 - Production CORE 9.2.0.3.0 Production TNS for 32-bit Windows: Version 9.2.0.4.0 - Production NLSRTL Version 9.2.0.4.0 - Production
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43 SQL> SHOW PARAMETER pga_aggregate_target; NAME TYPE VALUE ------------------------------------ ----------- --------- pga_aggregate_target big integer 50331648 bitmap_merge_area_size integer 1048576 create_bitmap_area_size integer 8388608 hash_area_size integer 2097152 sort_area_size integer 1048576 workarea_size_policy string AUTO aggregate PGA target parameter 50331648 bytes aggregate PGA auto target 4194304 bytes global memory bound 2515968 bytes total PGA inuse 73123840 bytes total PGA allocated 91985920 bytes maximum PGA allocated 104840192 bytes total freeable PGA memory 0 bytes PGA memory freed back to OS 0 bytes total PGA used for auto workareas 32768 bytes maximum PGA used for auto workareas 3888128 bytes total PGA used for manual workareas 0 bytes maximum PGA used for manual workareas 0 bytes over allocation count 6851 bytes processed 2264163328 bytes extra bytes read/written 184237056 bytes cache hit percentage 92,47 percent PGA_TARGET_FOR_ESTIMATE,PGA_TARGET_FACTOR,ADVICE_STATUS,BYTES_PROCESSED,ESTD_EXTRA_BYTES_RW,ESTD_PGA_CACHE_HIT_PERCENTAGE,ESTD_OVERALLOC_COUNT 12582912 0,25 ON 2272029696 1089937408 68 147 25165824 0,5 ON 2272029696 1077878784 68 139 37748736 0,75 ON 2272029696 1050681344 68 131 50331648 1 ON 2272029696 177567744 93 123 60397568 1,2 ON 2272029696 177567744 93 117 70463488 1,4 ON 2272029696 177567744 93 101 80530432 1,6 ON 2272029696 174934016 93 30 90596352 1,8 ON 2272029696 162827264 93 0 100663296 2 ON 2272029696 162827264 93 0 150994944 3 ON 2272029696 141462528 94 0 201326592 4 ON 2272029696 141462528 94 0 301989888 6 ON 2272029696 141462528 94 0 402653184 8 ON 2272029696 33868800 99 0
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 SQL> SELECT optimal_count, round(optimal_count*100/total, 2) optimal_perc, 2 onepass_count, round(onepass_count*100/total, 2) onepass_perc, 3 multipass_count, round(multipass_count*100/total, 2) multipass_perc 4 FROM 5 (SELECT decode(sum(total_executions), 0, 1, sum(total_executions)) total, 6 sum(OPTIMAL_EXECUTIONS) optimal_count, 7 sum(ONEPASS_EXECUTIONS) onepass_count, 8 sum(MULTIPASSES_EXECUTIONS) multipass_count 9 FROM v$sql_workarea_histogram 10 WHERE low_optimal_size > 64*1024); OPTIMAL_COUNT OPTIMAL_PERC ONEPASS_COUNT ONEPASS_PERC MULTIPASS_COUNT ------------- ------------ ------------- ------------ --------------- MULTIPASS_PERC -------------- 1282 98,24 23 1,76 0 0En fait je souhaiterais savoir si ma con figuration est ok sachant que j'ai un serveur Windows 2003 32 bits avec 4Go de RAM dont 2.2 de disponible.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 SQL> SHOW parameter sga; NAME TYPE VALUE ------------------------------------ ----------- ------------- lock_sga boolean FALSE pre_page_sga boolean FALSE sga_max_size big integer 210837176
Et également comment faire pour réduire la taille de ce fichier temporaire d'Oracle ?
Je ne sais pas si ma démarche est dans la bonne direction si ce n'est le cas pourriez vous me guider
Partager