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

推荐订阅源

Attack and Defense Labs
Attack and Defense Labs
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园_首页
博客园 - 司徒正美
月光博客
月光博客
Apple Machine Learning Research
Apple Machine Learning Research
T
Tailwind CSS Blog
Jina AI
Jina AI
GbyAI
GbyAI
Y
Y Combinator Blog
罗磊的独立博客
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
P
Proofpoint News Feed
Last Week in AI
Last Week in AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
量子位
雷峰网
雷峰网
博客园 - 【当耐特】
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The GitHub Blog
The GitHub Blog
S
Secure Thoughts
博客园 - 三生石上(FineUI控件)
Cyberwarzone
Cyberwarzone
NISL@THU
NISL@THU
J
Java Code Geeks
C
Cisco Blogs
人人都是产品经理
人人都是产品经理
Webroot Blog
Webroot Blog
腾讯CDC
博客园 - 叶小钗
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Troy Hunt's Blog
AI
AI
L
LangChain Blog
Know Your Adversary
Know Your Adversary
T
Tenable Blog
M
MIT News - Artificial intelligence
P
Privacy & Cybersecurity Law Blog
L
LINUX DO - 最新话题
Hugging Face - Blog
Hugging Face - Blog
F
Full Disclosure
P
Proofpoint News Feed
AWS News Blog
AWS News Blog
有赞技术团队
有赞技术团队
A
Arctic Wolf
Security Archives - TechRepublic
Security Archives - TechRepublic
S
Schneier on Security
Recent Commits to openclaw:main
Recent Commits to openclaw:main
W
WeLiveSecurity
The Cloudflare Blog

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
Oracle ORA-00202 오류 원인과 해결 방법 완벽 가이드
umzzil nng · 2026-06-01 · via DEV Community

umzzil nng

ORA-00202 control file is not available 는?

ORA-00202 에러는 Oracle 데이터베이스가 컨트롤 파일(Control File)에 접근하려 했지만, 해당 파일이 존재하지 않거나 읽을 수 없는 상태일 때 발생합니다. 컨트롤 파일은 데이터베이스의 물리적 구조(데이터파일 위치, 리두 로그 파일 위치, 체크포인트 정보 등)를 담고 있는 핵심 바이너리 파일로, 이 파일 없이는 데이터베이스 자체를 마운트하거나 오픈할 수 없습니다. 주로 데이터베이스 시작(STARTUP) 단계 또는 운영 중 특정 백그라운드 프로세스가 컨트롤 파일을 읽으려 할 때 이 에러가 발생하며, 즉각적인 조치가 필요한 심각한 에러입니다.


주요 발생 원인

1. 컨트롤 파일 물리적 손상 또는 삭제

컨트롤 파일이 OS 레벨에서 실수로 삭제되거나, 디스크 장애, 파일시스템 오류로 인해 물리적으로 손상된 경우입니다. Oracle은 초기화 파라미터 CONTROL_FILES에 명시된 경로에서 컨트롤 파일을 찾는데, 해당 파일이 존재하지 않으면 즉시 이 에러를 발생시킵니다. 특히 멀티플렉싱(Multiplexing)이 되어 있지 않은 환경에서는 단일 컨트롤 파일 손실만으로도 데이터베이스 전체가 중단됩니다.

2. 초기화 파라미터(CONTROL_FILES)의 경로 불일치

SPFILE 또는 PFILECONTROL_FILES 파라미터에 설정된 경로와 실제 컨트롤 파일이 위치한 경로가 다를 때 발생합니다. 스토리지 마이그레이션, 디스크 재구성, 파일 이동 작업 후 파라미터 파일을 업데이트하지 않은 경우가 대표적입니다. 이 경우 파일 자체는 존재하지만 Oracle이 엉뚱한 위치를 찾기 때문에 에러가 발생합니다.

3. OS 파일 권한(Permission) 문제

