Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the three offline modes of tablespace OFFLINE?

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

In this issue, the editor will bring you what are the three options of tablespace OFFLINE. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.

Tablespace OFFLINE

Tablespace offline is divided into normal offline, temporary offline and immediate offline, which are discussed below.

1) OFFLINE NORMAL

This is the default option, normally when the tablespace is offline, when ONLINE is re-executed, Oracle will update the tablespace data header SCN with the appropriate SCN to enable the normal ONLINE tablespace without the need to perform a media recovery.

ALTER TABLESPACE XXX OFFLINE [NORMAL]

2) OFFLINE TEMPORARY

If you specify the TEMPORARY,Oracle database to perform a checkpoint for all online data files in the tablespace, there is no guarantee that all files can be synchronized. When the data file for executing this statement is offline, you need to perform a media recovery before re-ONLINE the tablespace.

ALTER TABLESPACE XXX OFFLINE TEMPORARY

3) OFFLINE IMMEDIATE

Performing this operation means that the tablespace is taken offline immediately, and the media recovery must be performed the next time the tablespace ONLINE is made, and the media recovery is successful to make the tablespace ONLINE:

ALTER TABLESPACE XXX OFFLINE IMMEDIATE

For offline data files, be sure to perform the media recovery process the next time you ONLINE, and if the media recovery is successful, you can successfully ONLINE. For a normal tablespace offline, the next time you ONLINE the tablespace, you do not need to perform a media recovery. For OFFLINE TEMPORARY tablespaces, if there are already data files offline before going offline, you also need to perform a media recovery of some data files before the tablespaces go online. For IMMEDIATE OFFLINE tablespaces, media recovery needs to be performed on all data files in the tablespace before the tablespace comes online. For offline data files and tablespaces, the SCN number of the data file will not be verified when the instance is restarted.

These are the three options of tablespace OFFLINE shared by Xiaobian. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report