dbTalk Databases Forums  

rman test restore

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


Discuss rman test restore in the comp.databases.oracle.server forum.



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

Default rman test restore - 05-25-2007 , 05:02 PM






I have read the documentaton and I am still stuck. Here is what I
have done so far.

1. Rman target / nocatalog
2. Startup nomount
3. Set dbid to dbid of old database
4. Set oracle_sid to sid of old database
5. Restore spfile to pfile 'location of pfile' from 'location of
autobackup file';
6. Restore controlfile from 'location of autobackup file';
7. Alter database mount

When I get to step 7 it tells that ora-01103: databse name 'old
database name' in controlfile is not 'new database name' How can i
get around this? Or better yet what book is this located in so i can
do a test restore. Thanks in advance.


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

Default Re: rman test restore - 05-25-2007 , 05:27 PM






On Fri, 25 May 2007 15:02:23 -0700, cptkirkh wrote:

Quote:
When I get to step 7 it tells that ora-01103: databse name 'old database
name' in controlfile is not 'new database name' How can i get around
this? Or better yet what book is this located in so i can do a test
restore. Thanks in advance.
Parameter db_name must be the same for the source database ("target") and
the clone ("auxiliary").

--
http://www.mladen-gogala.com


Reply With Quote
  #3  
Old   
cptkirkh
 
Posts: n/a

Default Re: rman test restore - 05-29-2007 , 08:37 AM



On May 25, 5:27 pm, Mladen Gogala <mgogala.SPAM_ME.... (AT) verizon (DOT) net>
wrote:
Quote:
On Fri, 25 May 2007 15:02:23 -0700, cptkirkh wrote:
When I get to step 7 it tells that ora-01103: databse name 'old database
name' in controlfile is not 'new database name' How can i get around
this? Or better yet what book is this located in so i can do a test
restore. Thanks in advance.

Parameter db_name must be the same for the source database ("target") and
the clone ("auxiliary").

--http://www.mladen-gogala.com
So can I jsut create a new DB on the the new server with the same name
as the old DB?



Reply With Quote
  #4  
Old   
EscVector
 
Posts: n/a

Default Re: rman test restore - 05-29-2007 , 10:21 AM



On May 29, 9:37 am, cptkirkh <k... (AT) scic (DOT) com> wrote:
Quote:
On May 25, 5:27 pm, Mladen Gogala <mgogala.SPAM_ME.... (AT) verizon (DOT) net
wrote:

On Fri, 25 May 2007 15:02:23 -0700, cptkirkh wrote:
When I get to step 7 it tells that ora-01103: databse name 'old database
name' in controlfile is not 'new database name' How can i get around
this? Or better yet what book is this located in so i can do a test
restore. Thanks in advance.

Parameter db_name must be the same for the source database ("target") and
the clone ("auxiliary").

--http://www.mladen-gogala.com

So can I jsut create a new DB on the the new server with the same name
as the old DB?
short answer, yes.



Reply With Quote
  #5  
Old   
cptkirkh
 
Posts: n/a

Default Re: rman test restore - 05-29-2007 , 10:54 AM



On May 29, 10:21 am, EscVector <J... (AT) webthere (DOT) com> wrote:
Quote:
On May 29, 9:37 am,cptkirkh<k... (AT) scic (DOT) com> wrote:





On May 25, 5:27 pm, Mladen Gogala <mgogala.SPAM_ME.... (AT) verizon (DOT) net
wrote:

On Fri, 25 May 2007 15:02:23 -0700,cptkirkhwrote:
When I get to step 7 it tells that ora-01103: databse name 'old database
name' in controlfile is not 'new database name' How can i get around
this? Or better yet what book is this located in so i can do a test
restore. Thanks in advance.

Parameter db_name must be the same for the source database ("target") and
the clone ("auxiliary").

--http://www.mladen-gogala.com

So can I jsut create a new DB on the the new server with the same name
as the old DB?

short answer, yes.- Hide quoted text -

- Show quoted text -
Ok with that in mind I have one more question. If the server I am
using to do a test restore has a database with the same name and if
there is an application on that server that connects to the production
DB will the application be able to connect to the production DB after
I create a DB by the same name?



Reply With Quote
  #6  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: rman test restore - 05-29-2007 , 12:45 PM



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

cptkirkh wrote:

Quote:
Ok with that in mind I have one more question. If the server I am
using to do a test restore has a database with the same name and if
there is an application on that server that connects to the production
DB will the application be able to connect to the production DB after
I create a DB by the same name?

