Showing posts with label ORA-27077. Show all posts
Showing posts with label ORA-27077. Show all posts

Monday 10 July 2023

ORA-12801: error signaled in parallel query server P000 ORA-01116: error in opening database file 189 ORA-01110: data file 189 ORA-27077: too many files open

 Error: During rebuild index getting the following error

 ORA-12801: error signaled in parallel query server P000
ORA-01116: error in opening database file 189
ORA-01110: data file 189: '/u02/app/oracle/oradata/bachstdb/micpdb/users04.dbf'
ORA-27077: too many files open

Changes:

There is no changes in the system .
 

Cause:

open files for oracle user is set to very low value 1024 .

Solution:


Last login: Tue Jul 11 08:07:39 2023 from 10.11.208.115
[oracle@DBBACH ~]$ ulimit -n
4096
[oracle@DBBACH ~]$

[oracle@DBBACH ~]$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 1027294
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 4096
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 2047
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
[oracle@DBBACH ~]$

[oracle@DBBACH ~]$ vim /etc/security/limits.conf

oracle              soft    nproc   2047
oracle              hard    nproc   16384
oracle              soft    nofile  4096
oracle              hard    nofile  65536
oracle              soft    stack   10240

change the value from 4096 to 65536

$su - oracle

$ ulimit -n
65536

Now please execute index rebuild command


IMPORTANT: Be aware that increasing the limit directly/randomly will have impact on system resource as well
so you need to test it whether your system is feasible for increasing the limits.