Solved

cannot drop

Posted on 2013-05-27
4
447 Views
Last Modified: 2013-06-02
SQL> alter database begin backup;

Database altered.

SQL> drop tablespace app including contents and datafiles;
drop tablespace app including contents and datafiles
*
ERROR at line 1:
ORA-01150: cannot prevent writes - file 6 has online backup set
ORA-01110: data file 6: '/u01/app/oracle/oradata/orcl/app.dbf'


SQL>

Why I cannot drop the app tablespace?
0
Comment
Question by:walkerdba
4 Comments
 
LVL 34

Expert Comment

by:Seth Simmons
ID: 39200247
you can't drop it while the backup is set

alter tablespace app end backup;

try to drop again
0
 
LVL 12

Accepted Solution

by:
praveencpk earned 500 total points
ID: 39200299
As stated in previous post you cann't drop the tablespace when its in backup mode, so first end the backup and if you want to drop the tablespace then take it offline then try to drop the tablespace.

SQL>Alter database end backup;
SQL>Alter tablespace app offline;
SQL>drop tablespace app including contents and datafiles;
0
 
LVL 10

Expert Comment

by:HuaMinChen
ID: 39200712
You cannot start DB backup and then drop tablespace.
0
 

Author Closing Comment

by:walkerdba
ID: 39214444
ok
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now