GNU/Linux >> Linux Esercitazione >  >> Linux

SLES 12:errore di avvio del database con ORA-27300 ORA-27301 ORA-27303 durante l'avvio dell'utilizzo di Srvctl

Il problema

12.1 Errore del database RAC durante l'avvio tramite srvctl, registro degli avvisi che mostra l'avvio del database e ulteriormente scende:

alert_ORCL2.log all'interno di [oracle base]/diag/rdbms/[nome database]/[nome SID]/trace:

Fri Nov 03 15:06:25 2017
Adjusting the default value of parameter parallel_max_servers
from 960 to 486 due to the value of parameter processes (600)
Starting ORACLE instance (normal) (OS id: 19684)
.
.
Fri Nov 03 15:10:45 2017
Process startup failed, error stack:
Fri Nov 03 15:10:45 2017
Errors in file /u01/app/oracle/diag/rdbms/ORCL/ORCL2/trace/ORCL2_psp0_19706.trc:
ORA-27300: OS system dependent operation:fork failed with status: 11
ORA-27301: OS failure message: Resource temporarily unavailable
ORA-27302: failure occurred at: skgpspawn3
Fri Nov 03 15:10:46 2017
Shutting down instance (abort)
License high water mark = 2
Fri Nov 03 15:10:46 2017
USER (ospid: 22067): terminating the instance
Fri Nov 03 15:10:47 2017
Instance terminated by USER, pid = 22067
Fri Nov 03 15:10:47 2017
Instance shutdown complete
Errors in file //u01/app/oracle/diag/rdbms/ORCL/ORCL2/trace/ORCL2_mmon_19853.trc (incident=14681):
ORA-00600: internal error code, arguments: [KSLGES_3], [], [], [], [], [], [], [], [], [], [], []
ORA-27300: OS system dependent operation:semop failed with status: 43
ORA-27301: OS failure message: Identifier removed
ORA-27302: failure occurred at: sskgpwwait1
Incident details in: /u01/app/oracle/diag/rdbms/ORCL/ORCL2/incident/incdir_14681/ORCL2_mmon_19853_i14681.trc
Use ADRCI or Support Workbench to package the incident.
See Note 411.1 at My Oracle Support for error and packaging details.

ORCL2_psp0_19706.trc:

*** 2017-11-03 15:10:44.989
Process startup failed, error stack:
ORA-27300: OS system dependent operation:fork failed with status: 11
ORA-27301: OS failure message: Resource temporarily unavailable
ORA-27302: failure occurred at: skgpspawn3

*** 2017-11-03 15:10:45.993
Process startup failed, error stack:
ORA-27300: OS system dependent operation:fork failed with status: 11
ORA-27301: OS failure message: Resource temporarily unavailable
ORA-27302: failure occurred at: skgpspawn3

ORCL2_mmon_19853.trc:

*** 2017-11-03 15:09:57.908
***KELR Apply Log: unable to schedule MMON Slave, error 3

*** 2017-11-03 15:10:47.847
Incident 14681 created, dump file: /u01/app/oracle/diag/rdbms/ORCL/ORCL2/incident/incdir_14681/ORCL2_mmon_19853_i14681.trc
ORA-00600: internal error code, arguments: [KSLGES_3], [], [], [], [], [], [], [], [], [], [], []
ORA-27300: OS system dependent operation:semop failed with status: 43
ORA-27301: OS failure message: Identifier removed
ORA-27302: failure occurred at: sskgpwwait1

KEBM: MMON action policy violation. 'PQ: Adjust Slave Pool' viol=0; err=600
error 0 detected in background process
kgxgnsdr: clssgsshdereg: warning: return status 26 (-558242808 )
OPIRIP: Uncaught error 447. Error stack:
ORA-00447: fatal error in background process
ORA-00600: internal error code, arguments: [KSLGES_3], [], [], [], [], [], [], [], [], [], [], []
ORA-27300: OS system dependent operation:semop failed with status: 43
ORA-27301: OS failure message: Identifier removed
ORA-27302: failure occurred at: sskgpwwait1
kgxgnsdr: clssgsshdereg: warning: return status 26 (-813323584 )

Errore successivo riportato nei registri del sistema operativo

messaggi:

2017-11-03T15:10:11.690393+01:00 rachost1 Oracle Audit[7888]: LENGTH : '200' ACTION :[52] 'ALTER DATABASE MOUNT /* db agent *//* {2:39656:2} */' DATABASE USER:[1] '/' PRIVILEGE :[6] 'SYSDBA' CLIENT USER:[6] 'oracle' CLIENT TERMINAL:[0] '' STATUS:[1] '0' DBID:[10] '2949004148'
2017-11-03T15:10:47.700094+01:00 rachost1 kernel: [ 173.788859] cgroup: fork rejected by pids controller in /system.slice/ohasd.service <<<<<<<<<<<<<<<<<<<<<

Database in grado di avviarsi con sqlplus.

La soluzione

Ciò è dovuto al controller cgroup PID introdotto con SUSE12.

Dalla sezione "Support for PIDs cgroup Controller" su https://www.suse.com/releasenotes/x86_64/SUSE-SLES/12-SP2/#fate-320358

"Per controllare l'impostazione predefinita TasksMax=per i servizi e gli ambiti in esecuzione sul sistema, utilizzare l'impostazione system.conf DefaultTasksMax=. Questa impostazione predefinita è 512, il che significa che i servizi che non sono configurati in modo esplicito altrimenti saranno in grado di creare solo 512 processi o thread al massimo.

Per i servizi con thread o processi pesanti, potrebbe essere necessario impostare un valore TasksMax più alto. In questi casi, impostare TasksMax direttamente nei file di unità specifici. Scegli un valore numerico o addirittura infinito."

Da SLES12 in poi, viene utilizzato systemd invece di initd e il server OHASD può aprire solo un massimo di 512 attività. Configura il valore di DefaultTasksMax a 65535 nel file /etc/systemd/system.conf o impostare correttamente il valore TasksMax per il servizio ohasd systemd.

Ad esempio:

# cat /etc/systemd/system/ohasd.service.d/lunar.conf
[Service]
TasksMax=16384
# systemctl status ohasd
● ohasd.service - LSB: Start and Stop Oracle High Availability Service
Loaded: loaded (/etc/init.d/ohasd; bad; vendor preset: disabled)
Drop-In: /etc/systemd/system/ohasd.service.d
└─lunar.conf
Active: active (exited) since Mon 2017-11-13 14:29:23 CET; 3h 5min ago
Docs: man:systemd-sysv-generator(8)
Process: 4876 ExecStart=/etc/init.d/ohasd start (code=exited, status=0/SUCCESS)
Tasks: 612 (limit: 16384) <<<<<<=================== here was the limit with 512


Linux
  1. "docker morto ma sottosistema bloccato" - errore durante l'avvio di docker

  2. Come scrivo stderr su un file mentre uso tee con una pipe?

  3. Usare i colori con printf

  4. Usando e in Bash mentre il ciclo

  5. usando awk con le condizioni del valore della colonna

Come creare un database in MySQL con MySQL Workbench

Usare l'a capo automatico con Mc?

Errore SMTP durante l'utilizzo di PHPMailer con l'autenticazione di Gmail

Pianifica i lavori in Linux con il comando 'at'

"errore durante il caricamento delle librerie condivise:libjli.so:impossibile aprire il file oggetto condiviso:nessun file o directory del genere" Errore 'java -version' all'avvio

Come riempire un file con FF usando dd?