Thứ Năm, 13 tháng 8, 2026

startup gặp lỗi ORA-27106: system pages not available to allocate memory




#ftp hard nproc 0
#@student - maxlogins 4
# End of file
* soft nproc 16384
* hard nproc 65536
* soft nofile 16384
* hard nofile 65536
oracle soft memlock 120795955
oracle hard memlock 120795955
[oracle@SMW-DB-134 ~]$ more /etc/security/limits.d/oracle-database-preinstall-19c.conf
oracle-database-preinstall-19c setting for nofile soft limit is 1024
#oracle soft nofile 1024oracle soft nofile 65536
oracle-database-preinstall-19c setting for nofile hard limit is 65536
oracle hard nofile 65536
oracle-database-preinstall-19c setting for nproc soft limit is 16384
refer orabug15971421 for more info.
oracle soft nproc 16384
oracle-database-preinstall-19c setting for nproc hard limit is 16384
oracle hard nproc 16384
oracle-database-preinstall-19c setting for stack soft limit is 10240KB
oracle soft stack 10240
oracle-database-preinstall-19c setting for stack hard limit is 32768KB
oracle hard stack 32768
oracle-database-preinstall-19c setting for memlock hard limit is maximum of 128GB on x86_64 or 3GB on x86 OR 90 % of RAM
#oracle hard memlock 134217728oracle hard memlock 120795955
oracle-database-preinstall-19c setting for memlock soft limit is maximum of 128GB on x86_64 or 3GB on x86 OR 90% of RAM
#oracle soft memlock 134217728oracle soft memlock 120795955
oracle-database-preinstall-19c setting for data soft limit is 'unlimited'
oracle soft data unlimited
oracle-database-preinstall-19c setting for data hard limit is 'unlimited'
oracle hard data unlimited

1.VẤN ĐỀ

Khi bật DB gặp lỗi ORA-27106: system pages not available to allocate memory

SQL> startup

ORA-27106: system pages not available to allocate memory

Additional information: 6048

Additional information: 1



[oracle\@SMW-DB-134 \~]$ more /etc/sysctl.conf

# sysctl settings are defined through files in

# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.

#

# Vendors settings live in /usr/lib/sysctl.d/.

# To override a whole file, create a new file with the same in

# /etc/sysctl.d/ and put new settings there. To override

# only specific settings, add a file with a lexically later

# name in /etc/sysctl.d/ and put new settings there.

#

# For more information, see sysctl.conf(5) and sysctl.d(5).

# oracle-database-preinstall-19c setting for fs.file-max is 6815744

fs.file-max = 6815744

# oracle-database-preinstall-19c setting for kernel.sem is '250 32000 100 128'

kernel.sem = 250 32000 100 128

# oracle-database-preinstall-19c setting for kernel.shmmni is 4096

kernel.shmmni = 4096

# oracle-database-preinstall-19c setting for kernel.shmall is 1073741824 on x86\_64

\#kernel.shmall = 1073741824
kernel.shmall = 29904077

# oracle-database-preinstall-19c setting for kernel.shmmax is 4398046511104 on x86\_64

\#kernel.shmmax = 4398046511104
kernel.shmmax = 122487098573

# oracle-database-preinstall-19c setting for kernel.panic\_on\_oops is 1 per Orabug 19212317

kernel.panic\_on\_oops = 1

# oracle-database-preinstall-19c setting for net.core.rmem\_default is 262144

net.core.rmem\_default = 262144

# oracle-database-preinstall-19c setting for net.core.rmem\_max is 4194304

net.core.rmem\_max = 2096304

# oracle-database-preinstall-19c setting for net.core.wmem\_default is 262144

net.core.wmem\_default = 262144

# oracle-database-preinstall-19c setting for net.core.wmem\_max is 1048576

net.core.wmem\_max = 2096304

# oracle-database-preinstall-19c setting for net.ipv4.conf.all.rp\_filter is 2

net.ipv4.conf.all.rp\_filter = 2

# oracle-database-preinstall-19c setting for net.ipv4.conf.default.rp\_filter is 2

net.ipv4.conf.default.rp\_filter = 2

# oracle-database-preinstall-19c setting for fs.aio-max-nr is 1048576

fs.aio-max-nr = 1048576

# oracle-database-preinstall-19c setting for net.ipv4.ip\_local\_port\_range is 9000 65500

net.ipv4.ip\_local\_port\_range = 9000 65500

\#vm.dirty\_background\_ratio = 5
\#vm.dirty\_ratio = 10
vm.swappiness=0

vm.nr\_hugepages = 36874



[oracle\@SMW-DB-134 \~]$ more /etc/security/limits.conf 

\# /etc/security/limits.conf

