惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
T
Threatpost
IT之家
IT之家
腾讯CDC
博客园 - 【当耐特】
博客园 - 聂微东
月光博客
月光博客
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - Franky
博客园 - 叶小钗
S
Security @ Cisco Blogs
雷峰网
雷峰网
N
News and Events Feed by Topic
Attack and Defense Labs
Attack and Defense Labs
Forbes - Security
Forbes - Security
Application and Cybersecurity Blog
Application and Cybersecurity Blog
S
SegmentFault 最新的问题
NISL@THU
NISL@THU
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
L
Lohrmann on Cybersecurity
Project Zero
Project Zero
www.infosecurity-magazine.com
www.infosecurity-magazine.com
宝玉的分享
宝玉的分享
阮一峰的网络日志
阮一峰的网络日志
The Last Watchdog
The Last Watchdog
Apple Machine Learning Research
Apple Machine Learning Research
W
WeLiveSecurity
C
Cisco Blogs
T
Tenable Blog
Schneier on Security
Schneier on Security
爱范儿
爱范儿
美团技术团队
V2EX - 技术
V2EX - 技术
V
V2EX
Google Online Security Blog
Google Online Security Blog
Last Week in AI
Last Week in AI
Security Archives - TechRepublic
Security Archives - TechRepublic
The Hacker News
The Hacker News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
S
Schneier on Security
T
The Exploit Database - CXSecurity.com
博客园_首页
H
Hacker News: Front Page
量子位
N
News | PayPal Newsroom
大猫的无限游戏
大猫的无限游戏

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
ORA-00064 오류 원인과 해결 방법 완벽 가이드
umzzil nng · 2026-05-22 · via DEV Community

umzzil nng

ORA-00064: object is too large to allocate on this OS

30년 경력 Oracle DBA의 실무 경험을 바탕으로 작성한 트러블슈팅 가이드입니다.


ORA-00064란?

ORA-00064는 Oracle 인스턴스 기동 시 또는 특정 메모리 할당 요청 시, 운영체제(OS)가 해당 객체(주로 SGA 또는 공유 메모리 세그먼트)를 위한 메모리를 할당할 수 없을 때 발생하는 에러입니다. 즉, Oracle이 init.ora 또는 spfile에 설정된 파라미터 값(예: sga_target, processes, sga_max_size 등)에 따라 메모리 자원을 요청했지만, OS 레벨의 커널 파라미터 또는 물리적 메모리 한계로 인해 할당이 거부된 상황입니다. 이 에러는 특히 새로운 Oracle 인스턴스를 처음 기동하거나, 파라미터 변경 후 재기동 시 자주 접하게 되며, DBA라면 반드시 해결 방법을 숙지해야 합니다.


주요 발생 원인

1. OS 커널의 공유 메모리 파라미터(SHMMAX/SHMALL) 설정 부족

가장 빈번한 원인입니다. Linux/Unix 환경에서 Oracle SGA는 공유 메모리(Shared Memory Segment)를 사용하는데, OS 커널 파라미터인 SHMMAX(단일 공유 메모리 세그먼트 최대 크기)나 SHMALL(전체 공유 메모리 페이지 합계)이 Oracle이 요청하는 SGA 크기보다 작게 설정되어 있을 경우 이 에러가 발생합니다. 예를 들어 sga_target=8G로 설정했는데 SHMMAX가 2GB로 제한되어 있다면, OS는 요청을 거부합니다.

2. Oracle 파라미터 값이 물리 메모리(RAM)를 초과하거나 과도하게 설정됨

sga_target, sga_max_size, memory_target, pga_aggregate_target 등의 파라미터 합산 값이 실제 서버에 장착된 물리 메모리를 초과하도록 잘못 설정된 경우에도 이 에러가 발생합니다. 특히 memory_target 또는 memory_max_target을 사용하는 AMM(Automatic Memory Management) 구성에서, /dev/shm(tmpfs) 크기가 memory_target 값보다 작은 경우 Linux 환경에서 이 에러가 빈번하게 발생합니다.

3. processes 파라미터 과도 설정으로 인한 OS 자원 한계 초과

processes 파라미터는 Oracle 인스턴스에 동시에 접속할 수 있는 최대 프로세스 수를 정의하며, 이 값이 매우 크게 설정된 경우 내부적으로 필요한 공유 메모리 구조체(예: 래치, 잠금 구조 등)의 크기도 비례하여 증가합니다. OS의 최대 프로세스 수 제한(kernel.pid_max, ulimit 등)을 초과하거나, 해당 구조체를 위한 메모리 할당이 OS 한계를 넘어설 때 ORA-00064가 발생할 수 있습니다.


