473,748 Members | 2,426 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hot Backup Question

I just took over DBA responsibilitie s 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 16229
dr****@materiam agica.com (Andrew E) wrote in message news:<1e******* *************** ***@posting.goo gle.com>...
I just took over DBA responsibilitie s 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
2332
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 (separate hard disk) Question 2 during this full backup are users and application able to access the
0
1549
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 group F1 at 10 pm Day 2 - Full backup of file group F2 at 10 pm Day 3 - Full backup of file group F1 at 10 pm
1
5991
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 file? Therefore, making it unnecessary to BACKUP log (just BACKUP database is needed). Louis
1
2231
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 incremental only. My question is for the first weekend incremental backup, it took for example 1h, but the second weekend incremental took almost 3 hours. It seems always this way, so I suppose it is not related to the data change. And we almost had some...
6
3346
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 (no tablespace backups) the backup images is stored as a single backup object. Later I will be able to restore the complete database from this image and I will also be able to restore single tablespaces from this backup image as long as I...
2
3689
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 locking. I found some escalations for X lock on some tables. How do I work out an appropriate MAXLOCK & LOCKTIMEOUT settings to optimize the lock escalation issue.
4
4729
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 backup is directed to disk and not tape. Recently, we did data archival by purging some of the records. Now, the size of the database is 500GB plus. That means, only data purged and we never resize the tablespace. Therefore, the allocated...
4
9477
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 that the online backup includes the necessary log files. Is there a reason why I would need or want to go through the hassle of getting exclusive control of a db for an offline backup?
1
274
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 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...
0
8984
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8823
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9530
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9238
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8237
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6793
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2206
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.