Restoration of Oracle8i tablespace and Data

Source: Internet
Author: User

When Microsoft Windows Server 2000 and Oracle8i reading is Edition 8.1.7 are in use, the client application reports a read/write error in the data window view, enters Oracle DBA Studio as SYSDBA, and finds "D: ORACLEORADATAORCLAPINFO. DBF "data file" offline ". An error occurred while trying to "Connect.

You can continue to view the "TSP_INFO" tablespace in the "tablespace" branch of DBA Studio. The tablespace is also in the "offline" status, and only one data file is available in this space.

First, you must find the corresponding cold backup or hot backup file. We can use any of the tablespace or data file recovery (RECOVER) methods. This method must ensure that the database instance is open and run D: OracleOra81BINSVRMGRL in the "SVRMGRL" Console window. the EXE executable file connects to the database instance with SYSDBA such as internal/oracle account, and completes with the file copy function of the operating system. The specific steps for the two recovery methods are as follows:

Table space restoration method

1. SEVMGR> alter tablespace tsp_info offline immediate;
2. Use the file copy function of the operating system to copy the cold or online Hot Backup APINFO. DBF to the current working directory.
3. SEVMGR> recover automatic tablespace tsp_info;
4. SEVMGR> alter tablespace tsp_info online;

Data File restoration method

1. SEVMGR> alter database datafile 'd: oracleoradataorclapinfo. dbf' offline immediate;
2. Use the file copy function of the operating system to copy the cold or online Hot Backup APINFO. DBF to the current working directory.
3. SEVMGR> recover automatic datafile 'd: oracleoradataorclapinfo. dbf ';
4. SEVMGR> alter database datafile 'd: oracleoradataorclapinfo. dbf' online;

The above two methods are non-system tablespace or data file recovery, but they are all based on the premise of a backup, so we must do a regular or daily cold backup or hot backup, prepare for future disaster recovery.

(

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.