Introduction to DB Recovery after Oracle is in hot backup mode shutdown abort

Source: Internet
Author: User

A few days ago, a friend of the group said DB in the beginning of backup mode after shutdown not come up, today said backup recovery test a bit, found that can be up, but the production environment or to pay attention, it is best not to do so.

sql> alter TABLESPACE users begin backup;

Tablespace altered.

sql> shutdown Immediate

Ora-01149:cannot Shutdown-file 4 has online backup set

Ora-01110:data file 4: ' E:oracleoradatatestusers01. DBF '

sql> Shutdown Abort

ORACLE instance shut down.

Sql> Startup

ORACLE instance started.

Total System Global area 1071333376 bytes

Fixed Size 1379384 bytes

Variable Size 901776328 bytes

Database buffers 163577856 bytes

Redo buffers 4599808 bytes

Database mounted.

Ora-10873:file 4 needs to is either taken out of backup mode or media

Recovered

Ora-01110:data file 4: ' E:oracleoradatatestusers01. DBF '

Sql> select status from V$instance;

STATUS

------------------------

Mounted

Sql> select file#,checkpoint_change# from V$datafile;

file# checkpoint_change#

---------- ------------------

1 6277229

2 6277229

4 6277333

5 6277229

Sql>

This article URL address: http://www.bianceng.cn/database/Oracle/201410/45567.htm

Sql> select file#,checkpoint_change# from V$datafile_header;

file# checkpoint_change#

---------- ------------------

1 6277229

2 6277229

4 6277333

5 6277229

--The state here is unknown ERROR

Sql> select * from V$backup;

file# STATUS change# Time

---------- ------------------------------------ ---------- ------------

1 UNKNOWN ERROR 6277229 16-dec-12

2 UNKNOWN ERROR 6277229 16-dec-12

4 ACTIVE 6277333 16-dec-12

5 Not ACTIVE 6277229 16-dec-12

Sql> alter TABLESPACE users end backup;

Tablespace altered.

Sql> select status from V$instance;

STATUS

------------------------

Mounted

Sql> select * from V$backup;

file# STATUS change# Time

---------- ------------------------------------ ---------- ------------

1 not ACTIVE 6277229 16-dec-12

2 Not ACTIVE 6277229 16-dec-12

4 Not ACTIVE 6277333 16-dec-12

5 Not ACTIVE 6277229 16-dec-12

Sql> select file#,checkpoint_change# from V$datafile;

file# checkpoint_change#

---------- ------------------

1 6277229

2 6277229

4 6277333

5 6277229

Sql> select file#,checkpoint_change# from V$datafile_header;

file# checkpoint_change#

---------- ------------------

1 6277229

2 6277229

4 6277333

5 6277229

sql> ALTER DATABASE open;

Database altered.

Sql>

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.