Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Archive log-switch after on-line backup
This is a multipart message in MIME format.
--=_alternative 0050BD9985256984_=
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
I used this but without archive log stop. Why are you using archive log sto= p statement ?
Danut,
"Eric Lansu" <eric.lansu_at_quicknet.nl>
Sent by: root_at_fatcity.com
10/26/00 06:25 AM
Please respond to ORACLE-L
=20
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc:=20 Subject: Archive log-switch after on-line backup
Dear listers,
=20
I have a problem in one of my 8.1.6 databases;
=20
After completing the on-line backup (Begin/End backup) I do a 'archive log =
stop', but the .arc-file is NOT written to disk, so my on-line backup is=20
useless...
To avoid this, I do an 'alter system switch logfile', and then stop the=20
archiver. I move the .arc-files to the backup-location. That's all? No,=20
sometimes the next archive-file has 512 bytes in it, so I move it too. Now =
I start the archiver again, and I get an IO-error for Oracle can't find=20
the archive-file. After some errors in the alert.log Oracle creates a new=20
.arc-file with the same number.
=20
I don't like this. Shouldn't Oracle write the .arc-file after a 'archive=20
log stop'?
=20
I know I can solve it by querying the database for the active log number,=20
but it doesn't make things too easy.....
=20
Here is what happens;
=20
-rw-r----- 1 oracle oinstall 536064 Oct 26 11:00 arch=5F1=5F31913.arc
-rw-r----- 1 oracle oinstall 24064 Oct 26 11:02 arch=5F1=5F31914.arc
SVRMGR> archive log stop
Statement processed.
SVRMGR> !ls -l
total 608896
-rw-r----- 1 oracle oinstall 536064 Oct 26 11:00 arch=5F1=5F31913.arc
-rw-r----- 1 oracle oinstall 24064 Oct 26 11:02 arch=5F1=5F31914.arc
SVRMGR> alter system switch logfile;
Statement processed.
SVRMGR> !ls -l
total 608896
-rw-r----- 1 oracle oinstall 536064 Oct 26 11:00 arch=5F1=5F31913.arc
-rw-r----- 1 oracle oinstall 24064 Oct 26 11:02 arch=5F1=5F31914.arc
SVRMGR> archive log start
Statement processed.
SVRMGR> !ls -l
total 609200
-rw-r----- 1 oracle oinstall 536064 Oct 26 11:00 arch=5F1=5F31913.arc -rw-r----- 1 oracle oinstall 24064 Oct 26 11:02 arch=5F1=5F31914.arc -rw-r----- 1 oracle oinstall 143872 Oct 26 11:12 arch=5F1=5F31915.arcSVRMGR> alter system switch logfile;
-rw-r----- 1 oracle oinstall 536064 Oct 26 11:00 arch=5F1=5F31913.arc -rw-r----- 1 oracle oinstall 24064 Oct 26 11:02 arch=5F1=5F31914.arc -rw-r----- 1 oracle oinstall 143872 Oct 26 11:12 arch=5F1=5F31915.arc -rw-r----- 1 oracle oinstall 2048 Oct 26 11:12 arch=5F1=5F31916.arc=20
--=_alternative 0050BD9985256984_=
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<br><font size=3D2 face=3D"sans-serif">Hi,</font>
<br>
<br><font size=3D2 face=3D"sans-serif">I used this but without </font><font=
size=3D2 face=3D"Courier">archive log stop</font><font size=3D2 face=3D"sa=
ns-serif">. Why are you using </font><font size=3D2 face=3D"Courier">archiv=
e log stop</font><font size=3D2 face=3D"sans-serif"> statement ?</font>
<br>
<br><font size=3D2 face=3D"sans-serif">Danut,</font>
<br>
<br>
<br>
<table width=3D100%>
<tr valign=3Dtop>
<td>
<td><font size=3D1 face=3D"sans-serif"><b>"Eric Lansu" <eric.l=
ansu_at_quicknet.nl></b></font>
<br><font size=3D1 face=3D"sans-serif">Sent by: root_at_fatcity.com</font>
<p><font size=3D1 face=3D"sans-serif">10/26/00 06:25 AM</font>
<br><font size=3D1 face=3D"sans-serif">Please respond to ORACLE-L</font>
<br>
<td><font size=3D1 face=3D"Arial"> </font>
<br><font size=3D1 face=3D"sans-serif"> To: &nbs=
p; Multiple recipients of list ORACLE-L <ORACLE-L_at_fa=
tcity.com></font>
<br><font size=3D1 face=3D"sans-serif"> cc: &nbs=
p; </font>
<br><font size=3D1 face=3D"sans-serif"> Subject:=
Archive log-switch after on-line backup</font><=
/table>
<br>
<br><font size=3D2 face=3D"Courier">Dear listers,</font>
<br><font size=3D3 face=3D"Times New Roman"> </font>
<br><font size=3D2 face=3D"Courier">I have a problem in one of my 8.1.6 dat=
abases;</font>
<br><font size=3D3 face=3D"Times New Roman"> </font>
<br><font size=3D2 face=3D"Courier">After completing the on-line backup (Be=
gin/End backup) I do a 'archive log stop', but the .arc-file is NOT written=
to disk, so my on-line backup is useless...</font>
<br><font size=3D2 face=3D"Courier">To avoid this, I do an 'alter system sw=
itch logfile', and then stop the archiver. I move the .arc-files to the bac= kup-location. That's all? No, sometimes the next archive-file has 512 bytes= in it, so I move it too. Now I start the archiver again, and I get an IO-e= rror for Oracle can't find the archive-file. After some errors in the alert=.log Oracle creates a new .arc-file with the same number.</font>
![]() |
![]() |