Proactive DB Tuning Methodology
Proactive DB Tuning Methodology
Proactive DB Tuning Methodology
12 ADDM Findings
13 Advisors
14 AWR Warehouse
15 AWR bi-weekly Monitoring report
16 Oracle best practises document for perf tuning
17 Top memory consumers: SGA/PGA
18 Disco
Detailed Ownership
- -
- -
List of _BKP tables Chandra
Chandra to come up with the list of current Redo log switches details for all 4 production streams.
We will review in the meeting and take a call accordingly Chandra
Identify the list of all such programs Chandra
With each quarter patches we apply, check for dependent performance related patches Chandra
We would like to schedule various advisors at table level, session level, object levels, etc
Please test the process of scheduling one advisor for each category in AZUL instance Nikhil
Building AWR warehouse for long term repository of AWR data Nikhil
Share top:5 events & high level analysis with Team for all 4 production streams Ravi
Find out what documents Oracle has for perf tuning best practises Ravi
Collect data through standard query Ravi
After discussion with Aditya, the candidates for Index monitoring tables/schemas will be
provided. But, by our internal meeting date, please have the procedure to monitor unused
indexes thouroughly tested in non-production instance(s) Shekhar
Shekar to check for Meta link note and check those standards with our Ebiz databases.
Any deviations from standard parameters will be discussed in the meeting Shekhar
Nothing in place now. But Sridhar to keep this in the list of his ongoing activities. Sridhar
XX: Have inventory of these tables. Schema, Table name, rows, owner, purge schedules Sridhar
Environment
We can't do partitioning at this point in 4 production streams.
We can't do partitioning at this point in 4 production streams.
For All 4 production streams
We will schedule this for All production streams, but for our internal
meeting first test this on AZUL instance. Make sure you document
the process.
We intially start with non-prod instances, then move to prod
For All 4 production streams
For All 4 production streams
For All 4 production streams
GSI Prod
AZUL
jobs, custom tables, custom views. Inside discover, find out schedules that are not needed!
Again its kind of mini project. Since 2 years hardly any action. Ownership: Dave, Paulo, backup:Narayana
Identify list of most actively accessed big tables. We will take a call
Hot Tables (Big) accordingly in the meeting to reorg/purge/archive
Identify list of most actively accessed big Indexes. We will take a call
Hot Indexes (Big) accordingly in the meeting to reorg/purge/archive
Durga
Identify logical reads candidates & consider options to keep in KEEP pool Durga
Identify logical reads candidates & consider options to keep in KEEP pool Durga
Can't keep them in memory. Purging/Partitioning/Reorg Durga
Can't keep them in memory. Purging/Partitioning/Reorg Durga
All new candidates will be identified Shekhar
All new candidates will be identified Shekhar
For important application schemas & Tables with heavy write operations Shekhar
Chandra
Share top:5 events & analysis with team for all 4 production streams Ravi
Nothing in place now. Sridhar
Recommendation: 4 per hour Chandra
Need to look from both Oracle & Ebiz way! Shekhar
Profile options, concurrent programs, etc … Chandra
Find out what documents Oracle has for perf tuning best practises Ravi
Nikhil
Top:10 objects . Setup a meeting to review the collected data & Schedule in prod Shekhar
XX: Have inventory of these tables. Schema, Table name, rows, owner, purge schedules
EUL schema:
Frequency Environment
Monthly All production streams
Monthly All production streams Top:25 heavily used objects
Init.ora on linux is straight forward. little tricky AIX! 2 things in AIX at env level.
1.00299
5.3493
0.44727
0.50293
0.42969
2.87207
0.41895
0.52057
3.03741
2.83154
1.38202
1.50201
0.22559
0.37762
1.32477
5.3493
2.12976
3.03741
2.83154
1.31299
1.19031
1.00299
1.38202
1.50201
0.62976
90.06476
4.92822
1.39142
0.74286
1.22894
0.14081
0.04675
0.17261
0.0705
0.14099
0.12036
0.0014
0.00012
0.00012
0.00012
0.00299
0.00012
0.00024
0.00977
0.00012
90.06476
11.79395
0.58179
5.3493
4.92822
0.22925
0.11719
0.146
0.17419
0.37012
1.50201
1.38202
0.19788
0.90216
6.39075
Data Collected on: 28/May/2015 2:00 P.M
Instance Owner Segment_name Type Logical Reads Physical Reads
FOGO XXDBD XXDBD_BR_CS_BATCHCALL_HEADER TABLE 16138727584 0
FOGO APPLSYS FND_PROFILE_OPTION_VALUES TABLE 8383272240 0
FOGO JTF JTF_CAL_EXCEPTIONS_B TABLE 7925013600 0
FOGO APPLSYS FND_USER TABLE 5686370384 0
FOGO JTF JTF_TASK_TYPES_TL TABLE 5513990384 0
FOGO JTF JTF_RS_GROUPS_TL TABLE 2926167024 0
FOGO JTF JTF_RS_GROUPS_B TABLE 1963308176 0
FOGO XXDBD XXDBD_CS_MFS_MSG TABLE 1816356720 0
FOGO XXDBD XXDBD_BR_GET_EVENTS TABLE 1573817856 31
FOGO JTF JTF_RS_RESOURCE_EXTNS_TL TABLE 997621136 63
FOGO XXDBD XXDBD_SERVICE_BOM TABLE 854593808 0
FOGO CSI CSI_SYSTEMS_TL TABLE 798988032 0
FOGO JTF JTF_RS_ROLE_RELATIONS TABLE 794858352 2
FOGO APPLSYS FND_FLEX_VALUES TABLE 751366624 0
FOGO JTF JTF_OBJECTS_B TABLE 735055392 17
FOGO APPLSYS FND_RESPONSIBILITY_TL TABLE 607656688 0
FOGO APPLSYS FND_CONCURRENT_REQUESTS TABLE 569637216 148715
FOGO JTF JTF_TASK_STATUSES_TL TABLE 546388416 0
FOGO JTF JTF_RS_GROUP_MEMBERS TABLE 387151168 136
FOGO APPLSYS FND_PROFILE_OPTIONS TABLE 361515808 0
FOGO HR HR_ORGANIZATION_INFORMATION TABLE 266016768 0
FOGO APPLSYS FND_TERRITORIES TABLE 213714240 0
FOGO APPLSYS FND_FLEX_VALUES_TL TABLE 151225360 0
FOGO AR HZ_STYLE_FORMATS_B TABLE 133872368 0
FOGO APPLSYS FND_APPLICATION TABLE 130333120 0
FOGO XXDBD XXDBD_CS_MFS_INT_LBR_TIME_TAB TABLE 105537680 1
FOGO OKC OKC_K_HEADERS_B TABLE 86848672 0
FOGO HR PER_ADDRESSES TABLE 84513808 1472
FOGO JTF JTF_TASK_STATUSES_B TABLE 81494112 0
FOGO HR HR_ALL_ORGANIZATION_UNITS TABLE 78508976 0
FOGO JTF JTF_HOOKS_DATA TABLE 75707136 0
FOGO APPLSYS FND_CONCURRENT_QUEUES TABLE 73666288 0
FOGO APPLSYS FND_CONCURRENT_PROCESSES TABLE 72836432 228
FOGO APPLSYS FND_RESPONSIBILITY TABLE 67372544 1
FOGO HR HR_ALL_ORGANIZATION_UNITS_TL TABLE 55332112 0
FOGO OKS OKS_COVERAGE_TIMEZONES TABLE 50919632 0
FOGO APPLSYS WF_PROCESS_ACTIVITIES TABLE 44387840 0
FOGO APPLSYS FND_FILE_TEMP TABLE 44041728 3
FOGO APPLSYS FND_FLEX_VALUE_SETS TABLE 40307632 0
FOGO INV MTL_CATEGORIES_B TABLE 34832576 0
FOGO INV MTL_PARAMETERS TABLE 34375200 0
FOGO APPLSYS FND_PRODUCT_GROUPS TABLE 30540576 0
FOGO OKS OKS_COVERAGE_TIMES TABLE 30165680 0
FOGO OKC OKC_K_LINES_B TABLE 28568160 0
FOGO APPLSYS FND_LANGUAGES TABLE 26820784 0
FOGO XXDBD XXDBD_MACHINE_CLASSES TABLE 25706544 0
FOGO XXDBD XXDBD_BR_REFUSAL_REQUEST TABLE 25611808 0
FOGO HR HR_LOCATIONS_ALL TABLE 23745312 1
FOGO XXDBD XXDBD_BR_DECAL_CTIS_OUT TABLE 23241632 1
FOGO HR PER_PHONES TABLE 22803984 3
Total Reads Object Size (MB)
16138727584 33.671875
8383272240 5
7925013600 3.96875
5686370384 10
5513990384 0.125
2926167024 0.125
1963308176 0.25
1816356720 18.453125
1573817887 48.171875
997621199 0.609375
854593808 33.40625
798988032 0.8515625
794858354 2.984375
751366624 8
735055409 0.1796875
607656688 2
569785931 22.875
546388416 0.0546875
387151304 1.96875
361515808 3
266016768 0.6875
213714240 0.0390625
151225360 16
133872368 0.03125
130333120 0.0390625
105537681 13.34375
86848672 0.2421875
84515280 25.8125
81494112 0.0390625
78508976 0.4375
75707136 0.0625
73666288 0.0390625
72836660 1.9375
67372545 0.8125
55332112 0.4375
50919632 0.3046875
44387840 4.984375
44041731 2.9453125
40307632 3
34832576 8.5
34375200 0.0859375
30540576 0.03125
30165680 0.7421875
28568160 2.984375
26820784 0.03125
25706544 0.03125
25611808 1.90625
23745313 3.984375
23241633 28.484375
22803987 8.984375
Data Collected on: 28/May/2015 2:00 P.M
Instance Owner Segment_name Type Number of Rows Object Size (MB)
FOGO APPLSYS FND_CONCURRENT_REQUESTS TABLE 29897 22.875
FOGO APPLSYS FND_CONCURRENT_PROGRAMS TABLE 10029 2
FOGO APPLSYS FND_APPLICATION_TL TABLE 2186 0.1875
FOGO APPLSYS FND_CONCURRENT_PROGRAMS_TL TABLE 64649 9
FOGO APPLSYS FND_APPLICATION TABLE 286 0.0390625
FOGO CS CS_TRANSACTION_TYPES_TL TABLE 401 0.0625
FOGO CS CS_INCIDENT_TYPES_B TABLE 27 0.03125
FOGO CS CS_TXN_BILLING_TYPES TABLE 217 0.0390625
FOGO CS CS_TRANSACTION_TYPES_B TABLE 101 0.0390625
FOGO CS CS_BUSINESS_PROCESSES TABLE 17 0.03125
FOGO CSI CSI_IB_TXN_TYPES TABLE 52 0.03125
FOGO CSI CSI_SOURCE_IB_TYPES TABLE 142 0.03125
FOGO JTF JTF_TASK_STATUSES_TL TABLE 323 0.0546875
FOGO JTF JTF_TASK_STATUSES_B TABLE 75 0.0390625
FOGO JTF JTF_OBJECTS_TL TABLE 3794 0.5
FOGO JTF JTF_OBJECTS_B TABLE 471 0.1796875
FOGO XXDBD XXDBD_CS_USER_BRANCH_AGG TABLE 17249 1.90625
FOGO APPLSYS FND_USER TABLE 27753 10
FOGO JTF JTF_TASK_TYPES_TL TABLE 464 0.125
FOGO JTF JTF_TASK_PRIORITIES_TL TABLE 86 0.03125
FOGO OKC OKC_K_LINES_B TABLE 11596 2.984375
FOGO JTF JTF_RS_GROUPS_B TABLE 984 0.25
FOGO XXDBD XXDBD_BR_MASS_OPERATIONS TABLE 147983 25.53125
FOGO OKC OKC_K_HEADERS_B TABLE 571 0.2421875
FOGO JTF JTF_RS_GROUPS_TL TABLE 985 0.125
FOGO OKC OKC_K_ITEMS TABLE 9327 1.9765625
FOGO HR HR_ALL_ORGANIZATION_UNITS TABLE 2533 0.4375
FOGO JTF JTF_RS_RESOURCE_EXTNS TABLE 5172 2.984375
FOGO HR HR_ORGANIZATION_INFORMATION TABLE 4756 0.6875
FOGO AR HZ_CUST_ACCOUNTS TABLE 14328 4
FOGO HR PER_PHONES TABLE 56212 8.984375
FOGO XXDBD XXDBD_BR_CS_BATCHCALL_HEADER TABLE 86777 33.671875
FOGO HR HR_ALL_ORGANIZATION_UNITS_TL TABLE 4967 0.4375
FOGO DISCEUL_UEUL5_BR_RUNS TABLE 26614 1.71875
FOGO DISCEUL_UEUL5_BATCH_REPORTS TABLE 513 0.171875
FOGO JTF JTF_RS_RESOURCE_EXTNS_TL TABLE 5182 0.609375
FOGO CSI CSI_SYSTEMS_TL TABLE 5395 0.8515625
FOGO APPLSYS FND_FLEX_VALUE_SETS TABLE 15122 3
FOGO CS CS_INCIDENT_STATUSES_TL TABLE 113 0.03125
FOGO APPLSYS FND_FLEX_VALUES TABLE 87186 8
FOGO XXDBD XXDBD_OKS_PRICE_LIST TABLE 5376 0.9765625
FOGO CS CS_INCIDENT_TYPES_TL TABLE 69 0.03125
FOGO APPLSYS FND_FLEX_VALUES_TL TABLE 198618 16
FOGO JTF JTF_RS_ROLE_RELATIONS TABLE 26899 2.984375
FOGO JTF JTF_RS_GROUP_MEMBERS TABLE 17376 1.96875
FOGO DISCEUL_UEUL5_EUL_USERS TABLE 14729 1.5390625
FOGO APPLSYS FND_TERRITORIES_TL TABLE 2672 0.3203125
FOGO JTF JTF_TASK_TYPES_B TABLE 145 0.0625
FOGO JTF JTF_RS_ROLES_B TABLE 172 0.046875
FOGO XXDBD XXDBD_BR_CS_EXTERNAL_LOCATION TABLE 3579 0.6171875
Plan Count Total Physical Reads
100055 148714
100027 0
99871 0
99867 0
99369 0
46488 0
44236 0
44168 0
44161 0
44156 0
21748 0
21741 0
10668 0
9971 0
8571 0
7669 17
7651 0
6747 0
5540 0
4675 0
3163 0
2414 0
2175 0
1663 0
1662 0
1571 0
1138 0
1120 0
1106 0
981 0
887 3
880 0
835 0
819 0
813 0
744 60
556 0
548 0
535 0
509 0
503 0
334 0
329 0
313 2
296 136
292 0
279 0
267 0
249 0
249 0
Data Collected on: 28/May/2015 2:00 P.M
Distinct statistics
SELECT UPPER(t2.instance_name), t.owner, t.index_name, 'INDEX', lr.value "Logical Reads", pr.value "Physical Reads", lr.value
total_reads,
sum(bytes)/1024/1024 MB
FROM
(SELECT owner,object_name,value FROM v$segment_statistics WHERE statistic_name='logical reads') lr,
(SELECT owner,object_name,value FROM v$segment_statistics WHERE statistic_name='physical reads') pr,
dba_indexes t, v$instance t2, dba_segments t3
where lr.owner=pr.owner AND lr.object_name=pr.object_name
AND lr.owner=t.owner AND lr.object_name=t.table_name
and LR.owner not LIKE '%SYS%'
GROUP BY t2.instance_name, t.owner, t.index_name, 'INDEX', lr.value, pr.value, lr.value+pr.value
ORDER BY 5 DESC;
SELECT UPPER(T4.instance_name), T2.OWNER, T2.TABLE_NAME, 'TABLE', T2.NUM_ROWS, T2.BLOCKS*8/1024 TABLE_SIZE_M
SQL_PLAN_COUNT,
T3.value total_physical_reads
FROM
(select rownum SNO, object_name, count_object
FROM
(
select object_name, count(object_name) count_object from v$sql_plan
where object_name IS NOT NULL AND object_type = 'TABLE'
-- operation = 'TABLE ACCESS'
and object_owner not in ('SYS', 'SYSTEM')
group by object_name
order by 2 desc
) )T1, dba_tables T2 , v$segment_statistics T3, v$instance T4
WHERE
T1.object_name = T2.table_name AND
T1.object_name = T3.object_name AND
T3.statistic_name in ('physical reads')
-- AND T2.OWNER = 'APPLSYS'
AND T2.BLOCKS*8/1024 <= 50
-- ORDER BY 7 desc
-- ORDER BY T1.SNO
ORDER BY 7 desc
;