91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

ADG 備庫數據文件損壞處理

發布時間:2020-03-12 13:54:40 來源:網絡 閱讀:778 作者:roidba 欄目:關系型數據庫

一、描述
單實例ADG數據庫,備庫system01.dbf文件損壞,需要重新恢復數據文件,保證主庫庫數據一致。

二、處理過程

1、數據庫啟動到mount狀態
Recovery Manager: Release 11.2.0.4.0 - Production on Thu Dec 12 20:42:35 2019

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

connected to target database (not started)

RMAN> startup mount;

Oracle instance started
database mounted

Total System Global Area 3089920000 bytes

Fixed Size 2257232 bytes
Variable Size 654315184 bytes
Database Buffers 2415919104 bytes
Redo Buffers 17428480 bytes

2、使用RMAN恢復
$rman target sys/xxxx@devdb auxiliary sys/xxx@devdbdg

Recovery Manager: Release 11.2.0.4.0 - Production on Thu Dec 12 20:43:53 2019

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

connected to target database: DEVDB (DBID=931475173)
connected to auxiliary database: DEVDB (DBID=931475173, not open)

RMAN> run {
allocate channel d1 type disk ;
allocate channel d2 type disk ;
backup as copy reuse
datafile 1 auxiliary format '/oradata/devdbdg/system01.dbf';

}2> 3> 4> 5> 6>

using target database control file instead of recovery catalog
allocated channel: d1
channel d1: SID=1145 device type=DISK

allocated channel: d2
channel d2: SID=1715 device type=DISK

Starting backup at 12-DEC-2019 20:45:23
channel d1: starting datafile copy
input datafile file number=00001 name=/oradata/devdb/system01.dbf

output file name=/oradata/devdbdg/system01.dbf tag=TAG20191212T204523
channel d1: datafile copy complete, elapsed time: 00:00:15
Finished backup at 12-DEC-2019 20:45:38
released channel: d1
released channel: d2

RMAN>
RMAN> exit

Recovery Manager complete.
<devdb01:devdb:/oradata/devdbdg>$sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Thu Dec 12 20:45:50 2019

Copyright (c) 1982, 2013, Oracle. All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> alter database recover managed standby database using current logfile disconnect from session;

Database altered.

SQL> alter database recover managed standby database cancel;

Database altered.

SQL> alter database open;

Database altered.

SQL> alter database recover managed standby database using current logfile disconnect from session;

Database altered.

SQL> *select from t;**

ID

 1
 2
 3
 4

SQL>
SQL> select process,status from v$managed_standby;

PROCESS STATUS


ARCH CONNECTED
ARCH CONNECTED
ARCH CLOSING
ARCH CONNECTED
RFS IDLE
RFS IDLE
RFS IDLE
MRP0 APPLYING_LOG

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

满城县| 贵定县| 社旗县| 闸北区| 六盘水市| 城步| 新和县| 马关县| 上思县| 寻乌县| 麻阳| 慈利县| 元氏县| 泸定县| 霍林郭勒市| 闻喜县| 炎陵县| 平果县| 哈密市| 昌平区| 铅山县| 化州市| 大埔县| 沂水县| 浮梁县| 遂平县| 南安市| 固镇县| 霍州市| 灵台县| 当阳市| 新巴尔虎左旗| 新建县| 调兵山市| 城固县| 遂溪县| 西乌珠穆沁旗| 阿拉善盟| 来宾市| 石家庄市| 渝北区|