首頁 資料庫 mysql教程 RMAN DUMMY启动报ORA-04031问题解决一例

RMAN DUMMY启动报ORA-04031问题解决一例

Jun 07, 2016 pm 04:35 PM
dummy 啟動 解決 問題

昨天朋友问我一个这样的问题,他现在想做一次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,到这里。

本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

Video Face Swap

Video Face Swap

使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章

<🎜>:泡泡膠模擬器無窮大 - 如何獲取和使用皇家鑰匙
3 週前 By 尊渡假赌尊渡假赌尊渡假赌
北端:融合系統,解釋
4 週前 By 尊渡假赌尊渡假赌尊渡假赌
Mandragora:巫婆樹的耳語 - 如何解鎖抓鉤
3 週前 By 尊渡假赌尊渡假赌尊渡假赌

熱工具

記事本++7.3.1

記事本++7.3.1

好用且免費的程式碼編輯器

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用

禪工作室 13.0.1

禪工作室 13.0.1

強大的PHP整合開發環境

Dreamweaver CS6

Dreamweaver CS6

視覺化網頁開發工具

SublimeText3 Mac版

SublimeText3 Mac版

神級程式碼編輯軟體(SublimeText3)

熱門話題

Java教學
1669
14
CakePHP 教程
1428
52
Laravel 教程
1329
25
PHP教程
1273
29
C# 教程
1256
24
Win11系統無法安裝中文語言套件的解決方法 Win11系統無法安裝中文語言套件的解決方法 Mar 09, 2024 am 09:48 AM

Win11系統無法安裝中文語言包的解決方法隨著Windows11系統的推出,許多用戶開始升級他們的作業系統以體驗新的功能和介面。然而,一些用戶在升級後發現他們無法安裝中文語言包,這給他們的使用體驗帶來了困擾。在本文中,我們將探討Win11系統無法安裝中文語言套件的原因,並提供一些解決方法,幫助使用者解決這個問題。原因分析首先,讓我們來分析一下Win11系統無法

五招教你解決黑鯊手機開不了機的問題! 五招教你解決黑鯊手機開不了機的問題! Mar 24, 2024 pm 12:27 PM

隨著智慧型手機技術的不斷發展,手機在我們日常生活中扮演著越來越重要的角色。而作為一款專注於遊戲效能的旗艦手機,黑鯊手機備受玩家青睞。然而,有時候我們也會面臨到黑鯊手機開不了機的情況,這時候我們就需要採取一些措施來解決這個問題。接下來,就讓我們來分享五招教你解決黑鯊手機開不了機的問題:第一招:檢查電池電量首先,確保你的黑鯊手機有足夠的電量。可能是因為手機電量耗盡

小紅書發布自動儲存圖片怎麼解決?發布自動保存圖片在哪裡? 小紅書發布自動儲存圖片怎麼解決?發布自動保存圖片在哪裡? Mar 22, 2024 am 08:06 AM

隨著社群媒體的不斷發展,小紅書已經成為越來越多年輕人分享生活、發現美好事物的平台。許多用戶在發布圖片時遇到了自動儲存的問題,這讓他們感到十分困擾。那麼,如何解決這個問題呢?一、小紅書發布自動儲存圖片怎麼解決? 1.清除快取首先,我們可以嘗試清除小紅書的快取資料。步驟如下:(1)開啟小紅書,點選右下角的「我的」按鈕;(2)在個人中心頁面,找到「設定」並點選;(3)向下捲動,找到「清除快取」選項,點擊確認。清除快取後,重新進入小紅書,嘗試發布圖片看是否解決了自動儲存的問題。 2.更新小紅書版本確保你的小

無法在此裝置上載入驅動程式怎麼解決? (親測有效) 無法在此裝置上載入驅動程式怎麼解決? (親測有效) Mar 14, 2024 pm 09:00 PM

  大家都知道,如果電腦無法載入驅動程序,該設備可能就無法正常工作或與電腦進行正確的互動。那在電腦上彈出無法在此裝置上載入驅動程式的提示框,我們要如何解決呢?下面小編就教大家兩招輕鬆解決問題。  無法在此裝置上載入驅動程式解決方法  1、開始功能表搜尋「核心隔離」。  2、將記憶體完整性關閉,上方提示「記憶體完整性已關閉。你的裝置可能易受攻擊。」點擊後方忽略即可,不會對使用有影響。  3.重啟機器之後即可解決問題。

wps不能啟動此物件的來源應用程式怎麼辦? wps不能啟動此物件的來源應用程式怎麼辦? Mar 13, 2024 pm 09:13 PM

  wps是使用非常廣泛的辦公室軟體,包括了文件、表格和PPT,並且支援多端同步。如果在編輯wps時出現提示“無法啟動此物件的來源應用程式”,則如何解決?出現這個問題可能是因為你正在嘗試打開一個連結或文件,但是它的來源應用程式已經不存在或被刪除了。  以下是一些修復方法:  1、重新安裝WPS軟體:嘗試重裝WPSOffice來修復該問題,確保您使用的是最新版本。  2、手動更改預設程式:試著將預設程式更改為WPS,可以按右鍵單擊需要打開的文件,選擇“打開方式”,然

解讀Oracle錯誤3114:原因及解決方法 解讀Oracle錯誤3114:原因及解決方法 Mar 08, 2024 pm 03:42 PM

標題:分析Oracle錯誤3114:原因及解決方法在使用Oracle資料庫時,常常會遇到各種錯誤代碼,其中錯誤3114是比較常見的一個。此錯誤一般涉及資料庫連結的問題,可能導致存取資料庫時出現異常狀況。本文將對Oracle錯誤3114進行解讀,探討其造成的原因,並給出解決該錯誤的具體方法以及相關的程式碼範例。 1.錯誤3114的定義Oracle錯誤3114通

華為瀏覽器已停止造訪該網頁怎麼解決 華為瀏覽器已停止造訪該網頁怎麼解決 Feb 26, 2024 pm 01:28 PM

華為瀏覽器已停止造訪該網頁怎麼解決?使用華為手機瀏覽器造訪某些網站時,可能會出現禁止造訪的提示,使用戶無法正常瀏覽相關內容。這對用戶而言非常不便。那麼,當我們遇到華為手機瀏覽器網站禁止造訪的情況時,該怎麼辦呢?以下小編將為您提供華為瀏覽器網站禁止存取解決方法,希望對您有所幫助。華為瀏覽器網站禁止訪問解決方法1、打開華為手機瀏覽器後,點擊下方的三點圖標,然後點擊設定。 2.進入設定後,點選【安全與隱私】3、將【安全瀏覽】右側的開關關閉,即可解除網站存取限制。以上便是華為瀏覽器網站禁止存取解決方法的

黑鯊手機充電故障排查與解決 黑鯊手機充電故障排查與解決 Mar 22, 2024 pm 09:03 PM

黑鯊手機是一款以效能強悍、遊戲體驗優異而聞名的智慧型手機品牌,備受廣大遊戲玩家和科技愛好者的喜愛。然而,就像其他智慧型手機一樣,黑鯊手機也會出現各種問題,其中充電故障是比較常見的一種。充電故障不僅會影響手機的正常使用,還可能引發更嚴重的問題,因此及時解決充電問題十分重要。本文將從常見的黑鯊手機充電故障原因入手,介紹追蹤與解決充電問題的方法,希望能幫助讀者解決黑鯊

See all articles