Check Oracle Text index status
SELECT owner,
index_name,
table_owner,
table_name,
index_type,
status,
domidx_status,
domidx_opstatus,
last_analyzed
FROM dba_indexes
WHERE owner = 'ICX'
AND index_name LIKE 'ICX_CAT_ITEMSCTX%';Expected healthy domain index status:
| Parameter | Expected |
|---|---|
| INDEX_TYPE | DOMAIN |
| STATUS | VALID |
| DOMIDX_STATUS | VALID |
| DOMIDX_OPSTATUS | VALID |
4. Check Oracle Text index size
SELECT owner,
segment_name,
segment_type,
ROUND(SUM(bytes)/1024/1024,2) size_mb
FROM dba_segments
WHERE owner = 'ICX'
AND segment_name LIKE
'DR$ICX_CAT_ITEMSCTXDESC_HDRS$%'
GROUP BY owner,
segment_name,
segment_type
ORDER BY size_mb DESC;Compare the segment sizes between PROD and OAQA.
5. Check internal table statistics
SELECT owner,
table_name,
num_rows,
blocks,
last_analyzed,
stale_stats,
stattype_locked
FROM dba_tab_statistics
WHERE owner = 'ICX'
AND
(
table_name LIKE
'DR$ICX_CAT_ITEMSCTXDESC_HDRS$%'
OR table_name =
'ICX_CAT_ITEMS_CTX_HDRS_TLP'
)
AND partition_name IS NULL
AND subpartition_name IS NULL
ORDER BY table_name;6. Check Oracle Text pending synchronization
Connect as ICX or use an appropriately privileged account.
SELECT pnd_index_owner,
pnd_index_name,
COUNT(*) pending_rows,
MIN(pnd_timestamp) oldest_pending,
MAX(pnd_timestamp) latest_pending
FROM ctxsys.ctx_pending
WHERE pnd_index_owner = 'ICX'
AND pnd_index_name =
'ICX_CAT_ITEMSCTXDESC_HDRS'
GROUP BY pnd_index_owner,
pnd_index_name;A large pending queue could indicate that index synchronization is not keeping up with catalog changes.
7. Check Oracle Text index errors
SELECT err_timestamp,
err_index_name,
err_textkey,
err_text
FROM ctxsys.ctx_index_errors
WHERE err_index_owner = 'ICX'
AND err_index_name =
'ICX_CAT_ITEMSCTXDESC_HDRS'
ORDER BY err_timestamp DESC;8. Check Oracle Text maintenance concurrent programs
SELECT r.request_id,
p.user_concurrent_program_name,
r.actual_start_date,
r.actual_completion_date,
r.phase_code,
r.status_code,
ROUND(
(NVL(r.actual_completion_date,SYSDATE)
- r.actual_start_date)*1440,2
) duration_min
FROM apps.fnd_concurrent_requests r
JOIN apps.fnd_concurrent_programs_tl p
ON r.concurrent_program_id =
p.concurrent_program_id
AND r.program_application_id =
p.application_id
WHERE p.language = 'US'
AND
(
UPPER(p.user_concurrent_program_name)
LIKE '%CATALOG%'
OR UPPER(p.user_concurrent_program_name)
LIKE '%INDEX%OPTIM%'
OR UPPER(p.user_concurrent_program_name)
LIKE '%INDEX%SYNC%'
)
AND r.request_date > SYSDATE - 30
ORDER BY r.request_id DESC;
No comments:
Post a Comment