How to determine Until Time in restore

Hi I have read
Restoring and Recovering with Recovery Manager on line:
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmrecov.htm
I am not sure how to determine an Until Time during a restore, or in duplicating a database.
Can someone show a specific example?
The best thing I have found so far is this:
SQL> select max(next_change#)
from v$archived_log
where archived='YES'
group by thread#;
OR
SQL> select max(next_change#) from v$log_history;
as documented here:
RMAN-8060 Doing Duplicate Database on Recovered Database
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=189394.1
But that still leads to:
RMAN-06025: no backup of log thread 2 seq 2817 scn 3193354318 found to restore
RMAN-06025: no backup of log thread 2 seq 2816 scn 3192569562 found to restore
RMAN-06025: no backup of log thread 2 seq 2815 scn 3191725873 found to restore
RMAN-06025: no backup of log thread 1 seq 2437 scn 3191725871 found to restore
errors about half the time during duplication.
Thanks!
-John

Hi All,
We use the following query against the RMAN recovery catalog in our RMAN DUPLICATE scripting to identify the latest time that we can use.
SELECT TO_CHAR(MAX(recover_time),'DD-MON-RR HH24:MI:SS')
FROM
(SELECT b.completion_time recover_time
FROM dbinc a, rc_backup_piece b
WHERE a.db_key = b.db_key
AND a.db_name = '${SSID}'
AND b.backup_type in ('D','I')
AND b.status = 'A'
AND b.device_type = 'SBT_TAPE'
AND b.tag IS NOT NULL
AND b.tag != 'CTRLBKUP'
AND b.tag NOT LIKE 'TAG%'
UNION
SELECT next_time recover_time
FROM rc_backup_redolog
WHERE db_name = '${SSID}');
Additionally, you may need to account for a rare problem with the absolute_fuzzy_change# is higher than the checkpoint change number. Oracle Development said this should be fixed at some point in the future when I last talked with them on the topic in 02/2004.
We've coded around it (we're using Oracle EE 9.2.0.5+) by adding a couple of minutes between the incr backup and the archivelog)
Hope this helps,
Rich

