Problem in recovering a database on another machine
Dear All,
I need your help in restoring and recovering a database on another machine. I don't have access to old machine to get logfile or archivelogs. I have taken full backup using RMAN. I have restored the database using rman sucessfully and trying to recover the database. RMAN have't restored the logfile. Database version is 8.1.7.4, OS is Solaris 8. In recovery, its showing the problem in rbs file. I'm showing all command and error. Just give me any idea that how to recover it sucessfully.
SVRMGRL>recover database using backup controlfile until cancel;
ORA-0279: Change 1935345519 generated at 08/19/2005 16:45:50 needed for thread 1
ORA-0289: suggestion: /u07/oraexp/PROD/arch/arch_1_29958.arc
ORA-0280: Change 1935345519 for thread 1 is in sequence #29958
specify log : {RET}...
cancel
ORA-01547: warning: Recover succeeded but open resetlogs would get error below
ORA-01194: file 2 needs more recovery to be consistent
ORA-01110: data file 2: '/u06/oracle/oradata/PROD/rbs01-PROD.dbf'
This RBS file size is 7GB. Is it the reason of problem. Even I tried until time, but its also has same error.
SVRMGRL>recover database using backup controlfile until time '2005-08-16:20:10:00';
ORA-0279: Change 1935345519 generated at 08/19/2005 16:45:50 needed for thread 1
ORA-0289: suggestion: /u07/oraexp/PROD/arch/arch_1_29958.arc
ORA-0280: Change 1935345519 for thread 1 is in sequence #29958
specify log : {RET}...
cancel
ORA-01547: warning: Recover succeeded but open resetlogs would get error below
ORA-01194: file 2 needs more recovery to be consistent
ORA-01110: data file 2: '/u06/oracle/oradata/PROD/rbs01-PROD.dbf'
Why its asking for archive file which generated on 19th, when I'm trying to recover until 16th only.
Regards
Rakesh
Hi.
What is the size of the redo logs in the database. With a small amount of transactions, there might be redo in this particular archived file from two days back. The timestamp of the archivelogfiles does not indicate that all redo in the file is from this day. It might have changes several days back if no logswitch occured inbetween.
So, if I were you, I would provide all archivelogs required to get the datafiles consistent.
As a matter of fact, if archived redo is in the following folder :
/u07/oraexp/PROD/arch/
I would use recover database until time and press return for all archived logs svrmgrl comes up with.
I assume that the database was closed normally prior to taking the offline backup.
Good luck.
Rgds
Kjell Ove
Similar Messages
-
Using mysql database on another machine without having mysql installed
Hi...
I was wondering whether its possible to copy a Mysql database that I have created on my machine, take it to another machine which does not have Mysql command line stuff installed and use my own JDBC connection to the copied mysql database and start manipulating my data. I don't know if this is possible or not ..
The main purpose of doing this is I am creating a Java program which uses a Mysql database and I want to know if I give it to someone else to use it do they have to install Mysql and all the package or can they simply start using it.
Thanks a lot
Sassanmasijade. wrote:
TuringPest wrote:
masijade. wrote:
Sasanpad wrote:
Hi...
I was wondering whether its possible to copy a Mysql database that I have created on my machine, take it to another machine which does not have Mysql command line stuff installed and use my own JDBC connection to the copied mysql database and start manipulating my data. I don't know if this is possible or not ..No. Not only would it be in violation of the terms of your license, but a MySQL database is a client/server type setup. No MySQL binaries, no server, your client (jdbc) cannot connect.im just curious because im new to mysql myself, but what do you mean that its a violation of his license?
do you mean for the commercial version?If he licenses his application under GPL, okay, no problem. Otherwise I read this quote
Free use for those who never copy, modify or distribute. As long as you never distribute the MySQL Software in any way, you are free to use it for powering your application, irrespective of whether your application is under GPL license or not.
to mean that you are not allowed to distribute MySQL (or any part of it, unless your application is GPL licensed) with your application, and if he distributes even just the data directory, he is distributing at least a part of MySQL.
Other's may not see it that way, but do you want to take the chance?The critical element is the word distribute. If he tries to embed MySQL in the application he is giving to his users, he's distributing it. Hence a violation of the license. That does not in any way prevent him from including scripts that when the application is installed goes out and runs the script on the user's installation of MySQL and builds the databases and whatnot his application needs on their MySQL installation.
Now, for the OP. If all you're keeping up with is urls and such and you don't have hundreds of them. I wouldn't bother with a db at all. a properties file would actually serve your purposes, and xml would suit just fine. Of course you'd have to have access to the file system and such but no licensing issues at all.
PS. -
Connecting to a database on another machine, please help!!!!!!
Hi there,
I am new to oracle and at the minute I am using Oracle 9i. I have set up a database on one machine (PC2) and would like to create an odbc from another machine (PC1) to connect to this database. I have set up a listener for (PC1) the using oracle net manager on PC2. what I want to know is: is there anything else I need to do on the PC2 end???? Also, what needs to be done on the PC1 end??? please help!!!If everything is setup and working properly on the Server PC2, you can just test the ODBC from PC1 (assum you already have an Oracle ODBC drive).
-
Problem in recovering the database!!!
Hi All,
I created a new database and wanted to restore the backup of another database into it, I created the required tablespaces and started restore of backup from RMAN using
run {
allocate channel 'dev_0' type 'sbt_tape'
parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=orcl,OB2BARLIST=DAILY_HISDBS01_ORACLE-DB_ONLINE_5W,OB2BARHOSTNAME=hisdbs01.kfmc.med)';
restore controlfile from 'c-1179279249-20090511-02';
alter database mount;
release channel 'dev_0';
The controlfile got restored successfully, then I tried to restore & recover the database
run {
allocate channel 'dev_0' type 'sbt_tape'
parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=central,OB2BARLIST=DAILY_HISDBS01_ORACLE-DB_ONLINE_5W,OB2BARHOSTNAME=hisdbs01.kfmc.med)';
restore database;
recover database;
release channel 'dev_0';
The restore was successful, but when I tried to open the database with resetlogs option
SQL> alter database open resetlogs;
alter database open resetlogs
ERROR at line 1:
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '+DATADG/orcl/datafile/system.295.686609187'
SQL> recover database using backup controlfile until cancel;
ORA-00279: change 1136286903 generated at 05/11/2009 02:08:22 needed for thread1
ORA-00289: suggestion : */arch/archivelog/1_8493_651861624.dbf*
ORA-00280: change 1136286903 for thread 1 is in sequence #8493
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
cancel
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '+DATADG/orcl/datafile/system.295.686609187'
ORA-01112: media recovery not started
The recovery process is looking for */arch/archivelog/1_8493_651861624.dbf* this archivelog, but this archivelog file is not present at that location, the restore process should have restored all the archivelogs as well, actually no archivelogs got restored, how can I recover the database without archivelog logs? it is not possible at all.
PLEASE tell me how can I make the database work?Thanks Hemant !!!
I restored the archivelogs using the script below
run {
allocate channel 'dev_0' type 'sbt_tape'
parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=central,OB2BARLIST=DAILY_HISDBS01_ORACLE-DB_ONLINE_5W,OB2BARHOSTNAME=hisdbs01.kfmc.med)';
restore ARCHIVELOG FROM TIME 'SYSDATE-5' UNTIL TIME 'SYSDATE';
release channel 'dev_0';
then recoverd the database and applied the requested archivelog file and opened the database with resetlogs, it is now successfully recovered upto the point I wanted it to be. -
Restore Oracle XE database to another machine
I have an oracle XE database on a Windows XP machine, and I want to copy it to a Windows 7 machine.
On the XP, I performed a backup through the "Backup Database" from the GUI (BACKUP.BAT). The Oracle backup created 3 new folders underneath C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\
ARCHIVELOG
AUTOBACKUP
BACKUPSET
I installed XE on the Windows 7 machine and it seems to work well.
Then I coped the 3 backup folders onto a jump drive and put them in the corresponding folder structure on the new Windows 7 machine. I ran the Restore from the GUI as an administrator (RESTORE.BAT). The restore failed, and I can't seem to figure out why. I'm not sure what the Sequence Numbers are all about.
Now I can't get into Apex or Apex_Admin
Thanks for taking a look at this.
The contents of the OXE_RESTORE file are as follows:
Recovery Manager: Release 10.2.0.1.0 - Production on Sat Jan 8 18:33:11 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Windows NT Version V6.1
CPU : 8 - type 586, 4 Physical Cores
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:6031M/8183M, Ph+PgF:13737M/16364M, VA:1973M/2047M
Starting with debugging turned off
connected to target database: xe (not mounted)
RMAN> set echo on;
2> restore (spfile from autobackup db_recovery_file_dest='C:\oraclexe\app\oracle\flash_recovery_area\');
3> startup nomount force;
4> restore (controlfile from autobackup);
5> alter database mount;
6> configure controlfile autobackup off;
7> restore database;
8>
echo set on
Starting restore at 08-JAN-11
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=37 devtype=DISK
recovery area destination: C:\oraclexe\app\oracle\flash_recovery_area\
database name (or database unique name) used for search: XE
channel ORA_DISK_1: autobackup found in the recovery area
channel ORA_DISK_1: autobackup found: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_.BKP
channel ORA_DISK_1: SPFILE restore from autobackup complete
Finished restore at 08-JAN-11
Oracle instance started
Total System Global Area 805306368 bytes
Fixed Size 1289996 bytes
Variable Size 239075572 bytes
Database Buffers 562036736 bytes
Redo Buffers 2904064 bytes
Starting restore at 08-JAN-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=36 devtype=DISK
recovery area destination: C:\oraclexe\app\oracle\flash_recovery_area
database name (or database unique name) used for search: XE
channel ORA_DISK_1: autobackup found in the recovery area
channel ORA_DISK_1: autobackup found: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_.BKP
channel ORA_DISK_1: control file restore from autobackup complete
output filename=C:\ORACLEXE\ORADATA\XE\CONTROL.DBF
Finished restore at 08-JAN-11
database mounted
released channel: ORA_DISK_1
old RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
new RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP OFF;
new RMAN configuration parameters are successfully stored
Starting restore at 08-JAN-11
Starting implicit crosscheck backup at 08-JAN-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=35 devtype=DISK
Crosschecked 1 objects
Finished implicit crosscheck backup at 08-JAN-11
Starting implicit crosscheck copy at 08-JAN-11
using channel ORA_DISK_1
Finished implicit crosscheck copy at 08-JAN-11
searching for all files in the recovery area
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_.ARC
File Name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_.ARC
File Name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_.BKP
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF
restoring datafile 00002 to C:\ORACLEXE\ORADATA\XE\UNDO.DBF
restoring datafile 00003 to C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF
restoring datafile 00004 to C:\ORACLEXE\ORADATA\XE\USERS.DBF
restoring datafile 00005 to C:\ORACLEXE\ORADATA\XE\APEX_1244616068553754.DBF
channel ORA_DISK_1: reading from backup piece C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2011_01_07\O1_MF_NNNDF_TAG20110107T194642_6LHDZM3X_.BKP
channel ORA_DISK_1: restored backup piece 1
piece handle=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2011_01_07\O1_MF_NNNDF_TAG20110107T194642_6LHDZM3X_.BKP tag=TAG20110107T194642
channel ORA_DISK_1: restore complete, elapsed time: 00:00:56
Finished restore at 08-JAN-11
Recovery Manager complete.
Recovery Manager: Release 10.2.0.1.0 - Production on Sat Jan 8 18:34:37 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Windows NT Version V6.1
CPU : 8 - type 586, 4 Physical Cores
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:6021M/8183M, Ph+PgF:13238M/16364M, VA:1973M/2047M
Starting with debugging turned off
connected to target database: XE (DBID=2604800077, not open)
RMAN> set echo on;
2> recover database;
3> alter database open resetlogs;
4>
echo set on
Starting recover at 08-JAN-11
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=38 devtype=DISK
starting media recovery
archive log thread 1 sequence 375 is already on disk as file C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_.ARC
archive log thread 1 sequence 376 is already on disk as file C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_.ARC
archive log filename=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_.ARC thread=1 sequence=375
archive log filename=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_.ARC thread=1 sequence=376
unable to find archive log
archive log thread=1 sequence=377
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 01/08/2011 18:34:47
RMAN-20000: abnormal termination of job step
RMAN-06054: media recovery requesting unknown log: thread 1 seq 377 lowscn 11715842
Recovery Manager complete.After playing around a little bit I fixed the problem.
There are a total of four folders in \FLASH_RECOVERY_AREA\XE\ I had only copied three of the four.
ARCHIVELOG
AUTOBACKUP
BACKUPSET
The Windows services keep the files in ONLINELOG open, so I had to shut down the services and then work with the folder. Therefore four folders have to be transported and copied onto the new machine:
ARCHIVELOG
AUTOBACKUP
BACKUPSET
ONLINELOG
If you run as an administrator "Backup" from the GUI, it executes BACKUP.BAT, a batch file which calls RMAN. Once that's done, copy the four folders to the same location on the target machine and then run as an administrator "Restore" (RESTORE.BAT).
In another forum someone said to be sure that the "Archive Logs" are copied. It should be interpreted to mean not just the "ARCHIVELOG" folder, but all four folders.
Edited by: PhilMan2 on Jan 11, 2011 11:28 AM -
Restore Oracle XE 10g Database to another machine
Hello,
I have an oracle XE database on a Windows XP machine, and I want to copy it to a Windows 7 machine.
On the XP, I performed a backup through the "Backup Database" from the GUI. The Oracle backup created 3 new folders underneath C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\
ARCHIVELOG
AUTOBACKUP
BACKUPSET
I installed XE on the Windows 7 machine and it seems to work well.
Then I coped the 3 backup folders onto a jump drive and put them in the corresponding folder structure on the new Windows 7 machine. I ran the Restore from the GUI as an administrator. The restore failed, and I can't seem to figure out why. I'm not sure what the Sequence Numbers are all about.
Now I can't get into Apex or Apex_Admin
Thanks for taking a look at this.
The contents of the OXE_RESTORE file are as follows:
Recovery Manager: Release 10.2.0.1.0 - Production on Sat Jan 8 18:33:11 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Windows NT Version V6.1
CPU : 8 - type 586, 4 Physical Cores
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:6031M/8183M, Ph+PgF:13737M/16364M, VA:1973M/2047M
Starting with debugging turned off
connected to target database: xe (not mounted)
RMAN> set echo on;
2> restore (spfile from autobackup db_recovery_file_dest='C:\oraclexe\app\oracle\flash_recovery_area\');
3> startup nomount force;
4> restore (controlfile from autobackup);
5> alter database mount;
6> configure controlfile autobackup off;
7> restore database;
8>
echo set on
Starting restore at 08-JAN-11
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=37 devtype=DISK
recovery area destination: C:\oraclexe\app\oracle\flash_recovery_area\
database name (or database unique name) used for search: XE
channel ORA_DISK_1: autobackup found in the recovery area
channel ORA_DISK_1: autobackup found: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_.BKP
channel ORA_DISK_1: SPFILE restore from autobackup complete
Finished restore at 08-JAN-11
Oracle instance started
Total System Global Area 805306368 bytes
Fixed Size 1289996 bytes
Variable Size 239075572 bytes
Database Buffers 562036736 bytes
Redo Buffers 2904064 bytes
Starting restore at 08-JAN-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=36 devtype=DISK
recovery area destination: C:\oraclexe\app\oracle\flash_recovery_area
database name (or database unique name) used for search: XE
channel ORA_DISK_1: autobackup found in the recovery area
channel ORA_DISK_1: autobackup found: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_.BKP
channel ORA_DISK_1: control file restore from autobackup complete
output filename=C:\ORACLEXE\ORADATA\XE\CONTROL.DBF
Finished restore at 08-JAN-11
database mounted
released channel: ORA_DISK_1
old RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
new RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP OFF;
new RMAN configuration parameters are successfully stored
Starting restore at 08-JAN-11
Starting implicit crosscheck backup at 08-JAN-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=35 devtype=DISK
Crosschecked 1 objects
Finished implicit crosscheck backup at 08-JAN-11
Starting implicit crosscheck copy at 08-JAN-11
using channel ORA_DISK_1
Finished implicit crosscheck copy at 08-JAN-11
searching for all files in the recovery area
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_.ARC
File Name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_.ARC
File Name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_.BKP
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF
restoring datafile 00002 to C:\ORACLEXE\ORADATA\XE\UNDO.DBF
restoring datafile 00003 to C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF
restoring datafile 00004 to C:\ORACLEXE\ORADATA\XE\USERS.DBF
restoring datafile 00005 to C:\ORACLEXE\ORADATA\XE\APEX_1244616068553754.DBF
channel ORA_DISK_1: reading from backup piece C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2011_01_07\O1_MF_NNNDF_TAG20110107T194642_6LHDZM3X_.BKP
channel ORA_DISK_1: restored backup piece 1
piece handle=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2011_01_07\O1_MF_NNNDF_TAG20110107T194642_6LHDZM3X_.BKP tag=TAG20110107T194642
channel ORA_DISK_1: restore complete, elapsed time: 00:00:56
Finished restore at 08-JAN-11
Recovery Manager complete.
Recovery Manager: Release 10.2.0.1.0 - Production on Sat Jan 8 18:34:37 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Windows NT Version V6.1
CPU : 8 - type 586, 4 Physical Cores
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:6021M/8183M, Ph+PgF:13238M/16364M, VA:1973M/2047M
Starting with debugging turned off
connected to target database: XE (DBID=2604800077, not open)
RMAN> set echo on;
2> recover database;
3> alter database open resetlogs;
4>
echo set on
Starting recover at 08-JAN-11
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=38 devtype=DISK
starting media recovery
archive log thread 1 sequence 375 is already on disk as file C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_.ARC
archive log thread 1 sequence 376 is already on disk as file C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_.ARC
archive log filename=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_.ARC thread=1 sequence=375
archive log filename=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_.ARC thread=1 sequence=376
unable to find archive log
archive log thread=1 sequence=377
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 01/08/2011 18:34:47
RMAN-20000: abnormal termination of job step
RMAN-06054: media recovery requesting unknown log: thread 1 seq 377 lowscn 11715842
Recovery Manager complete.
Edited by: PhilMan2 on Jan 8, 2011 7:24 PMHi Hemant,
Thanks for responding. I still need some help.
I copied the Restore.bat file, and added the line SET UNTIL RESTORE POINT right after the SET LOCAL line.
Then I deleted and copied the three folders (ARCHIVELOG, AUTOBACKUP, BACKUPSET) that were produced from the Backup on the original machine to the corresponding location on the new machine. I ran the modified BAT file as an administrator and got similar results.
Recovery Manager: Release 10.2.0.1.0 - Production on Sun Jan 9 07:56:16 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Windows NT Version V6.1
CPU : 8 - type 586, 4 Physical Cores
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:5822M/8183M, Ph+PgF:13225M/16364M, VA:1973M/2047M
Starting with debugging turned off
connected to target database: xe (not mounted)
RMAN> set echo on;
2> restore (spfile from autobackup db_recovery_file_dest='C:\oraclexe\app\oracle\flash_recovery_area\');
3> startup nomount force;
4> restore (controlfile from autobackup);
5> alter database mount;
6> configure controlfile autobackup off;
7> restore database;
8>
echo set on
Starting restore at 09-JAN-11
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=37 devtype=DISK
recovery area destination: C:\oraclexe\app\oracle\flash_recovery_area\
database name (or database unique name) used for search: XE
channel ORA_DISK_1: autobackup found in the recovery area
channel ORA_DISK_1: autobackup found: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_.BKP
channel ORA_DISK_1: SPFILE restore from autobackup complete
Finished restore at 09-JAN-11
Oracle instance started
Total System Global Area 805306368 bytes
Fixed Size 1289996 bytes
Variable Size 239075572 bytes
Database Buffers 562036736 bytes
Redo Buffers 2904064 bytes
Starting restore at 09-JAN-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=36 devtype=DISK
recovery area destination: C:\oraclexe\app\oracle\flash_recovery_area
database name (or database unique name) used for search: XE
channel ORA_DISK_1: autobackup found in the recovery area
channel ORA_DISK_1: autobackup found: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_.BKP
channel ORA_DISK_1: control file restore from autobackup complete
output filename=C:\ORACLEXE\ORADATA\XE\CONTROL.DBF
Finished restore at 09-JAN-11
database mounted
released channel: ORA_DISK_1
old RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
new RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP OFF;
new RMAN configuration parameters are successfully stored
Starting restore at 09-JAN-11
Starting implicit crosscheck backup at 09-JAN-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=35 devtype=DISK
Crosschecked 1 objects
Finished implicit crosscheck backup at 09-JAN-11
Starting implicit crosscheck copy at 09-JAN-11
using channel ORA_DISK_1
Finished implicit crosscheck copy at 09-JAN-11
searching for all files in the recovery area
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_.ARC
File Name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_.ARC
File Name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_.BKP
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF
restoring datafile 00002 to C:\ORACLEXE\ORADATA\XE\UNDO.DBF
restoring datafile 00003 to C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF
restoring datafile 00004 to C:\ORACLEXE\ORADATA\XE\USERS.DBF
restoring datafile 00005 to C:\ORACLEXE\ORADATA\XE\APEX_1244616068553754.DBF
channel ORA_DISK_1: reading from backup piece C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2011_01_07\O1_MF_NNNDF_TAG20110107T194642_6LHDZM3X_.BKP
channel ORA_DISK_1: restored backup piece 1
piece handle=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2011_01_07\O1_MF_NNNDF_TAG20110107T194642_6LHDZM3X_.BKP tag=TAG20110107T194642
channel ORA_DISK_1: restore complete, elapsed time: 00:01:16
Finished restore at 09-JAN-11
Recovery Manager complete.
Recovery Manager: Release 10.2.0.1.0 - Production on Sun Jan 9 07:58:02 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Windows NT Version V6.1
CPU : 8 - type 586, 4 Physical Cores
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:5801M/8183M, Ph+PgF:12720M/16364M, VA:1973M/2047M
Starting with debugging turned off
connected to target database: XE (DBID=2604800077, not open)
RMAN> set echo on;
2> recover database;
3> alter database open resetlogs;
4>
echo set on
Starting recover at 09-JAN-11
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=38 devtype=DISK
starting media recovery
archive log thread 1 sequence 375 is already on disk as file C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_.ARC
archive log thread 1 sequence 376 is already on disk as file C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_.ARC
archive log filename=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_.ARC thread=1 sequence=375
archive log filename=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_.ARC thread=1 sequence=376
unable to find archive log
archive log thread=1 sequence=377
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 01/09/2011 07:58:11
RMAN-20000: abnormal termination of job step
RMAN-06054: media recovery requesting unknown log: thread 1 seq 377 lowscn 11715842
Recovery Manager complete. -
Urgent: How to restore a database to another machine without backup files
I am a beginner with Oracle and need to solve a tough problem.
I have all the files of a database on a hard disk without previously backed up. I don't have the old machine right now, I only have the hard disk from the old machine, and the new machine. There is an Oracle 9i database on the harddisk, and we need make the database work.
I've already installed the Oracle 9i on the computer(Win XP), put the files to the right folder, modified the listener.ora and tnsnames.ora, then I added the database from:
OEM -> Navigator -> Add database to tree -> Add selected databases from your local tnsnames.ora file ...
When I tried to connect to the database, I got the error:
ORA-12500: TNS: listener failed to start a dedicated server process.
The setting in my tnsnames.ora and listener.ora are all correct. tnsping <tnsname> is OK. Besides, the default database installed by the ORACLE software works fine.
Both the old machine and the new machine are Window XP. Both the old database and the new database are ORACLE 9i.
Any idea on how to mannually make it work? Thank you inadvance!
LihuaLihua,
Since you didn't create the DB with DBCA, you will need to manually create a SID.
From a command window type
ORADIM -NEW -SID mydb
Replace mydb with the DBNAME specified in your init.ora and listener.ora files.
This will create and start the service. The service should now be available as a windows service in the computer management area...
From a COMMAND window type
set oracle_sid=mydb
sqlplus /nolog
connect / as sysdba
startup
If you have all the files in the correct location the DB should start. You should then be able to connect with the database manager. Good Luck.
--Paul -
Best way to move Oracle database to another machine
Hello,
I'm trying to find the best solution for that case:
On first Unix machine I'm running 10g database. Whole oracle (binary files + datafiles + index + redo) takes about 350GB from my first storage.
On second Unix machine (and second storage) I'd like to run exactly the same instance (the first one is going to be a backup server).
I work in real OLTP environment, and I can only afford a 4-5 hours of downtime (in the night) to move from server 1. to 2.
Could you recommend me the best solution for moving database to no. 2. My problem is, that between storage 1. and storage 2. I've only 30MB/s bandwidth, sequence:
1) instance_on_1: shutdown immediate
2) scp /u01/oracle server2:/u01/oracle
3) instance_on_3: startup
will take about 3-4 hours, so I would have no time to additional tasks.
Best regards
R.user2676302 wrote:
Hello,
I'm trying to find the best solution for that case:
On first Unix machine I'm running 10g database. Whole oracle (binary files + datafiles + index + redo) takes about 350GB from my first storage.
On second Unix machine (and second storage) I'd like to run exactly the same instance (the first one is going to be a backup server).
I work in real OLTP environment, and I can only afford a 4-5 hours of downtime (in the night) to move from server 1. to 2.
Could you recommend me the best solution for moving database to no. 2. My problem is, that between storage 1. and storage 2. I've only 30MB/s bandwidth, sequence:
1) instance_on_1: shutdown immediate
2) scp /u01/oracle server2:/u01/oracle
3) instance_on_3: startup
will take about 3-4 hours, so I would have no time to additional tasks.
Best regards
R.Hi and welcome to forum. Why don't you want to use DUPLICATE DATABASE command of RMAN to duplicate the databsae without any downtime? -
Connect to database via another machine
We have a machine that is setup with a VPN connection to a database outside our firewall. Whenever we need to access this database we make a remote desktop connection to this machine.
We would like to be able to connect to the database directly from our workstation using the machine with the VPN connection as a gateway.
Any pointers in the right direction are welcome.
ReneDear Rene W.!
Please have a look at the following link. Your subject has already been discussed there:
[http://www.mydatabasesupport.com/forums/oracle-server/369378-not-able-connect-oracle-database-through-vpn.html]
Yours sincerely
Florian W. -
Moving oracle 8i database to another machine
An oracle 8i database needs to be moved from an old machine to a new one. Will running the server setup on the new machine and then overwritng the new oradata folder with the old one suffice. or will i have to copy the admin and ora81 folders also ?
This can function for you if both OS are equal:
Duplicating a Database
TIP 04: Duplicating a Database in 10g by Joel Pèrez
Joel Pérez
http://www.oracle.com/technology/experts -
10g Rel2 How to clone a database in another machine suggestions
Hi All,
We have 2 solaris boxes(prodn & backup) and our new requirement is to clone the production on the backup server.
a) If my understanding is correct , does the cloning helps to backup the changes in the production database automatically ?
b) If by any chance if production database server is down will the backup server database take over it automatically ?
c) Or can we use grid here or any other suggestions?
This is not a large database and we have max of 1gb Data with 25 users.
Thanks
Rajesh ALexHi All,
We have 2 solaris boxes(prodn & backup) and our new
requirement is to clone the production on the backup
server.
a) If my understanding is correct , does the cloning
helps to backup the changes in the production
database automatically ?No. This is the function of RMAN
>
b) If by any chance if production database server is
down will the backup server database take over it
automatically ?
No. This is the function of Data Guard
c) Or can we use grid here or any other
suggestions?1) Use RMAN (Read the Backup documentation at http://www.oracle.com/pls/db102/homepage
2) Use Grid Control (which will use RMAN) -
Not able to connect linux database instance in another machine
Hi,
I have installed oracle 10g database server in Linux, and i created one database instance. and i have added tns entry and listener entry.
I am to connect the database on that machine. but not in different machine. i am able to access/ping linux machine in another machine also.
while creating tns entry for linux database instance in another machine using "netca" i am getting this error.
Connecting...ORA-12560: TNS:protocol adapter error
The test did not succeed.
Some of the information you provided may be incorrect.
Click Back to review the information provided for net service name, or Change Login to change username.
I verified listener and tns entry ( i think for this listener configuration is enough) also. and database is up.
If anybody knows why i am not able to connect linux database in another machine. is there any network configurations other than listener configuration.
Thanks in advance.yes i tried to connect with ORACLE_SID, its successful. and using tnsname like you said.
Instead of using netca to create the tnsnames.ora entry on the second server, copy the tnsnames.ora entry from the DB server. Then use tnsping to test connection :-i done above but not able to ping the tns name, i am getting this error.
TNS-12560: TNS:protocol adapter error
------------------------------------------------ -
Upgrading a database from 8.1.7.2 to 10gR2 on another machine
Hello all,
We have database DB1 (in version 8.1.7.2) on MACH1 (AIX 4.3) and I'd like to move this database to another machine called MACH2 (AIX 5.3) as Oracle10gR2 version (Oracle8.1.7.4 and Oracle10gR2 bianries are already installed on MACH2).
MACH1 will be scrapped after this operation.
Since I don't need to upgrade the Oracle binaries of MACH1 and I just would like to upgrade the database DB1 from 8.1.7.2 to 10gR2, can I do the following to achieve this:
On MACH2, there is a 8.1.7.4 database called DB2: I do an export of DB1 and import it into DB2.
Then, I create a new database DB3 in version 10gR2 on MACH2.
Then, I export DB2 and import it into DB3.
Is this enough to finally have the database DB1 change version from 8.1.7.2 to version 10gR2, or are there other steps to take care of?
Thanks a lot for your feedbacks.
Cheerswhile for "full" exp/imp we have to pass by 8174 as an intermediate stage.That's not true, you need at least 8.1.7.4 for a direct upgrade using DBUA, export/import doesn't have such a prerequisite.
Despite of this I always prefer schema export/import of pure user data, especially from 8i to 10g there are so many changes (as one example think of the new tablespace SYSAUX,which now holds objects earlier located in the SYSTEM tablespace). That makes a full export not useless, but - let's say - less useful.
Werner -
What steps need be done after database is moved to another machine
concurrent manager can not run anymore after i move the 'VIS' database to another machine.
what steps i need to perform at application side to correct it?Hi,
Have you moved the database or the application as well? This sounds like a cloning / autoconfig issue, but it depends on what you have done so far.
Kind Regards,
Steve -
How to create a standby database in another server?
hi,
I want to create a standby database in another machine, please tell me the steps fot it.
thx.Can you tell what version of Oracle you are running, because the steps can vary depending on your version.
Maybe you are looking for
-
Satellite C855D Toshiba DVD player display suddenly stopped displaying
Please help as its now beyond me. The DVD player has suddenly just stopped. I can hear it and control it but cannot see it. I have checked the diplay button but its all ok. Help
-
Photoshop CS4 crashes after Snow Leopard Upgrade
Most people I know have mac's and are heavy photoshop users, you think Apple would make sure that one of the biggest and most popular programs for a mac would work properly! Saving, opening and editing all crash it, its very unstable now. Hello, I ma
-
My udating Firefox failed and not I cannot access it
I tried updating Firefox on Tuesday and somehow it overloaded my Mac and now all I have is the Firefox symbol with a circle/slash through it and it does not function. I tried downloading SeaMonkey and have the same result. I know the two are related
-
Can I make a group of character styles that is not only available when I create a new doc, but will also be open every time I open any document? I have several hundred files to tend to and am wondering if there is a way to have it handy instead of lo
-
Ikeep getting a call from the above mentioned name ive blocked them 5 times now but they still keep ringing me i thought this was a dodgy name thats why i blocked them is this right anyone else had any problems many thanks