-- Verify CT_MRDS.A_PROCESS_LOG structure after MARS-1096
-- CRITICAL: Use ALL_* views when installing as ADMIN user
SET PAGESIZE 100
SET LINESIZE 200
COLUMN column_name FORMAT A20
COLUMN data_type FORMAT A20

PROMPT Column length check:
SELECT column_name, data_type, data_length
FROM all_tab_columns
WHERE owner = 'CT_MRDS' 
  AND table_name = 'A_PROCESS_LOG' 
  AND column_name = 'LOG_MESSAGE';

PROMPT Partitioning check:
SELECT partitioning_type, interval
FROM all_part_tables
WHERE owner = 'CT_MRDS'
  AND table_name = 'A_PROCESS_LOG';

PROMPT Sample partitions:
SELECT partition_name, high_value, num_rows
FROM all_tab_partitions
WHERE table_owner = 'CT_MRDS'
  AND table_name = 'A_PROCESS_LOG'
ORDER BY partition_position
FETCH FIRST 10 ROWS ONLY;

PROMPT Total record count:
SELECT COUNT(*) AS total_records FROM CT_MRDS.A_PROCESS_LOG;

PROMPT Check for backup table (should be dropped after verification):
SELECT table_name FROM all_tables 
WHERE owner = 'CT_MRDS' 
  AND table_name LIKE 'A_PROCESS_LOG%';
