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

Home -> Community -> Usenet -> c.d.o.server -> Re: Need help re: VB app copying redo log archives

Re: Need help re: VB app copying redo log archives

From: Karsten Farrell <kfarrell_at_belgariad.com>
Date: Tue, 07 Jan 2003 17:36:28 GMT
Message-ID: <weES9.706$L95.49675305@newssvr21.news.prodigy.com>


Joe Tseng wrote:
> I've been asked to write a VB6 app to have any redo archive files
> copied to an alternative location where they'll be saved to tape. I
> was told this app should be smart enough to leave any open archive
> file that is being appended to by the database alone until the next
> time the app is run.
>
> Is there any programmatic way to determine if a file is open by
> another process? I didn't see any method or property in FSO that did
> this. I thought I could perhaps suck in the results of "net file",
> but I'm not entirely sure that would work as I do not know how Oracle
> copies its redo logs to the .ARC files.
>
> Any useful suggestions will be greatly appreciated.
>
> Joe

An Oracle background process, ARCH, copies the online redo log files to an archived redo log file once it fills up. Depending on your operating system, you might not be able to open the archive file currently being written. But since ARCH writes to only one at a time, in serial fashion, you might be better off if your VB6 app simply ignores the most recent .arc file whenever it's called (I assume your app runs periodically and not manually). Received on Tue Jan 07 2003 - 11:36:28 CST

Original text of this message

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