컨트롤 파일이 존재하더라도 Oracle 프로세스를 실행하는 OS 사용자(일반적으로 oracle)가 해당 파일에 대한 읽기/쓰기 권한이 없을 경우 발생합니다. 시스템 패치, 보안 정책 변경, 또는 다른 사용자가 파일 소유권을 변경한 이후에 갑자기 이 에러가 나타나는 패턴이 자주 목격됩니다. 단순해 보이지만 실무에서 상당히 자주 발생하는 원인입니다.


해결 방법

원인 1: 컨트롤 파일 물리적 손상 또는 삭제 — 백업에서 복구

Step 1: 현재 컨트롤 파일 경로 확인

-- NOMOUNT 상태에서도 조회 가능
SHOW PARAMETER control_files;

-- 또는 v$parameter 뷰 활용
SELECT name, value
FROM   v$parameter
WHERE  name = 'control_files';

Step 2: RMAN을 이용한 컨트롤 파일 복구

-- RMAN 접속 후 NOMOUNT 상태로 시작
RMAN TARGET /

-- 데이터베이스를 NOMOUNT 상태로 시작
STARTUP NOMOUNT;

-- 자동 백업에서 컨트롤 파일 복구
RESTORE CONTROLFILE FROM AUTOBACKUP;

-- 또는 특정 백업 세트에서 복구
RESTORE CONTROLFILE FROM '/backup/ctl_backup_20240101.bkp';

-- 컨트롤 파일 복구 후 MOUNT
ALTER DATABASE MOUNT;

-- 데이터베이스 복구 수행
RECOVER DATABASE;

-- RESETLOGS 옵션으로 오픈
ALTER DATABASE OPEN RESETLOGS;

Step 3: 멀티플렉싱된 다른 컨트롤 파일로 복사 복구 (백업 없을 때)

-- 살아있는 컨트롤 파일을 손상된 위치로 OS에서 복사 후
-- (예: /u01/oradata/control01.ctl → /u02/oradata/control02.ctl)
-- 데이터베이스 재시작

STARTUP;

# OS 레벨 복사 명령 예시
cp /u01/oradata/prod/control01.ctl /u02/oradata/prod/control02.ctl
cp /u01/oradata/prod/control01.ctl /u03/oradata/prod/control03.ctl


원인 2: CONTROL_FILES 파라미터 경로 불일치 — 파라미터 수정

Step 1: 실제 컨트롤 파일 위치 확인

# OS 레벨에서 컨트롤 파일 검색
find / -name "*.ctl" -user oracle 2>/dev/null
find /u01 /u02 /u03 -name "control*" 2>/dev/null

Step 2: PFILE을 이용한 파라미터 수정

-- 현재 SPFILE로부터 PFILE 생성
CREATE PFILE='/tmp/init_restore.ora' FROM SPFILE;

# OS에서 PFILE 편집
vi /tmp/init_restore.ora

# 아래 항목을 실제 경로로 수정
# *.control_files='/u01/oradata/prod/control01.ctl',
#                 '/u02/oradata/prod/control02.ctl'

Step 3: 수정된 PFILE로 DB 기동 후 SPFILE 재생성

-- 수정한 PFILE로 데이터베이스 시작
STARTUP PFILE='/tmp/init_restore.ora';

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

-- 이후 재시작 시에는 SPFILE로 자동 기동
SHUTDOWN IMMEDIATE;
STARTUP;

-- 파라미터 정상 반영 확인
SHOW PARAMETER control_files;


원인 3: OS 파일 권한 문제 — 권한 재설정

# 컨트롤 파일 권한 및 소유권 확인
ls -al /u01/oradata/prod/control*.ctl

# 소유권 및 권한 복구 (oracle 유저, oinstall 그룹)
chown oracle:oinstall /u01/oradata/prod/control01.ctl
chown oracle:oinstall /u02/oradata/prod/control02.ctl

# 권한 설정 (소유자 읽기/쓰기, 그룹/기타 권한 제거)
chmod 640 /u01/oradata/prod/control01.ctl
chmod 640 /u02/oradata/prod/control02.ctl