Naming has little to do with it (or everything...).
As the application connects to the production db, which is
on another machine (names....), the application will still
connect to the original database instance, not the clone.

Depends somewhat on how the application connects:
- - using jdbc, the connection would be of the form
machine_name:listener_port:service_name.
- - using Oracle Net, the connection would either be using
the same form, or a TNS alias.

In the first case, the machine name differs, so the application
will connect to the original database instance.
In the seconds case, you either have the first case, or your
TNS alias would point to the original machine, causing the
application to connect to the original database instance.

In short: it will connect to the original one, unless you
change the way the application connects. You may consider
defining duplicate connections - SQL*Net does try all defined
connections sequentially, until the connection succeeds (or
fails completely, of course)
- --
Regards,
Frank van Bortel

Top-posting is one way to shut me up...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)

iD8DBQFGXGayLw8L4IAs830RAp1lAKCX9stXOAKEhi0QzDQUEZ 0g+8GJuQCeKCXe
C0LSujKkioBUrMuWjqEiHJc=
=J0CK
-----END PGP SIGNATURE-----


Reply With Quote
  #7  
Old   
cptkirkh
 
Posts: n/a

Default Re: rman test restore - 05-29-2007 , 01:18 PM



On May 29, 12:45 pm, Frank van Bortel <frank.van.bor... (AT) gmail (DOT) com>
wrote:
Quote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

cptkirkh wrote:
Ok with that in mind I have one more question. If theserverI am
using to do a testrestorehas adatabasewith the samenameand if
there is an application on thatserverthat connects to the production
DB will the application be able to connect to the production DB after
I create a DB by the samename?

Naming has little to do with it (or everything...).
As the application connects to the production db, which is
on another machine (names....), the application will still
connect to the originaldatabaseinstance, not the clone.

Depends somewhat on how the application connects:
- - using jdbc, the connection would be of the form
machine_name:listener_port:service_name.
- - using Oracle Net, the connection would either be using
the same form, or a TNS alias.

In the first case, the machinenamediffers, so the application
will connect to the originaldatabaseinstance.
In the seconds case, you either have the first case, or your
TNS alias would point to the original machine, causing the
application to connect to the originaldatabaseinstance.

In short: it will connect to the original one, unless you
change the way the application connects. You may consider
defining duplicate connections - SQL*Net does try all defined
connections sequentially, until the connection succeeds (or
fails completely, of course)
- --
Regards,
Frank van Bortel

Top-posting is one way to shut me up...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)

iD8DBQFGXGayLw8L4IAs830RAp1lAKCX9stXOAKEhi0QzDQUEZ 0g+8GJuQCeKCXe
C0LSujKkioBUrMuWjqEiHJc=
=J0CK
-----END PGP SIGNATURE-----
Thnaks Frank... after talkign to one of the developers I think I am
going to move the app and then do the restore.



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

Default Re: rman test restore - 05-29-2007 , 06:24 PM



On May 29, 11:18 am, cptkirkh <k... (AT) scic (DOT) com> wrote:
Quote:
On May 29, 12:45 pm, Frank van Bortel <frank.van.bor... (AT) gmail (DOT) com
wrote:

cptkirkh wrote:
Ok with that in mind I have one more question. If theserverI am
using to do a testrestorehas adatabasewith the samenameand if
there is an application on thatserverthat connects to the production
DB will the application be able to connect to the production DB after
I create a DB by the samename?

Naming has little to do with it (or everything...).
As the application connects to the production db, which is
on another machine (names....), the application will still
connect to the originaldatabaseinstance, not the clone.

Depends somewhat on how the application connects:
- - using jdbc, the connection would be of the form
machine_name:listener_port:service_name.
- - using Oracle Net, the connection would either be using
the same form, or a TNS alias.

In the first case, the machinenamediffers, so the application
will connect to the originaldatabaseinstance.
In the seconds case, you either have the first case, or your
TNS alias would point to the original machine, causing the
application to connect to the originaldatabaseinstance.

In short: it will connect to the original one, unless you
change the way the application connects. You may consider
defining duplicate connections - SQL*Net does try all defined
connections sequentially, until the connection succeeds (or
fails completely, of course)
- --
Regards,
Frank van Bortel


Thnaks Frank... after talkign to one of the developers I think I am
going to move the app and then do the restore.- Hide quoted text -

If you have metalink access, a search on:
dbid RMAN
may be quite informative. Note: 360962.1 is pretty interesting.

jg
--
@home.com is bogus.
Pocket pacman: http://www.signonsandiego.com/uniont...s_1b29key.html



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.