Databases

Oracle Cache Buffers Chain Latch

A user process acquires the CACHE BUFFERS CHAINS latch to scan the System Global Area (SGA) for database cache buffers. Blocks in the buffer cache are placed on linked lists (cache buffer chains). Blocks are put on the hash chain according to their DBA (data block address) and CLASS of the block. Each hash chain … Read more Oracle Cache Buffers Chain Latch

Solving Oracle enq: TM Contention Wait Events

Recently, I was assisting one of our customers for Oracle trying to diagnose sessions waiting on the “enq: TM – contention” event. The blocked sessions were executing simple INSERT statements similar to: INSERT INTO supplier VALUES (:1, :2, :3); Waits on enq: TM – contention indicate there are unindexed foreign key constraints. Reviewing the SUPPLIER … Read more Solving Oracle enq: TM Contention Wait Events

Oracle Log Buffer Space Wait Event

The log buffer space wait event occurs when server processes write data into the log buffer faster than the LGWR process can write it out. The LGWR process begins writing entries to the online redo log file if any of the following conditions are true: The log buffer reaches the _log_io_size threshold. By default, this … Read more Oracle Log Buffer Space Wait Event

Oracle PL/SQL Lock Timer Wait Event

The PL/SQL lock timer wait event represents the amount of time a user or application has “slept” through the USER_LOCK.SLEEP or DBMS_LOCK.SLEEP procedures. The ‘idle’ event “PL/SQL lock timer” is worth watching because it can indicate issues with application response, throughput and possibly coding. The PL/SQL lock timer wait event is, as the command that issues … Read more Oracle PL/SQL Lock Timer Wait Event

How to Migrate a SQL Server Database to Azure

For many organizations who traditionally had to adopt expensive and usually relatively inflexible on-site database solutions, the increasing adoption of database-as-a-service (DBaaS) providers is a welcome alternative, as DBaaS offers a flexible, cloud-based database option through subscription services. Among DBaaS platforms, Microsoft Azure® SQL Database has become a go-to option for organizations hoping to move … Read more How to Migrate a SQL Server Database to Azure