My Oracle Support Banner

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

Last updated on AUGUST 08, 2023

Applies to:

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


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()”


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.