\#

\#This file sets the resource limits for the users logged in via PAM.

\#It does not affect resource limits of the system services.

\#

\#Also note that configuration files in /etc/security/limits.d directory,

\#which are read in alphabetical order, override the settings in this

\#file in case the domain is the same or more specific.

\#That means for example that setting a limit for wildcard domain here

\#can be overriden with a wildcard setting in a config file in the

\#subdirectory, but a user specific setting here can be overriden only

\#with a user specific setting in the subdirectory.

\#

\#Each line describes a limit for a user in the form:

\#

\#\<domain>        \<type>  \<item>  \<value>

\#

\#Where:

\#\<domain> can be:

\#        - a user name

\#        - a group name, with @group syntax

\#        - the wildcard \*, for default entry

\#        - the wildcard %, can be also used with %group syntax,

\#                 for maxlogin limit

\#

\#\<type> can have the two values:

\#        - "soft" for enforcing the soft limits

\#        - "hard" for enforcing hard limits

\#

\#\<item> can be one of the following:

\#        - core - limits the core file size (KB)

\#        - data - max data size (KB)

\#        - fsize - maximum filesize (KB)

\#        - memlock - max locked-in-memory address space (KB)

\#        - nofile - max number of open file descriptors

\#        - rss - max resident set size (KB)

\#        - stack - max stack size (KB)

\#        - cpu - max CPU time (MIN)

\#        - nproc - max number of processes

\#        - as - address space limit (KB)

\#        - maxlogins - max number of logins for this user

\#        - maxsyslogins - max number of logins on the system

\#        - priority - the priority to run user process with

\#        - locks - max number of file locks the user can hold

\#        - sigpending - max number of pending signals

\#        - msgqueue - max memory used by POSIX message queues (bytes)

\#        - nice - max nice priority allowed to raise to values: [-20, 19]

\#        - rtprio - max realtime priority

\#

\#\<domain>      \<type>  \<item>         \<value>

\#



\#\*               soft    core            0

\#\*               hard    rss             10000

\#@student        hard    nproc           20

\#@faculty        soft    nproc           20

\#@faculty        hard    nproc           50

\#ftp             hard    nproc           0

\#@student        -       maxlogins       4

\# End of file



\* soft nproc 16384

\* hard nproc 65536

\* soft nofile 16384

\* hard nofile 65536

oracle soft memlock     120795955

oracle hard memlock     120795955



[oracle\@SMW-DB-134 \~]$ more /etc/security/limits.d/oracle-database-preinstall-19c.conf

# oracle-database-preinstall-19c setting for nofile soft limit is 1024

\#oracle   soft   nofile    1024
oracle   soft   nofile    65536

# oracle-database-preinstall-19c setting for nofile hard limit is 65536

oracle   hard   nofile    65536

# oracle-database-preinstall-19c setting for nproc soft limit is 16384

# refer orabug15971421 for more info.

oracle   soft   nproc    16384

# oracle-database-preinstall-19c setting for nproc hard limit is 16384

oracle   hard   nproc    16384

# oracle-database-preinstall-19c setting for stack soft limit is 10240KB

oracle   soft   stack    10240

# oracle-database-preinstall-19c setting for stack hard limit is 32768KB

oracle   hard   stack    32768

# oracle-database-preinstall-19c setting for memlock hard limit is maximum of 128GB on x86\_64 or 3GB on x86 OR 90 % of RAM

\#oracle   hard   memlock    134217728
oracle   hard   memlock    120795955

# oracle-database-preinstall-19c setting for memlock soft limit is maximum of 128GB on x86\_64 or 3GB on x86 OR 90% of RAM

\#oracle   soft   memlock    134217728
oracle   soft   memlock    120795955

# oracle-database-preinstall-19c setting for data soft limit is 'unlimited'

oracle   soft   data    unlimited

# oracle-database-preinstall-19c setting for data hard limit is 'unlimited'

oracle   hard   data    unlimited

2.NGUYÊN NHÂN

Các số của anh rất giống:

RAM = 128GB
SGA = 72GB
vm.nr_hugepages = 36874

Vì:

72 × 1024 / 2
= 36864 pages

và anh đặt:

36874

tức chỉ cộng thêm 10 page.

Nếu alert log báo Oracle cần nhiều hơn, startup sẽ fail nếu:

USE_LARGE_PAGES=ONLY

Oracle 19c nói rõ: với ONLY, instance sẽ không startup nếu toàn bộ SGA không thể dùng Large Pages.

Đây là cơ chế tốt cho production nhưng buộc HugePages phải đủ chính xác.

3.GIẢI PHÁP