해결 방법

원인 1 해결: OS 커널 공유 메모리 파라미터 조정 (Linux 기준)

현재 커널 파라미터 값을 확인하고 Oracle SGA 크기에 맞게 조정합니다.

-- 현재 SGA 관련 파라미터 확인 (Oracle 기동 가능한 경우)
SELECT name, value
FROM v$parameter
WHERE name IN ('sga_target', 'sga_max_size', 'memory_target', 'memory_max_target')
ORDER BY name;

Enter fullscreen mode Exit fullscreen mode

# OS에서 현재 공유 메모리 커널 파라미터 확인
$ ipcs -lm
$ sysctl -a | grep -i shm

# /etc/sysctl.conf 수정 예시 (SGA = 8GB 기준)
# SHMMAX: 단일 세그먼트 최대 크기 (bytes) - SGA보다 크게 설정
# SHMALL: 전체 공유 메모리 총 페이지 수 (page size = 4096 bytes 기준)

$ vi /etc/sysctl.conf

# 아래 값을 추가 또는 수정 (8GB SGA 기준)
kernel.shmmax = 10737418240    # 10GB (bytes)
kernel.shmall = 2621440        # 10GB / 4096 = 2621440 pages
kernel.shmmni = 4096

# 변경사항 즉시 적용
$ sysctl -p

Enter fullscreen mode Exit fullscreen mode

-- spfile에서 SGA 파라미터 조정 (필요 시 줄이기)
-- sqlplus / as sysdba 접속 후 수행

ALTER SYSTEM SET sga_target = 6G SCOPE=SPFILE;
ALTER SYSTEM SET sga_max_size = 6G SCOPE=SPFILE;

-- 변경 후 인스턴스 재기동
SHUTDOWN IMMEDIATE;
STARTUP;

Enter fullscreen mode Exit fullscreen mode


원인 2 해결: AMM 환경에서 /dev/shm 크기 조정 및 파라미터 수정

# /dev/shm 현재 크기 확인
$ df -h /dev/shm

# /dev/shm 크기를 memory_target 이상으로 조정 (예: 12GB)
$ mount -o remount,size=12G /dev/shm

# 영구 적용을 위해 /etc/fstab 수정
$ vi /etc/fstab
# 아래 라인 추가 또는 수정
tmpfs  /dev/shm  tmpfs  defaults,size=12G  0 0

Enter fullscreen mode Exit fullscreen mode

-- AMM 비활성화 후 ASMM으로 전환 (권장)
-- AMM(memory_target) 대신 ASMM(sga_target + pga_aggregate_target) 사용

-- pfile 생성 후 직접 편집
CREATE PFILE='/tmp/init_fix.ora' FROM SPFILE;
-- 에디터로 /tmp/init_fix.ora 열어 아래와 같이 수정
-- memory_target=0
-- memory_max_target=0
-- sga_target=6G
-- pga_aggregate_target=2G

-- 수정된 pfile로 기동
STARTUP PFILE='/tmp/init_fix.ora';

-- 정상 기동 확인 후 spfile 재생성
CREATE SPFILE FROM PFILE='/tmp/init_fix.ora';

-- AMM 완전 비활성화 확인
SELECT name, value
FROM v$parameter
WHERE name IN ('memory_target','memory_max_target','sga_target','pga_aggregate_target');

Enter fullscreen mode Exit fullscreen mode


원인 3 해결: processes 파라미터 적정값 조정

-- 현재 processes 설정 및 실제 사용 현황 확인
SELECT name, value
FROM v$parameter
WHERE name = 'processes';

-- 현재 실제 접속 프로세스 수 확인
SELECT COUNT(*) AS current_processes
FROM v$process;

-- 최대 동시 세션 이력 확인 (AWR 사용 가능 시)
SELECT snap_id,
       instance_number,
       num_lcpus,
       MAX(num_cpus) AS max_cpus
FROM dba_hist_osstat
GROUP BY snap_id, instance_number, num_lcpus;

-- 적정 수준으로 processes 파라미터 조정 예시
-- 일반적으로 (최대 동시 세션 수 * 1.2) + 여유분 으로 설정
ALTER SYSTEM SET processes = 500 SCOPE=SPFILE;

-- OS ulimit 확인 및 조정 (oracle 계정 기준)
-- /etc/security/limits.conf 설정 예시

Enter fullscreen mode Exit fullscreen mode

# oracle 계정 ulimit 확인
$ su - oracle
$ ulimit -a | grep -E "open files|max user processes"

