Solved

cannot drop

Posted on 2013-05-27
4
442 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.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Add 0 to end of Number 21 72
Oracle RMAN Database Restore 5 32
Parametric query in oracle 6 37
sql query 5 52
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

706 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

13 Experts available now in Live!

Get 1:1 Help Now