Problem solve Get help with specific problems with your technologies, process and projects.

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...

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.

Dig Deeper on Oracle database backup and recovery

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close