-- ============================================================================
-- MARS-835-PREHOOK Rollback Script 90: Drop A_PARALLEL_EXPORT_CHUNKS Table
-- ============================================================================
-- Purpose: Remove A_PARALLEL_EXPORT_CHUNKS table created for parallel processing
-- Schema: CT_MRDS
-- Object: TABLE A_PARALLEL_EXPORT_CHUNKS
-- ============================================================================

SET SERVEROUTPUT ON SIZE UNLIMITED

PROMPT
PROMPT ============================================================================
PROMPT MARS-835-PREHOOK: Dropping A_PARALLEL_EXPORT_CHUNKS Table
PROMPT ============================================================================
PROMPT Table: CT_MRDS.A_PARALLEL_EXPORT_CHUNKS
PROMPT Purpose: Remove parallel export chunk processing table
PROMPT ============================================================================

-- Drop table if exists
BEGIN
   EXECUTE IMMEDIATE 'DROP TABLE CT_MRDS.A_PARALLEL_EXPORT_CHUNKS';
   DBMS_OUTPUT.PUT_LINE('SUCCESS: A_PARALLEL_EXPORT_CHUNKS table dropped');
EXCEPTION
   WHEN OTHERS THEN
      IF SQLCODE = -942 THEN -- ORA-00942: table or view does not exist
         DBMS_OUTPUT.PUT_LINE('INFO: A_PARALLEL_EXPORT_CHUNKS table does not exist - nothing to drop');
      ELSE
         DBMS_OUTPUT.PUT_LINE('ERROR: Failed to drop A_PARALLEL_EXPORT_CHUNKS table');
         RAISE;
      END IF;
END;
/

PROMPT
PROMPT ============================================================================
PROMPT A_PARALLEL_EXPORT_CHUNKS table rollback completed successfully
PROMPT ============================================================================
PROMPT
