find the right backup of cloning using up the time option

Hello

I'm trying to create a script to find out what files to backup (backup rman, rman backup control file and archivelogs) are needed to create a clone of production data base lets say for 1 month ago or two weeks ago.

My backups are marked, performed on the disk, but a night job takes the disk backup files and moves them to tape.
So, before I can restore correct correct tape files, I need to know what files to backup should I restore a band.

I could start the clone and she'll tell me it cannot find the files of backup that is named xxx, yyy and it will eventually error and output, but I find the files.
The idea is to find the files before the script (script clone) could not find the right files.

I tried to use the v$ element_sauvegarde, v$ backup_files equivalent rc_ view (s) and tried to join them, but I couldn't find the join columns. I tried stamp column. This gives me some information so I can find the files, but I need to know the approximate duration of the backup.

So my question is: how RMAN queries it sees? (v$ backup %) I couldn't find a link to foreign key between tables.
Here is the result of what I managed to find, but I have to give the approximation of 1 hour (1 hour before NMR files have been generated and 1 h after) so I could find the controlfile files and the archivelogs rman backup files.


'BACKUP' 'BS_TYPE' 'PKEY' 'STAMP' 'RMNFILE' 'STATUS' 'TAG.
"BACKUP SET" "ARCHIVED LOG" 2568 751143608 ' / bckploc/514_2576.rmn "'AVAILABLE'"ARCH_DAILY_BACKUP_14052011_1900 ".
"BACKUP SET" "ARCHIVED LOG" 2566 751143608 ' / bckploc/514_2575.rmn "'AVAILABLE'"ARCH_DAILY_BACKUP_14052011_1900 ".
"BACKUP SET" "ARCHIVED LOG" 2567 751143607 ' / bckploc/514_2574.rmn "'AVAILABLE'"ARCH_DAILY_BACKUP_14052011_1900 ".
"BACKUP SET" "ARCHIVED LOG" 2569 751143607 ' / bckploc/514_2573.rmn "'AVAILABLE'"ARCH_DAILY_BACKUP_14052011_1900 ".
"BACKUP SET" "ARCHIVED LOG" 2570 751143633 ' / bckploc/514_2577.rmn "'AVAILABLE'"ARCH_DAILY_BACKUP_14052011_1900 ".
"BACKUP SET" "DATA file" 2571 751143635 ' / bckploc/514_2581.rmn "'AVAILABLE'"DB_DAILY_BACKUP_14052011_1900 ".
"BACKUP SET" "DATA file" 2572 751143635 ' / bckploc/514_2580.rmn "'AVAILABLE'"DB_DAILY_BACKUP_14052011_1900 ".
"BACKUP SET" "DATA file" 2573 751143635 ' / bckploc/514_2579.rmn "'AVAILABLE'"DB_DAILY_BACKUP_14052011_1900 ".
"BACKUP SET" "DATA file" 2574 751143635 ' / bckploc/514_2578.rmn "'AVAILABLE'"DB_DAILY_BACKUP_14052011_1900 ".
"BACKUP SET" "ARCHIVED LOG" 2575 751143711 ' / bckploc/514_2582.rmn "'AVAILABLE'"ARCH_DAILY_BACKUP_14052011_1900 ".
"BACKUP SET" "DATA file" 2576 751143715 ' / bckploc/c-3567074004-20110514-00 '"AVAILABLE" ' TAG20110514T190155' ".

Any suggestions are appreciated.
Thank you
Daniel

Hello

I tried to use the v$ element_sauvegarde, v$ backup_files equivalent rc_ view (s) and tried to join them, but I couldn't find the join columns. I tried stamp column. This gives me some information so I can find the files, but I need to know the approximate duration of the backup.
So my question is: how RMAN queries it sees? (v$ backup %) I couldn't find a link to foreign key between tables.

If your question is only to reach the point of view.
Then a tip: you should always join columns (STAMP and COUNTY)

for example

bs_stamp
bs_count 

SET_STAMP
SET_COUNT
SELECT BP.RECID,
  BP.STAMP,
  BP.RECID,
  BS.RECID,
  BP.SET_STAMP,
  BP.SET_COUNT,
  PIECE#,
  COPY#,
  STATUS,
  BP.COMPLETION_TIME,
  HANDLE,
  BS.CONTROLFILE_INCLUDED,
  BS.BACKUP_TYPE,
  TAG,
  DEVICE_TYPE,
  MEDIA,
  BYTES,
  COMPRESSED
