dbTalk Databases Forums  

Configuring RMAN to use controlfile instead of Recovery Catalog

comp.databases.oracle.server comp.databases.oracle.server


Discuss Configuring RMAN to use controlfile instead of Recovery Catalog in the comp.databases.oracle.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sundar K
 
Posts: n/a

Default Configuring RMAN to use controlfile instead of Recovery Catalog - 09-28-2011 , 05:40 AM






I have a doubt.

Is it possible to make RMAN to use controlfile, from using Recovery
Catalog(RC) DB ?

The scenario is like this:
I have a target db and a RC db. The RMAN presently uses RC db for
backup and recovery.

Due to some reasons, I want the RMAN to use target db controlfile,
instead of RC.
Is there anyway to perform this?
If yes, I need the RMAN to understand and use backup sets, which are
taken before switching to controlfile based backup (That is,
controlfile should understand backup sets, which have backed-up using
RC )

Is there a way to perform these tasks?

Reply With Quote
  #2  
Old   
Paulie
 
Posts: n/a

Default Re: Configuring RMAN to use controlfile instead of Recovery Catalog - 09-28-2011 , 07:06 AM






On Sep 28, 11:40*am, Sundar K <ksun... (AT) a-bits (DOT) biz> wrote:


Quote:
Is it possible to make RMAN to use controlfile, from using Recovery
Catalog(RC) DB ?

If I were you I would go to forums.oracle.com and ask there. The
groups there are active and spam-free.

As far as I can see, usenet (now transformed into groups.google.com)
is dead - there are now better alternatives.


Paul...

Reply With Quote
  #3  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: Configuring RMAN to use controlfile instead of Recovery Catalog - 09-28-2011 , 09:52 AM



On Wed, 28 Sep 2011 03:40:08 -0700, Sundar K wrote:

Quote:
I have a doubt.

Is it possible to make RMAN to use controlfile, from using Recovery
Catalog(RC) DB ?

The scenario is like this:
I have a target db and a RC db. The RMAN presently uses RC db for
backup and recovery.

Due to some reasons, I want the RMAN to use target db controlfile,
instead of RC.
Is there anyway to perform this?
If yes, I need the RMAN to understand and use backup sets, which are
taken before switching to controlfile based backup (That is, controlfile
should understand backup sets, which have backed-up using RC )

Is there a way to perform these tasks?
You should ask that question on oracle-l. They welcome questions like
that there. Here, you will be advised to do some reading before asking
questions.



--
http://mgogala.byethost5.com

Reply With Quote
  #4  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: Configuring RMAN to use controlfile instead of Recovery Catalog - 09-28-2011 , 09:56 AM



On Wed, 28 Sep 2011 05:06:30 -0700, Paulie wrote:

Quote:
If I were you I would go to forums.oracle.com and ask there. The groups
there are active and spam-free.
Yes, that works too. On Oracle forums guys like the OP will not be given
an RTFM reply they deserve.

Quote:
As far as I can see, usenet (now transformed into groups.google.com) is
dead - there are now better alternatives.
Rubbish. This is the only forum that is not moderated, which makes it
invaluable. Usenet is far from being dead. CDOS is visited by sufficient
number of old hacks to be interesting and it doesn't generate megabytes
of traffic per day.
Also, it doesn't have much to do with Google. You can access it through
Google, but you don't have to. I don't use Google to access my Usenet
groups.





--
http://mgogala.byethost5.com

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

Default Re: Configuring RMAN to use controlfile instead of Recovery Catalog - 09-28-2011 , 11:06 AM



On Sep 28, 3:40*am, Sundar K <ksun... (AT) a-bits (DOT) biz> wrote:
Quote:
I have a doubt.

Is it possible to make RMAN to use controlfile, from using Recovery
Catalog(RC) DB ?

The scenario is like this:
*I have a target db and a RC db. The RMAN presently uses RC db for
backup and recovery.

Due to some reasons, I want the RMAN to use target db controlfile,
instead of RC.
Is there anyway to perform this?
If yes, I need the RMAN to understand and use backup sets, which are
taken before switching to controlfile based backup (That is,
controlfile should understand backup sets, which have backed-up using
RC )

Is there a way to perform these tasks?
I haven't done this myself, since I don't use a catalog, but I see
there is an unregister command. You'll want to understand the delete
and crosscheck commands, which do change over some versions.

There may be some other considerations, so you might want to say why
you are doing this. There are also version dependencies, so it is
always a good idea to state exact versions and platforms.

cdos is not dead yet. Even though I haven't updated the readme for
cdos in a while, I do have a list of updates I haven't got to yet.
Hmmmm, what happened to my site? First problem I've had with that
ISP... well, anyways, when it comes back into the world of domains, it
is http://www.dbaoracle.net/readme-cdos.htm

jg
--
@home.com is bogus.
http://www.signonsandiego.com/news/2...eet-new-nerds/

Reply With Quote
  #6  
Old   
Eric
 
Posts: n/a

Default Re: Configuring RMAN to use controlfile instead of Recovery Catalog - 09-28-2011 , 01:01 PM



