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