FROM V$BACKUP_PIECE BP,
  V$BACKUP_SET BS
WHERE HANDLE IS NOT NULL
AND BS.SET_STAMP   = BP.SET_STAMP
AND BS.SET_COUNT   = BP.SET_COUNT;

SET_STAMP  SET_COUNT  COMPLETION_TIME           HANDLE                                                                            CONTROLFILE_INCLUDED TAG
---------  ------     ------------------------- --------------------------------------------------------------------------------- --------------------  -------------------
751030325  109        13/05/11                  +FRA/db10g/backupset/2011_05_13/annnf0_backup_full_0.379.751030327                NO                   BACKUP_FULL         

SELECT FILE_TYPE, FILE_TYPE, STATUS, F_NAME
FROM V$BACKUP_FILES
WHERE BS_STAMP = 751030325  AND BS_COUNT= 109;

FILE_TYPE                        STATUS           FNAME
-------------------------------- ---------------- ------------------------------------------------------------------
ARCHIVED LOG
ARCHIVED LOG
ARCHIVED LOG
ARCHIVED LOG
PIECE                            AVAILABLE        +FRA/db10g/backupset/2011_05_13/annnf0_backup_full_0.379.751030327   

In this example, I have 4 archivelogs in the backuppiece.

I hope this can help you

See you soon,.
Levi Pereira

Tags: Database

Similar Questions

  • Could not find the Time Capsule for Time Machine backup drive

    My iMac is running El Capitan and Time Machine is unable to find the Time Capsule backup drive.  I blew the backup several times in hopes that it will fix the problem.   The only thing I found which will allow a return to the top is to unplug the Time Capsule and plug it in again.  The work around works only once, then it's back to "can't find the backup disk.

    For anyone a cela or similar questions are you go in your Utilities folder (in your applications folder) and run the utility airport to see what he says about the disks attached. This cannot work for the readers of time capsule Apple rather than third party readers who have been designated as the backup time drives machine.

  • How to find the time to what zero crossing point occur using zero crossing vi

    Hello 
    Im trying to find the time to the point of inflection of a Bio-Signal with the 2nd derivative, then detecet the point of zero of the derivative signal
    What I need, is to mark the point of inflection on my Bio-Signal at the point where the derivative signal crosses the zero.

    The second has two scales on the graph, one on each side.  The first has only a single scale. I do not change the name of VI, so both have the same name.

    Lynn

  • __why my computor still says the system could not find the environment option that was entered when I trey to change settings or load a new program

    the system could not find the environment option that was entered

    Hi Yasish.P,

    Thank you for using the Microsoft Windows Vista Forums.

    I will need some additional information to help you best.

    O when you get this error message?

    Meanwhile, analysis of auditor of file system (CFS) that might help you resolve the issue.

    To determine if the problem you are experiencing is caused by one or more system files that are used by Windows Vista, run the System File Checker tool. The System File Checker tool analyzes the system files and replaces incorrect versions of system files by using the correct versions.

    To determine if the problem you are experiencing is caused by one or more system files that are used by Windows Vista, run the System File Checker tool. The System File Checker tool analyzes the system files and replaces incorrect versions of system files by using the correct versions.

    To run the System File Checker tool, follow these steps:

    1. Click Start and type cmd in the box start the search.

    2. right click on cmd in the list programs and then click Run as administrator.

    If you are prompted for an administrator password or a confirmation, type your password or click on continue

    3. at the command prompt, the following line, and then press ENTER:

    sfc/scannow

    When the analysis is complete, test to see if the problem you are experiencing is resolved. If the problem you are experiencing is not resolved, use the procedure that is described in the section "the System Restore tool.

    Follow the instructions in the link below for more information on scan SFC.

    http://support.Microsoft.com/kb/936212/

    You can see the link below for more information.

    http://social.answers.Microsoft.com/forums/en-us/vistasecurity/thread/aa301b37-e6b9-4f8c-B812-3ba2c58e1442

    Please post back and let us know if it helped to solve your problem.

    Kind regards

    KarthiK TP

  • System could not find the environment option that was entered.

    The Trend Micro Client caused a bit of stir in my computer.

    He gave me the UiSeAgnt.exe error and I couldn't open any .exe files. I uninstalled Trend Micro and that pop up more rises. But the "System could not find the environment option/variable is entered" is yet to come when I try to run the .exe. This means that same cmd cannot be opened. I can not connect to the Internet independently wireless or wired. Audio system is not even the sense system speakers or external audio devices.

    I tried the system restore, did not work. I tried SFC/scannow, did not work. Now my current idea is to back up my files and blow the computer on with a clean restore. What should I do? I use a Vaio E series 14 p, btw.

    If it really comes down to it, how much memory should I backup everything?

    Hi Vey,

    Thanks for posting your query in the Microsoft community.

    Your system is connected to a domain network?

    This problem occurs in situations where Shutdown.exe cannot access the UserDomain environment variable. The task of the judgment which is on demand by using the at command runs under the system account. When the task is run under the System account, the UserDomain environment variable are not accessible because it does not exist. But the problem occurs mainly on the areas of server.

    I would suggest trying the following steps and check if these help to resolve the issue.

    1. start your system in safe mode.

    2. press on the Windows key + R.

    3. type sysdm.cpl , and then click OK.

    4. click on the "Advanced" tab

    5. in "Startup and recovery", click "Environment Variables".

    6. under "System Variables", click 'new '.

    7. for "Variable name", type in windir%

    8. for 'Value of the Variable', type in C:\Windows

    9. click OK on the all the dialog boxes that pop up.

    10. restart your system in normal mode.

    If, however, your system is connected to the normal mode, please see the following support article.

    Computer does not and you receive an error "System cannot find the environment Option that was entered" when you schedule a task of closing using the AT command

    Hope this information is useful. Let us know if you need more help, we will be happy to help you.

  • Find the time to restore a data file

    RDBMS version: 11.2.0.4

    Platform: Oracle Linux 6.4

    To test our backup RMAN Tape (Netbackup), we have created a table called BACKUPTEST with a single space data file.

    Then, we have removed the data file. Then was restored and recovered with RMAN's data file and tablespace was again online.

    I wanted to show the evidence to my manager that the data file has been restored. But v$ datafile. CREATION_TIME will show the time when the tablespace is imagined. Is there another way, I could find the time when the data file has been restored other than log RMAN.

    Below is an excerpt after the data file has been restored.

    $ sqlplus / as sysdba

    SQL * more: Production of the version 11.2.0.4.0 Fri dec 19 15:08:03 2013

    Copyright (c) 1982, 2013, Oracle.  All rights reserved.

    Connected to:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production

    With partitioning, Real Application Clusters, Automatic Storage Management, OLAP,.

    Options of Data Mining and Real Application Testing

    SQL > select TABLESPACE_NAME, status of dba_tablespaces where nom_tablespace = 'BACKUPTEST ';

    STATUS TABLESPACE_NAME

    ------------------------------ ---------

    BACKUPTEST ONLINE

    SQL > alter session set nls_date_format = "DD-MM-YYYY HH24."

    Modified session.

    SQL > select CREATION_TIME of v$ datafile where FILE # = 78;

    CREATION_TIME

    ----------------

    19/12/2013-12:16

    SQL > select CREATION_TIME, last_time v$ datafile where FILE # = 78;

    CREATION_TIME LAST_TIME

    ---------------- ----------------

    19/12/2013-12:16

    SQL >

    19/12/2013 12:16 is the hour when the tablespace has been created with this data file no time, it has been restored from a backup RMAN.

    Check the alert.log.  There will be messages about the RESTORATION and RECOVERY actions.

    Hemant K Collette

  • Error message "the system cannot find the environment option that was entered.

    I'm having a problem to launch programs on my system. I have Windows vista. Whenever I try to run any program on my computer, I get an error message that says: "the system could not find the environment option that was entered." He won't let me do things like: update of the parental control settings, System Restore, uninstall programs, install downloads, run antivirus software, ect. I tried to use the advice given in this forum without success. The system won't let me use the run as Administrator option and no longer recognizes my account administrator. I've lost my Vista boot drive, so I can't use it to repair the computer. I am at the end of the roll and can't not think of anything else to do, but my computer reset it back to default settings. Any advice would be greatly appreciated.

    Do you have a recovery disk (unless you have an already or that you have an Installation of Windows Vista genuine disc) using http://neosmart.net/blog/2008/windows-vista-recovery-disc-download/ with burning like software: http://www.snapfiles.com/get/active-isoburner.html and of course a blank CD.  This recovery disk will allow you to do the Startup Repair and system restore. You may need to change the BIOS to do the CD drive first in the boot sequence.  It was boot the PC and wait for the screen where it shows the F key to enter the menu start or start of installation.  Push it quickly. Make the change, save your work and exit.  Insert the CD into the drive and restart.  When you are prompted, press a key to start the PC.

    Try a system restore to a point BEFORE this problem started to occur.  Here's how: http://www.howtogeek.com/howto/windows-vista/using-windows-vista-system-restore/.  Check the box to show more than 5 days of restore points.  If this does not work, try an earlier point or two.

    If this does not work, do a startup repair, boot from the Installation of Windows Vista genuine disc or your recovery disk. Here is the procedure: http://www.bleepingcomputer.com/tutorials/tutorial148.html.

    If you don't have a floppy, you can make a recovery disk to http://neosmart.net/blog/2008/windows-vista-recovery-disc-download/ using a burning like software: http://www.snapfiles.com/get/active-isoburner.html and of course a blank CD.  This recovery file is just as good as one that comes with Vista, but it can't do a reinstall.  You can do a system restore or startup repair or even use the command prompt.  Boot from the CD may be your only option, because you are not an administrator and therefore cannot do these functions in normal mode.

    Let's see if it works before moving on to other troubleshooting options.

    Good luck and I hope this works!

    Lorien - a - MCSE/MCSA/network + / A +.

  • "I received a message to activate the firewall of windows as important, but when I try to turn it on it gives me" the systerm could not find the environment option.

    #corrected "tehe systerm could not find the environment option" in the title

    "the system could not find the environment option"

    Hi nickzino,

    (1) what is the complete error message you receive?

    (2) since when are you facing this problem?

    (3) remember you to make changes to the computer before this problem?

    Method 1: Let flow the fixit available in the link below and then check

    Security Warning: the Windows Firewall is disabled

    http://support.Microsoft.com/kb/2288085

    Method 2: If a Protection of resources Windows (WRP) file is missing or is damaged, Windows may not behave as expected. Auditor of file system (CFS) scan to fix all of the corrupted system files. To do this, follow the steps mentioned in the link below:

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

    Thanks and greetings

    Ajay K

    Microsoft Answers Support Engineer
    ***************************************************************************

  • Vista cannot load RealPlayer/FireFox message "the system cannot find the environmental option". Any ideas?

    Vista cannot load RealPlayer/FireFox message "the system cannot find the environmental option". Any ideas?

    Hi Magnusopus,

    ·        You receive this message when you use Real player or Firefox?

    ·        You did changes to the computer before this problem started?

    You can try to uninstall Real player and firefox to the computer and reinstall and check if that helps you solve the problem. Access the link below and follow the steps to uninstall the program from your computer.

    http://Windows.Microsoft.com/en-us/Windows7/uninstall-or-change-a-program

    Subsequently access the links below to download Firefox and Real player and even install and check if it works very well.

    Link to download Firefox:http://www.mozilla.com/en-US/firefox/ie.html

    Link to download Real Player:http://www.real.com/realplayer

    I hope this helps. Let us know the results.

    Thank you and best regards,

     

    Srinivas R

    Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to find the time to process a request?

    IM using oracle express edition, can someone help me, how to find the time to process a request?

    Trace queries and tkprof the trace file generated.
    http://download.Oracle.com/docs/CD/E11882_01/server.112/e16638/SQLTrace.htm#PFGRF01010

  • The system could not find the environment option that was entered.

    I have Vista Home Premium. I must have met a significant corruption or a virus. Here's what the system won't let me do.

    System restore
    Launch any program exe
    run cmd as administrator
    launch msconfig
    Basically, everything I download don't throw (including several ladies virus recommended this forum and others)
    If it's a virus, he got by AVG free edition
    Safe mode does not enable all the options I get always "the system could not find the environment option that was entered."
    It of almost as if someone really took time to reflect on how to thwart an attack and then implemented in the opposite direction.

    Is blowing the entire disk and back at my only option?

    Help!; 0

    Zitouni,

    Thanks for your reply, good point on the File Checker, I didn't know that. Unforuneatly I have not see your reply until I decided it was time to re - install the system. One thing to note, I couldn't do a 'run as administrator' anyway possible. This system was really corrupt which leads me to believe that he may have been a NTFS/Fat 32 Co-mingling question. Just a guess, but I really don't see how it could have happened otherwise.

    Another thing to note, if you have a Dell Inspiron 1720 with a 250Gig HD-make sure that you format the partition, you then load the SATA drivers! Also, make sure that the restore partition does not primary. Make sure that you format (assuming that you have backed up your data before!). Otherwise, it hangs on Setup to complete the installation. Who took me ahwhile to understand.

    Everything is cool now (reinstalled Vista), just thank ful there is a site like this to run things by! ;)

    Concerning

    Jeff

  • Installation of earlier versions of CC, where can I find the "advanced options"?

    Hi, where can I find the "advanced options" to do this:

    By default, when you install a new application of Creative Cloud 2015 it removes previous versions of the application on your computer. If you want to keep your old version installed, click Advanced Options , and uncheck the box delete older versions in the update confirmation dialog box.

    I can't find anywhere, thank you.

    Hi Warris,

    Please refer to the "Update of Apps" section of this document:Update Adobe Creative Cloud 2015 applications

    You can also see before you upgrade to creative cloud 2015

    Hope that helps!

    Kind regards

    Sheena

  • Find the time displaced table

    Hi all

    I'm in oracle 10 g 2. I have a table being stripped of some process. We have several tasks scheduled for every night.

    Is it possible to find the time of what a table is dropped, just to make a guess what regular process could be the culprit?

    Enjoy your suggessions

    Thanks in advance

    NU
    select object_name,original_name,droptime
    from recyclebin
    

    If recyclebin is enabled
    So you can be insterested to configure auditing

    Best regards

    Maxim

  • MacBook can not find TC for backup even when using the TC to connect to internet

    I had my configuration of network wifi via my Airport time capsule for over a year and all of a sudden my macbook will not allow more time capsule to run backups, it can't seem to find the TC, even though it uses the wifi network to access the internet without problem through the CT. Also on my macbook airport utility can't find the base station no doubt why the reverse does not work, but my Airport utility Apps iPhone and iPad to find it without problem and also allow internet access. Its really bugging me and boring that the TC has suddenly stopped

    This is a common problem caused by bugs in El Capitan (10.11.x), so you can point blame at the bad products.

    Have you have performed the steps in troubleshooting base... as power cycling the network?

    The other troubleshooting steps you have done?

  • Find the time delay between two signals

    In this code, I sent you a pulse in the acquisition of data using labview. The pulse triggers a thermistor to another analog input input data.

    I want to find the delay between the time of the positive edge of the switch, and the exact time of the DAQ begins to take in the signal of the temperature probe.

    I enclose the code below.

    Thank you.

    Hey,.

    Here is a link to some information about the sources of clock on the FPGA.

    http://digital.NI.com/public.nsf/allkb/94CE338CC80ACF008625791400516BAA?OpenDocument

    Hope this helps

Maybe you are looking for

  • Qosmio G50 - 10 t - Bank password with the authorization of the fingerprint does not work

    Hi all. I have a new G50 - T with a big problem with this useful tool and Vista Ultimate (TrueSite Access Manager - option to connect to web sites or access password protected programs with a fingerprint).Before I had an older Toshiba laptop and no p

  • How to uninstall when the panel control does not allow me please.

    I had taken to the repair shop and worse problem yet, they installed Avast anti virus but it stopped because of the record that I was an insured person I have avg still impossible to uninstall and re install avast? WOT I do like not p.c. also savvy p

  • I have no volume control in my tadkbar

    Ideas: You have problems with programs Error messages Recent changes to your computer What you have already tried to solve the problem Remember - this is a public forum so never post private information such as numbers of mail or telephone!

  • HP Deskjet 2542: Claim number

    Hello How to get my number of claim for my printer?

  • L2L ASA sends not encryted traffic

    I currently have a problem passing an ASA 5520 traffic to a 877W.  Traffic is being encryption on the router to the ASA (as shown below), but ASA doesn't send any encrypted traffic.  I tried the upgrade to 8.4 (7) 9.1 (5), wiping the config and, conf