# /etc/security/limits.conf 수정
$ vi /etc/security/limits.conf

oracle  soft  nproc   16384
oracle  hard  nproc   16384
oracle  soft  nofile  65536
oracle  hard  nofile  65536

# 적용 확인 (재로그인 후)
$ ulimit -u

Enter fullscreen mode Exit fullscreen mode


예방 방법

1. Oracle 설치 전/후 OS 커널 파라미터 사전 검증 자동화

Oracle 공식 권고안(Oracle Database Installation Guide)에 명시된 커널 파라미터 최솟값을 기반으로, 인스턴스 기동 전 사전 검증 스크립트를 작성하여 운영 표준으로 채택하는 것이 좋습니다. 아래 스크립트를 cron 또는 Ansible playbook에 통합하면, 파라미터 변경 후 재기동 시 발생할 수 있는 장애를 사전에 차단할 수 있습니다.

#!/bin/bash
# Oracle SGA/커널 파라미터 사전 검증 스크립트

SGA_TARGET_GB=8  # 설정 예정 SGA (GB)
SGA_BYTES=$((SGA_TARGET_GB * 1024 * 1024 * 1024))
PAGE_SIZE=$(getconf PAGE_SIZE)

SHMMAX=$(sysctl -n kernel.shmmax)
SHMALL=$(sysctl -n kernel.shmall)
SHMALL_BYTES=$((SHMALL * PAGE_SIZE))
SHM_DEV=$(df /dev/shm | awk 'NR==2{print $2}')  # KB 단위

echo "=== Oracle 메모리 파라미터 검증 ==="
echo "목표 SGA 크기    : ${SGA_TARGET_GB}GB (${SGA_BYTES} bytes)"
echo "현재 SHMMAX     : ${SHMMAX} bytes"
echo "현재 SHMALL     : ${SHMALL_BYTES} bytes"
echo "/dev/shm 크기   : $((SHM_DEV / 1024 / 1024))GB"

if [ "$SHMMAX" -lt "$SGA_BYTES" ]; then
    echo "[WARNING] SHMMAX가 SGA 크기보다 작습니다. 조정 필요!"
else
    echo "[OK] SHMMAX 설정 정상"
fi

if [ "$SHMALL_BYTES" -lt "$SGA_BYTES" ]; then
    echo "[WARNING] SHMALL이 SGA 크기보다 작습니다. 조정 필요!"
else
    echo "[OK] SHMALL 설정 정상"
fi

Enter fullscreen mode Exit fullscreen mode

-- Oracle 파라미터 변경 이력 관리 쿼리 (변경 전후 비교용)
SELECT name,
       value          AS current_value,
       default_value,
       description
FROM v$parameter
WHERE name IN (
    'sga_target', 'sga_max_size',
    'pga_aggregate_target',
    'memory_target', 'memory_max_target',
    'processes', 'sessions'
)
ORDER BY name;

Enter fullscreen mode Exit fullscreen mode

2. 파라미터 변경 시 반드시 SCOPE=SPFILE 단계적 적용 및 변경 관리 프로세스 수립

운영 환경에서 메모리 관련 파라미터를 변경할 때는 반드시 pfile을 사전에 백업하고, SCOPE=SPFILE로 변경한 뒤 재기동 전에 OS 설정과의 정합성을 다시 한번 검토하는 절차를 변경 관리 프로세스로 문서화해야 합니다. 특히 클라우드(OCI, AWS RDS 제외 EC2 자체 설치 등) 또는 가상화 환경에서는 물리 메모리와 할당 가능 메모리 간의 차이가 존재할 수 있으므로, free -h, vmstat, ipcs -m 명령어를 통한 실시간 메모리 현황 모니터링을 재기동 전 필수 체크리스트로 포함시키는 것을 강력히 권장합니다.

-- 변경 전 현재 spfile 내용 백업
CREATE PFILE='/backup/oracle/pfile_backup_YYYYMMDD.ora' FROM SPFILE;

-- 변경 후 검증을 위한 파라미터 확인
SELECT name, value, ismodified, description
FROM v$parameter
WHERE ismodified != 'FALSE'
ORDER BY name;

Enter fullscreen mode Exit fullscreen mode


관련 에러

에러 코드 설명
ORA-27102 out of memory - OS가 요청된 메모리를 할당할 수 없을 때 발생. ORA-00064와 함께 alert log에 연달아 나타나는 경우가 많음
ORA-27123 unable to attach to shared memory segment - 공유 메모리 세그먼트에 연결 자체가 불가능할 때 발생. SHM