Thursday, December 19, 2024

oracle "shutdown immediate" not getting completed due to active application sessions.

I faced a strange issue when i fired the command
 shut immediate 
on one of our running oracle database instances. When i fired this shutdown command, it took longer time and the database is not closed. instead the command rolled backed by oracle itself with below comments.
alert log
========== 
Active process 31928 user 'oracle' program 'oracle@sitdb2', waiting for 'single-task message'

Active process 20462 user 'oracle' program 'oracle@sitdb2', waiting for 'single-task message'

Active process 14219 user 'oracle' program 'oracle@sitdb2', waiting for 'single-task message'

SHUTDOWN: Active sessions prevent database close operation
          Shutdown did not complete in 60 minutes
Instance shutdown cancelled
2024-12-20T12:41:57.103353+07:00


shutdown command what i executed is..
even though i have not killed the session, oracle automatically killed the session after 60 minutes of wait time (as updated in alert log).

SYS@XLTABP1:SQL> shut immediate;

ORA-01013: user requested cancel of current operation
SYS@XLTABP1:SQL> 

Tuesday, December 17, 2024

Wednesday, November 27, 2024

Automatic failback of an Orace RAC database Service - 19c new feature

When a rac database instance fails, a service which is running on this failed instance (configured as preferred) will fail over to the available instance to continue application connectivity. Wheh the failed instance restarted again, Unfortunately, the service did not fail back to the original (preferred) instance as soon as the instance is up. So a DBA need to relocate the service again. This has changed with Oracle RAC Database 19c with a feature called "failback -yes" option. 

Monday, November 25, 2024

Oracle's Autonomous Health Framework

AHF (Oracle Support Doc ID 2550798.1) is Oracle's current diagnostic tool which includes Orachk and TFA (Trace File Analyzer).

Thursday, November 21, 2024

How to see EXADATA machine information on OCI GEN-2 Cloud (EXACC / EXACS)?

To see EXADATA machine information of OCI cloud, follow below method. 1) Log in to EXACS/EXACC compute (db server) node with ROOT user. 2) Navigate to below location. cd /opt/oracle.SupportTools/onecommand 3) fire below command cat em.param | grep machinemodel

Minimalistic Oracle: A SQL-centric and a session-centric way to query V...

Minimalistic Oracle: A SQL-centric and a session-centric way to query V... : Version 1: SQL-Centric  This version starts from V$SQL and...