473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Hot Backup Question

I just took over DBA responsibilities for an Oracle 8i database
running on Linux. Although I've been working with relational
databases for some time, I'm a bit green on Oracle so forgive me.

My first task was to implement a backup strategy (currently there is
none). I did a great deal of research both on this board and using
the Oracle Press 8i handbook. I made a cold backup (with oracle
shutdown) and sucessfully moved it from my production machine to my
test machine and this works fine. My question is around "hot
backups".

I sucessfully switched the database into ARCHIVELOG mode. I am then
running this script (abbreviated for brevity) to back it up:

connect internal as sysdba
alter system switch logfile;
alter tablespace SYSTEM begin backup;
cp $ORACLE_DATA/system*.dbf /home/oracle/backup
alter tablespace SYSTEM end backup;
....I do the above for each tablespace...
archive log stop
....Run procedure to archive logfiles...
archive log start
alter database backup controlfile to
'/home/oracle/backup/controlfile.bck';

This all appears to run fine, but I have two questions on my
unsuccessful restore:

#1. Something appears to be wrong with my control file backup. Upon
moving the backed up files to my "test" machine, I place them in the
data directory, and rename my control file backup to the correct name
and run this procedure:

- I start the instance
- I mount the database
- I issue a recover database
I then receive the following error:

ORA-00283: recovery session canceled due to errors
ORA-01610: recovery using the BACKUP CONTROLFILE option must be done

Does anyone have any thoughts around this?

#2.

If I use 'recover database using backup controlfile', I get further,
but I am prompted for an archived log that is 1 sequence number
greater then I have! I checked both in my archived log area that my
backup script makes as well as the "live" area on the production
server.

Why would this be happening?

Thanks so much for everyone's time.

Andrew
Jul 19 '05 #1
1 16184
dr****@materiamagica.com (Andrew E) wrote in message news:<1e*************************@posting.google.c om>...
I just took over DBA responsibilities for an Oracle 8i database
running on Linux. Although I've been working with relational
databases for some time, I'm a bit green on Oracle so forgive me.

My first task was to implement a backup strategy (currently there is
none). I did a great deal of research both on this board and using
the Oracle Press 8i handbook. I made a cold backup (with oracle
shutdown) and sucessfully moved it from my production machine to my
test machine and this works fine. My question is around "hot
backups".
This board is obsolete, use google to search for Oracle newsgroup
Charter.
You should be researching on comp.databases.oracle.server for
administration issues.

I sucessfully switched the database into ARCHIVELOG mode. I am then
running this script (abbreviated for brevity) to back it up:

connect internal as sysdba
alter system switch logfile;
Do switch for as many logfile groups as you have.
alter tablespace SYSTEM begin backup;
cp $ORACLE_DATA/system*.dbf /home/oracle/backup
alter tablespace SYSTEM end backup;
...I do the above for each tablespace...
archive log stop
...Run procedure to archive logfiles...
archive log start
No, don't stop archive logging. You could grind everything to a halt.
alter database backup controlfile to
'/home/oracle/backup/controlfile.bck';

This all appears to run fine, but I have two questions on my
unsuccessful restore:

#1. Something appears to be wrong with my control file backup. Upon
moving the backed up files to my "test" machine, I place them in the
data directory, and rename my control file backup to the correct name
and run this procedure:

- I start the instance
- I mount the database
- I issue a recover database
I then receive the following error:

ORA-00283: recovery session canceled due to errors
ORA-01610: recovery using the BACKUP CONTROLFILE option must be done

Does anyone have any thoughts around this?
01610, 00000, "recovery using the BACKUP CONTROLFILE option must be
done"
// *Cause: Either an earlier database recovery session specified
BACKUP
// CONTROLFILE, or the controlfile was recreated with the
RESETLOGS
// option, or the controlfile being used is a backup
controlfile.
// After that only BACKUP CONTROLFILE recovery is allowed
// and it must be followed by a log reset at the next
database open.
// *Action: Perform recovery using the BACKUP CONTROFILE option.

#2.

If I use 'recover database using backup controlfile', I get further,
but I am prompted for an archived log that is 1 sequence number
greater then I have! I checked both in my archived log area that my
backup script makes as well as the "live" area on the production
server.

Why would this be happening?


Could be you need to recover until cancel, and then just cancel. Or
maybe it's the lack of enough switches earlier. Or maybe you need to
supply the redo log file names.

See http://metalink.oracle.com/metalink/...&p_id=131865.1

jg
--
@home.com is bogus.
http://www.bayarea.com/mld/mercurynews/news/5676110.htm
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: newbiegca_sqlsever2000 | last post by:
Question 1 3 GHZ CPU (Intel pentium 4) single cpu + 2 GB Memory + SCSI HDD Database size 10 GB - How long will full database backup take if the backup is writing a file to the hard disk...
0
by: newbiegca_sqlsever2000 | last post by:
SQLServer 2000 Backup question. Let us say we have a database where data is stored in filegroup F1 and Filegroup F2 Backup of this is done on alternate days Day 1 - Full backup of file...
1
by: Louis | last post by:
This is maybe a dumb question but I couldn't find a definitive answer on BOL. Looking at my backup script. If I issue a CHECKPOINT, does this truly force all transaction log entries to the data...
1
by: jane | last post by:
HI, I had a question on incremental backup. We had an incremental backup every weekend. We did full backup every other week. That is one week incremental + full , the other week is...
6
by: Eric Herber | last post by:
I've a question regarding db2 (V8.1) and database backups going to a storage manager like TSM for example. As I can see in the storage manager if I backup the complete database over the TSM API...
2
by: Trent | last post by:
Hello, all. I have the following production DB2 environment. DB2 8.1.4 (fp4) WG edition with 2 production databases on Windows 2003 standard edition. My first question is regard with...
4
by: uthuras | last post by:
Hi all, I have DB2ESE version 8.1 with FP 4 on AIX 5.2. My database used to be 1.1TB. When the DB size is 1.1TB, it takes approximately 7 hours to backup the entire database (online backup). The...
4
by: manwiththeaxe.70 | last post by:
I have recently begun to migrate our DB2 UDB v7.2 enterprise databases up to DB2 UDB v8.2. One question I can't seem to understand is why would I want to run an offline backup for a database now...
1
by: Andrew E | last post by:
I just took over DBA responsibilities for an Oracle 8i database running on Linux. Although I've been working with relational databases for some time, I'm a bit green on Oracle so forgive me. My...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.