Catalog Performance with Large Number of Records in BS and/or BP (Doc ID 2205444.1)

Last updated on NOVEMBER 18, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 and later
Information in this document applies to any platform.

Symptoms

We are facing slowness while initiating the RMAN backup using catalog database. The queries with the biggest issue are related to large number of records in the catalog BS and BP tables.

Some examples are:

DELETE FROM BS
WHERE
BS.BS_KEY = :B1

DELETE FROM BP
WHERE
BP.DB_KEY = :B5 AND ((:B4 IS NULL AND BP.SITE_KEY IS NULL) OR BP.SITE_KEY =
 NVL(:B4 , BP.SITE_KEY)) AND BP.BP_RECID = :B3 AND BP.BP_STAMP = :B2 AND
 BP.BS_KEY = :B1

UPDATE BP SET STATUS = :B7 , SITE_KEY = NVL(:B6 , SITE_KEY)
WHERE
BP.DB_KEY = :B5 AND ((:B4 IS NULL AND BP.SITE_KEY IS NULL) OR BP.SITE_KEY =
 NVL(:B4 , BP.SITE_KEY)) AND BP.BP_RECID = :B3 AND BP.BP_STAMP = :B2 AND
 BP.BS_KEY = NVL(:B1 , BP.BS_KEY)

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