Formating RMAN "LIST" command output

I am running following command at rman prompt which has a output over 10 pages which I cant scroll back to see the entire output.
RMAN> LIST BACKUP OF ARCHIVELOG ALL;
Is there any way where in I can use something similar to "set pause on" of sqllpus within rman.
One way I am achieveing this is by using cmdfile and logfile option in whicle connecting. But its not that feasible to write command file for each and every command.
Pls advise...

You can try this to run the rman command and also you can have the options what you are looking for.
$ echo 'list backup of archivelog all;' |
rman rcvcat rman/rman target backup_admin/backup_admin@sri
Recovery Manager: Release 10.2.0.1.0 - Production on Mon Mar 6 15:18:30 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: SRI (DBID=1762478285)
connected to recovery catalog database
RMAN>
List of Backup Sets
===================
BS Key Size Device Type Elapsed Time Completion Time
9936 374.63M DISK 00:00:32 06-MAR-06
BP Key: 9941 Status: AVAILABLE Compressed: NO Tag: TAG20060306T115312
Piece Name: E:\ORADATA\SRI\FLASH_RECOVERY_AREA\SRI\BACKUPSET\2006_03_06\O1_MF_ANNNN_TAG20060306T115312_20S4SD4B_.BKP
List of Archived Logs in backup set 9936
Thrd Seq Low SCN Low Time Next SCN Next Time
1 81 12350590 02-MAR-06 12405197 02-MAR-06
1 82 12405197 02-MAR-06 12474206 03-MAR-06
1 83 12474206 03-MAR-06 12580631 06-MAR-06
1 84 12580631 06-MAR-06 12609253 06-MAR-06
1 85 12609253 06-MAR-06 12614028 06-MAR-06
RMAN>
Recovery Manager complete.
But I have no idea what exactly you want to track in the output. Meaning which part of the output you want to grep and perform sort etc.,
well you can try..
$ echo 'list backup of archivelog all;' |
rman rcvcat rman/rman target backup_admin/backup_admin@sri |
grep < required string> | awk... bla bla... -Sri

