Restore from non default location with rman

Hi,
How can I restore a couple of archive logs from a location which is not the default backuplocation to a directory which is not the original location?
So far I've come to this:
SET ARCHIVELOG DESTINATION TO 'D:\temp\';
RESTORE ARCHIVELOG FROM SEQUENCE 1 UNTIL SEQUENCE 100;
But how do I tell RMAN that the backup where it has to look is located?
Roeland

You should first catalog the archive logs so RMAN knows where they are. You can catalog them with:
RMAN> catalog start with 'D:\temp';

Similar Messages

  • Restoring backups from non-default location

    Hi,
    I am currently trying to set up dataguard in a vmware configuration as in [this link|http://www.oraclerant.com/?p=25]
    How do I specify that I want to restore the database from (in my case) the c:\backup directory as everything seems to default to the flash recovery area

    Yep, there are errors in V$archive_dest.
    They are referring to the archive_log_destination in my flash_recover_area on the standby server and
    use_db_file_recovery_area on the primary
    The alert_log had a lot of errors (But I think that this was because I deleted some directories in the flash_recovery_area).
    I restored them and renamed the old_alert log
    also this was on the primary:
    WARNING: OMF is enabled on this database. Creating a physical
    standby controlfile, when OMF is enabled on the primary
    database, requires manual RMAN intervention to resolve OMF
    datafile pathnames.
    NOTE: Please refer to the RMAN documentation for procedures

  • I set my iPhoto to save photos to a non-default location.  Now I can't find my iPhoto albums in iTunes, even when looking in my non-default location in the "Sync Photos from" menu.  How do I fix this?

    I set my iPhoto to save photos to a non-default location.  Now I can't find my iPhoto albums in iTunes, even when looking in my non-default location in the "Sync Photos from" menu.  How do I fix this?

    When you launch iPhoto with the option key depressed you'll get this window:
    Click to view full size
    All libraries on your hard drive (and on external drives) will be listed and the currently used library will be listed as (default).
    OT

  • How can I stop my IOS 7 device from sharing my location with IOS 8 devices?

    How can I stop my IOS 7 device from sharing my location with IOS 8 devices? My friend who upgraded their device to IOS 8 said that I'm automatically sharing my location via iMessage details.  I don't want to upgrade to IOS 8 yet because I don't have space.  Is there a way to disable sharing my location with IOS 8 devices by default?  I don't want to turn all location services off because I frequently use Google Maps.

    Actually that's not true. I have a device (iPhone) running ios 7. My friend has an iphone running ios 8. When she clicked into her imessage thread with me, clicks on details in the top right corner it will show her my GPS location. It's doing this automatically because I do not have ios 8 on my phone therefore I don't have the ability to "stop sharing my location". Apple is automatically sharing the location.  If you are using an ios 8, apple automatically pulls in location data for anyone you are messaging not using ios 8. I haven't found a way around this unless you turn off all location services on your phone which is immensely disturbing.

  • I just upgraded to the 5s but the sales lady did not restore from my last backup with my 4s. How do I get my pictures and settings restored?

    I just upgraded to the 5s but the sales lady did not restore from my last backup with my 4s. How do I get my pictures and settings restored? I cannot seem to get it to give me that option. Can anyone tell me what to do? Thanks so much!

    If the phone has already been set up, you will need to go to Settings > General > Reset > Erase All Content and Settings to be able to go through the setup again. This time use Restore from Backup.
    This will walk you through the setup screens:
    Getting Started and Get-Started Apps

  • Restore to a different node with RMAN and EMC Networker

    Please, really need help :)
    I took hotbackup using RMAN catalog which went to tape. Here is the script for that:
    connect target sys/****@PROD;*
    connect rcvcat rman/***@catalog;*
    *run {*
    allocate channel t1 type 'SBT_TAPE';
    send 'NSR_ENV=(NSR_SERVER="**",NSR_DATA_VOLUME_POOL=Oracle)';*
    *backup database plus archivelog;*
    *release channel t1;*
    My settings include control file autobackup as follows:
    *RMAN> show all;*
    *RMAN configuration parameters are:*
    *CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 10 DAYS;*
    *CONFIGURE BACKUP OPTIMIZATION OFF; # default*
    *CONFIGURE DEFAULT DEVICE TYPE TO DISK;*
    *CONFIGURE CONTROLFILE AUTOBACKUP ON;*
    *CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE 'SBT_TAPE' TO '/NMO_%F/';*
    *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 CHANNEL DEVICE TYPE DISK FORMAT '/data/backups/PROD/ora_df%t_s%s_s%p';*
    *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 '/data/backups/PROD/hotbkp/snapcf_PROD.f';*
    I am trying to restore this backup that is on tape (EMC Networker) to a different node. I can do this outside of Networker without any problems. However, when I try to get the backup from tape I have this issue:
    1. initPROD.ora is created and modified accordingly on a new server
    2. Export sid, startup nomount on new server
    export ORACLE_SID=PROD (on this new server)
    *rman target /*
    *startup nomount*
    3. I then run the following and get this error:
    *RMAN> run {*
    *2> allocate channel t1 type 'SBT_TAPE'*
    *3> send 'NSR_ENV=(NSR_SERVER="***",NSR_CLIENT="********")';*
    *4> restore controlfile from autobackup;*
    *5> sql 'alter database mount';*
    *6> sql 'alter database rename file "/data/dbf/PROD/redo01.log" to "/data/scratch/dbf/PROD/redo01.log"';*
    *7> sql 'alter database rename file "/data/dbf/PROD/redo02.log to "/data/scratch/dbf/PROD/redo02.log"';*
    *8> sql 'alter database rename file "/data/dbf/PROD/redo03.log to "/data/scratch/dbf/PROD/redo03.log"';*
    *9> set until sequence 22; (I get this from archive logs)*
    *10> set newname for datafile 1 to '/data/scratch/dbf/PROD/system01.dbf';*
    *11> set newname for datafile 2 to '/data/scratch/dbf/PROD/undotbs01.dbf';*
    *12> set newname for datafile 3 to '/data/scratch/dbf/PROD/sysaux01.dbf';*
    *13> set newname for datafile 4 to '/data/scratch/dbf/PROD/users01.dbf';*
    *14> restore database;*
    *15> switch datafile all;*
    *16> recover database;*
    *17> alter database open resetlogs;*
    *18> }*
    *allocated channel: t1*
    *channel t1: sid=149 devtype=SBT_TAPE*
    *channel t1: NMO v4.5.0.0*
    *Starting restore at 27-FEB-09*
    *released channel: t1*
    *RMAN-00571: ===========================================================*
    *RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============*
    *RMAN-00571: ===========================================================*
    *RMAN-03002: failure of restore command at 02/27/2009 22:10:43*
    *RMAN-06495: must explicitly specify DBID with SET DBID command*
    I cannot seem to pass this error. This error indicates that the db has to be either mounted or DBID set before the restore of teh controlfile. Mounting db before the restore of the controlfile does not work. Setting db id 1) does not make sense because if the primary db is down then I cannot get it, right? My primary is up now, so I was able to get db id, but setting it made the restore hang with the following:
    *RMAN> run {*
    *connect target*
    *set dbid=466048808*
    *2> allocate channel t1 type 'SBT_TAPE'*
    *3> send 'NSR_ENV=(NSR_SERVER="***",NSR_CLIENT="********")';*
    *4> restore controlfile from autobackup;*
    *5> sql 'alter database mount';*
    *6> sql 'alter database rename file "/data/dbf/PROD/redo01.log" to "/data/scratch/dbf/PROD/redo01.log"';*
    *7> sql 'alter database rename file "/data/dbf/PROD/redo02.log to "/data/scratch/dbf/PROD/redo02.log"';*
    *8> sql 'alter database rename file "/data/dbf/PROD/redo03.log to "/data/scratch/dbf/PROD/redo03.log"';*
    *9> set until sequence 22; (I get this from archive logs)*
    *10> set newname for datafile 1 to '/data/scratch/dbf/PROD/system01.dbf';*
    *11> set newname for datafile 2 to '/data/scratch/dbf/PROD/undotbs01.dbf';*
    *12> set newname for datafile 3 to '/data/scratch/dbf/PROD/sysaux01.dbf';*
    *13> set newname for datafile 4 to '/data/scratch/dbf/PROD/users01.dbf';*
    *14> restore database;*
    *15> switch datafile all;*
    *16> recover database;*
    *17> alter database open resetlogs;*
    *18> }*
    *connected to target database: PROD (not mounted)*
    *executing command: SET DBID*
    *using target database control file instead of recovery catalog*
    *allocated channel: t1*
    *channel t1: sid=152 devtype=SBT_TAPE*
    *channel t1: NMO v4.5.0.0*
    *Starting restore at 27-FEB-09*
    *channel t1: looking for autobackup on day: 20090227*
    *channel t1: looking for autobackup on day: 20090226*
    *channel t1: looking for autobackup on day: 20090225*
    It looks like it cannot find the autbackup of controlfile? But when I list backup while connected to the target db and rman catalog, I see that autobackup is included in every hot backup that we do:
    *BS Key Type LV Size Device Type Elapsed Time Completion Time*
    *4639 Full 7.00M SBT_TAPE 00:00:04 27-FEB-09*
    *BP Key: 4641 Status: AVAILABLE Compressed: NO Tag: TAG20090227T150141*
    *Handle: /NMO_c-466048808-20090227-01/ Media:*
    *Control File Included: Ckp SCN: 23352682865 Ckp time: 27-FEB-09*
    *SPFILE Included: Modification time: 26-FEB-09*
    I am stuck What I am doing wrong? Thank you!
    Edited by: rysalka on Feb 28, 2009 8:35 AM

    Do a list command to see if the controlfile backup is on tape.
    RMAN> list backup of controlfile;
    I suggest you to read the manual of EMC Networker or call EMC on how to restore the database to another node. I am using Veritas Netbackup, it may be similar to EMC Networke for your reference. There are a few things that need to be followed when you restore database to another node:
    1) set DB_ID, which you have done
    2) set NB_CLIENT (in your case NSR_CLIENT) to the primary node from where backup was taken
    3) configure the backup server to allow redirect restore between the two nodes.
    Hope this helps.

  • Solution for Data transfer from Non-network location

    If i  needed 10 non-networked locations around Australia to submit data (say text files ranging from 20 - 100 mb each) each day to my server, and the data loaded and manipulated into a database in a secure environment, would you be able to describe the key points and a possible solution to this problem ?

    Hi Amar,
    FTP [File Transfer Protocol] alone isnu2019t a viable option to give the insight, security, performance, and, ultimately, the risk mitigation necessary to responsibly conduct business.One of the solution to protecting and transferring sensitive or mission-critical data securely is Managed File Transfer (MFT). Managed File Transfer solutions provide a greater level of security, meet strict regulatory compliance standards and give you the reliability you need in a data transfer solution.
    Points to look for in a solution:
    a.  Providing file transfer transparency throughout your entire organization.
    b. Solution should support the most modern security standards and methodology including SSL encryption, X.509 certificates and proxy certificates.
    c. The solution should streamline the audit process while also being able to access that audit information from a central point, saving you time and money.
    d. Solution should include functionality that allows data to be pre-and post-processed.
    e.  Solutions should ensure that all interrupted file transfers resume where they left off after a connection failure without manual intervention.
    f. Should tightly integrate with your existing job scheduling solution to issue alerts if connections are not re-established after an acceptable time interval.
    g. Should adhere to current security and audit requirements including SOX, GLBA and HIPAA.
    Hope this helps.
    Regards,
    Jimmy

  • Restoring from Time Machine backup with older OS

    I was having difficulties upgrading from OS X 10.5.8 to 10.6 so I decided to backup my entire system via Time Machine and then do a clean install of 10.6. The upgrade was successful, however this being a clean installation none of my files were restored. I intended to restore from the Time Machine backup but I'm hesitant to do so because the backup was with 10.5.8 and I'm not sure if I'll run into conflicts with restoring from the old OS. I'm looking to see if the community has had experience with doing this and if it is safe do so. Can I restore from the 10.5.8 backup and maintain my 10.6 OS?

    i'm also curious for the answer on this one :-)

  • Email sending from non-default account

    I have an iPhone4 running 4.3.1. I have two email accounts set up - a Yahoo (POP) account and a GMail (IMAP) account. The Yahoo account is set as default but I have just discovered that when I send a new email it is being sent from the GMail account, not from the default account. Iam fairly sure taht this has only started happening recently. Has anyone any idea what is causing this please?

    I've solved this one! I had a new phone a week ago and restored it from iTunes. After the restore it is necessary to re-enter passwords and I forgot about the password in the SMTP definition for the default (yahoo) account. The non-default (Gmail) account didn't have a password in the SMTP definition so the iPhone cleverly decided if it couldn't send from the default account, it would send from the other one!

  • Restoring from back-up problem with my iphone4s

    Hi,
    I connected my iphone 4s to my laptop, I backed it up correctly, and then I updated the phone to iOS6. When the update was complete I realised that it had wiped my phone and restored it to it's original settings. I then connected my phone to my laptop again and right-clicked on my device, selected restore from back-up and chose the appropriate back-up. When this was complete itunes told me to keep my iphone plugged in in order to sync the remaining stuff (apps etc) so when I clicked on my device on itunes it came up with the summary, and at the bottom where the capacity bar is I saw a big chunk of orange (which I know is photos). However the capacity of photos only flashed up for a second or two and then it disappeared! When I look on my phone none of my photos are there! I have done this 3 times now, and every time the orange photo strip is there to start with and then it just disappears! As well as this it has not synced my contacts from my back-up.
    PLEASE HELP... I have some really precious photos on my phone

    This what is saved in an icloud backup
    Here’s what iCloud backs up when your device is turned on, locked, and connected to a power source and Wi-Fi:
    Purchased music, movies, TV shows, apps, and books
    Photos and videos in your Camera Roll
    Device settings
    App data
    Home screen and app organization
    Messages (iMessage, SMS, and MMS)
    Ringtones
    Visual Voicemail
    If you had other photos that where not in the camera roll then if they were photos you synced from your computer theu should still be in folders on your computer.  Just sync them again to your phone

  • Manual login to Non Default DB with SSO enabled

    Hi,
    I logged the following through SAP Support, but was advised that Single Sign-On was functionining as designed.  The issue is that the non-default database does not have a manual login page, whereas the default database does.  This is an issue for us, because we have two completely separate database, and cannot allow a User with a Windows AD account to login manually without disabling his Windows AD access altogether.
    Refer to SAP Message detail below:
    Please advise how we can login users manually to SSM when accessing
    the "non default" SSM Database when they have Single Sign-On access.
    We have 3 Users that generally will access the system using Single Sign-On, but will occasionally have to enter information using a generic
    User ("Initiator").
    We have a path that we can use for manual login to the default
    Database, however this appears to only work for the Default Database:
    http://ssmdev:50000/strategy/login/start.jsp
    This will only work for the Default Database (set as pw database in
    Java System Properties).
    The following path to the non-default Database (EPM Database) results
    in automatic login for the user:
    http://ssmdev:50000/strategy/pilotworks/start.jsp?PilotWorksDB=EPM
    Is there a path we can use to provide the manual login page for
    the "Non Default Database"       
    Steps for Reconstruction    
    As above, login by the Users does not allow manual login to the Non
    Default Database, EPM.

    Hi Scott,
    Sorry, I missunderstood your initial question and the documentation I referenced is not updated appropriately. You have to change the connection string to <server-name>.database.secure.windows.net when you enable the security/auditing features.
    Documentation for this can be found
    here
    Thanks,
    Jan

  • How can I stream files from the Default location (the streams folder)?

    According to flashmediaserver_3.5_config_admin.pdf (FMS 3.5.3), FMS determines the correct directory to use for streams in the following order:
    Virtual directory (as specified in <VirtualDirectory>)
    Storage directory (as specified in <storageDir>)
    Default location (the streams folder in the application directory)
    So I created a folder called streams in C:\Program Files\Adobe\Flash Media Server 3.5\applications\vod.  I thought this folder would be the default location for the sample application vod.  I did not change any configuration settings for the application vod.  Everything was set by the FMS 3.5.3 installer.
    I copied  sample.flv into C:\Program Files\Adobe\Flash Media Server 3.5\applications\vod\streams and renamed it to sample6.flv.  rtmp://{fms ip}/vod/sample6.flv did not play in the sample video player installed by FMS 3.5.3.
    Is this a bug or the default location "streams" folder is simply not  "default", you have to set it somewhere in XML?

    Thanks for your reply!  I am weihua10.  I could not login into the
    account  that has the screen id weihua10 today.  I have to create another account with  screen id weihua30.
    Based on the configuration xml files (application.xml inside the vod folder), I can see C:\Program Files\Adobe\Flash Media Server 3.5\applications\vod\media is the Virtual Directory "/".  Yes, files put inside the media folder will play.  My question is where there is a default folder "streams".  Based on the document, it seems there is one beside virtual directories and storage directory.  But I could not find any.

  • Backup DB with RMAN - Restore on a new Server with RMAN - HOWTO ?

    Hello,
    i would like to ask if there is something like a tutorial that explains the following:
    1. Backup DB with rman
    2. Move all the Backup files to a new Computer
    3. Create a new instance on this computer and restore the DB
    I'm especially not sure about creating the new instance...what do you have to take care of ? Do have any chance to restore the DB if you don't know the instance name of the original DB ? Will it work if the new computer has a different hostname ?

    Hello,
    i tried to follow the steps but do you know if there is a description like this for the situation when you don't use a recovery catalog ? The description you've pointed me to assumes the usage of a recovery catalog, however in my (test-) situation here i'm using no backup catalog
    kind regards

  • System Restore from USB/DVD failing with Localization Code error

    After an extended period of strange behavior, I am working to restore my ENVY dv6 Quad back to the original factory Windows 8 and start over.   I originally created both a USB recovery drive and DVD disks.  The system runs through the entire recovery process, but after rebooting and processing through the software installation screens, it always errors out that the Recovery is incomplete. The following is in the CtoError.flg.txt file: [ 5:51:52.78] Required [CoreCountrySpecific]. But, Base OS is [Single Language] edition...
    [ 5:51:52.78] Wrong edition is required...
    [ 5:51:52.78] This is Customer image... CTO PANIC, .
    Component: Windows 8 Preinstall Diagnostic Tools - TDC
    Timing: FactoryUpdate
    Error: Cannot upgrade OS edition to China for non-China image
    Error: Action is not allowed
    Next Step: Please reset your localization code or Win8 Configuration value via EEPROM
    --------------------------------------------------------------[ 5:56:24.97] ------------------------------------------------------------------------------------------
    ***CTO Error condition has been dtected in [Factory Update] phase !! ***
    [ 5:56:24.97] Suggest to create PIN-log and send to TWN PDC NB-PreinPM for further analysis ...
    [ 5:56:24.97] ------------------------------------------------------------------------------------------ [ 5:51:15.79] Start BBOffline.cmd...
    UPDrv=[C:]
    [ 5:51:15.79] Set UIA Error Code to 951
    [ 5:51:15.85] Delete [FBI] folder.
    [ 5:51:15.85] WinPE is 64bit.
    [ 5:51:23.18] Starts [FixUps].
    [ 5:51:23.18] ---------------------------------------------------------------------
    [ 5:51:23.18] FixUps.cmd...
    [ 5:51:25.50] FixUps.cmd completed...
    [ 5:51:25.50] ---------------------------------------------------------------------
    [ 5:51:25.50] Starts [Tweaks for SSRD].
    [ 5:51:25.50] ---------------------------------------------------------------------
    [ 5:51:25.50] SSRD Tweaks to change user default locale...
    [ 5:51:25.50] SSRD_LANG.flg file was not detected... SKIP.
    [ 5:51:25.50] ---------------------------------------------------------------------
    [ 5:51:25.51] Launch PININST.exe for Offline ...
    [ 5:51:35.78] Starts [Sleep 10 sec].
    [ 5:51:45.93] Starts [Create RStoneFUpdate.INI].
    [ 5:51:47.78] Starts [create 1GB Pagefile for offline]. I have tried this with both the original hard drive, and suspecting maybe it was a disk issue that has not shown up in a full disk scan, I have tried it with a new 256GB SSD drive also.  They both result in the same error.  Please help as I now have a completly unfunctional computer. Dwain

    Hi Mike:
    The second chapter of this saga.
    I did order the recovery USB.
    I did what it was asking and wiped out the HDD clean.
    But the system is still unstable.
    It took a very long time to configure itself. Several times I had to run the process again because it would either not boot or it would be just sitting there at the attached screen.
    Sometimes it would go to Win8 boot window, but then suddenly come back to the same screen.
    It seems that HDD is completly out. What is the warranty on the HDD? This laptop is just two years old.
    And a side note: we had to send it for repairs twice already for monitor issues; the keyboard is not flat; there are some loose parts inside. I really expected better quality from such a reputable brand as TOSHIBA.
    -Ilya.
    Attachments:
    DSC_4459.JPG ‏4332 KB

  • Restore backups on new server with RMAN (nocatalog).

    Hi,
    On my production database (Oracle8i/Solaris8) I use RMAN(nocatalog) to backup database:
    connect target
    run {
    allocate channel d1 type disk;
    backup full tag = 'Full Backup'
    format '/oracle_backups/db_%t_%s_p%p'
    (database);
    sql 'alter system switch logfile';
    backup
    full
    etc.}
    I need to test backup by restoring it on test server (Oracle8i/Linux7.3). How I can point RMAN on test server to backup files location?
    Thanks.

    If you use a recovery catalog and want to duplicate database in a fresh server.
    1. connect with the target database.
    2. connect with the recovery catalog.
    3. connect with the auxiliary database.
    4. Run the duplicate command.
    Before running the duplicate command copy the backup piece to your fresh server from the target server. Both mount point should be same.
    Regards
    Asif Kabir
    -- mark your helpful post as correct/helpful.

Maybe you are looking for