Operating System - HP-UX
1752512 Members
4768 Online
108788 Solutions
New Discussion юеВ

Re: one confusion about oracle

 
SOLVED
Go to solution
Yogeeraj_1
Honored Contributor

Re: one confusion about oracle

Darren,

COLD backup has the biggest disadvantage - DOWNTIME!

I still wonder why people still do COLD backup, when with HOT backup, we have uptime and recovery procedures are not too complicated and we can recover till the very last transaction...

regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Darren Etheridge_2
Super Advisor

Re: one confusion about oracle

Since our operataion is from 9-5 and downtime isn't an factor is there a disadvantage?
Eric Antunes
Honored Contributor

Re: one confusion about oracle

Seamark,

Your 2) subject is the same as in previous post.

If it worked at the first time for 10:00, it must work with 08:00 since the cold backup is from 03:00! You must have done something different the time...

Darren,

Here I desagree with Yogeeraj... I use cold backup since the very begining and had recover only once: I loosed 2 hours of work but that wasn't critical for my organization because those 2 hours of data will never cover the money and time will needed to spend to garantee them with archive logs!

So, you have to evaluate what are the essencial needs for your organization:

- Restore time;

- Maximum data you can loose (in hours);

- Downtime you can have;

- Database volatility (changing speed);

- Disk space available for archive logs and money available to buy more if they are needed, ...

Best Regards,

Eric Antunes

Each and every day is a good day to learn.
SeaMark_1
Frequent Advisor

Re: one confusion about oracle

hi,Eric

Thanks you for reply.

Really, another difference thing ignored is when I recover Oracle to 8:00 in the second time, I don't do "recover database" before "recover database using backup controlfile" and got that error. So, I do again following my last post, which is just like my recovery to 10:00 in the first time.

So, I have some confusion.

I believe doing "recover database" before "recover database using backup controlfile" seems to be insignificant.

Do you think?

---------------

About doing cold backup, you listed many factors concerned with and I take my side on you.

But you may neglect another important factor --- person.

I don't support COLD BACKUP.
In the beginning, I ONLINE backuped Oracle but an awful boss can destroy everything.
:-)
He made an opinionated decision that bakcup Oracle must be like backup AS/400(he is very skillful about AS/400.). I am new clerk and can't persuade him, which results in current situation directly.

Badly ~~~
He must cherish the hope that one day he will be amply rewarded.
Sanjay Kumar Suri
Honored Contributor

Re: one confusion about oracle

Situations Requiring Incomplete Recovery

1. Complete recovery fails because an archived log is lost.
2. All unarchived redo log files and a datafile are lost.
3. User error
- An important table was dropped.
- Invalid data was committed in a table.
4. Current control file is lost and a backup control file must be used to open the database.

One need to give the following command only once for the recovery.

recover [automatic] database until time 'yyyy-mm-dd:hh:mm:ss' using backup controlfile.

A combination of Online/offline (cold) backups are used depending on the crticality of the database and 24x7 operations where database shutdown is not possible.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
SeaMark_1
Frequent Advisor

Re: one confusion about oracle

I want to know one key-point.

If I own all files(data files and control files) and roll Oracle forward, I use "recover database " or "recover database using backup cotrolfile" ??

I found do "recover database until cancel", trace file tell me "Media recovery is not necessary" and do nothing.

And with the same files I do "recover database using backup controfile until cancel ", the database really roll forward.

Why? Who can tell me?

Thanks.
He must cherish the hope that one day he will be amply rewarded.
Sanjay Kumar Suri
Honored Contributor
Solution

Re: one confusion about oracle

In case of complete recovery, one should always use "recover database" and this process
1. No need to open the database with resetlogs.
2. New incarnation of database does not happen.
3. A complete backup is not mandatory.

In case of incomplete recovery, one should always use "recover database until or using backup controlfile" and this process
1. Always need to open the database with resetlogs.
2. New incarnation of database happen.
3. A complete backup is mandatory (preferably cold).

The message "Media recovery is not necessary" in case of "recover database" comes beacause control file, database files and redo log files are all in sync and no recovery is required.

Whereas in case of "recover database until cancel using backup controfile", Oracle tries to simulate an incomplete recovery scenario (even though backup file is matches that of other files).

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Eric Antunes
Honored Contributor

Re: one confusion about oracle

Hi SeaMark,

In you specific situation, you must do:

- Restore all datafiles;
- Do not restore controlfiles and redolog files;
- Mount database (startup mount);
- recover database until time '2004-12-27:08:00:00';
- alter database resetlogs;

Best Regards,

Eric Antunes
Each and every day is a good day to learn.
SeaMark_1
Frequent Advisor

Re: one confusion about oracle

Thanks everyone !!
I have found my way.
He must cherish the hope that one day he will be amply rewarded.