Product: Oracle RDBMS
Version: 10.2 - 19.2
OS: Linux
While helping others to troubleshoot Linux systemd in auto startup Oracle RDBMS, encountering following failure when trying to login as SYSTEM (or any application DB user) in the Oracle server OS itself:
However, if shutdown, then startup Oracle daemon manually, SYSTEM and other application DB user can login without issue.
Diagnostic:
1. Checks the OS username and group name for $ORACLE_HOME/bin/oracle
$ ls -ld $ORACLE_HOME/bin/oracle
-rwxr-x---. 1 oracle dba 323762270 Mar 24 19:34 /dbf/ora12.1/bin/oracle
6. For example, systemd script could have following wrong entry:
Group=oracle
7. Changes above to the OS user group as shown in #1, which is "dba"
Advance Diagnostic
Oracle daemons allocate "shared memory segment," and "semaphore arrays" in Linux (UNIX in general), which has OS user group which leads to this login issue:
1. Checks "shared memory segment" and "semaphore arrays" allocated to specific ORACLE_SID
IPC Resources for ORACLE_SID "RMANCAT" :
Maximum shared memory segment size (shmmax): 18446744073692774399 bytes
Total system shared memory (shmall): 18446744004990070784 bytes
Total system shared memory count (shmmni): 4096
*********************** Dumping ipcs output ********************
------ Message Queues --------
key msqid owner perms used-bytes messages
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 655360 oracle 640 4096 0
0x00000000 688129 oracle 640 4096 0
0x00000000 720898 oracle 640 4096 0
0xd787ced8 753667 oracle 640 16384 70
------ Semaphore Arrays --------
key semid owner perms nsems
0x720acc58 98304 oracle 640 125
0x720acc59 131073 oracle 640 125
0x720acc5a 163842 oracle 640 125
0x720acc5b 196611 oracle 640 125
0x720acc5c 229380 oracle 640 125
0x720acc5d 262149 oracle 640 125
0x720acc5e 294918 oracle 640 125
0x720acc5f 327687 oracle 640 125
0x720acc60 360456 oracle 640 125
*********************** End of ipcs command dump **************
***************** Dumping Resource Limits(s/h) *****************
core file size 0 KB/0 KB
data seg size UNLIMITED/UNLIMITED
scheduling priority 0 KB/0 KB
file size UNLIMITED/UNLIMITED
pending signals 30 KB/30 KB
max locked memory UNLIMITED/UNLIMITED
max memory size UNLIMITED/UNLIMITED
open files 64 KB/64 KB
POSIX message queues 800 KB/800 KB
real-time priority 0 KB/0 KB
stack size 10 MB/10 MB
cpu time UNLIMITED/UNLIMITED
max user processes 16 KB/16 KB
virtual memory UNLIMITED/UNLIMITED
file locks UNLIMITED/UNLIMITED
***************** End of Resource Limits Dump ******************
Total /dev/shm size: 14524801024 bytes, used: 2097008640 bytes
Shared Memory:
ID KEY
688129 0x00000000
720898 0x00000000
655360 0x00000000
753667 0xd787ced8
Semaphores:
ID KEY
98304 0x720acc58
131073 0x720acc59
163842 0x720acc5a
196611 0x720acc5b
229380 0x720acc5c
262149 0x720acc5d
294918 0x720acc5e
327687 0x720acc5f
360456 0x720acc60
Oracle Instance alive for sid "RMANCAT"
No comments:
Post a Comment