Thăng thêm 100 hugepage (100*2=200MB):
vm.nr_hugepages = 36964 
Bật lại DB
SQL > startup
=============================
TƯ VẤN: Click Here hoặc Hotline/Zalo 090.29.12.888
=============================
Website không chứa bất kỳ quảng cáo nào, mọi đóng góp để duy trì phát triển cho website (donation) xin vui lòng gửi về STK 90.2142.8888 - Ngân hàng Vietcombank Thăng Long - TRAN VAN BINH
=============================
Nếu bạn không muốn bị AI thay thế và tiết kiệm 3-5 NĂM trên con đường trở thành DBA chuyên nghiệp hay làm chủ Database thì hãy đăng ký ngay KHOÁ HỌC ORACLE DATABASE A-Z ENTERPRISE, được Coaching trực tiếp từ tôi với toàn bộ bí kíp thực chiến, thủ tục, quy trình của gần 20 năm kinh nghiệm (mà bạn sẽ KHÔNG THỂ tìm kiếm trên Internet/Google) từ đó giúp bạn dễ dàng quản trị mọi hệ thống Core tại Việt Nam và trên thế giới, đỗ OCP.
- CÁCH ĐĂNG KÝ: Gõ (.) hoặc để lại số điện thoại hoặc inbox https://m.me/tranvanbinh.vn hoặc Hotline/Zalo 090.29.12.888
- Chi tiết tham khảo:
https://bit.ly/oaz_w
=============================
2 khóa học online qua video giúp bạn nhanh chóng có những kiến thức nền tảng về Linux, Oracle, học mọi nơi, chỉ cần có Internet/4G:
- Oracle cơ bản: https://bit.ly/admin_1200
- Linux: https://bit.ly/linux_1200
=============================
KẾT NỐI VỚI CHUYÊN GIA TRẦN VĂN BÌNH:
📧 Mail: binhoracle@gmail.com
☎️ Mobile/Zalo: 0902912888
👨 Facebook: https://www.facebook.com/BinhOracleMaster
👨 Inbox Messenger: https://m.me/101036604657441 (profile)
👨 Fanpage: https://www.facebook.com/tranvanbinh.vn
👨 Inbox Fanpage: https://m.me/tranvanbinh.vn
👨👩 Group FB: https://www.facebook.com/groups/DBAVietNam
👨 Website: https://www.tranvanbinh.vn
👨 Blogger: https://tranvanbinhmaster.blogspot.com
🎬 Youtube: https://www.youtube.com/@binhguru
👨 Tiktok: https://www.tiktok.com/@binhguru
👨 Linkin: https://www.linkedin.com/in/binhoracle
👨 Twitter: https://twitter.com/binhguru
👨 Podcast: https://www.podbean.com/pu/pbblog-eskre-5f82d6
👨 Địa chỉ: Tòa nhà Sun Square - 21 Lê Đức Thọ - Phường Mỹ Đình 1 - Quận Nam Từ Liêm - TP.Hà Nội

=============================
cơ sở dữ liệu, cơ sở dữ liệu quốc gia, database, AI, trí tuệ nhân tạo, artificial intelligence, machine learning, deep learning, LLM, ChatGPT, DeepSeek, Grok, oracle tutorial, học oracle database, Tự học Oracle, Tài liệu Oracle 12c tiếng Việt, Hướng dẫn sử dụng Oracle Database, Oracle SQL cơ bản, Oracle SQL là gì, Khóa học Oracle Hà Nội, Học chứng chỉ Oracle ở đầu, Khóa học Oracle online,sql tutorial, khóa học pl/sql tutorial, học dba, học dba ở việt nam, khóa học dba, khóa học dba sql, tài liệu học dba oracle, Khóa học Oracle online, học oracle sql, học oracle ở đâu tphcm, học oracle bắt đầu từ đâu, học oracle ở hà nội, oracle database tutorial, oracle database 12c, oracle database là gì, oracle database 11g, oracle download, oracle database 19c/21c/23c/23ai, oracle dba tutorial, oracle tunning, sql tunning , oracle 12c, oracle multitenant, Container Databases (CDB), Pluggable Databases (PDB), oracle cloud, oracle security, oracle fga, audit_trail,oracle RAC, ASM, oracle dataguard, oracle goldengate, mview, oracle exadata, oracle oca, oracle ocp, oracle ocm , oracle weblogic, postgresql tutorial, mysql tutorial, mariadb tutorial, ms sql server tutorial, nosql, mongodb tutorial, oci, cloud, middleware tutorial, docker, k8s, micro service, hoc solaris tutorial, hoc linux tutorial, hoc aix tutorial, unix tutorial, securecrt, xshell, mobaxterm, putty

ĐỌC NHIỀU

Trần Văn Bình - Oracle Database Master