Similar Messages

  • How to determine the time of a RONA call

       What table do i need to lookup to determin the time that a RONA call came in for a particular agent  ?
    Hemal

    bornfree,
    The free Patharea/Pathlength Filters from Telegraphics is your friend (the former gives you both area and length, both in different units):
    Telegraphics - Free plugins for Photoshop & Illustrator...and other software

  • Time machine corrupted sparsebundle? how to repair? time machine restore not working

    On my macbook pro, after starting with Cmd-R, I erased the hard disk, re-installed Mavericks and I want to restore my back up with Time Machine. I select the NAS where the backup is, it sees the backup file but it says: "There is a problem with this backup and it can't be restored". I also copied the backup file (with extension sparsebundle) to another external hard disk and tried to use it from there but I have the same problem. With my iMac (as the laptop is not usable since I started it with cmd-R), when I double click on the backup file (ext sparsebundle), it mounts and I can actually see and access the files that are there. I do not understand why the restore is not working with the Time Machine. It seems the sparsebundle is corrupted. I tried these instructions: http://www.garth.org/archives/2011,08,27,169,fix-time-machine-sparsebundle-nas-b ased-backup-errors.html
    But I am stuck at this step: tail -f /var/log/fsck_hfs.log
    iMac-6:~ root# tail -f /var/log/fsck_hfs.log
    /dev/rdisk3s2: ** Checking Journaled HFS Plus volume.
    /dev/rdisk3s2: ** Detected a case-sensitive volume.
    /dev/rdisk3s2:    The volume name is Time Machine Backups
    /dev/rdisk3s2: ** Checking extents overflow file.
    /dev/rdisk3s2: ** Checking catalog file.
    /dev/rdisk3s2:    Invalid key length
    /dev/rdisk3s2: (4, 57529)
    /dev/rdisk3s2: ** The volume Time Machine Backups could not be verified completely.
    Nothing seems to happen even after a few hours (like 3 hours). The sparsebundle bakcup file is about 200 GB big. It does not seem to do anything as I do not notice any disk activity.
    Could someone please advise how to do the restore with the Time Machine or how I can repair the backup file?

    Well, if Time Machine is the only thing on that hard drive and there is only one partition, sooner or later, Time Machine will fill up the entire thing and you can't use it for anything else.
    Now, you can start over, but that will mean that your Time machine backups will be wiped out. If that is what you want, it is a rather easy process easily accomplished in Disk Utility:
    With hard drive connected, open Disk Utility (Applications -> Utilities). Highlight the Time Machine hard drive (the top entry for it). Click on the Partition tab. In the window, pick 2 partitions under the "volume scheme" and then slide the little thing at the bottom to adjust the size of each partition. Make sure the format is Mac OS Extended (Journaled) and, under options, click the GUID partition scheme. Name each one (i.e. "Time Machine" and "backups") and click "apply". Disk Utility will first erase the drive and then create 2 partitions (2 totally separate drives so to speak). You're done.....
    You can then set up the one for Time Machine and the other to drag over whatever files you want.

  • How to determine the time duration of each job for a particular report

    Hi guys,
    I am facing a very interesting problem which I want to share with all of you-hoping to get some input from you
    enlightened fellas :).
    I have vendor and vendor sub-range maintained in one custom table. For each vendor I have got article site combination maintained in another table. The thing is I have to execute this program in background. Now for each vendor I may have only 1 article or multiple articles. So if I schedule the job for 60 min. say then for 1 article the time alloted will be too big and for multiple articles the time alloted may prove to be too small. Another thing from a functional point of view is a vendor which has 1 article today may have more articles added to his name tomorrow (if the customer likes his product the company may buy more from him). So the point is we have to dynamically adjust the time alloted for each job.
    I could not find any utility in ABAP which can do this.
    Can any of you please help me?
    Thanks a lot !
    Hasso.
    Edited by: Hasso14 on Apr 28, 2011 3:06 PM

    Exaactly-only I want to find the best time needed to finish for an article or multiple articles i.e I do not know how many articles will be available for each vendor beforehand before doing a select on the 2 tables. But once I know the number (maybe 1 or more than 1) I want to allot the best time for that article/lot of articles(maybe JOB_OPEN  technique ?).Also the number of articles may vary over time so the algorithm should take care of that too.-quite a tricky prob :)-I would request the others to see this reply which I think will clarify their doubts.
    Edited by: Hasso14 on Apr 28, 2011 9:03 PM

  • How to determine the time building block type in hxc_time_building_blocks

    Is there a way for me to determine what the time building block type is in hxc_time_building_blocks? I need to query the table and only select entries that are absence related (Vacation, Holiday, Sick Leave). I have the person's absence data from the table per_absence_attendances, I need a way to use the data from that table to get the time building block from hxc_time_building_blocks.

    I could ask "supported by what?" but I assume you will
    be the one supporting them. Here's a link to the
    latest list of registered MIME types.HERE's the link...
    ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/media-types

  • How to verify the Time Machine restore?

    Completed the TM restore, verified disk and permissions (fixed some permissions) but the machine will not boot - apple logo and spinning wheel sit there forever.
    I a able to boot in Single User Mode - and boot from CD and in both cases see all the files restored
    How can I see the boot log to see where Leopard 10.5.7 is getting stuck?
    Is there a way to validate the files needed for booting the OS?
    (the restore was a result of getting a corrupted file system that I was not able to fix)
    Thanks for any advice

    Answer to the boot log - is the system.log in /var/log or boot up in verbose mode with Cmd-v pressed.
    having said that I am getting this error
    com.apple.launchd (com.apple.ATSServer) posix_spawnp("/System/Library/Frameworks/ApplicationServices.framework/Framewor ks/ATS.framework/Support/ATSServer",...) No such file or directory
    com.apple.launchd (com.apple.WindowServer) posix_spawnp("/System/Library/Frameworks/ApplicationServices.framework/Framewor ks/CoreGraphics.framework/Resources/WindowServer",...) No such file or directory
    so some resource files not properly restored - will look to see why they didn't restore - any ideas in the meantie welcom

  • Set until time clause to restore controlfile

    Hello
    How can I use "set until" clause to restore the controlfile ?
    The database is already in archivelog mode.
    RMAN>
    run {
    set until time "TO_DATE('2011-02-24 09:30:00','yyyy-mm-dd hh24:mi:ss')";
    restore controlfile from autobackup;
    RMAN>
    RMAN> 2> 3> 4>
    executing command: set until time
    using target database control file instead of recovery catalog
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of set command at 02/24/2011 09:52:54
    ORA-01507: database not mountedThis is the rman backup log:
    Starting Control File and SPFILE Autobackup at 24-FEB-11
    piece handle=/oracle/ora1020/dbs/c-1270860316-20110224-01 comment=NONE
    Finished Control File and SPFILE Autobackup at 24-FEB-11I can also confirm that it was backed up.
    ls -l /oracle/ora1020/dbs/c-1270860316-20110224-01
    -rw-r-----  1 oracle dba 7143424 Feb 24 09:25 /oracle/ora1020/dbs/c-1270860316-20110224-01

    For Datafiles and ArchiveLogs :
    SET UNTIL works because RMAN can query the Controlfile (that is already present) {OR the Catalog, if available} to determine the Database Incaranation and identify all the BackupSets, BackupPieces and SCNs for datafiles.
    For Controlfiles :
    SET UNTIL needs to be able to query a source or determine a default location. If a Catalog is available, it can query the catalog. In the absence of the catalog, it can only determine the expected location to restore from on the basis of the AUTOBACKUP location and FORMAT.
    When you have AutoBackup to Disk, using an FRA and have the AUTOBACKUP FORMAT set correctly you will notice that the controlfile backups go to a directory that has the date as part of the directory name. RMAN can "query" the backups it finds in each of the folders in the autobackup location and determine the correct piece to restore from. This is predicated on the FORMAT being the expected format. That is why the example also shows how you set the FORMAT before you do the restore -- to "tell" RMAN what format to expect. (Remember that it has no repository -- controlfile or catalog -- to query so it doesn't know the backup piece names, unless they follow the expected location and format !)
    All of this works well on disk. On tape, it has to actually send it's requests to the Medial Management Layer -- it is the Media Management Layer that maintains the catalog of tapes and files on tapes. (Remember that RMAN still doesn't have a repository that it can query !).
    Going back to my earlier comment that SET UNTIL is used for Datafiles and Archivelogs : Because it is much easier for RMAN to query a known repository for all the information it needs.
    Hemant K Chitale

  • Determine set until time from particular backup set

    Hi Gurus,
    First of all thank you for everybody reading my question.
    I am using database control file instead of recovery catalog.
    database 10gr2
    10.2.0.3
    os is suse linux
    Is there way (any magic query)
    you can determine sec part correctly for set until time looking backup set:
    7544 B F A DISK 28-AUG-11 1 1 YES PROD_FULL_BKUP_08.28.2011
    ALLOCATE AUXILIARY CHANNEL aux1 DEVICE TYPE DISK;
    ALLOCATE AUXILIARY CHANNEL aux2 DEVICE TYPE DISK;
    ALLOCATE AUXILIARY CHANNEL aux3 DEVICE TYPE DISK;
    #SET UNTIL SEQUENCE 10008 thread 1;
    SET UNTIL TIME "TO_DATE('28-Aug-2011 03:40:32', 'dd-mon-YYYY hh24:mi:ss')";
    DUPLICATE TARGET DATABASE TO "11demo"
    I try hit and try for determining sec part.
    is there a proven way.
    '28-Aug-2011 03:40:31' worked
    '28-Aug-2011 03:40:38' didn't
    '28-Aug-2011 03:40:35' didn't.
    1)
    I look os time stamp set for backup.
    -rw-r----- 1 oracle oinstall 9281626112 2011-08-28 03:40 o1_mf_nnndf_PROD_FULL_BKUP_08_75mxdb7v_.bkp
    2) I add start time(03:00:00) +elapsed time.
    channel ORA_DISK_1: backup set complete, elapsed time: 00:40:35
    thanks

    I can get
    " list backup of archivelog all"
    BS Key Size Device Type Elapsed Time Completion Time
    7576 1.51G DISK 00:05:04 02-SEP-11
    BP Key: 7576 Status: AVAILABLE Compressed: YES Tag: ROD_ARC_09.02.2011
    Piece Name: /u02/flash_recovery_area/ROD/backupset/2011_09_02/o1_mf_ annnn_ADVPROD_ARC_09.02.20_7616s3fm_.bkp
    List of Archived Logs in backup set 7576
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 205824 3898563613 01-SEP-11 3898573074 01-SEP-11
    you can get "SET UNTIL SEQUENCE thread "
    correctly,
    But How does one find out the exact time the backup was completed?
    I simply used the timestamp from the Rman backup as an approximate indicator.
    Oracle Error:
    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: system01.dbf'
    released channel: aux1
    released channel: aux2
    released channel: aux3
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 09/01/2011 12:53:48
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06053: unable to perform media recovery because of missing log
    RMAN-06025: no backup of log thread 1 seq 13891 lowscn 4013222506 found to restore
    Edited by: 880674 on Sep 2, 2011 7:07 AM

  • How do I know which id to delete and insure time machine restore?

    I had a glitch on my computer of the screen going black at random. I also had a recall on my imac for the segate drive which was replaced once. I brought it to the apple store after a week then determined there was no recall on my new drive and reinstalled Mt Lion to get rid of the black screen issue. Now here is the problem i got home and plugged in my ext drive for a time machine restore. I restored everthing using migrate assitant except the applications and desktop. I was asked to create another user name for the transfer. I don't understand why i had to do this so just slightly changed my id name. I now need to find the desktop data and can't find it under either names. I searched the drive direct and found the  info is there but migrate assitant doesn't show it. I tryed to restore back some other files but it was me to changed the name of the restore using migrate assitant again. How many ids do I need?  How do I blow way the 2nd id without gettting rid of my backup on the ext drive. I am so confussed now and can't figure out which  admin id has the info and which doesn't .  I don't even know if the info made it to the imac hard drive.  help!!!  

    I had a glitch on my computer of the screen going black at random. I also had a recall on my imac for the segate drive which was replaced once. I brought it to the apple store after a week then determined there was no recall on my new drive and reinstalled Mt Lion to get rid of the black screen issue. Now here is the problem i got home and plugged in my ext drive for a time machine restore. I restored everthing using migrate assitant except the applications and desktop. I was asked to create another user name for the transfer. I don't understand why i had to do this so just slightly changed my id name. I now need to find the desktop data and can't find it under either names. I searched the drive direct and found the  info is there but migrate assitant doesn't show it. I tryed to restore back some other files but it was me to changed the name of the restore using migrate assitant again. How many ids do I need?  How do I blow way the 2nd id without gettting rid of my backup on the ext drive. I am so confussed now and can't figure out which  admin id has the info and which doesn't .  I don't even know if the info made it to the imac hard drive.  help!!!  

  • How do I get into iTunes to access Netflix, when I get "iTunes unable to connect until time has been set", after submiting my password?

    How do I get into iTunes to access Netflix, when I get "iTunes unable to connect until time has been set", after submiting my password?

    You need to follow the instructions in this article that best apply to your situation:
    Forgot passcode for your iPhone, iPad, or iPod touch, or your device is disabled - Apple Support
    If you do not have a backup in either iCloud or iTunes, then you will have no way to retain the information on your device because you will have to restore it in order to access it again.
    Sorry,
    GB

  • How do I perform a complete restore to Mac using Time Machine

    I need to restore my MBP (10.8) from Time Machine backup.  Problem is, when I attempt to perform a full restore it says the last full backup available is a month ago. 
    How can I recover all the changes since my last full backup?
    I've reestored the last full backup, but I've now "lost" all changes made since the last full backup.  I can open Time Machine and view or restore individual files, but that's tedious and error prone (bound to miss a few).
    How can I perform a FULL restore.  ie. Back to the last backup (the full backup from a month ago), and then recover all changes made up until the last "incremental" backup - which only included the changes?
    Alternatively, how can I identify all changes from last FULL backup to the last "incremental".

    Insert its first original DVD, restart with the Option key held down, click on it, use the Disk Utility to erase the internal drive, and install a new OS.
    (94325)

  • How do I safely stop a Time Machine Restore midway through?

    I started a Time Machine restore from backup at about 1pm this afternoon.
    After about 15 minutes of estimating the size of the files to be transferred, it gave me a 19hr estimate for transfer time. I had heard that it could take awhile, so I wasn't totally blown away by the number.
    I'm backing up about 200 GB. Well, I'm about 2 hours into it, and the time remaining has been fluctuating from 19+ hours to 14 hours. I'm at about 18 hours right now.
    I'm beginning to question the ethernet cable I'm using to transfer the data, and wishing I used a USB 2.0. I've also read up on a bunch of other threads about how painfully slow Time Machine can be, and there seems to be little rhyme or reason as to when it's slow vs when it's somewhat reasonable.
    So, I guess there are two questions.
    Question 1) Can I safely power down, swap cables, and retry? What happens to the data that's already been pulled over?
    Question 2) Should I just let it run for the next 18 hrs? I've also read other horror stories where people return to their machines after the time estimated, and it's hardly budged.
    Any help would be AWESOME! If i could give you a billion help points, i would!

    majmanMac wrote:
    Was doing a full restore from scratch - I lost a hard drive on Monday, and just got a new one put in. Turns out the estimate was about right, as I'm now writing this from my restored machine.
    Yay!
    I was restoring from a Time Capsule. For some reason I just assumed it had a USB port.
    Ah, yes, it does, but it's for connecting a printer or USB drive, not a Mac.
    My concern that i would come back to it this morning and find it still updating has been put to rest. Phew!
    Glad it's sorted out, but it does seem like there may be a problem -- that's awfully slow. See #D2 in [Time Machine - Troubleshooting|http://web.me.com/pondini/Time_Machine/Troubleshooting.html] (or use the link in *User Tips* at the top of this forum).
    And be forewarned: since you have a new drive, Time Machine's next backup will almost certainly be a full one, so remain connected via Ethernet. If there isn't enough free space for that, it will take an extremely long time for Time Machine to delete a lot of old backups to make room. You might consider manually deleting a lot of them, per #12 in [Time Machine - Frequently Asked Questions|http://web.me.com/pondini/Time_Machine/FAQ.html] (or use the link in *User Tips* at the top of this forum).

  • My Macbook Pro was stolen, and I have replaced it with a Macbook Air. New hard drive is too small for a Time Machine restore. How do I restore my more-expensive apps (ie iWorks) on my new Macbook without repurchasing them?

    My Macbook Pro was recently stolen, and I have replaced it with a Macbook Air. I attempted to simply do a restore from the Macbook Pro's Time Machine backup, but since the new Macbook Air's hard drive is significantly smaller, a Time Machine restore was not possible. I even tried to choose only settings or only my User Profile (option) when restoring, but the backup was still too large to do a restore onto the new machine. How do I restore my more-expensive apps (ie iWorks) onto my new Macbook without repurchasing them? Also, I reaad somewhere that if you went to the Mac App Store and attempted to repurchase the app and clicked BUY, it would simply alert you that you have already purchased the app (and trigger a re-download)... NOT THE CASE... So I just dropped another $19.99 for a second copy of Pages... Not my intention....
    Any help would be greatly appreciated.
    LM

    you should get a usb backup drive as well.  time machine has limited use in my eyes. it saves things. but older things can be errased ad space drops without telling you
    nothing beats data redundancy.  2 saves is. 1.    and 1 is none
    im personally not fond of time machne though i use it only for a recovery parameter for a mac
    id never ever myself consider time machine a genuine data backup tool.  though most do consider it as such
    drive clones such as superduper and carbon copy cloner can clone your entire drive for emergency recovery.  and you can boot from them as well o. another mac

  • How to determine the last time  a database was used

    Is it possible in to determine the time a CRUD operation occurred on a database?

    How can I activate the auditing? http://download-east.oracle.com/docs/cd/B19306_01/network.102/b14266/auditing.htm#i1011984
    Daljit Singh

  • How to determine the connection time?

    Hello!
    We have big troubles with our ConnectionPool. We have adapted most parts from the Book "Professional Java Server Programming" (Wrox Press).
    However, the connections are invalid (I/O Exceptions like "End of TNS Data Channel" or "Broken Pipe") after a while.
    The average up-time of our pool is approximately 24 hours.
    Now we want to drop renew the connections after a certain amount of time (let�s say 1 hour). To do this, we would need to determine the time when the connection has been established. How can this be done?
    I have looked into the DatabaseMetaData class, but did not find anything (at the first glance).
    PLEASE help me / us, the problem is really severe!
    Thanks in advance,
    Gregor Graf

    PLEASE help me / us, the problem is really severe!Where did you get the pool from? Is it your code? If so then are you sending a keep alive query - which would keep the connection active?
    If it isn't your code then are you explicitly returning the connections to the pool?
    Commercial pools don't typically drop connections. Some do which can be discovered by examining the configuration options for the pool that you have.
    If it is your code and you just want to add this, then you add a time value to each connection node. Each time a node is returned you set the time. You have a thread that runs and checks the time value, dropping any that are older than the value you want.

Maybe you are looking for

  • How can i sync my phone with blank itunes account

    Accidentally wiped my itunes a few weeks back (hey ho) so whilst I have nothing to loose I thought I'd take the opportuninty to move my itunes to my laptop. Ive installed itunes onto laptop and know that I need to de-authorise itunes on my PC at some

  • Limit usage in SQL

    I'm using OBIEE 11.1.1.5 and I want to add to my generated SQL towards the DB limitation on returning number of records. Can I add some TOP or LIMIT command? I tried adding in the postfix (advanced tab) but it failed.

  • Please help !!!! Checkbox array

    Hi, Im a new java programmer (with no experience) and I'm programming an application. I have created a GUI that contains an array of checkboxes, and I want to save the user choice in an array when the user have validate the window (validate button).

  • HT4561 Install OS 6.8 without installation disk

    I need to wipe my MAC Pro clean and do a fresh OS install before I put it up for sale. I don't have any OS installation disks. The current OS on the system is 10.6.8. How can I do this? Thanks guys!

  • Can I add file size to spotlight window?

    Currently the only file information that displays is name, kind and last opened. I'd like to get the file size to display as well to help me ID which version of files I want. For that matter can I add other parameters to the sortable bar at the top o