Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Query Database while shutdown in progress

Re: Query Database while shutdown in progress

From: Jared Still <jkstill_at_gmail.com>
Date: Wed, 27 Jun 2007 13:42:33 -0700
Message-ID: <bf46380706271342g2ec2619bw7928a6ad07f086f6@mail.gmail.com>


On 6/27/07, Andrew Kerber <andrew.kerber_at_gmail.com> wrote:
>
>
> What happens if you have datafiles in backup mode and you try and do a
> startup force?

select

        'alter database datafile ' || '''' || f.name || '''' || ' end backup;'
from v$datafile f, v$backup b
where b.status = 'ACTIVE'
and f.file# = b.file#
/

run the generated SQL.

-- 
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Jun 27 2007 - 15:42:33 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US