On 2011-09-28, Paulie <linehan.paul (AT) gmail (DOT) com> wrote:
Quote:
On Sep 28, 11:40?am, Sundar K <ksun... (AT) a-bits (DOT) biz> wrote:


Is it possible to make RMAN to use controlfile, from using Recovery
Catalog(RC) DB ?


If I were you I would go to forums.oracle.com and ask there. The
groups there are active and spam-free.
And full of people who don't know as much as they think they do!

Quote:
As far as I can see, usenet (now transformed into groups.google.com)
is dead - there are now better alternatives.
Usenet is not dead, it still exists as it always did, for access by
people using real newsreader software. Google groups is just an archive
(still useful) and an interface to current activity which is quite some
way off being good enough.

As for "better alternatives", they all depend on some person or company
continuing to maintain the relevant website, something for which there
is no guarantee whatsoever. Usenet is not dependent on any single person
or company, and there is enough interest to ensure that it will be
around for a long time yet, And there are ways of dealing with thw spam.

So please stop talking rubbish and let people realise that they will get
answers here, though they will also be pushed into thinking for
themselves. Anyone who wants to call themselves a DBA needs to be doing
a fair bit of that!

Eric

--
ms fnd in a lbry

Reply With Quote
  #7  
Old   
John Hurley
 
Posts: n/a

Default Re: Configuring RMAN to use controlfile instead of Recovery Catalog - 09-28-2011 , 05:45 PM



On Sep 28, 6:40*am, Sundar K <ksun... (AT) a-bits (DOT) biz> wrote:
Quote:
I have a doubt.

Is it possible to make RMAN to use controlfile, from using Recovery
Catalog(RC) DB ?

The scenario is like this:
*I have a target db and a RC db. The RMAN presently uses RC db for
backup and recovery.

Due to some reasons, I want the RMAN to use target db controlfile,
instead of RC.
Is there anyway to perform this?
If yes, I need the RMAN to understand and use backup sets, which are
taken before switching to controlfile based backup (That is,
controlfile should understand backup sets, which have backed-up using
RC )

Is there a way to perform these tasks?
Sure you can do it like that. I suggest buying Robert Freeman's rman
book and setting up a test system and practice practice practice!

Reply With Quote
  #8  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: Configuring RMAN to use controlfile instead of Recovery Catalog - 09-28-2011 , 07:09 PM



On Wed, 28 Sep 2011 03:40:08 -0700, Sundar K wrote:

Quote:
I have a doubt.

Is it possible to make RMAN to use controlfile, from using Recovery
Catalog(RC) DB ?

The scenario is like this:
I have a target db and a RC db. The RMAN presently uses RC db for
backup and recovery.

Due to some reasons, I want the RMAN to use target db controlfile,
instead of RC.
Is there anyway to perform this?
If yes, I need the RMAN to understand and use backup sets, which are
taken before switching to controlfile based backup (That is, controlfile
should understand backup sets, which have backed-up using RC )

Is there a way to perform these tasks?
For better or worse, here is a brief example:

[oracle@medo ~]$ rman target / nocatalog

Recovery Manager: Release 11.2.0.3.0 - Production on Wed Sep 28 19:51:53
2011

Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights
reserved.

connected to target database: HOME (DBID=873600373)
using target database control file instead of recovery catalog

RMAN> run {
2> allocate channel c0 device type disk format '/data/bkp/homedb%U.bak';
3> backup database plus archivelog;
4> backup current controlfile;
5> }

allocated channel: c0
channel c0: SID=28 device type=DISK


Starting backup at 28-SEP-11
current log archived
channel c0: starting archived log backup set
channel c0: specifying archived log(s) in backup set
input archived log thread=1 sequence=22 RECID=14 STAMP=762973232
input archived log thread=1 sequence=23 RECID=15 STAMP=763069961
channel c0: starting piece 1 at 28-SEP-11
channel c0: finished piece 1 at 28-SEP-11
piece handle=/data/bkp/homedb01mnn1g9_1_1.bak tag=TAG20110928T195241
comment=NONE
channel c0: backup set complete, elapsed time: 00:00:15
Finished backup at 28-SEP-11

Starting backup at 28-SEP-11
channel c0: starting full datafile backup set
channel c0: specifying datafile(s) in backup set
input datafile file number=00002 name=/data/oracle/dgdata/HOME/datafile/
o1_mf_sysaux_6v6nob75_.dbf
input datafile file number=00001 name=/data/oracle/dgdata/HOME/datafile/
o1_mf_system_6v6nob2h_.dbf
input datafile file number=00003 name=/data/oracle/dgdata/HOME/datafile/
o1_mf_undotbs1_6v6nob8d_.dbf
input datafile file number=00005 name=/data/oracle/dgdata/HOME/datafile/
o1_mf_example_6v6nwwvt_.dbf
input datafile file number=00006 name=/data/oracle/dgdata/HOME/datafile/
o1_mf_htmldb_d_71wp7zdo_.dbf
input datafile file number=00004 name=/data/oracle/dgdata/HOME/datafile/
o1_mf_users_6v6nobc1_.dbf
channel c0: starting piece 1 at 28-SEP-11
channel c0: finished piece 1 at 28-SEP-11
piece handle=/data/bkp/homedb02mnn1gp_1_1.bak tag=TAG20110928T195257
comment=NONE
channel c0: backup set complete, elapsed time: 00:01:25
channel c0: starting full datafile backup set
channel c0: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel c0: starting piece 1 at 28-SEP-11
channel c0: finished piece 1 at 28-SEP-11
piece handle=/data/bkp/homedb03mnn1je_1_1.bak tag=TAG20110928T195257
comment=NONE
channel c0: backup set complete, elapsed time: 00:00:02
Finished backup at 28-SEP-11

