X lock is taken when CREATE OR REPLACE SYNONYM used to replace an existing synonym. (Doc ID 2093385.1)

Last updated on JANUARY 13, 2016

Applies to:

Oracle TimesTen In-Memory Database - Version 11.2.2.8.0 to 11.2.2.8.9 [Release 11.2]
Information in this document applies to any platform.

Symptoms

User noticed that simple query on a synonym that points to a view in times ten, it creates a lock when user re-points the synonym to another view during their load process by doing CREATE OR REPLACE SYNONYM.  


Get the error:


DatabaseError: ORA-04021: TT6003: Lock request denied because of time-out
Details: LockWait[10000ms] Tran 3.45789736 (pid 25984) wants X lock on command 193881933200. But tran 258.379698 (pid 21872) has it in S (request was S). Holder SQL (select x, count(1)
from MY.TABLE_VIEW group by x) -- file "eeMisc.c", lineno 1393, procedure "sbEeInvalidateCmdsOfObj()”



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