OBIEE Marketing Segmentation Failing With Deadlock Error For Cache Tables In Teradata (Doc ID 2070734.1)

Last updated on OCTOBER 26, 2015

Applies to:

Siebel Marketing - Version 8.1.1.11.9 [IP2013] and later
Information in this document applies to any platform.

Symptoms

On : 8.1.1.11.9 [IP2013] version, Siebel Marketing / OBIEE 11.1.1.7

OBIEE Marketing Segmentation failing with deadlock error for cache tables in teradata

Frequently deadlock errors in Teradata are being observed. According to Doc ID 473790.1 > section "Enabling Marketing Server to use Temp Table Caching" one needs to add the Marketing tags in instanceconfig.xml

However, Presentation services are failing with unable to detect these Marketing tags.

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

Deadlock Error:

-----------------------
Error in executing cursor for WorkNode (Id:27)
Odbc driver returned an error (SQLExecDirectW).
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 16001] ODBC error state: 40001 code: -2631 message: [Teradata][ODBC Teradata Driver][Teradata Database] Transaction ABORTed due to deadlock. . Total row processed:1. Failed: 1. Failed row(s): 0, [nQSError: 16022] A bulkInsert statement has failed after successfully inserted 0 rows but failed in batch 1. Maximum batch size 256. Current batch size 256 (HY000)
SQL Issued: SET VARIABLE DISABLE_CACHE_HIT=1 , DISABLE_CACHE_SEED=1 :POPULATE M_C_INDIVIDUAL MODE (APPEND TABLE CONNECTION POOL "Siebel Data Warehouse"."Data Warehouse Write") AS SELECT 'd8067134-0d22-1000-8567-0ac7cc490000', ID FROM ( SELECT ID AS ID FROM (( SELECT "Individual Cache"."Qualified Id" AS ID FROM "Marketing Cache and Saved Results" WHERE "Individual Cache"."GUID" = 'd8067132-0d22-1000-8567-0ac7cc490000' ) EXCEPT ( SELECT "Individual Cache"."Qualified Id" AS ID FROM "Marketing Cache and Saved Results" WHERE "Individual Cache"."GUID" = 'd8067133-0d22-1000-8567-0ac7cc490000' )) DT WHERE PERCENTILE(RAND()) <= 1 ) DT

State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 16001] ODBC error state: 40001 code: -2631 message: [Teradata][ODBC Teradata Driver][Teradata Database] Transaction ABORTed due to deadlock. . Total row processed:1. Failed: 1. Failed row(s): 0, [nQSError: 16022] A bulkInsert statement has failed after successfully inserted 0 rows but failed in batch 1. Maximum batch size 256. Current batch size 256 (HY000)

PS startup service error:

-----------------------

Invalid settings in config file: Bad config instance '/appadmin/oracle/product/fmw/bi_instances/bi_instance1/config/OracleBIPresentationServicesComponent/coreapplication_obips1/instanceconfig.xml

Unknown element 'MktgCacheUseTempTable'
Unknown element 'MktgCacheTempCreateSQL'
Unknown element 'MktgCacheTempInsertSQL'

Unknown element 'MktgCacheTempDropSQL'
Element 'MktgCacheUseTempTable' is not valid for content model: 'All(DataValidation,EnableNodeProfiling,FileEncoding,FileSystem,FunctionShipFixedRandom,FunctionShipPctRandom,DisableGenerateSQLOptimization,JobsLogDetailLevel,JobsLogSize,JobsWaitSeconds,PreviewPath,PreviewSize,QualifyNumericData,UseBOM,WrapColumnHeaders,CacheTempCreateSQL,CacheTempDropSQL,CacheTempInsertSQL,CacheTempTableNamePrefix,CacheUseTempTable,ContentServer,Clustering)'^M


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Setup OBI in Teradata DB

2. Follow document 473790.1 to enable TEMP cache tables

3. Run Counts


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