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: Restore problem

Re: Restore problem

From: Brian Lucas <moabrivers_at_gmail.com>
Date: Mon, 7 May 2007 08:35:54 -0600
Message-ID: <b604d45b0705070735r5b9121abu808bd409ea0cc895@mail.gmail.com>


Sometimes stopping the Microsoft Distributed Transaction Service frees up locks on Oracle files. Also, make sure you don't have some other backup process (veritas,etc.) that is kicking in during your restore.

Brian Lucas,
OCP 8i,9i,10g
Also LDS :)

On 5/7/07, Robert Freeman <robertgfreeman_at_yahoo.com> wrote:
>
> This is great information Ted, thanks!!
>
> RF
>
>
>
> Robert G. Freeman
> Oracle Consultant/DBA/Author
> Principal Engineer/Team Manager
> The Church of Jesus Christ of Latter-Day Saints
> Father of Five, Husband of One,
> Author of various geeky computer titles
> from Osborne/McGraw Hill (Oracle Press)
> Sig V1.1
>
> -----Original Message-----
> *From:* Ted Coyle [mailto:oracle-l_at_webthere.com]
> *Sent:* Monday, May 07, 2007 7:22 AM
> *To:* robertgfreeman_at_yahoo.com; jkstill_at_gmail.com; wbfergus_at_gmail.com
> *Cc:* oracle-l_at_freelists.org
> *Subject:* RE: Restore problem
>
> On Windows, the best tool to use to discover what is "locking" a file or
> other process is Sysinternal's procexp.exe.
>
> Handle is great, but in this case the GUI is a little better.
>
>
>
> The "find" option is particularly helpful in this situation. It will
> pinpoint exactly what is attached to a file or process and has easy options
> to kill the process tree.
>
>
>
>
> http://www.microsoft.com/technet/sysinternals/utilities/ProcessExplorer.mspx
>
>
>
> I've not had to reboot a box because of file locks since I started using
> this tool years ago.
>
>
>
> The locking issue is not with Windows, it is with how Oracle calls and
> uses the Windows file object class via the Service Container.
> I've created lots of apps that don't have this problem. I don't know why
> Oracle can't figure it out. I always laugh when it happens because it seems
> so unnecessary. J
>
>
>
> Ted
> ------------------------------
>
> *From:* oracle-l-bounce_at_freelists.org [mailto:
> oracle-l-bounce_at_freelists.org] *On Behalf Of *Robert Freeman
> *Sent:* Sunday, May 06, 2007 9:40 PM
> *To:* jkstill_at_gmail.com; wbfergus_at_gmail.com
> *Cc:* oracle-l_at_freelists.org
> *Subject:* RE: Restore problem
>
>
>
> I will add.... I've seen times that Windows will lock files and it dosen't
> matter what you do (including killing the service) the only way to get that
> lock released is to reboot the box. THAT is a pain.
>
>
> RF
>
>
>
> Robert G. Freeman
> Oracle Consultant/DBA/Author
> Principal Engineer/Team Manager
> The Church of Jesus Christ of Latter-Day Saints
> Father of Five, Husband of One,
> Author of various geeky computer titles
> from Osborne/McGraw Hill (Oracle Press)
> Sig V1.1
>
> -----Original Message-----
> *From:* oracle-l-bounce_at_freelists.org [mailto:
> oracle-l-bounce_at_freelists.org]*On Behalf Of *Jared Still
> *Sent:* Sunday, May 06, 2007 3:11 PM
> *To:* wbfergus_at_gmail.com
> *Cc:* oracle-l_at_freelists.org
> *Subject:* Re: Restore problem
>
>
>
> On 5/4/07, *Bill Ferguson* <wbfergus_at_gmail.com> wrote:
>
> Hi all,
>
> channel ORA_DISK_1: restored backup piece 14
> piece handle=E:\BACKUP\BACKED UP DATA\AJIGLMEM_14_1.BAK
> tag=TAG20070501T220157
> channel ORA_DISK_1: reading from backup piece E:\BACKUP\BACKED UP
> DATA\AJIGLMEM_15_1.BAK
> ORA-19870: error reading backup piece E:\BACKUP\BACKED UP
> DATA\AJIGLMEM_15_1.BAK
>
> ORA-19504: failed to create file "E:\ORACLE\DATAFILES\NGDB_DATA_06.DBF"
> ORA-27086: unable to lock file - already in use
> OSD-00002: additional error information
> O/S-Error: (OS 32) The process cannot access the file because it is being
> used b
> y another process.
> failover to previous backup
>
>
> Hi Bill,
>
> Taking a tablespace offline on windows does not seem to remove the lock
> that Oracle has on it.
> When a file is open, the process has a lock (don't know the windows
> technical term for the
> type of lock)
>
> Just tested this on my laptop: took 10g tablespace EXAMPLE offline, and
> the handle utility
> (from Sys Internals toolkit) shows that the EXAMPLE files are still open
> by Oracle:
>
> ------------------------------------------------------------------------------
>
> oracle.exe pid: 2848 NT AUTHORITY\SYSTEM
> c: File C:\WINDOWS\SYSTEM32
> d8: Section \BaseNamedObjects\*oraspawn_buffer_ts50*
> f4: Section \BaseNamedObjects\ShimSharedMemory
> ...
> 624: File C:\oracle\product\10.1.0\oradata\ts50\USERS01.DBF
> 628: File C:\oracle\product\10.1.0\oradata\ts50\EXAMPLE01.DBF
> 62c: File C:\oracle\product\10.1.0\oradata\ts50\EXAMPLE01.DBF
> ...
> 664: File C:\oracle\product\10.1.0\oradata\ts50\SYSTEM01.DBF
> 668: File C:\oracle\product\10.1.0\oradata\ts50\SYSTEM01.DBF
> 66c: File C:\oracle\product\10.1.0\oradata\ts50\UNDOTBS01.DBF
> ...
>
> I've never restored a tablespace on Windows, but it appears that your
> procedure may need to be modified a bit.
>
> Have you tried restoring the tablespace with Oracle in mount mode?
>
> Our resident RMAN expert (Robert Freeman) may know the answer to this.
>
> --
> Jared Still
> Certifiable Oracle DBA and Part Time Perl Evangelist
>
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.467 / Virus Database: 269.6.5/792 - Release Date: 5/6/2007
> 9:01 PM
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.467 / Virus Database: 269.6.5/792 - Release Date: 5/6/2007
> 9:01 PM
>
>

--
http://www.freelists.org/webpage/oracle-l
Received on Mon May 07 2007 - 09:35:54 CDT

Original text of this message

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