RMAN DUMMY启动报ORA-04031问题解决一例
昨天朋友问我一个这样的问题,他现在想做一次RAC到单实例恢复数据库的操作,参考我曾经写过的文档: 《Oracle 11g R2 RAC数据库备份通过RMAN恢复到单实例数据库实现》。但他告诉我说现在单机上只安装了 Oracle软件,却没有创建任何实例。现在无法启动到nomou
昨天朋友问我一个这样的问题,他现在想做一次RAC到单实例恢复数据库的操作,参考我曾经写过的文档:
《Oracle 11g R2 RAC数据库备份通过RMAN恢复到单实例数据库实现》。但他告诉我说现在单机上只安装了
Oracle软件,却没有创建任何实例。现在无法启动到nomount模式。
我告诉他,通过RMAN就可以,RMAN连接上去之后没有任何对应的参数文件也能够启动到nomount模式,官方
称这种为“dummy”。
那我们简单看下这个特性。
(这是我12c RAC环境) 当前没有任何数据库实例启动 [oracle@12crac1 ~]$ srvctl status database -d luocs12c Instance luocs12c1 is not running on node 12crac1 Instance luocs12c2 is not running on node 12crac2 ORACLE_SID指定不存在的实例 [oracle@12crac1 ~]$ export ORACLE_SID=luocs rman连接,并且尝试启动到nomount模式: [oracle@12crac1 ~]$ rman target / Recovery Manager: Release 12.1.0.1.0 - Production on Tue Jul 2 15:22:52 2013 Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved. connected to target database (not started) RMAN> startup nomount startup failed: ORA-01078: failure in processing system parameters LRM-00109: could not open parameter file '/u01/app/oracle/product/12.1.0/dbhome_1/dbs/initluocs.ora' starting Oracle instance without parameter file for retrieval of spfile Oracle instance started Total System Global Area 1068937216 bytes Fixed Size 2296576 bytes Variable Size 293602560 bytes Database Buffers 767557632 bytes Redo Buffers 5480448 bytes RMAN> -- 可见这里能够正常启动。
然后我们通过sqlplus连接,并查看db_name,能够看到是dummy。
[oracle@12crac1 ~]$ sqlplus / as sysdba SQL*Plus: Release 12.1.0.1.0 Production on Tue Jul 2 15:23:37 2013 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production With the Partitioning, Real Application Clusters, OLAP, Advanced Analytics and Real Application Testing options idle> show parameter db_name NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ db_name string DUMMY
这个特性在恢复数据库的时候能够使用,也就是通过dummy启动到NOMOUNT,然后restore spfile等等。
朋友按照我说的去操作,但却遇到了问题,我远程看,启动的时候遇到了ORA-4031。
当时我猜测这和参数配置有关。但因为快下班了而且晚上有约,跟朋友说急的话先手动建个初始化参数文件
并启动到nomount,这个问题明天帮他看看。
今天早上上班之后,在自己的测试机上操作了下,同样遇到了问题,如下:
(11.2.0.1版本数据库)
[oracle@localhost ~]$ export ORACLE_SID=xxx [oracle@localhost ~]$ rman target / nocatalog Recovery Manager: Release 11.2.0.1.0 - Production on Tue Jul 2 08:50:58 2013 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. connected to target database (not started) RMAN> startup nomount startup failed: ORA-01078: failure in processing system parameters LRM-00109: could not open parameter file '/u01/app/oracle/product/11.2.0.1/dbhome_1/dbs/initxxx.ora' starting Oracle instance without parameter file for retrieval of spfile RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of startup command at 07/02/2013 08:51:29 RMAN-04014: startup failed: ORA-04031: unable to allocate 524304 bytes of shared memory ("shared pool","unknown object","sga heap(1,0)","row cache")
这在10201版本数据库上同样报错:
[oracle@localhost ~]$ /u01/app/oracle/product/10.2.0.1/dbhome_1/bin/rman target / Recovery Manager: Release 10.2.0.1.0 - Production on Tue Jul 2 09:03:03 2013 Copyright (c) 1982, 2005, Oracle. All rights reserved. connected to target database (not started) RMAN> startup nomount startup failed: ORA-01078: failure in processing system parameters LRM-00109: could not open parameter file '/u01/app/oracle/product/10.2.0.1/dbhome_1/dbs/initxxx.ora' starting Oracle instance without parameter file for retrival of spfile RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of startup command at 07/02/2013 09:03:11 RMAN-04014: startup failed: ORA-12853: insufficient memory for PX buffers: current 0K, max needed 1008K ORA-04031: unable to allocate 21492 bytes of shared memory ("large pool","unknown object","large pool","PX msg pool")
我就查了一下,从MOS上找到了ORA-4031 During Startup Nomount using RMAN without parameter file
(PFILE) [ID 1176443.1]
原文如下:
Applies to: Oracle Database - Enterprise Edition - Version 11.2.0.1 and later Information in this document applies to any platform. ***Checked for relevance on 08-May-2013*** Symptoms RMAN startup nomount failed with ORA-4031 Customer was testing RMAN backup/restore in Exadata. Customer firstly backup the database to tape and then remove all the datafiles, spfile, controlfiles for testing. Then during the recover, customer connected RMAN with nocatalog and try to "startup nomount", then ORA-4031 occured. ==================== Log ======================== oracle@hkfop011db01:/home/oracle $ export ORACLE_SID=TEST oracle@test011db01:/home/oracle $ rman target / nocatalog Recovery Manager: Release 11.2.0.1.0 - Production on Thu Jul 8 20:45:10 2010 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. connected to target database (not started) RMAN> startup nomount startup failed: ORA-01078: failure in processing system parameters LRM-00109: could not open parameter file '/oracle/product/11.2.0/db_1/dbs/initTEST.ora' starting Oracle instance without parameter file for retrieval of spfile RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of startup command at 07/08/2010 20:45:19 RMAN-04014: startup failed: ORA-04031: unable to allocate 111264 bytes of shared memory ("shared pool","unknown object","sga heap(1,0)","KEWS sesstat values") Cause RMAN has failed to start a dummy instance without pfile. Default values used for the dummy instance are not enough to start the instance up. This is reported in Bug 9680987 - RMAN CANNOT START DATABASE WITHOUT PARAMETER FILE Solution There are two possible solutions: 1- Create temporary init.ora file (/oracle/product/11.2.0/db_1/dbs/initTEST.ora) with the following parameters: ??? db_name= ??? large_pool_size=100m ??? shared_pool_size=250m ??? db_cache_size=10m 2- Set environment variable? ORA_RMAN_SGA_TARGET before executing rman. For example: ??? $ export ORA_RMAN_SGA_TARGET=350
这原来和BUG相关,但它说影响11201以上版本,这应该有问题,我看Bug 9680987也是11107版本:
PROBLEM: -------- Starting an instance via RMAN and referencing to a none-existent SPFILE fails with ORA-4031 rman target ********/********; Recovery Manager: Release 11.1.0.7.0 - Production on Fri Feb 5 10:29:59 2010 Copyright (c) 1982, 2007, Oracle.? All rights reserved. connected to target database (not started) RMAN> set DBID=575862064; executing command: SET DBID RMAN> startup force nomount; startup failed: ORA-1078: failure in processing system parameters ORA-1565: error in identifying file '/u02/oradata/INFR/RSTD/RSTD/spfileRSTD.ora' ORA-27037: unable to obtain file status SVR4 Error: 2: No such file or directory Additional information: 3 starting Oracle instance without parameter file for retrieval of spfile RMAN-571: =========================================================== RMAN-569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-571: =========================================================== RMAN-3002: failure of startup command at 02/05/2010 10:06:16 RMAN-4014: startup failed: ORA-4031: unable to allocate 84672 bytes of shared memory ("shared pool","unknown object","sga heap(1,0)","ksuloi: long op statistics array")
先不管了,MOS的文章里提供了解决方法,第一就是创建初始化文件、第二就是配置ORA_RMAN_SGA_TARGET环
境变量。
经过测试,问题得以解决:
[oracle@localhost ~]$ export ORACLE_SID=xxx [oracle@localhost ~]$ export ORA_RMAN_SGA_TARGET=350 [oracle@localhost ~]$ rman target / Recovery Manager: Release 11.2.0.1.0 - Production on Tue Jul 2 09:07:50 2013 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. connected to target database (not started) RMAN> startup nomount startup failed: ORA-01078: failure in processing system parameters LRM-00109: could not open parameter file '/u01/app/oracle/product/11.2.0.1/dbhome_1/dbs/initxxx.ora' starting Oracle instance without parameter file for retrieval of spfile Oracle instance started Total System Global Area 368263168 bytes Fixed Size 1336596 bytes Variable Size 117443308 bytes Database Buffers 239075328 bytes Redo Buffers 10407936 bytes
OK,到这里。
原文地址:RMAN DUMMY启动报ORA-04031问题解决一例, 感谢原作者分享。

핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

AI Hentai Generator
AI Hentai를 무료로 생성하십시오.

인기 기사

뜨거운 도구

메모장++7.3.1
사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전
중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기
강력한 PHP 통합 개발 환경

드림위버 CS6
시각적 웹 개발 도구

SublimeText3 Mac 버전
신 수준의 코드 편집 소프트웨어(SublimeText3)

뜨거운 주제











Win11 시스템에서 중국어 언어 팩을 설치할 수 없는 문제 해결 Windows 11 시스템이 출시되면서 많은 사용자들이 새로운 기능과 인터페이스를 경험하기 위해 운영 체제를 업그레이드하기 시작했습니다. 그러나 일부 사용자는 업그레이드 후 중국어 언어 팩을 설치할 수 없어 경험에 문제가 있다는 사실을 발견했습니다. 이 기사에서는 Win11 시스템이 중국어 언어 팩을 설치할 수 없는 이유에 대해 논의하고 사용자가 이 문제를 해결하는 데 도움이 되는 몇 가지 솔루션을 제공합니다. 원인 분석 먼저 Win11 시스템의 무능력을 분석해 보겠습니다.

스마트폰 기술이 계속해서 발전하면서 휴대폰은 우리 일상생활에서 점점 더 중요한 역할을 하고 있습니다. Black Shark 휴대폰은 게이밍 성능에 중점을 둔 플래그십 휴대폰으로 플레이어들에게 큰 호응을 얻고 있습니다. 그러나 때로는 Black Shark 휴대폰을 켤 수 없는 상황에 직면하기도 합니다. 이때 이 문제를 해결하기 위해 몇 가지 조치를 취해야 합니다. 다음으로 Black Shark 휴대폰이 켜지지 않는 문제를 해결하는 방법을 알려주는 5가지 팁을 공유하겠습니다. 1단계: 배터리 전원을 확인하세요. 먼저 Black Shark 휴대폰의 전원이 충분한지 확인하세요. 휴대폰 배터리가 방전되었기 때문일 수 있습니다.

소셜 미디어의 지속적인 발전으로 Xiaohongshu는 점점 더 많은 젊은이들이 자신의 삶을 공유하고 아름다운 것을 발견할 수 있는 플랫폼이 되었습니다. 많은 사용자들이 이미지 게시 시 자동 저장 문제로 고민하고 있습니다. 그렇다면 이 문제를 해결하는 방법은 무엇입니까? 1. Xiaohongshu에 게시할 때 사진이 자동으로 저장되는 문제를 해결하는 방법은 무엇입니까? 1. 캐시 지우기 먼저 Xiaohongshu의 캐시 데이터를 지워볼 수 있습니다. 단계는 다음과 같습니다. (1) Xiaohongshu를 열고 오른쪽 하단에 있는 "내" 버튼을 클릭합니다. (2) 개인 센터 페이지에서 "설정"을 찾아 클릭합니다. 캐시 지우기' 옵션을 선택하고 확인을 클릭하세요. 캐시를 삭제한 후 샤오홍슈에 다시 진입하여 사진을 올려 자동 저장 문제가 해결되었는지 확인해 보세요. 2. Xiaohongshu 버전을 업데이트하여 Xiaohongshu를 확인하세요.

컴퓨터가 드라이버를 로드할 수 없으면 장치가 제대로 작동하지 않거나 컴퓨터와 제대로 상호 작용하지 않을 수 있다는 것은 누구나 알고 있습니다. 그렇다면 이 장치에 드라이버를 로드할 수 없다는 메시지 상자가 컴퓨터에 나타날 때 문제를 어떻게 해결합니까? 아래 편집기에서는 문제를 쉽게 해결하는 두 가지 방법을 알려드립니다. 이 장치에 드라이버를 로드할 수 없습니다. 해결 방법 1. 시작 메뉴에서 "커널 격리"를 검색합니다. 2. 메모리 무결성을 끄십시오. 위의 메시지는 "메모리 무결성이 꺼졌습니다. 장치가 취약할 수 있습니다."를 클릭하고 무시하면 사용에 영향을 미치지 않습니다. 3. 문제는 기기를 다시 시작한 후 해결될 수 있습니다.

WPS는 문서, 양식, PPT 등 매우 널리 사용되는 사무용 소프트웨어이며 다중 터미널 동기화를 지원합니다. wps 편집 시 "이 개체에 대한 소스 응용 프로그램을 시작할 수 없습니다"라는 메시지가 나타나는 경우 어떻게 해결합니까? 이 문제는 링크나 파일을 열려고 하지만 해당 소스 응용 프로그램이 더 이상 존재하지 않거나 삭제되었기 때문에 발생할 수 있습니다. 1. WPS 소프트웨어 재설치: WPSOffice를 재설치하여 문제를 해결하고 최신 버전을 사용하고 있는지 확인하십시오. 2. 기본 프로그램 수동 변경: 기본 프로그램을 WPS로 변경해 보십시오. 열려는 파일을 마우스 오른쪽 버튼으로 클릭하고 "다음으로 열기"를 선택한 다음

Huawei 브라우저가 이 웹페이지에 액세스하지 못하는 문제를 해결하는 방법은 무엇입니까? Huawei 모바일 브라우저를 사용하여 특정 웹사이트에 접속할 때 접속이 금지되었다는 메시지가 표시되어 사용자가 관련 콘텐츠를 정상적으로 탐색하지 못할 수 있습니다. 이는 사용자에게 매우 불편합니다. 그렇다면 화웨이 모바일 브라우저 웹사이트 접속이 금지되는 상황이 발생하면 어떻게 해야 할까요? 아래 편집자는 Huawei 브라우저 웹사이트에 대한 접근을 금지하는 문제에 대한 해결책을 제공할 것입니다. 귀하에게 도움이 되기를 바랍니다. Huawei 브라우저 웹사이트 접근 금지에 대한 해결 방법 1. Huawei 모바일 브라우저를 연 후 아래의 점 3개 아이콘을 클릭한 후 설정을 클릭합니다. 2. 설정 입력 후 [보안 및 개인정보 보호]를 클릭하세요. 3. [세이프 브라우징] 오른쪽에 있는 스위치를 꺼서 웹사이트 접근 제한을 해제하세요. 위 내용은 Huawei 브라우저 웹사이트 액세스 금지에 대한 해결 방법입니다.

wallpaperengine이 시작되면 4가지 옵션이 있습니다. 많은 사용자는 wallpaperengine을 시작할 때 무엇을 선택해야 할지 모릅니다. 일반적으로 wallpaperengine이 시작되면 첫 번째 옵션인 32비트 시작을 선택합니다. wallpaperengine을 시작할 때 무엇을 선택해야 합니까? 답변: 32비트로 시작하세요. 1. 일반적으로 wallpaperengine이 시작되면 첫 번째 항목인 32비트 시작을 선택합니다. 2. wallpaperengine이 시작되면 4가지 옵션이 있습니다: 32비트 시작, 64비트 시작. 3. 32비트 시작: 일반적으로 권장되는 옵션이며 대부분의 사용자에게 적합합니다. 4. 64비트 시작: 시스템이 64비트를 지원하는 경우 이 옵션을 선택할 수 있습니다.

제목: Oracle 오류 3114 분석: 원인 및 해결 방법 Oracle 데이터베이스를 사용할 때 다양한 오류 코드가 자주 발생하며, 그 중 오류 3114가 비교적 일반적인 오류입니다. 이 오류는 일반적으로 데이터베이스 링크 문제와 관련되어 있으며, 이로 인해 데이터베이스에 액세스할 때 예외가 발생할 수 있습니다. 이 문서에서는 Oracle 오류 3114를 해석하고 원인을 논의하며 오류를 해결하는 구체적인 방법과 관련 코드 예제를 제공합니다. 1. 오류 3114 정의 Oracle 오류 3114 통과
