Catupgrd.sql Hangs waiting for Cursor: Pin S Wait On X (Doc ID 564719.1)

Last updated on DECEMBER 06, 2016

Applies to:

Oracle Server - Enterprise Edition - Version: 10.2.0.3 and later   [Release: 10.2 and later ]
Information in this document applies to any platform.

Symptoms

Database is upgraded from 10.1.0.5 to 10.2.0.3.
Catupgrd.sql script is hanging and waiting for cursor: pin S wait on X . Problem arises consistently every run of 'catupgrd.sql' when 'cmpdbmig.sql' calls 'execute dbms_registry.gather_stats(null)' .

BUG:6084876 was filed for the Catupgrd.sql hanging.  It was closed as duplicate to Bug 5907779:

A process may hang with a self deadlock typically when executing DBMS_STATS. The hung process shows itself waiting on a "cursor: pin S wait on X" waitevent waiting for an object  that it has pinned itself.

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