Solved

shutdown not possible

Posted on 2012-03-21
4
550 Views
Last Modified: 2012-06-27
SQL> shutdown immediate
ORA-01149: cannot shutdown - file 1 has online backup set
ORA-01110: data file 1: '/u01/app/oracle/oradata/orcl11/system01.dbf'
SQL>
0
Comment
Question by:b7dba
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
Wasim Akram Shaik earned 500 total points
ID: 37746362
try this first

alter database end backup;

then shutdown the database..

it seems that some online back up is going on which has not yet complete so preventing the db from shutdown..
0
 
LVL 8

Expert Comment

by:PeteEngineer
ID: 37746450
Have u seen this?

http://ora-01149.ora-code.com/
0
 
LVL 5

Expert Comment

by:manzoor_dba
ID: 37751944
Hi,

Pls check the below scenairo and the solution....

SQL> alter tablespace system begin backup;

Tablespace altered.

SQL> shut immediate;
ORA-01149: cannot shutdown - file 1 has online backup set
ORA-01110: data file 1: '+DATA1/testdb/datafile/system.347.778438247'
SQL> select * from V$backup;

     FILE# STATUS                CHANGE# TIME
---------- ------------------ ---------- ---------
         1 ACTIVE                 179059 22-MAR-12
         2 NOT ACTIVE                  0
         3 NOT ACTIVE                  0
         4 NOT ACTIVE                  0

SQL> select distinct ('alter tablespace  ' || a.name || ' end backup ; ') "Tablespace in Backup mode" from V$tablespace a, V$datafile b , V$backup c where b.file# = c.file# and
b.ts# = a.ts# and c.status = 'ACTIVE';

Tablespace in Backup mode
--------------------------------------------------------------
alter tablespace  SYSTEM end backup ;

SQL> alter tablespace  SYSTEM end backup ;

Tablespace altered.

SQL> shut immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
0
 
LVL 16

Expert Comment

by:Wasim Akram Shaik
ID: 37751963
manzoor_dba, please don't post duplicate information, the scenario which you have illustrated had already explained in simple words in my comment already,

fyi.. just refer

http:#a37746362
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
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.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
Suggested Courses

628 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