怎么恢复损坏后的undo表空间(一)
对于这种情况进行的恢复步骤如下:
[oracle@oracle-one RHYS]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Wed Aug 14 21:12:09 2013 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to an idle instance. SQL> SQL> SQL> startup ORACLE instance started. Total System Global Area 405020672 bytes Fixed Size 2213816 bytes Variable Size 251660360 bytes Database Buffers 146800640 bytes Redo Buffers 4345856 bytes Database mounted. ORA-01157: cannot identify/lock data file 3 - see DBWR trace file ORA-01110: data file 3: '/opt/app/oracle/RHYS/undotbs01.dbf' SQL> select open_mode from v$database; OPEN_MODE -------------------- MOUNTED SQL> exit Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options [oracle@oracle-one RHYS]$ adrci ADRCI: Release 11.2.0.1.0 - Production on Wed Aug 14 21:15:48 2013 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. ADR base = "/opt/app/oracle" adrci> show homepath ADR Homes: diag/tnslsnr/oracle-one/listener diag/rdbms/rhys/RHYS adrci> set homepath DIA-48431: Must specify at least one ADR home path adrci>set homepath diag/rdbms/rhys/RHYS adrci> show alert -tail 20 2013-08-14 21:12:13.533000 +08:00 PMON started with pid=2, OS id=3650 VKTM started with pid=3, OS id=3652 at elevated priority VKTM running at (10)millisec precision with DBRM quantum (100)ms GEN0 started with pid=4, OS id=3656 DIAG started with pid=5, OS id=3658 DBRM started with pid=6, OS id=3660 PSP0 started with pid=7, OS id=3662 DIA0 started with pid=8, OS id=3664 MMAN started with pid=9, OS id=3666 DBW0 started with pid=10, OS id=3668 LGWR started with pid=11, OS id=3670 CKPT started with pid=12, OS id=3672 SMON started with pid=13, OS id=3674 RECO started with pid=14, OS id=3676 MMON started with pid=15, OS id=3678 starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'... MMNL started with pid=16, OS id=3680 starting up 1 shared server(s) ... ORACLE_BASE from environment = /opt/app/oracle ALTER DATABASE MOUNT 2013-08-14 21:12:19.026000 +08:00 Successful mount of redo thread 1, with mount id 2735871469 Database mounted in Exclusive Mode Lost write protection disabled Completed: ALTER DATABASE MOUNT ALTER DATABASE OPEN Errors in file /opt/app/oracle/diag/rdbms/rhys/RHYS/trace/RHYS_dbw0_3668.trc: ORA-01157: cannot identify/lock data file 3 - see DBWR trace file ORA-01110: data file 3: '/opt/app/oracle/RHYS/undotbs01.dbf' ORA-27046: file size is not a multiple of logical block size Additional information: 1 Errors in file /opt/app/oracle/diag/rdbms/rhys/RHYS/trace/RHYS_ora_3691.trc: ORA-01157: cannot identify/lock data file 3 - see DBWR trace file ORA-01110: data file 3: '/opt/app/oracle/RHYS/undotbs01.dbf' ORA-1157 signalled during: ALTER DATABASE OPEN... 2013-08-14 21:12:20.498000 +08:00 Checker run found 1 new persistent data failures adrci> exit [oracle@oracle-one RHYS]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Wed Aug 14 21:16:48 2013 Copyright (c) 1982, 2009, Oracle. All rights reserved.