ora 19698 file is from different database id= db_name= [message #613648] |
Thu, 08 May 2014 23:45  |
theowais
Messages: 75 Registered: October 2009 Location: Multan
|
Member |
|
|
Hi,
Cold backup of source machine restored on target machine successfully.
Hot backup is restored by following steps:
RMAN> startup nomount
RMAN> set dbid=174105117
Source and target systems have different dbids (I've set source machine dbid on target machine)
RMAN> run {
2> set controlfile autobackup format for device type disk to '/opt/backup/%F';
3> restore controlfile from autobackup; }
RMAN> alter database mount;
RMAN> run {
2> allocate channel disk1 device type disk format '/opt/backup/%F';
3> restore database; }
RMAN> recover database;
ora 19698 file is from different database id= db_name=
regards,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: ora 19698 file is from different database id= db_name= [message #613668 is a reply to message #613665] |
Fri, 09 May 2014 01:28   |
John Watson
Messages: 8803 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
theowais wrote on Fri, 09 May 2014 07:15Michel Cadot
Actually the server got down accidentally, so the session can not be copied and pasted.
I've pasted the sequence of commands as they were executed.
John Watson
Complete backup of last Saturday restored on Monday.
You didn't answer my question, did you? My best guess is that "complete" means that the database was included.
If so, two more questons:
Firt, why did you change the DBID?
Second, why do you want to restore again?
|
|
|
Re: ora 19698 file is from different database id= db_name= [message #613675 is a reply to message #613668] |
Fri, 09 May 2014 02:09   |
theowais
Messages: 75 Registered: October 2009 Location: Multan
|
Member |
|
|
Michel Cadot
I got dbid. Now kindly explain the steps for restoration. What dbid should be given Source ora Target?
John Watson
Yes database was included.
First, why did you change the DBID?
Actually dbid of target and source system we not same there for I want to make
Second, why do you want to restore again?
I need to restore hot backup first I restored cold backup. This is business requirement.
|
|
|
|
|
Re: ora 19698 file is from different database id= db_name= [message #613685 is a reply to message #613680] |
Fri, 09 May 2014 03:00   |
theowais
Messages: 75 Registered: October 2009 Location: Multan
|
Member |
|
|
RMAN> startup nomount
Oracle instance started
Total System Global Area 1068937216 bytes
Fixed Size 2166536 bytes
Variable Size 427819256 bytes
Database Buffers 624951296 bytes
Redo Buffers 14000128 bytes
RMAN> set dbid=174105117
executing command: SET DBID
RMAN> run {
2> set controlfile autobackup format for device type disk to '/opt/backup/%F';
3> restore controlfile from autobackup; }
executing command: SET CONTROLFILE AUTOBACKUP FORMAT
using target database control file instead of recovery catalog
Starting restore at 09-MAY-14
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=383 device type=DISK
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20140509
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20140508
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20140507
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20140506
channel ORA_DISK_1: AUTOBACKUP found: /opt/backup/c-174105117-20140506-00
channel ORA_DISK_1: restoring control file from AUTOBACKUP /opt/backup/c-174105117-20140506-00
channel ORA_DISK_1: control file restore from AUTOBACKUP complete
output file name=/opt/oracle/db/apps_st/data/cntrl01.dbf
output file name=/opt/oracle/db/apps_st/data/cntrl02.dbf
output file name=/opt/oracle/db/apps_st/data/cntrl03.dbf
Finished restore at 09-MAY-14
RMAN> alter database mount;
database mounted
released channel: ORA_DISK_1
RMAN> run {
2> allocate channel disk1 device type disk format '/opt/backup/%F';
3> restore database; }
allocated channel: disk1
channel disk1: SID=383 device type=DISK
Starting restore at 09-MAY-14
skipping datafile 1; already restored to file /opt/oracle/db/apps_st/data/system01.dbf
skipping datafile 5; already restored to file /opt/oracle/db/apps_st/data/system05.dbf
skipping datafile 7; already restored to file /opt/oracle/db/apps_st/data/owad01.dbf
skipping datafile 8; already restored to file /opt/oracle/db/apps_st/data/a_queue02.dbf
skipping datafile 11; already restored to file /opt/oracle/db/apps_st/data/sysaux01.dbf
skipping datafile 16; already restored to file /opt/oracle/db/apps_st/data/a_ref03.dbf
skipping datafile 31; already restored to file /opt/oracle/db/apps_st/data/a_media02.dbf
skipping datafile 36; already restored to file /opt/oracle/db/apps_st/data/a_archive02.dbf
skipping datafile 40; already restored to file /opt/oracle/db/apps_st/data/system13.dbf
skipping datafile 45; already restored to file /opt/oracle/db/apps_st/data/a_txn_data08.dbf
skipping datafile 49; already restored to file /opt/oracle/db/apps_st/data/sysaux07.dbf
skipping datafile 53; already restored to file /opt/oracle/db/apps_st/data/undo10.dbf
skipping datafile 56; already restored to file /opt/oracle/db/apps_st/data/a_queue03.dbf
skipping datafile 58; already restored to file /opt/oracle/db/apps_st/data/undo13.dbf
skipping datafile 62; already restored to file /opt/oracle/db/apps_st/data/undo14.dbf
skipping datafile 353; already restored to file /opt/oracle/db/apps_st/data/system08.dbf
skipping datafile 393; already restored to file /opt/oracle/db/apps_st/data/a_txn_ind01.dbf
skipping datafile 394; already restored to file /opt/oracle/db/apps_st/data/a_ref01.dbf
skipping datafile 399; already restored to file /opt/oracle/db/apps_st/data/a_queue01.dbf
skipping datafile 401; already restored to file /opt/oracle/db/apps_st/data/a_txn_data02.dbf
skipping datafile 2; already restored to file /opt/oracle/db/apps_st/data/system02.dbf
skipping datafile 9; already restored to file /opt/oracle/db/apps_st/data/odm.dbf
skipping datafile 12; already restored to file /opt/oracle/db/apps_st/data/apps_ts_tools01.dbf
skipping datafile 13; already restored to file /opt/oracle/db/apps_st/data/system12.dbf
skipping datafile 15; already restored to file /opt/oracle/db/apps_st/data/a_txn_ind06.dbf
skipping datafile 17; already restored to file /opt/oracle/db/apps_st/data/a_int02.dbf
skipping datafile 18; already restored to file /opt/oracle/db/apps_st/data/sysaux02.dbf
skipping datafile 19; already restored to file /opt/oracle/db/apps_st/data/a_cane_data01.dbf
skipping datafile 33; already restored to file /opt/oracle/db/apps_st/data/a_txn_data07.dbf
skipping datafile 34; already restored to file /opt/oracle/db/apps_st/data/ctxd03.dbf
skipping datafile 39; already restored to file /opt/oracle/db/apps_st/data/undo05.dbf
skipping datafile 42; already restored to file /opt/oracle/db/apps_st/data/a_summ02.dbf
skipping datafile 44; already restored to file /opt/oracle/db/apps_st/data/a_int05.dbf
skipping datafile 48; already restored to file /opt/oracle/db/apps_st/data/undo07.dbf
skipping datafile 52; already restored to file /opt/oracle/db/apps_st/data/undo09.dbf
skipping datafile 57; already restored to file /opt/oracle/db/apps_st/data/undo12.dbf
skipping datafile 61; already restored to file /opt/oracle/db/apps_st/data/system14.dbf
skipping datafile 314; already restored to file /opt/oracle/db/apps_st/data/portal01.dbf
skipping datafile 392; already restored to file /opt/oracle/db/apps_st/data/a_txn_data01.dbf
skipping datafile 398; already restored to file /opt/oracle/db/apps_st/data/a_archive01.dbf
skipping datafile 400; already restored to file /opt/oracle/db/apps_st/data/a_media01.dbf
skipping datafile 405; already restored to file /opt/oracle/db/apps_st/data/a_txn_ind04.dbf
skipping datafile 3; already restored to file /opt/oracle/db/apps_st/data/system03.dbf
skipping datafile 10; already restored to file /opt/oracle/db/apps_st/data/olap.dbf
skipping datafile 14; already restored to file /opt/oracle/db/apps_st/data/a_txn_data04.dbf
skipping datafile 20; already restored to file /opt/oracle/db/apps_st/data/a_txn_data05.dbf
skipping datafile 21; already restored to file /opt/oracle/db/apps_st/data/sysaux03.dbf
skipping datafile 23; already restored to file /opt/oracle/db/apps_st/data/a_txn_ind07.dbf
skipping datafile 25; already restored to file /opt/oracle/db/apps_st/data/ctxd02.dbf
skipping datafile 26; already restored to file /opt/oracle/db/apps_st/data/sysaux04.dbf
skipping datafile 27; already restored to file /opt/oracle/db/apps_st/data/sysaux05.dbf
skipping datafile 28; already restored to file /opt/oracle/db/apps_st/data/odm01.dbf
skipping datafile 29; already restored to file /opt/oracle/db/apps_st/data/a_txn_data06.dbf
skipping datafile 38; already restored to file /opt/oracle/db/apps_st/data/a_txn_ind09.dbf
skipping datafile 43; already restored to file /opt/oracle/db/apps_st/data/a_int04.dbf
skipping datafile 47; already restored to file /opt/oracle/db/apps_st/data/undo06.dbf
skipping datafile 51; already restored to file /opt/oracle/db/apps_st/data/undo08.dbf
skipping datafile 55; already restored to file /opt/oracle/db/apps_st/data/a_txn_data09.dbf
skipping datafile 60; already restored to file /opt/oracle/db/apps_st/data/a_txn_data10.dbf
skipping datafile 295; already restored to file /opt/oracle/db/apps_st/data/system06.dbf
skipping datafile 354; already restored to file /opt/oracle/db/apps_st/data/system11.dbf
skipping datafile 403; already restored to file /opt/oracle/db/apps_st/data/a_txn_ind02.dbf
skipping datafile 404; already restored to file /opt/oracle/db/apps_st/data/a_txn_ind03.dbf
skipping datafile 407; already restored to file /opt/oracle/db/apps_st/data/a_ref02.dbf
skipping datafile 4; already restored to file /opt/oracle/db/apps_st/data/system04.dbf
skipping datafile 6; already restored to file /opt/oracle/db/apps_st/data/ctxd01.dbf
skipping datafile 22; already restored to file /opt/oracle/db/apps_st/data/undo02.dbf
skipping datafile 24; already restored to file /opt/oracle/db/apps_st/data/undo03.dbf
skipping datafile 30; already restored to file /opt/oracle/db/apps_st/data/a_txn_ind08.dbf
skipping datafile 32; already restored to file /opt/oracle/db/apps_st/data/a_nolog02.dbf
skipping datafile 35; already restored to file /opt/oracle/db/apps_st/data/sysaux06.dbf
skipping datafile 37; already restored to file /opt/oracle/db/apps_st/data/undo04.dbf
skipping datafile 41; already restored to file /opt/oracle/db/apps_st/data/a_int03.dbf
skipping datafile 46; already restored to file /opt/oracle/db/apps_st/data/a_int06.dbf
skipping datafile 50; already restored to file /opt/oracle/db/apps_st/data/a_txn_ind10.dbf
skipping datafile 54; already restored to file /opt/oracle/db/apps_st/data/undo11.dbf
skipping datafile 59; already restored to file /opt/oracle/db/apps_st/data/sysaux08.dbf
skipping datafile 288; already restored to file /opt/oracle/db/apps_st/data/system10.dbf
skipping datafile 351; already restored to file /opt/oracle/db/apps_st/data/system07.dbf
skipping datafile 352; already restored to file /opt/oracle/db/apps_st/data/system09.dbf
skipping datafile 379; already restored to file /opt/oracle/db/apps_st/data/undo01.dbf
skipping datafile 395; already restored to file /opt/oracle/db/apps_st/data/a_int01.dbf
skipping datafile 396; already restored to file /opt/oracle/db/apps_st/data/a_summ01.dbf
skipping datafile 397; already restored to file /opt/oracle/db/apps_st/data/a_nolog01.dbf
skipping datafile 402; already restored to file /opt/oracle/db/apps_st/data/a_txn_data03.dbf
skipping datafile 406; already restored to file /opt/oracle/db/apps_st/data/a_txn_ind05.dbf
restore not done; all files read only, offline, or already restored
Finished restore at 09-MAY-14
RMAN> recover database;
Starting recover at 09-MAY-14
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
using channel ORA_DISK_4
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 05/09/2014 12:43:34
ORA-19698: /opt/oracle/db/apps_st/data/log01a.dbf is from different database: id=258686669, db_name=PROD
RMAN> exit
|
|
|
|
|
|
|
|
|
Re: ora 19698 file is from different database id= db_name= [message #613703 is a reply to message #613698] |
Fri, 09 May 2014 06:12   |
John Watson
Messages: 8803 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
theowais wrote on Fri, 09 May 2014 11:03Apologies for misunderstanding John Watson and Michel Cadot. I was answering both of you individually.
Again I'm sorry. Please do not leave it and help me to resolve the issue.
Please explain how to (re)move all files and restart from the beginning.
regards, All right, one more try.
First, you remove files with the rm command.
Second, your problems are, as I said before, because what you doing will not work. You appear to be restoring a database, changing its dbid, and then attempting to recover. You can't do that.
I see that you are working on an EBS database. Can you explain what you are actually want to do? For example, are you trying to clone the EBS instance? If so, you should follow the instructions for the Rapid Clone process. Or are you trying to clone only the database? In which case, you should do an RMAN duplicate.
|
|
|
Re: ora 19698 file is from different database id= db_name= [message #613705 is a reply to message #613703] |
Fri, 09 May 2014 06:43   |
theowais
Messages: 75 Registered: October 2009 Location: Multan
|
Member |
|
|
Quote:Thanks
What files are you be removed?
All files on following location:
"/opt/oracle/db/apps_st/data/"
Actually I want to solve following error:
RA-19698: /opt/oracle/db/apps_st/data/log01a.dbf is from different database: id=258686669, db_name=PROD
Initially our EBS was configured for cold backup now we shift it on hot backup and when we restore the hot backup it generate error. I want to successfully restore the hot backup successfully.
regards,
|
|
|
|
Re: ora 19698 file is from different database id= db_name= [message #613708 is a reply to message #613688] |
Fri, 09 May 2014 07:11  |
 |
EdStevens
Messages: 1375 Registered: September 2013
|
Senior Member |
|
|
theowais wrote on Fri, 09 May 2014 03:07Michel Cadot please update.
Pardon me for jumping in, but this message was posted a mere one minute after your previous message. Please note that this forum is not a chat line. It is a global forum with participants scattered across 24 time zones. While you were just sitting down with your first cup of coffee, someone responding to your post may be finishing his day and starting to shut down and go do something else. Also that all participants have real jobs (and this forum isn't it) and simply participate here "in the cracks".
If you have a truly urgent situation, you should open an SR with oracle support.
|
|
|