Find tablespaces that are in backup mode
This statement can be used by DBAs to instantly find out all the tablespaces in backup mode.
We are in a SAP environment and when we use brtools for backup, the backup fails if one or more of the tablespaces...
Continue Reading This Article
Enjoy this article as well as all of our content, including E-Guides, news, tips and more.
is already in backup mode. The following script can be used to determine if any of the tablespaces is in backup mode and then you can use the 'alter tablespace end backup' command to bring those tablespaces out of backup mode. The script can also be used as a check after the backup is done to make sure that no tablespaces are in backup mode. It has been tested on Oracle 8.1.7.0.
select distinct tablespace_name from dba_data_files a, v$backup b where a.file_id = b.file# and b.status = 'ACTIVE';
For More Information
- Feedback: E-mail the editor with your thoughts about this tip.
- More tips: Hundreds of free Oracle tips and scripts.
- Tip contest: Have an Oracle tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize -- submit your tip today!
- Ask the Experts: Our SQL, database design, Oracle, SQL Server, DB2, metadata, and data warehousing gurus are waiting to answer your toughest questions.
- Forums: Ask your technical Oracle questions--or help out your peers by answering them--in our active forums.
- Best Web Links: Oracle tips, tutorials, and scripts from around the Web.