博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
数据库备份恢复--恢复spfile参数文件,catalog目录库
阅读量:5119 次
发布时间:2019-06-13

本文共 1524 字,大约阅读时间需要 5 分钟。

 

 

前提:

1.连接到catalog数据库

 

1.连接catalog目录

[oracle@bonda1 dbs]$ rman target / catalog rman/rman@catalog

Recovery Manager: Release 11.2.0.4.0 - Production on Sun Sep 9 09:37:45 2018

Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.

connected to target database (not started)

connected to recovery catalog database

 

2.启动到nomount状态

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/db_1/dbs/initocp.ora'

starting Oracle instance without parameter file for retrieval of spfile

Oracle instance started

Total System Global Area 1068937216 bytes

Fixed Size 2260088 bytes

Variable Size 281019272 bytes
Database Buffers 780140544 bytes
Redo Buffers 5517312 bytes

 

3.恢复参数文件

RMAN> restore spfile;

Starting restore at 09-SEP-18

allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=171 device type=DISK

channel ORA_DISK_1: starting datafile backup set restore

channel ORA_DISK_1: restoring SPFILE
output file name=/u01/app/oracle/product/11.2.0/db_1/dbs/spfileocp.ora
channel ORA_DISK_1: reading from backup piece /u01/testc-2866727024-20180909-01
channel ORA_DISK_1: piece handle=/u01/testc-2866727024-20180909-01 tag=TAG20180909T065517
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
Finished restore at 09-SEP-18

 

4.打开数据库

RMAN> startup force

Oracle instance started

database mounted
database opened

转载于:https://www.cnblogs.com/bondait/p/9615350.html

你可能感兴趣的文章
使用Xshell密钥认证机制远程登录Linux
查看>>
OpenCV之响应鼠标(三):响应鼠标信息
查看>>
Android 画图之 Matrix(一)
查看>>
List<T>列表通用过滤模块设计
查看>>
【模板】最小生成树
查看>>
设计模式之结构型模式
查看>>
poj2569
查看>>
使用pygal_maps_world.i18n中数据画各大洲地图
查看>>
sql server必知多种日期函数时间格式转换
查看>>
jQuery EasyUI 的下拉选择combobox后台动态赋值
查看>>
timeline时间轴进度“群英荟萃”
查看>>
python if else elif statement
查看>>
网络编程
查看>>
文本隐藏(图片代替文字)
查看>>
java面试题
查看>>
提高码力专题(未完待续)
查看>>
pair的例子
查看>>
前端框架性能对比
查看>>
@property中 retain 详解
查看>>
uva 387 A Puzzling Problem (回溯)
查看>>