Friday, June 15, 2018

ORA Error : 

ORA-01012: not logged on startup failed



Problem:
Now while starting the DB instance.
$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Tue Sep 25 07:23:45 2015
Copyright (c) 1982, 2011, Oracle.  All rights reserved.
Connected.
SQL> startup
ORA-01012: not logged on
SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup
ORA-01012: not logged on
So whenever we forcefully shut down the DB this issue may occurs
“SYSRESV”  shows a shared memory segment for a non-existing instance

Solution:
At OS level remove the orphaned shared memory segment using this utility
$ sysresv
IPC Resources for ORACLE_SID "<SID>" :
Shared Memory:
ID             KEY
15              0x00000000
16              0x00000000
17              0x0edc1410
Semaphores:
ID              KEY
19              0xb6aad8c8
Oracle Instance alive for sid "<SID>"
$ ipcrm -m 15
$ ipcrm -m 16
$ ipcrm -m 17