-- 권한 수정 후 데이터베이스 재시작
SHUTDOWN ABORT;
STARTUP;

-- 컨트롤 파일 상태 확인
SELECT name, status
FROM   v$controlfile;


예방 방법

1. 컨트롤 파일 멀티플렉싱(Multiplexing) 구성 및 정기 백업

컨트롤 파일은 반드시 서로 다른 디스크(또는 스토리지 경로)에 최소 3개 이상 멀티플렉싱하여 단일 장애점(SPOF)을 제거해야 합니다. 또한 RMAN 설정에서 AUTOBACKUP을 활성화하여 컨트롤 파일이 자동으로 백업되도록 구성하고, 주기적으로 복구 테스트를 수행해야 합니다.

-- RMAN 자동 백업 설정
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK
    TO '/backup/rman/cf_%F';

-- 현재 컨트롤 파일 멀티플렉싱 상태 확인
SELECT name, status, is_recovery_dest_file
FROM   v$controlfile;

-- 컨트롤 파일 수동 백업 (운영 중에도 가능)
ALTER DATABASE BACKUP CONTROLFILE TO '/backup/manual/control_bkp.ctl';

-- 텍스트 형태로 백업 (재생성 스크립트)
ALTER DATABASE BACKUP CONTROLFILE TO TRACE
    AS '/backup/manual/create_controlfile.sql' REUSE NORESETLOGS;

2. 정기적인 컨트롤 파일 상태 모니터링 자동화

컨트롤 파일의 상태와 접근 가능 여부를 정기적으로 점검하는 모니터링 스크립트를 스케줄러(cron 또는 Oracle Scheduler)에 등록하여 이상 징후를 사전에 탐지해야 합니다.

-- 컨트롤 파일 상태 점검 쿼리 (정기 실행 권장)
SELECT name,
       status,
       BLOCK_SIZE,
       FILE_SIZE_BLKS
FROM   v$controlfile
ORDER  BY name;

-- Oracle Scheduler를 이용한 주기적 점검 Job 등록 예시
BEGIN
    DBMS_SCHEDULER.CREATE_JOB(
        job_name        => 'CHECK_CONTROLFILE_STATUS',
        job_type        => 'PLSQL_BLOCK',
        job_action      => '
            DECLARE
                v_cnt NUMBER;
            BEGIN
                SELECT COUNT(*)
                INTO   v_cnt
                FROM   v$controlfile
                WHERE  status IS NOT NULL
                AND    status != ''INVALID'';

                IF v_cnt > 0 THEN
                    -- 알림 발송 로직 추가
                    DBMS_OUTPUT.PUT_LINE(''Control file issue detected!'');
                END IF;
            END;',
        start_date      => SYSTIMESTAMP,
        repeat_interval => 'FREQ=HOURLY;INTERVAL=1',
        enabled         => TRUE,
        comments        => 'Control file health check job'
    );
END;
/


관련 에러

에러 코드 설명
ORA-00200 control file could not be created — 컨트롤 파일 생성 실패, 주로 경로 오류나 권한 문제
ORA-00201 control file version X incompatible with ORACLE version Y — 컨트롤 파일 버전 불일치
ORA-00203 using the wrong control files — 잘못된 컨트롤 파일 사용, DB ID 불일치 시 발생
ORA-00205 error in identifying control file — 컨트롤 파일 식별 오류, 파일 크기/포맷 이상
ORA-00210 cannot open the specified control file — 지정된 컨트롤 파일 오픈 불가
ORA-01503 CREATE CONTROLFILE failed — 컨트롤 파일 재생성 실패 시 동반 발생

💡 실무 팁: ORA-00202는 단독으로 발생하기보다 ORA-00210, ORA-00205와 함께 alert log에 연속으로 기록되는 경우가 많습니다. 에러 발생 시 반드시 $ORACLE_BASE/diag/rdbms/<db_name>/<instance_name>/trace/alert_<SID>.log 파일을 먼저 확인하여 연관된 에러 메시지 전체를 분석하는 것이 빠른 원인 파악의 핵심입니다.