Starting backup at 28-SEP-11
current log archived
channel c0: starting archived log backup set
channel c0: specifying archived log(s) in backup set
input archived log thread=1 sequence=24 RECID=16 STAMP=763070065
channel c0: starting piece 1 at 28-SEP-11
channel c0: finished piece 1 at 28-SEP-11
piece handle=/data/bkp/homedb04mnn1jh_1_1.bak tag=TAG20110928T195425
comment=NONE
channel c0: backup set complete, elapsed time: 00:00:01
Finished backup at 28-SEP-11

Starting backup at 28-SEP-11
channel c0: starting full datafile backup set
channel c0: specifying datafile(s) in backup set
including current control file in backup set
channel c0: starting piece 1 at 28-SEP-11
channel c0: finished piece 1 at 28-SEP-11
piece handle=/data/bkp/homedb05mnn1jj_1_1.bak tag=TAG20110928T195426
comment=NONE
channel c0: backup set complete, elapsed time: 00:00:01
Finished backup at 28-SEP-11
released channel: c0

RMAN>

There are many ramifications, especially with device type SBT which I
don't have on my home computer, archivelog records, compressed backup
sets, incremental backups etc. This is a basic example how to backup
database.

Then you can check what backups you have:
RMAN> list backup of database;


List of Backup Sets
===================


BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
2 Full 1.44G DISK 00:01:21 28-SEP-11
BP Key: 2 Status: AVAILABLE Compressed: NO Tag:
TAG20110928T195257
Piece Name: /data/bkp/homedb02mnn1gp_1_1.bak
List of Datafiles in backup set 2
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- --------- ----
1 Full 3278467 28-SEP-11 /data/oracle/dgdata/HOME/datafile/
o1_mf_system_6v6nob2h_.dbf
2 Full 3278467 28-SEP-11 /data/oracle/dgdata/HOME/datafile/
o1_mf_sysaux_6v6nob75_.dbf
3 Full 3278467 28-SEP-11 /data/oracle/dgdata/HOME/datafile/
o1_mf_undotbs1_6v6nob8d_.dbf
4 Full 3278467 28-SEP-11 /data/oracle/dgdata/HOME/datafile/
o1_mf_users_6v6nobc1_.dbf
5 Full 3278467 28-SEP-11 /data/oracle/dgdata/HOME/datafile/
o1_mf_example_6v6nwwvt_.dbf
6 Full 3278467 28-SEP-11 /data/oracle/dgdata/HOME/datafile/
o1_mf_htmldb_d_71wp7zdo_.dbf

RMAN>

You can also see whether the backup is good:

RMAN> validate backupset 2;

Starting validate at 28-SEP-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=28 device type=DISK
channel ORA_DISK_1: starting validation of datafile backup set
channel ORA_DISK_1: reading from backup piece /data/bkp/
homedb02mnn1gp_1_1.bak
channel ORA_DISK_1: piece handle=/data/bkp/homedb02mnn1gp_1_1.bak
tag=TAG20110928T195257
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: validation complete, elapsed time: 00:00:25
Finished validate at 28-SEP-11

You can also remove backups:

RMAN> delete backup of database;

using channel ORA_DISK_1

List of Backup Pieces
BP Key BS Key Pc# Cp# Status Device Type Piece Name
------- ------- --- --- ----------- ----------- ----------
2 2 1 1 AVAILABLE DISK /data/bkp/
homedb02mnn1gp_1_1.bak

Do you really want to delete the above objects (enter YES or NO)? yes
deleted backup piece
backup piece handle=/data/bkp/homedb02mnn1gp_1_1.bak RECID=2
STAMP=763069978
Deleted 1 objects


RMAN> delete backup of archivelog all;

using channel ORA_DISK_1

List of Backup Pieces
BP Key BS Key Pc# Cp# Status Device Type Piece Name
------- ------- --- --- ----------- ----------- ----------
1 1 1 1 AVAILABLE DISK /data/bkp/
homedb01mnn1g9_1_1.bak
4 4 1 1 AVAILABLE DISK /data/bkp/
homedb04mnn1jh_1_1.bak

Do you really want to delete the above objects (enter YES or NO)? yes
deleted backup piece
backup piece handle=/data/bkp/homedb01mnn1g9_1_1.bak RECID=1
STAMP=763069962
deleted backup piece
backup piece handle=/data/bkp/homedb04mnn1jh_1_1.bak RECID=4
STAMP=763070065
Deleted 2 objects


This is a brief example. For everything else, you should use the
available literature.




--
http://mgogala.byethost5.com

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.