Recover database on the other host

I have to recover my database on the other host.
In my source machine(redhat5,x86_64) I installed oracle 10g (10.2.0.1), sid=orapro, archive_mode=on, flash_area_recovery=default.
RMAN - AUTOBACKUP=ON, CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F';
In new host (zlinux) I install oracle 10g (10.2.0.2.0). I has used DBCA and create a new database, with the same SID=orapro, archive_mode=on, flash_area_recovery=default.
RMAN - AUTOBACKUP=ON, CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F';
Backup:
RMAN> show all;
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/dados/db/oracle/product/10.2.0/db_1/dbs/snapcf_orapro.f'; # default
RMAN> backup database;
BS Key Type LV Size Device Type Elapsed Time Completion Time
6 Full 522.79M DISK 00:00:06 10-JUN-08
BP Key: 6 Status: AVAILABLE Compressed: NO Tag: TAG20080610T112043
Piece Name: /dados/db/oracle/flash_recovery_area/ORAPRO/backupset/2008_06_10/o1_mf_nnndf_TAG20080610T112043_44x6ycvx_.bkp
List of Datafiles in backup set 6
File LV Type Ckp SCN Ckp Time Name
1 Full 608723 10-JUN-08 /dados/oradata/orapro/system01.dbf
2 Full 608723 10-JUN-08 /dados/oradata/orapro/undotbs01.dbf
3 Full 608723 10-JUN-08 /dados/oradata/orapro/sysaux01.dbf
4 Full 608723 10-JUN-08 /dados/oradata/orapro/users01.dbf
5 Full 608723 10-JUN-08 /dados/oradata/orapro/rman_ts
BS Key Type LV Size Device Type Elapsed Time Completion Time
7 Full 6.80M DISK 00:00:01 10-JUN-08
BP Key: 7 Status: AVAILABLE Compressed: NO Tag: TAG20080610T112050
Piece Name: /dados/db/oracle/flash_recovery_area/ORAPRO/autobackup/2008_06_10/o1_mf_s_657026450_44x6ylyd_.bkp
Control File Included: Ckp SCN: 608730 Ckp time: 10-JUN-08
SPFILE Included: Modification time: 10-JUN-08
I sent the backupset and autobackup files from source machine to new host.
And alter the name of server parameter file 'spfileorapro.ora' on new host for 'spfileorapro-1.ora'.
Recover:
$rman target /
RMAN> set dbid 'dbid_source_machine'
RMAN> startup nomount
LRM-00109: could not open parameter file '/dados/u01/app/oracle/product/10.2.0/db_1/dbs/initorapro.ora'
RMAN> restore spfile to pfile '/dados/u01/app/oracle/product/10.2.0/db_1/dbs/initorapro.ora' from '/dados/u01/app/oracle/flash_recovery_area/ORAPRO/autobackup/2008_06_10/o1_mf_s_657026450_44x6ylyd_.bkp';
Starting restore at 11-JUN-08
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=36 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 06/11/2008 09:10:01
RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
I get the error above.
Can anybody help me?
Thanks!

I try now:
RMAN> run{
2> set controlfile autobackup format for device type disk to
3> '/dados/u01/app/oracle/flash_recovery_area/%F';
4> restore controlfile from autobackup;}
executing command: SET CONTROLFILE AUTOBACKUP FORMAT
Starting restore at 11-JUN-08
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=156 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 06/11/2008 15:51:04
ORA-19625: erro ao identificar arquivo /dados/u01/app/oracle/flash_recovery_area/ORAPRO/autobackup/2008_06_11/o1_mf_s_657128589_450bvsnq_.bkp
ORA-27047: UNABLE TO READ THE HEADER BLOCK OF FILE
Additional information: 2
Corrupt file? Version problem?
Source machine 10.2.0.1 and new host 10.2.0.2.
Compatibility?
Marcos