Similar Messages

  • RMAN LIST command

    Hi,
    I'm getting this error
    RMAN> restore validate controlfile;
    Starting restore at 25-JUL-07
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting validation of datafile backupset
    channel ORA_DISK_1: reading from backup piece G:\ORACLE\PRODUCT\10.2.0\DB_1\FLAS
    H_RECOVERY_AREA\CCBPROD\AUTOBACKUP\2007_07_25\O1_MF_S_628863998_3BG29Z6O_.BKP
    ORA-19870: error reading backup piece G:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVE
    RY_AREA\CCBPROD\AUTOBACKUP\2007_07_25\O1_MF_S_628863998_3BG29Z6O_.BKP
    ORA-19505: failed to identify file "G:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY
    _AREA\CCBPROD\AUTOBACKUP\2007_07_25\O1_MF_S_628863998_3BG29Z6O_.BKP"
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified
    failover to previous backup
    channel ORA_DISK_1: starting validation of datafile backupset
    channel ORA_DISK_1: reading from backup piece G:\ORACLE\PRODUCT\10.2.0\DB_1\FLAS
    H_RECOVERY_AREA\CCBPROD\AUTOBACKUP\2007_07_25\O1_MF_S_628863480_3BG1SS7V_.BKP
    ORA-19870: error reading backup piece G:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVE
    RY_AREA\CCBPROD\AUTOBACKUP\2007_07_25\O1_MF_S_628863480_3BG1SS7V_.BKP
    ORA-19505: failed to identify file "G:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY
    _AREA\CCBPROD\AUTOBACKUP\2007_07_25\O1_MF_S_628863480_3BG1SS7V_.BKP"
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified
    failover to previous backuphow do I LIST other details by the filename?

    you mean I've actually scroll to find the details regarding the filename?
    there is no other way to enLIST / search based on the filename?

  • Oracle 9i rman list incarnation command empty

    Hello,
    We have switched to a standby DB and now trying to backup that particular db on the same catalog database...
    When we do a list incarnation on the standby DB the list is empty , why is that ?
    RMAN> list incarnation;
    RMAN>
    Any ideas , thx
    sorry for the double post in wrong section
    now we are getting this message ...
    RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12>
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of allocate command on ch1 channel at 12/07/2009 21:38:25
    ORA-03113: end-of-file on communication channel
    Edited by: jrmtl on Dec 7, 2009 7:02 PM

    Hi,
    Can you try:
    select * from V$DATABASE_INCARNATION;in sqlplus and post the output?
    The ORA 3113 can have a lot of reasons for example instable network or no resources on the server.
    Regards
    Tycho

  • I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics

    I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics with "Alternative Text".
    I know that with a Microsoft product graphics can be tagged before a PDF is made. I need to know how to do this with my programming.

    The Acrobat SDK might be a starting point.
    From there, perhaps a plug-in (built with C+).
    Perhaps with a licensed release of a PDF Library (this could be $$).
    The viable and cost effective alternative is use the tried and true.
    Authoring in an appropriate authoring application with appropriate tag management.
    Example:  Adobe InDesign; Adobe FrameMaker or MS Word with PDFMaker (comes with install of Acrobat).
    This way you place "Alternative Text" when mastering content in the authoring file.
    Going the route and with some look-see (research) you may find programmatic approaches to placing the alt txt in the authoring file.
    Note: as discussed in the Matterhorn Protocols there is no programmatic method that provides a fully accessible PDF (specifically, that is an ISO 14289-1, PDF/UA-1 compliant PDF).
    Regardless, here you have a sub-forum for discussions on Acrobat usage.
    Consequently discussions on/of 3rd party software is rather out of scope eh.
    Be well...

  • How to add user command to drop down list in output screen for OALV Report

    Hi Experts,
    I have created a report by using OALV.
    in Output screen i have  added drop down for one filed with 2 values.
    when i select  value from the drop down list the  program should trigger and the next field should be update.
    so it is possiable to add a user command for the drop down list in output screen.
    if so please help me .
    Regards,
    Rathan

    HI,
    Check the Demo program BCALV_EDIT_06 with having the DATA_CHANGED event still you can capture the changed data. This event will help you.
    or you can go for this code..
    data: it_f4 type lvc_t_f4,
            wa_f4 type lvc_s_f4.
            wa_f4-FIELDNAME = 'CONNID'.
            wa_f4-REGISTER = 'X'.
            wa_f4-GETBEFORE = 'X'.
            wa_f4-CHNGEAFTER = 'X'.
            append wa_f4 to it_f4.
    "register F4 event
      CALL METHOD g_alv_grid_ref->register_f4_for_fields
        EXPORTING
          it_f4  = it_f4.
    "Once you try to pick the value HANDLE_DATA_CHANGED event will be triggered
    "Definition
         methods:
         handle_data_changed FOR EVENT data_changed OF cl_gui_alv_grid
                                  IMPORTING er_data_changed e_onf4 e_onf4_before e_onf4_after,
    "Implementation
    METHOD handle_data_changed .
        DATA: ls_mod_cells TYPE lvc_s_modi.
        IF e_onf4_before = 'X'.
          MESSAGE 'Data changed before F4' TYPE 'I'.
        ENDIF.
        IF e_onf4 = 'X'.   "if event triggered by F4
          MESSAGE 'Data changed on F4' TYPE 'I'.
        ENDIF.
        IF e_onf4_after = 'X'.
          MESSAGE 'Data changed after F4' TYPE 'I'.
        ENDIF.
       "here you know which cell was modified
        LOOP AT er_data_changed->mt_mod_cells INTO ls_mod_cells.
         "just example test case, here you can implement your code for modified cells
          IF ls_mod_cells-value >=5.
            CALL METHOD er_data_changed->add_protocol_entry
              EXPORTING
                i_msgid     = 'SABAPDOCU'
                i_msgty     = 'E'
                i_msgno     = '888'
                i_msgv1     = 'Only numbers below 5 are possibe'
                i_msgv2     = 'Please correct'
                i_fieldname = ls_mod_cells-fieldname
                i_row_id    = ls_mod_cells-row_id.
            CALL METHOD er_data_changed->modify_cell
              EXPORTING
                i_fieldname = ls_mod_cells-fieldname
                i_row_id    = ls_mod_cells-row_id
                i_value     = space.
          ENDIF.
        ENDLOOP.
      ENDMETHOD.                    "handle_data_changed
    Edited by: sum_it2 on Nov 21, 2011 10:07 AM

  • RMAN LIST BACKUP COMMAND

    I am using the following commands.
    RMAN> sql "alter session set nls_date_format=''dd-mon-yyyy HH24:MI:SS''";
    2> report unrecoverable database;
    3> report need backup days 2 database;
    4> list backup;
    5> EXIT;
    BS Key Type LV Size Device Type Elapsed Time Completion Time------- ---- -- ---------- ----------- ------------ ---------------
    6249525 Full 68G SBT_TAPE 01:38:05 *25-OCT-2010*
    BP Key: 6249547 Status: AVAILABLE Tag: TAG20101025T040741
    Even after setting nls_date_format, completion time in list backup command is not returning exact time..it is returning just the date..
    how to get completion time in RMAN LIST BACKUP COMMAND with hour,minute and second details...please let me know
    I am using catalog database...target database version 9i and catalog db version is 10g.
    Thanks,
    db

    NLS_DATE_FORMAT at OS level
    I tied this export NLS_DATE_FORMAT=DD-MON-YYYY HH24:MI:SS is throwing error
    NLS_DATE_FORMAT=DD-MON-YYYY: is not an identifier, please tell me what i am missing?

  • List command.

    I want to know if it is possible to re-direct the output of the list command in rman to an external file. reason beeing that in rman, when ai issue the command rman> list backup summary, I get a hell of infos (as mai db is arround 1.2T and we have approx 2 yrs of data kept!) and cant scroll to see all the infos.
    is there a link that gives all the options used with the list command???
    Any kinda help with be appreciated.
    DID

    thanks for the option! really forgot about the log option!
    wanna ask if its possible to backup a single archivelog out of many?
    the command backup archivelog backs up everythng! say ai want to backup only sequence 100??
    DID

  • Oracle 9i RMAN list incarnation query empty?

    Hello,
    We have switched to a standby DB and now trying to backup that particular db on the same catalog database...
    When we do a list incarnation on the standby DB the list is empty , why is that ?
    RMAN> list incarnation;
    RMAN>
    Any ideas , thx
    now we are getting this message ...
    RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12>
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of allocate command on ch1 channel at 12/07/2009 21:38:25
    ORA-03113: end-of-file on communication channel
    Edited by: jrmtl on Dec 7, 2009 7:08 PM

    When we try to register the database it says already registered?!?
    RMAN> register database;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of register command on default channel at 12/07/2009
    7
    RMAN-20002: target database already registered in recovery catalog

  • Command output redirect question

    Hi guys,
    I am putting in a kron function to transfer the command output from all the switches and routers on our network to a tftp server.
    I have the kron occurence and policy lists set up the way I want them and have tested the redirection of the command line output to the server.
    The problem I have is that I want to back up the switches 3 or 4 times once a week to compare the configs to make sure that no unwanted changes are being made over the course of the month.
    Is there a way to use a variable to change the file name when it redirects? Currently when the occurence runs the file modified time on the tftp server changes but the output doesnt append as I had hoped it would, i.e one file having the config copy in to the file over and over.
    Thanks for your help

    You might want to consider the built-in Config Archive feature instead of kron.  With Config Archive, you can periodically take backups of your config (even to a network server), and you can adjust the filenames using either date or hostname (or both).  Check out the documentation at http://www.cisco.com/en/US/docs/ios/12_3t/12_3t7/feature/guide/gtrollbk.html#wp1100253 for more details.
    In addition to Config Archive, you also have the option of going with the Embedded Event Manager.  EEM also has a cron feature which will allow you to run CLI commands periodically.  Depending on your IOS version, it may be possible to do what you want using a simple EEM applet, or you might have to use a Tcl script policy.  More on EEM can be found at http://www.cisco.com/en/US/docs/ios/netmgmt/configuration/guide/nm_eem_overview_ps10592_TSD_Products_Configuration_Guide_Chapter.html .
    All that said, most TFTP servers have a security requirement that a file must exist on the server before one can write to it.  Therefore, if you try and create new files (i.e. a new file each day), the TFTP server may reject the WRITE REQUEST unless a file with that name already exists.  In light of that, you may need to use something like SCP or FTP instead.

  • What are list of output events?

    hi,
    i am siva,
    i am new to ABAP language,
    i have one doubt..
    tell me the list of output events in abap ..?
    if u know answer..
    mail me..
    FOR BEST ANSWERS POINTS WILL BE GIVEN.

    hi,
    output events are.........
    <b>start-of-selection.</b>
    using this event we can genarate basic list.
    <b>end-of-selection.</b>
    we can use this event also for genarating basic list
    <b>top-of-page</b>.
    this event is related to list, we can use this event to providing list header.
    <b>end-of-page.</b>
    this event is related to list, we can use this event to providing list footer.
    if our program reading data from logical database, in that case GET and
    GET LATE events triggered to  genarate report.
    <u><b>interactive repotrs.</b></u>
    we use <b>AT LINE -SELECTION</b> and <b>AT USER-COMMAND</b> events to genarate secondary events based on user actions.
    <b>TOP-OF-PAGE DURING LINE-SELECTION</b> EVENT, provides page heading to all secondary lists.
    PBO and PAI   events also used to genarating list.
    regards,
    AshokReddy.

  • OSB "Extended command output" preference permanence

    There is a per user preference for "Extended command output".  When I set that, it only stays set for the duration of the session.  If the session times out, or the user logs out and then back in, the preference is reset.  I have tested this under Firefox 20-22, IE 9-10, and Chrome 27 - all behave the same and lose the preference setting after the end of the session.
    Is there a method to make the preferences persist across sessions?  I find the extended command output very useful.
    OSB version 10.4.0.2.0

    The problem is that "admin" was included as a Restore option and it is not a valid Restore / obtar option.
    Here are links to the documentation which describe what are valid restore / obtar options:
    http://download.oracle.com/docs/cd/E14812_01/doc/doc.103/e12834/osb_filesystem_restore.htm#CJAGECJD
    "Optionally, in Restore options, enter one or more obtar options.
    For example, -J enables debug output and provides a high level of detail in restore transcripts." A complete list of obtar options is:
    http://download.oracle.com/docs/cd/E14812_01/doc/doc.103/e12838/ap_obtar.htm#OBREF362
    Donna

  • Regarding getting metastat command output

    Hi,
    I am facing some problems while getting metastat command output. Basically in some scenario's the output format for device is shown in CnTnDn format. But for some other metadevices its shown as /de/dsk/CnTnDn format. How can i achieve getting Device info in only one format? Attached is the output. Here d42 Device is shown in c1t1d0s4 format and d1023 is being shown as "/dev/dsk/c6t50060E8003F64A19d5s7".
    d42: Submirror of d40
    State: Needs maintenance
    Invoke: metasync d40
    Size: 10247232 blocks (4.9 GB)
    Stripe 0:
         Device Start Block Dbase State Reloc Hot Spare
         c1t1d0s4 0 No Okay Yes
    d1023: Concat/Stripe
    Size: 113798880 blocks (54 GB)
    Stripe 0: (interlace: 2048 blocks)
         Device Start Block Dbase     Reloc
         /dev/dsk/c6t50060E8003F64A19d5s7 0 No      Yes
         /dev/dsk/c6t50060E8003F64A19d6s7 1440 No      Yes
    Regards,
    Shivaraj
    email: [email protected]

    Hi wrightrp,
    Thanks for replying. This info was very helpfull for me.
    But it looks we are little bit diverted from original problem. Basically I was having trouble in identifying "Device" format in my script. If you look at my example metastat output, for d42 the "Device" info was shown as "c1t1d0s4" but for d1023 its shown as "/dev/dsk/c6t50060E8003F64A19d5s7" So i am worried about why for some metadevices its just shown as CTD format and why some others its shown as "/dev/dsk/CTD" format? For d1023 /dev/dsk is coming extra. Any help/info on this will be much appriciated.
    Regards,
    Shivaraj

  • How to copy the linux command output to the clipboard xclip is not working?

    Friends,
    OS: OEL 5.5
    i want to copy the command output to the clipboard.
    so, which rpm i have to install?
    i tried with xclip rpm its not working...
    xclip /etc/sysctl.conf
    but its not working, not only the above command but all the commands of xclip is not working.
    so, can anybody suggest me a solution?
    thanks

    i have already tried that...
    below is thru the secureCRT terminal
    [root@rac1 /]# cat /etc/sysctl.conf | xclip
    Error: Can't open display: (null)below is directly from the os
    [root@rac1 ~]# vi tet
    [root@rac1 ~]# tail -100 /var/log/messages | xclip
    [root@rac1 ~]# vi test
    [root@rac1 ~]# cat /etc/sysctl.conf | xclip
    [root@rac1 ~]# vi test
    [root@rac1 ~]# echo 'hello' | xclip
    [root@rac1 ~]# vi testEdited by: OraDB on Aug 19, 2012 10:33 AM

  • How to? multiline label containing exact system command output

    Background info: I'm triggering a system command to display memory utilization. As you know, the "free" linux command displays many lines of text one after the other. It is similar to the mem command used in Window$.
    I want to have a label displaying the command output as it is: multiple lines. Just like you see it in the console. I want to mirror whatever comes up on console after executing free from java.
    Using html tags won't work out for me in this particular situation. It just doesn't do the trick. Still displays the LAST line of command output with or without html tags.
    any ideas? it doesn't have to be a label. It can be anything as long as it works.
    Again, as it is, it just displays the last line of the command output
    //events will trigger every second
    Timer t = new Timer(1000, new ActionListener(){
          public void actionPerformed(ActionEvent event)
    //determine memory utilization.
            String cmd = "free -m";
        try {
         String line;
         Process p = Runtime.getRuntime().exec(cmd);
         BufferedReader input =
           new BufferedReader
             (new InputStreamReader(p.getInputStream()));
         while ((line = input.readLine()) != null) {
           label.setText(line);
         input.close();
        catch (Exception err) {
         err.printStackTrace();
        t.start();

    got it. thanks.
    String cmdMem = "free -m -t -o" ;
          try {
            String lineMem ;
            String outputMem = "" ;
            Process procMem = Runtime.getRuntime ().exec ( cmdMem ) ;
            BufferedReader input =
                new BufferedReader
                ( new InputStreamReader ( procMem.getInputStream () ) ) ;
            while ( ( lineMem = input.readLine () ) != null ) {
              outputMem = ( lineMem + "\n" ) ;
              jTextAreaSystemResourcesOutput.append ( outputMem ) ;
            input.close () ;
          catch ( Exception err ) {
            err.printStackTrace () ;
          }

  • A possible bug in RMAN CATALOG command in 10g on Linux (SLES9 SP3)

    Hi,
    I ran into this issue while using RMAN command "CATALOG DATAFILECOPY <filename> TAG <tagname>". In this instance, RMAN is actually trying to write 8K data at block 1. Since a copy is being cataloged, it doen't make any sense to modify it. Please note that this modification doesn't happen without TAG option. This behavious doesn't seem to be present on Oracle 9 on Solaris 8. For more details, please check the following thread:
    help with RMAN CATALOG command
    Thanks,
    Raghu.

    Hi Steve,
    Unfortunately this is a bug, bug 3612370 in fact. I've published the bug so that it can be tracked via metalink if you have a support contract.
    The bug is as you suspected with JDev's parse of the modules. We don't have a workaround at the moment but I'll post here again if we make any progress.
    Thanks for reporting this,
    Geoff
    JDev Test Team

Maybe you are looking for