How to use Rman to retrieve an oracle tablespace that was accidentally deleted

Source: Internet
Author: User
Tags count reserved oracle database backup

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.