Migration from HTB 6.1 to HDR 7.0.1 fails with 'ORA-01652: unable to extend temp segment by 64 in tablespace TEMP'

(Doc ID 2328510.1)

Last updated on NOVEMBER 15, 2017

Applies to:

Oracle Healthcare Data Repository - Version 7.0.1.5 and later
Information in this document applies to any platform.

Symptoms

ISSUE CLARIFICATION
================
On HTB 6.1 upgrade to Oracle Healthcare Data Repository (HDR) 7.0.1.5 version,

When attempting to run the migration scripts that add partitioning (migration_scripts/HTB6.1_HDR7.0.1/HTB6.1_HDR7.0.1_PARTITION_KEY scripts),
the INSERT statements that join with the PAT_ACT_XREF table exceed TEMP space,
and the following error occurs:

ERROR
-----------------------


The recommendation was to set TEMP space at 1.5 times the largest table.
The ctb_core_acts table is 121 GB in size. The Oracle execution plan says that it will require 2.6 GB of TEMP space.
The TEMP space was increased until it reached 1TB of TEMP space.


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Prepare the environment for upgrade from HTB 6.1 to HDR 7.0.1.5.
2. Run the migration_scripts/HTB6.1_HDR7.0.1/HTB6.1_HDR7.0.1_PARTITION_KEY scripts.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms