恢復一則 alter database create datafile '' as ''
之前有控制檔案的備份,資料檔案全部丟失,online redo file和archived redo是連續的,恢復如下。
我們要用noresetlogs因為日誌檔案全都是完好的。
SQL> CREATE CONTROLFILE REUSE DATABASE "ICMNLSDB" NORESETLOGS ARCHIVELOG
2 -- SET STANDBY TO MAXIMIZE PERFORMANCE
3 MAXLOGFILES 5
4 MAXLOGMEMBERS 3
5 MAXDATAFILES 100
6 MAXINSTANCES 1
7 MAXLOGHISTORY 226
8 LOGFILE
9 GROUP 1 'D:\ORACLE\ORADATA\ICMNLSDB\REDO01.LOG' SIZE 100M,
10 GROUP 2 'D:\ORACLE\ORADATA\ICMNLSDB\REDO02.LOG' SIZE 100M,
11 GROUP 3 'D:\ORACLE\ORADATA\ICMNLSDB\REDO03.LOG' SIZE 100M
12 -- STANDBY LOGFILE
13 DATAFILE
14 'D:\ORACLE\ORADATA\ICMNLSDB\SYSTEM01.DBF',
15 'D:\ORACLE\ORADATA\ICMNLSDB\UNDOTBS01.DBF',
16 'D:\ORACLE\ORADATA\ICMNLSDB\INDX01.DBF',
17 'D:\ORACLE\ORADATA\ICMNLSDB\TOOLS01.DBF',
18 'D:\ORACLE\ORADATA\ICMNLSDB\USERS01.DBF'
19 CHARACTER SET ZHS16GBK
20 ;
控制檔案已建立
SQL> select status from v$instance;
STATUS
------------
MOUNTED
SQL> alter session set events 'immediate trace name controlf level 10';
會話已更改。
SQL> recover database;
ORA-00279: ?? 92128 (? 12/25/2007 14:26:11 ??) ???? 1 ????
ORA-00289: ??: D:\ORACLE\ARCHIVED_DEST\ARC00005.001
ORA-00280: ?? 92128 ???? 1 ???? # 5 ???
指定日誌: {
auto
ORA-00283: ??????????
ORA-01244: ????????????????????
ORA-01110: ???? 6: 'D:\ORACLE\ORADATA\ICMNLSDB\ALAN01.DBF'
ORA-01112: ???????
SQL> recover database;
ORA-00283: ??????????
ORA-01111: ???? 6 ???? - ?????????
ORA-01110: ???? 6: 'D:\ORACLE\PRODUCT\ORA92\DATABASE\UNNAMED00006'
ORA-01157: ????/?????? 6 - ??? DBWR ????
ORA-01111: ???? 6 ???? - ?????????
ORA-01110: ???? 6: 'D:\ORACLE\PRODUCT\ORA92\DATABASE\UNNAMED00006'
SQL> select name from v$datafile;
NAME
--------------------------------------------------------------------------------
D:\ORACLE\ORADATA\ICMNLSDB\SYSTEM01.DBF
D:\ORACLE\ORADATA\ICMNLSDB\UNDOTBS01.DBF
D:\ORACLE\ORADATA\ICMNLSDB\INDX01.DBF
D:\ORACLE\ORADATA\ICMNLSDB\TOOLS01.DBF
D:\ORACLE\ORADATA\ICMNLSDB\USERS01.DBF
D:\ORACLE\PRODUCT\ORA92\DATABASE\UNNAMED00006
已選擇6行。
SQL> alter database create datafile 'D:\ORACLE\PRODUCT\ORA92\DATABASE\UNNAMED00006' as
2 ' D:\ORACLE\ORADATA\ICMNLSDB\alan01.dbf' reuse;
alter database create datafile 'D:\ORACLE\PRODUCT\ORA92\DATABASE\UNNAMED00006' as
*
ERROR 位於第 1 行:
ORA-01119: ??????? ' D:\ORACLE\ORADATA\ICMNLSDB\alan01.dbf' ???
ORA-27040: skgfrcre: ???????????
OSD-04002: ????????????
O/S-Error: (OS 123) ????????????????????????????????
SQL> alter database create datafile 'D:\ORACLE\PRODUCT\ORA92\DATABASE\UNNAMED00006' as
2 ' D:\ORACLE\ORADATA\ICMNLSDB\alan01.dbf';
alter database create datafile 'D:\ORACLE\PRODUCT\ORA92\DATABASE\UNNAMED00006' as
*
ERROR 位於第 1 行:
ORA-01119: ??????? ' D:\ORACLE\ORADATA\ICMNLSDB\alan01.dbf' ???
ORA-27040: skgfrcre: ???????????
OSD-04002: ????????????
O/S-Error: (OS 123) ????????????????????????????????
SQL> alter database create datafile 'D:\ORACLE\PRODUCT\ORA92\DATABASE\UNNAMED00006' as
2 ' D:\ORACLE\ORADATA\ICMNLSDB\alan01.dbf' reuse;
alter database create datafile 'D:\ORACLE\PRODUCT\ORA92\DATABASE\UNNAMED00006' as
*
ERROR 位於第 1 行:
ORA-01119: ??????? ' D:\ORACLE\ORADATA\ICMNLSDB\alan01.dbf' ???
ORA-27040: skgfrcre: ???????????
OSD-04002: ????????????
O/S-Error: (OS 123) ????????????????????????????????
SQL> select name from v$datafile;
NAME
--------------------------------------------------------------------------------
D:\ORACLE\ORADATA\ICMNLSDB\SYSTEM01.DBF
D:\ORACLE\ORADATA\ICMNLSDB\UNDOTBS01.DBF
D:\ORACLE\ORADATA\ICMNLSDB\INDX01.DBF
D:\ORACLE\ORADATA\ICMNLSDB\TOOLS01.DBF
D:\ORACLE\ORADATA\ICMNLSDB\USERS01.DBF
D:\ORACLE\PRODUCT\ORA92\DATABASE\UNNAMED00006
已選擇6行。
SQL> alter database create datafile 'D:\ORACLE\PRODUCT\ORA92\DATABASE\UNNAMED00006'
2 as 'D:\ORACLE\ORADATA\ICMNLSDB\ALAN01.DBF';
資料庫已更改。
SQL> recover database;
完成介質恢復。
SQL> quit
從Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production中斷開
C:\Documents and Settings\Administrator>sqlplus /nolog
SQL*Plus: Release 9.2.0.8.0 - Production on 星期二 12月 25 15:05:57 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> conn / as sysdba;
已連線。
SQL> alter session set events 'immediate trace name controlf level 10';
會話已更改。
SQL> alter database open;
資料庫已更改。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12361284/viewspace-1311/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- alter database disable thread 2Databasethread
- ORA-01031 CREATE TRIGGER ON DATABASEDatabase
- ORA-279 signalled during: alter database recover logfileDatabase
- 4.3.4 使用CREATE DATABASE語句建立一個CDB:示例Database
- RMAN restore fails with ORA-01180: can not create datafile 1 (文件 ID 1265151.1)RESTAI
- 透過RMAN備份standby database成功恢復還原Database
- 4.3.3 使用CREATE DATABASE語句建立CDBDatabase
- 2.4.1 使用 CREATE DATABASE 子句建立資料庫Database資料庫
- 【PDB】Oracle 建立pdb說明(create pluggable database)OracleDatabase
- Oracle設定日誌引數-ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;OracleDatabase
- create table,show tables,describe table,DROP TABLE,ALTER TABLE ,怎麼使用?
- 2.4 使用 CREATE DATABASE 語句建立資料庫Database資料庫
- 4、MySQL建立資料庫(CREATE DATABASE語句)MySql資料庫Database
- Oracle Database 12c RAC損壞ocr和votedisk恢復實驗OracleDatabase
- 故障分析 | redis cluster 從庫無法自動恢復同步案例一則Redis
- 執行alter database open resetlogs提示ORA-00392和ORA-00312錯誤Database
- 教你一招,告警恢復時如何拿到恢復時的值?
- SqlServer 備份和恢復(一)SQLServer
- 【SQL】14 UNION 操作符、SELECT INTO 語句、INSERT INTO SELECT 語句、CREATE DATABASE 語句、CREATE TABLE 語句SQLDatabase
- 教你一招,告警恢復時如何拿到恢復時的值? 合
- [重慶思莊每日技術分享]-ORA-1142 signalled during: ALTER DATABASE END BACKUPDatabase
- ps檔案沒儲存怎麼恢復,一鍵恢復看這裡
- 一體機HDATA恢復資料
- ibbackup恢復報錯一例
- Nologging對恢復的影響(一)
- “alter database switchover to xx“過程不當導致的primary-primary 雙主問題Database
- 資料恢復:AMDU資料抽取恢復資料恢復
- postgreSQL 恢復至故障點 精準恢復SQL
- Vsan資料恢復—Vsan資料恢復案例資料恢復
- 【Vsan資料恢復】Vsan資料恢復案例資料恢復
- MySQL 非常規恢復與物理備份恢復MySql
- mysql資料庫恢復一例MySql資料庫
- MySQL入門--備份與恢復(一)MySql
- RMAN-06214: Datafile Copy
- SeSparse資料恢復方案研究及恢復方法演示資料恢復
- RAC備份恢復之Voting備份與恢復
- Sybase ASE資料庫恢復,Sybase資料恢復,資料誤刪除恢復工具READSYBDEVICE資料庫資料恢復dev
- RMAN增量恢復
- NBU恢復oracleOracle