Similar Messages

  • How can i get the System Time from the other host

    I want to get the System Time from the other host in the LAN,How can I get the Time using Java.
    Such as I am in WIN 2000 and I have a Unix host in LAN, I want to get unix host System time, How can I do it.

    Open a socket to port 13 and read a string with the time.
    -or-
    Open a socket to port 27 and read 4 bytes that are a network order timestamp
    Assuming that your UNIX machine has those services running, most do

  • How to restore the oracle backup to the other host

    Hi all:
      I used the command 'brbackup' to backup the database on the host A by online type . I had installed a new sap on the host B and there is the same hostname, oracle version, os version, sap version, SID, system number and directory in the host A and host B.Now I want to restore the backup of the host A oralce to the host B ,how can I do ? please tell me the details for the steps.
    THAKS
    the sap envirement: AIX 5.3 + ORACLE 10.2.0.2 + SAP CRM 5.2

    Check the following link:node restore and recovery
    http://help.sap.com/saphelp_nw04/helpdata/en/39/45583eb05a4644e10000000a114084/frameset.htm
    Regards,
    Ashutosh

  • Two databases in the same host.

    Hi Group,
    I have a doupt, It's possible that two databases with the same name, live in the same host, if they have different OracleHomes, and the SO users who were installed with are different? eg.
    SO user: oraqas
    OracleHome1 : /qas/u01/app/oracle/product/9.2.0
    BD: prdsia01
    SO user: oracle
    OracleHome2: /u01/app/oracle/product/9.2.0
    BD: prdsia01
    If not, what do you recommend?
    Thanks a lot

    It's possible that two databases with the same name, live in the same host,
    if they have different OracleHomes, and the SO users who were installed with are different? what is "SO users"?
    what is "BD: prdsia01"
    Yes, two Oracle databases with same ORACLE_SID can reside on same system as same time.
    The only restriction is that only one instance can be online at a time.

  • RMAN restore database from another backup of different database in the same host

    Hi Experts,
    I have taken FULL Database Backup using RMAN , now I want to Restore and Recover the same database on different instance on Same Host.
    Could u suggest any document or Steps to achieve this task.....
    Thanks,
    Mouni.

    No Problem.
    Please check this :
    http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmdupdb.htm#BRADV420
    ORACLE-BASE - Duplicate a Database Using RMAN in Oracle Database 11g Release 2
    Ensure you follow what Mr. Hemant has mentioned.
    Regards
    Karan

  • What order are Archive logs restored in when RMAN recover database issued

    Ok, you have a run block that has restored your level-0 RMAN backup.
    Your base datafiles are down on disc.
    You are about to start recovery to point in time, lets say until this morning at 07:00am.
    run {   set until time "TO_DATE('2010/06/08_07:00:00','YYYY/MM/DD_HH24:MI:SS')";
    allocate channel d1 type disk;
    allocate channel d2 type disk;
    allocate channel d3 type disk;
    allocate channel d4 type disk;
    recover database;
    So the above runs, it analyses the earlies SCN required for recovery, checks for incremental backups (none here), works out the archivelog range
    required and starts to restore the archive logs. All as expected and works.
    My question: Is there a particular order that RMAN will restore the archive logs and is the restore / recover process implemented as per the run block.
    i.e Will all required archive logs based on the run block be restored and then the database recovered forward. Or is there something in RMAN that says restore these archive logs, ok now roll forwards, restore some more.
    When we were doing this the order of the archive logs coming back seemed to be random but obviously constrained by the run block. Is this an area we need to tune to get recoveries faster for situations where incrementals are not available?
    Any inputs on experience welcome. I am now drilling into the documentation for any references there.
    Thanks

    Hi there, thanks for the response I checked this and here are the numbers / time stamps on an example:
    This is from interpreting the list backup of archivelog commands.
    Backupset = 122672
    ==============
    Archive log sequence 120688 low time: 25th May 15:53:07 next time: 25th May 15:57:54
    Piece1 pieceNumber=123368 9th June 04:10:38 <-- catalogued by us.
    Piece2 pieceNumber=122673 25th May 16:05:18 <-- Original backup on production.
    Backupset = 122677
    ==============
    Archive log sequence 120683 low time: 25th May 15:27:50 Next time 25th May 15:32:24 <-- lower sequence number restored after above.
    Piece1 PieceNumber=123372 9th June 04:11:34 <-- Catalogued by us.
    Piece2 PieceNumber=122678 25th May 16:08:45 <-- Orignial backup on Production.
    So the above would show that if catalogue command you could influence the Piece numbering. Therefore the restore order if like you say piece number is the key. I will need to review production as to why they were backed up in different order completed on production. Would think they would use the backupset numbering and then piece within the set / availability.
    Question: You mention archive logs are restored and applied and deleted in batches if the volume of archivelogs is large enough to be spread over multiple backup sets. What determines the batches in terms of size / number?
    Thanks for inputs. Answers some questions.

  • 2 RAC database in the same box

    Hello,
    I have a RAC env composed of 2 nodes. The database name is dbfunc1 and it is in 11gR2 version under Redhat Linux 5; this is a test env.
    Now we need to create another RAC database in the same hosts with database name dbfunc2 with exactly the same structure, same parameters, etc... this RAC database will be used for the same product but for test level 1 purpose. I am thinking to create an XML template for the dbfunc1 using dbca and then create silently the database dbfunc2.
    My question is: is it possible to use the already created and configured listener in the hosts or I must create a new listerenr listeneing on new ports to support the database dbfun2? Perhaps, both DB will use the SCAN listener ...
    Thank you
    Diego

    Diego wrote:
    Hello,
    I have a RAC env composed of 2 nodes. The database name is dbfunc1 and it is in 11gR2 version under Redhat Linux 5; this is a test env.
    Now we need to create another RAC database in the same hosts with database name dbfunc2 with exactly the same structure, same parameters, etc... this RAC database will be used for the same product but for test level 1 purpose. I am thinking to create an XML template for the dbfunc1 using dbca and then create silently the database dbfunc2.
    My question is: is it possible to use the already created and configured listener in the hosts or I must create a new listerenr listeneing on new ports to support the database dbfun2? Perhaps, both DB will use the SCAN listener ...
    Thank you
    DiegoYou can have both configuration i.e. one local listener for host for both database or two seperate. But as a best pratice you can create seperate listener for new database just to have proper load balancing.
    Its obvious that finally SCAN listenr will handover its connections to host listener, so if you have only one then there would be more connection (handle by local listener) as compared to past(when you had only 1 database),
    Now you have 2 databases so connections would be more.

  • Recover database to new server problem

    Hi all,
    I'm running a production 10.2.0.4 DB in archivelog mode on Solaris 10.8. I used RMAN with a recovery catalog to execute the stored script:
    run{sql 'alter system archive log current';
    backup incremental level 0
    database archivelog all delete input;}
    I copied the rman files and spfile to a test server with the same directory structres. No Problem.
    Using "rman target /" I started the database in nomount and restored the controlfile from backup and mounted the database. No Problem.
    Still within the RMAN session, I restored the 1TB worth of datafiles. The restore completed, no problem.
    I then issued the command, "recover database;" PROBLEM, RMAN said datafile1 "System.dbf" needs more recovery to be in a consistent state.
    WHY? I issued the commands, "alter system archive log current;" and "archivelog all delete input" in my script.
    Why does it need the next archivelog to be consistent?
    I was under the impression that all I need to recover a database with rman was the output files from RMAN.
    I copied the next archivelog over and in SQLPLUS as SYS I issued the command, " recover database using backup controlfile until cancel;"
    I canceled the recovery when it asked for the next archivelog and opened database reset logs.
    If I didn't have access to the next archive log how would I solve this problem?

    Your BACKUP should be executed as BACKUP DATABASE PLUS ARCHIVELOG. The "PLUS ARCHIVELOG" causes Oracle to issue an ALTER SYSTEM SWITCH LOGFILE at the end of the database backup so that the ArchiveLog generated gets picked up by the subsequent Backup of the ArchiveLog as well.
    Your first RECOVER DATABASE command was attempting a Complete recovery. Had you specified an UNTIL clause, Oracle would know that you wanted an Incomplete recovery upto the last available archivelog. Your second RECOVER DATABASE with the UNTIL CANCEL was an Incomplete Recovery.
    Hemant K Chitale

  • Move database to the new server

    Hello,
    I have 10.2.0.1 Standard Edition database (7GB, not in archivelog mode) on Windows2003 server, and need to move it to the new server (same environment). I thought to use OEM Clone option, but it appears cloning to the other host is working only in Grid - and I have DB Control.
    I know about manual cloning/recreation, but now looking into export and import option. So I think to install Oracle database on the new server, then import some relevant tablespaces exported from the old database. I will use datapump utility in OEM, under system username.
    Is that a good approach ? What rules should be applied to avoid problems in that case ? Sorry if it's very basic question, never moved database before.
    Marina

    Options for porting the database from one server to another after installing Oracle on the new server incldue
    Export/Import using expdp/impdp
    Rman duplicate to compatiable hardware
    Rman file conversion to non-compatiable hardware
    On advantage of expdp/impdp is this option supports reconfiguring the database tablespace/file/object storage layout as part of the migration. Also the adoption of new features like ASSM.
    A disadvantage is that using expdp/impdp will probably be slower and involve more DBA work than using file copies via rman. There are approaches to reduce the clock time necessary to support export/import and the work is often beneficial for long-term database management efforts.
    There have been threads on this topic before and failry recently. You might want to hunt one or two of them down.
    HTH -- Mark D Powell --

  • How to add an agent from an other Host

    Hi i installed my enterprise manager 10.1.0.3 on Solaris operating system and there is an other Database 10g server that is installed on the different host so what is that i need to do so that ORACLE Enterprise manager can discover the database on the differnt host ..... for this query in the forum i got the solution that we need to install an agent on the host but my question is when ever an Oracle database is installed automatically an agent is also installed is the agent which come along with database server is different from the agent which we need to install..

    Yep thats true the agent or the control which come with database installation is different from the grid control agent that you install..so in order to add databases as a target to to OEM first we need to install an agent on the host system.. so that once you add the host the targets on the host will be automatically discovered by the OEM grid control....please correct me if i am wrong thank you...

  • GW_POA on the NW connected to the database on the OES2_NSS ??? Yes or NO ??

    GW7SP3HP1 POA on the NW65SP7
    POA database on the other server: OES2(nss-volume)
    Problem POA from the NW can not get access to the poa-databases files
    on the OES2(nss)
    OES2 server have name: ercog
    nss voluem: GWSYSTEM
    On the NW POA_RMT.POA have strings:
    /home-\\ercog\GWSYSTEM\gproxy
    /rights
    /user-.gwuser.mmm
    /password-qwerty
    eDir user: .gwuser.mmm have ALL rights on the folder and subfolders:
    \\ercog\GWSYSTEN\gproxy
    Please, help me.
    Serg

    Originally Posted by Automatic reply
    Serg,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit NOVELL: Support and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    NOVELL FORUMS - FAQ
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    Untitled Document
    Doesn't seem to work for me either. IN fact, I cannot even assign a NW POA object file rights to an NSS volume on OES2.
    ConsoleOne keeps giving me an attribute error (must be due to the differences in NSS/eDir objects between the platforms).

  • After a recover database, how can I find the time of the last transaction?

    After doing a restore and recovery. Is there something in the data dictionary that I can query to find the time of the last applied transaction that took place during the recover process?
    restore database ;
    recover database ;
    For example, if I restored from a full backup on 8/3/2008 with archive redologs, I know my last restored transaction is from sometime on that day, but I'd like a way to know the hour:minute:second of the last transaction included in the backup and redologs that was applied to my restore. Is that possible?
    The recover database applies all available redo logs for that day, but I want to know if that includes transaction up to 6PM, or 11:50PM, etc?
    Thanks,
    Jason

    If you did only a "recover database" that would have been a Complete Recovery to the last transaction -- ie the point when the database was shutdown.
    For an Incomplete Recovery, you would have to note the Sequence#, SCN or Timestamp of the recovery point.

  • Can I recover the database to the current time using a backup control file?

    Can I recover the database to the current time using a backup control file? How far can I recover this database?
    I have an Oracle 10g(10.2.3) database on RHEL4.3 system.
    I have lost all the current control files and all the online redo logs, archived redo logs and all other files are OK.
    Now I have to recovery this database using a backup control file.
    Can I recover the database without any data lost?

    If
    a) it was a Shutdown Abort or an Instance Crash (i.e. backgrounds died on detecting loss of redo logs),
    b) redo logs are lost
    c) data files are intact
    You'd have to
    a) Restore datafiles
    b) Do an Incomplete Recovery to the last available ArchiveLog
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • Restore database in the same server but with other sid (name)

    i try to restore the database in the same server but with other sid (name) . The backup is on tape and
    I want to know the steps I should follow.
    thank.

    To perform restore of database in same host to choose another DB name you can go for
    1) duplicate using RMAN.
    Directory structure should be different so take care of db_file_name_convert & log_file_name_convert parameters
    Also check the Tns services exactly is it pointing to target & auxiliary
    http://www.shutdownabort.com/quickguides/clone_rman.php
    http://www.oracle-base.com/articles/9i/DuplicateDatabaseUsingRMAN9i.php

  • Library recovery: how can I recover a library after I get this message: There was an error opening the database for the library "/Users/Jim/Pictures/Libraries/K2 Library.aplibrary"???

    Library recovery: how can I recover a library after I get this message: "There was an error opening the database for the library “/Users/Jim/Pictures/Libraries/K2 Library.aplibrary”???

    Thanks a lot, Frank. The lsregister did the trick! I am testing this on 10.8.2.
    http://support.apple.com/kb/TA24770 : I deleted the "com.apple.LaunchServices.plist", and restarted the Finder, even logged off and on again; did not change anything. The file has not been recreated, so it may not be used anymore.
    http://itpixie.com/2011/05/fix-duplicate-old-items-open-with-list/#.ULZqa6XAoqY
    The direct "copy and paste" from the post did not work: I had to retype it :
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
    but then it worked like a charm!
    Cheers
    Léonie
    And btw: I turned on the "-v" option for the lsregister to see, what was going on, and saw plenty of error messages (error -10811); so I repeated the command with "sudo". After that I still saw five iPhotos. Repeating as regular user finally got rid of the redundant iPhoto entries. It looks like registering as super user may be causing this trouble.

Maybe you are looking for