dbTalk Databases Forums  

RMAN Mounting Database

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss RMAN Mounting Database in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
The Magnet
 
Posts: n/a

Default RMAN Mounting Database - 08-13-2010 , 12:47 PM






I was looking at this RMAN script. I see these commands:

STARTUP FORCE MOUNT
ALTER DATABASE MOUNT

STARTUP FORCE shuts it down and then restarts it and mounts it. So,
why the ALTER DATABASE MOUNT?

STARTUP FORCE MOUNT;
RESTORE CONTROLFILE;
ALTER DATABASE MOUNT;
RESTORE DATABASE;
RECOVER DATABASE;
ALTER DATABASE OPEN RESETLOGS;

Reply With Quote
  #2  
Old   
Mark D Powell
 
Posts: n/a

Default Re: RMAN Mounting Database - 08-13-2010 , 02:33 PM






On Aug 13, 1:47*pm, The Magnet <a... (AT) unsu (DOT) com> wrote:
Quote:
I was looking at this RMAN script. *I see these commands:

STARTUP FORCE MOUNT
ALTER DATABASE MOUNT

STARTUP FORCE shuts it down and then restarts it and mounts it. *So,
why the ALTER DATABASE MOUNT?

* *STARTUP FORCE MOUNT;
RESTORE CONTROLFILE;
* *ALTER DATABASE MOUNT;
RESTORE DATABASE;
RECOVER DATABASE;
ALTER DATABASE OPEN RESETLOGS;
The script looks like it was taken from the OracleŽ Database Backup
and Recovery Advanced User's Guide 10g Release 2 (10.2) available at
http://download.oracle.com/docs/cd/B...v.htm#BRADV008

STARTUP FORCE MOUNT;
RESTORE CONTROLFILE; # restore control file from consistent backup
ALTER DATABASE MOUNT;
RESTORE DATABASE; # restore datafiles from consistent backup
RECOVER DATABASE NOREDO; # specify NOREDO because online redo logs
are lost
ALTER DATABASE OPEN RESETLOGS;

You have just restored the control file from backup and I hazard a
guess that the alter database mount is needed to read the control file
you just restored, i.e., reposition to the start of the restored
control file.

HTH -- Mark D Powell --

Reply With Quote
  #3  
Old   
joel garry
 
Posts: n/a

Default Re: RMAN Mounting Database - 08-13-2010 , 03:34 PM



On Aug 13, 12:33*pm, Mark D Powell <Mark.Powe... (AT) hp (DOT) com> wrote:
Quote:
On Aug 13, 1:47*pm, The Magnet <a... (AT) unsu (DOT) com> wrote:

I was looking at this RMAN script. *I see these commands:

STARTUP FORCE MOUNT
ALTER DATABASE MOUNT

STARTUP FORCE shuts it down and then restarts it and mounts it. *So,
why the ALTER DATABASE MOUNT?

* *STARTUP FORCE MOUNT;
RESTORE CONTROLFILE;
* *ALTER DATABASE MOUNT;
RESTORE DATABASE;
RECOVER DATABASE;
ALTER DATABASE OPEN RESETLOGS;

The script looks like it was taken from the OracleŽ Database Backup
and Recovery Advanced User's Guide 10g Release 2 (10.2) available athttp://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmrec...

STARTUP FORCE MOUNT;
RESTORE CONTROLFILE; *# restore control file from consistent backup
ALTER DATABASE MOUNT;
RESTORE DATABASE; *# restore datafiles from consistent backup
RECOVER DATABASE NOREDO; *# specify NOREDO because online redo logs
are lost
ALTER DATABASE OPEN RESETLOGS;

You have just restored the control file from backup and I hazard a
guess that the alter database mount is needed to read the control file
you just restored, i.e., reposition to the start of the restored
control file.

HTH -- Mark D Powell --
That strikes me as correct, and yet something bothers me. I look at
your link, and see that it is an example with a catalog. I look at
http://download.oracle.com/docs/cd/B...1.htm#g1040497
and http://download.oracle.com/docs/cd/E...htm#sthref1524
and see that is an error. And of course, there is a "don't do
that" [mount when already mounted] somewhere, I think in the concepts
manual. I guess this goes to show you have to try it for specific
circumstances (or if I'm going bonkers, to read the manual more
carefully).

jg
--
@home.com is bogus.
http://www.signonsandiego.com/news/2...ng-nazis-took/

Reply With Quote
  #4  
Old   
Mark D Powell
 
Posts: n/a

Default Re: RMAN Mounting Database - 08-14-2010 , 09:02 AM



On Aug 13, 4:34*pm, joel garry <joel-ga... (AT) home (DOT) com> wrote:
Quote:
On Aug 13, 12:33*pm, Mark D Powell <Mark.Powe... (AT) hp (DOT) com> wrote:





On Aug 13, 1:47*pm, The Magnet <a... (AT) unsu (DOT) com> wrote:

I was looking at this RMAN script. *I see these commands:

STARTUP FORCE MOUNT
ALTER DATABASE MOUNT

STARTUP FORCE shuts it down and then restarts it and mounts it. *So,
why the ALTER DATABASE MOUNT?

* *STARTUP FORCE MOUNT;
RESTORE CONTROLFILE;
* *ALTER DATABASE MOUNT;
RESTORE DATABASE;
RECOVER DATABASE;
ALTER DATABASE OPEN RESETLOGS;

The script looks like it was taken from the OracleŽ Database Backup
and Recovery Advanced User's Guide 10g Release 2 (10.2) available athttp://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmrec...

STARTUP FORCE MOUNT;
RESTORE CONTROLFILE; *# restore control file from consistent backup
ALTER DATABASE MOUNT;
RESTORE DATABASE; *# restore datafiles from consistent backup
RECOVER DATABASE NOREDO; *# specify NOREDO because online redo logs
are lost
ALTER DATABASE OPEN RESETLOGS;

You have just restored the control file from backup and I hazard a
guess that the alter database mount is needed to read the control file
you just restored, i.e., reposition to the start of the restored
control file.

HTH -- Mark D Powell --

That strikes me as correct, and yet something bothers me. *I look at
your link, and see that it is an example with a catalog. *I look athttp://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsyn...
andhttp://download.oracle.com/docs/cd/E11882_01/backup.112/e10643/rcmsyn....
and see that is an error. *And of course, there is a "don't do
that" [mount when already mounted] somewhere, I think in the concepts
manual. *I guess this goes to show you have to try it for specific
circumstances (or if I'm going bonkers, to read the manual more
carefully).

jg
--
@home.com is bogus.http://www.signonsandiego.com/news/2...can-sue-sp...- Hide quoted text -

- Show quoted text -
There are many statements in the complete manual set which seem to be
in conflict with each other, but often are not when considered in the
context in which the statements are presented. There are also several
out and out errors of fact in the manuals. However, for the script in
question it appears to be fit for the purpose and conditions discussed
in the section of the manual where it appears though the way to be
sure would be to run a test. Unfortunately I do not have a system
available for testing the script with.

HTH -- Mark D Powell --

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.