First, the case description
After using Rman to back up the database, because the table space was accidentally deleted manually, it is now necessary to use the incomplete recovery to retrieve the tablespaces that were mistakenly deleted.
Ii. Environmental Preparedness
[ORACLE@ECP-UC-DB1 ~]$ Sqlplus/as SYSDBA
Sql*plus:release 10.2.0.4.0-production on Mon Nov 14 12:35:14 2011
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition release 10.2.0.4.0-64bit Production
With the partitioning, OLAP, Data Mining and real application testing options
Sql> select name from V$tablespace;
NAME
------------------------------
SYSTEM
UNDOTBS1
Sysaux
USERS
Xff
ODU
TEMP
7 rows selected.
Sql> select name from V$datafile;
NAME
---------------------------------------------------------------
/opt/oracle/oradata/test/system01.dbf
/opt/oracle/oradata/test/undotbs01.dbf
/opt/oracle/oradata/test/sysaux01.dbf
/opt/oracle/oradata/test/users01.dbf
/opt/oracle/oradata/test/user32g.dbf
/opt/oracle/oradata/test/xifenfei01.dbf
/opt/oracle/oradata/test/user02.dbf
/opt/oracle/oradata/test/odu02.dbf
/opt/oracle/oradata/test/odu01.dbf
/opt/oracle/oradata/test/odu03.dbf
/opt/oracle/oradata/test/xifenfei02.dbf
Rows selected.
sql> Create tablespace Xifenfei datafile
2 '/opt/oracle/oradata/test/t_xifenfei01.dbf ' size 10m;
Tablespace created.
Sql> CREATE TABLE Chf.t_xifenfei tablespace Xifenfei
2 AS
3 SELECT * from Dba_objects;
Table created.
Sql> Select COUNT (*) from Chf.t_xifenfei;
COUNT (*)
----------
50476
Sql> exit
Disconnected from Oracle Database 10g Enterprise Edition release 10.2.0.4.0-64bit Production
With the partitioning, OLAP, Data Mining and real application testing options
[ORACLE@ECP-UC-DB1 ~]$ $ORACLE _home/bin/rman target/
Recovery manager:release 10.2.0.4.0-production on Mon Nov 14 12:43:35 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to target Database:test (dbid=2056006906)
Rman> list Backup summary;
Using target database control file instead of recovery catalog
Rman> Backup Database format '/tmp/test_full_%u ';
Starting backup at 2011-11-14 12:44:32