How to reproduce the traditional method in RMAN?

How can I do the following by using RMAN?
DB version 10.2.0.4
RedHat 5.2
I'm not using a rman catalog
in the past I have moved large data bases of 1 server to another with downtime of 5 minutes using backups made the old way to put tablespaces into backup mode and to make copies of data files.

I used the following method:
= > Part 1
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "VPMY" RESETLOGS ARCHIVELOG value
MAXLOGFILES 32
MAXLOGMEMBERS 3
.. .etc
LOGFILE
... save file names
DATA FILE
... list data files
US7ASCII CHARACTER SET;

= > Part 2
Until the downtime scheduled, I copy logs archiving from the production server to the new, and run the following command to apply the last archiving logs:
RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL;
-> AUTO < -.

= > Part 3
After you apply the last archive log all restrict mode.
ALTER DATABASE OPEN resetlogs;


My question is, how do I part 2 in RMAN. I managed to duplicate databases and restore databases with rman to another server, but this obviously covers only the data to the point of backup. How can I make the elements above 1-3 with downtime of about 5 minutes like I did using old methods?

Any help is very appreciated.

+= ==> Part 2 +.
Until the downtime scheduled, I copy logs archiving from the production server to the new, and run the following command to apply the last archiving logs:
RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL;
-> AUTO<>
My question is, how do I part 2 in RMAN.

When you run this game with rman, you just run rman > restore database if archivelogs placed (or transfer) another directory before running the recovery you need to catalogue start with "arch_location" through rman

I managed to duplicate databases and restore databases with rman to another server, but this obviously covers only the data to the point of backup. How can I make the elements above 1-3 with downtime of about 5 minutes like I did using old methods?

I don't think this limit. But in mode archivelog (in your case), you can take (hot) backup with rman even while the database is open. You can try as below

rman target /
configure controlfile autobackup on;
backup database plus archivelog

Then copy (transfer) these files to the new server, backup and

export ORACLE_SID=
rman target /
startup nomount;
restore spfile from 'autobackup_location';
startup force nomount;
restore controlfile from 'autobackup_location';
alter database mount;
catalog start with 'bakup_location';
restore database;
recover database;
alter database open resetlogs;

Published by: Alex on August 12, 2010 02:45

Tags: Database

Similar Questions

  • How to check the matrix Certification for RMAN

    All the

    I am interested in finding the certification of rman.

    My client has catalog db on 9i targets are 10 g/11 so we are trying to identify an appropriate RMAN s/w that will support all the databases we have. So, the question is.

    How to check the matrix certification for RMAN?

    PL. tell me the notes, if any.

    Thank you
    Sashi.

    In addition to the Metalink note, you can check the documentation too @ RMAN compatibility matrix

  • How to use the post method?

    Hello

    I need to send an image on the server using the post method.

    I connect using Http, like this:

    HttpConnection _http = (HttpConnection) Connector.open (address);

    can someone provide an example of how can I use a post method to send the data to the server?

    Kind regards

    I solved the problem. Here is my code, which works:

    Bitmap _bitmap = new Bitmap(Display.getWidth(), Display.getHeight());
                Display.screenshot(_bitmap);
    
    JPEGEncodedImage _jpg = JPEGEncodedImage.encode(_bitmap, 20);
    DataBuffer _db = new DataBuffer();
    _db.write(_jpg.getData());
    
    _http = (HttpConnection)                    Connector.open(_url, Connector.READ_WRITE);
    
    _http.setRequestMethod("POST");
    
    _http.openOutputStream().write(_db.toArray());
    _http.getResponseCode();
    

    Kind regards

  • How to reproduce the vector of this circle?

    I want to reproduce the following vector, you can also download here.

    eL1hJDR.png

    zsxpYFJ.png

    However, I do not know how to do it. I tried to use the polar grid tool but I not as close as the final result.

    Any help is very appreciated. Thank you!

    It is a polar grid without the concentric dividers.

    Then draw a polygon with 8 sides of the center of the polar grid (use Smart guides)

    Then apply thick lines and describe their object > path > course Outline

    Then use the shapebuilder or live paint tool

    Search the terms of Illustrator in the manual for more info.

  • How to bind the AM method to EL

    I want to connect the AM method in EL expression to control the user interface component attribute made,.

    {in my AM I create a method and expose this data control method, rendering for the UI component attribute is defined as that "rendered =" #{bindings.isRayTesting.result ""} ", it seems that this method cannot be performed until the page is rendered,

    How do I make the excute method before the page is rendered.

    the AM method

    for example:

    public boolean isRayTesting() {}
    Returns false;
    }

    {in my AM I create a method and expose this data control method, rendering for the UI component attribute is defined as that "rendered =" #{bindings.isRayTesting.result ""} ", it seems that this method cannot be performed until the page is rendered,

    To call the method that is exposed in the pagedef using EL, you need something like: #{bindings.isRayTesting. {Run} so there is no way to implement your use case using only the EL.

    Check this post for alternatives: https://blogs.oracle.com/adf/entry/an_epic_question_how_to

    Also, many of the properties of the JSF component (as "lent") are evaluated several times in the life cycle JSF request so an expensive operation in them can significantly degrade performance.

    Dario

  • How to remove the definition of backups RMAN of SBT without access to the Court?

    Hello

    I have a restore with RMAN scenario where I have a controlfile with many information backup (many backups) around 100-200.

    The last backup occurred at the target on the JOB, but now I need to restore from the last backup that is taken (at the level of the disc) and in the other node, because we like to clone the production database.

    Then all the info controlfile rman metadata is 'dirty '.

    Normally I do the following:

    New target site:

    I restore the backup controlfile.

    Then:

    overlap backupset;

    delete noprompt expired backupset;

    Now the news of rman controlfile are removed.

    Now, I save my RMAN backup.

    Catalog starts by ' / backup/test1 / '.

    To complete this control register and catalog my file rman backups in this case a backup set.

    After that, I start my restore and recover commands.

    The problem I found is: because the backups were taken to SBT to the target site, but in this site I have not access to the SBT, the work of does ' t crosschek.

    How can I fix it to remove rman controlfile 'old' backups done sbt?

    Thank you very much

    Arturo

    V$ BACKUP_SET query and generate a list of commands 'CHANGE BACKUPSET '?

    Hemant K Collette

  • How to use the find method to search for multiple items in a single paragraph?

    I'm desigining a script to find all instances where ctrl + b and ctrl + i are applied to body text and then replace the format of these characters replaced with chartag italic or bold.  Here's what the script is supposed to do:

    1. put the find method in a while loop that overrides seeks format character.
    2. If a substitution of format character is found, pass the text range returned by the find method and the CharPropsChange flag in the GetTextForRange method.
    3. Use a Boolean comparison between the idata of the text element to the angle of character and character constant weight.
    4. What that is the boolean is set to true, and then use the SetTextProp method to set the properties of the text range for the italic or bold character tag properties.

    This script works on the substitution of format first character found however it ignores other substitutions in the same paragraph. The cause of this is that the while loop updated the line of text control used by the find method for the following paragraph in the stream. I think I need to add an inner loop that runs through all the text in a single paragraph, where teaching iteration the loc text used by the find method is based on the same paragraph, but the offset is changed. I don't know how to do this.

    function removeOverrides (RPSC)

    {

    var vDocStart = pDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;

    var vBoldFmt = getCharFmt (RPSC, "Bold")

    var vItalicFmt = getCharFmt (RPSC, 'Italic')

    initFA_errno ();

    While (FA_errno is constant .FE_Success)

    {

    var vTextLoc = new TextLoc(vDocStart,0);

    var vFindParams = findOverrideParams (CDRP);

    var vTextRange = pDoc.Find (vTextLoc, vFindParams);

    If (vTextRange.beg.obj.ObjectValid ())

    {

    var vTextItems = pDoc.GetTextForRange (vTextRange, Constants.FTI_CharPropsChange)

    If (vTextItems.length ==! 0)

    {

    If (vTextItems [0] .idata == constant .FTF_WEIGHT)

    {

    pDoc.SetTextProps (vTextRange, vBoldFmt.GetProps ())

    }

    If (vTextItems [0] .idata == constant .FTF_ANGLE)

    {

    pDoc.SetTextProps (vTextRange, vItalicFmt.GetProps ())

    }

    } else (Log (vLogFileName, ' \nERROR: none of the items were found in the table in text format but alternative size were found: ' + pDoc.Name))

    }

    vDocStart = vDocStart.NextPgfInFlow;

    }

    }

    function findOverrideParams (RPSC)

    {

    var vFindParams = AllocatePropVals (1);

    vFindParams [0].propIdent.num = Constants.FS_FindObject;

    vFindParams [0].propVal.valType = Constants.FT_Integer;

    vFindParams [0].propVal.ival = Constants.FV_FindCharacterFormatOverride;

    Return vFindParams;

    }

    Another approach (which is what I usually did) is after the first search to set vTextLoc = vTextRange.end

    Whatever it is, you might consider moving your initialization of vTextLoc and vFindParams outside the while loop. The settings do not change, why redefine them for each search?

  • How to use the find method to search for character format substitutions and FMP?

    I strongly suspect that I should be able to use the find method to search for paragraph substitutions and format as these options are available in the Find dialog box. However, because of the excruciating Extendscript documentation from Adobe, I not was able to find the key pieces of information that I need. I found these constants:

    • Constants.FV_FindPgfFormatOverride
    • Constants.FV_FindCharacterFormatOverride

    But he has literally no information about them. It is not yet a definition, so I'm actually just a guess. However, I think that I need to somehow use these constant within the parameters of the Find method. Any ideas on how to do it?

    You're right, there are still some bugs to work out of the documentation, although it has already improved since I started w / Extendscript last summer.

    Find two constants must be defined as the ival for a PropVal FindObject, for example:

    var myDoc is app. ActiveDoc;

    var docStart = myDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;

    tloc var = new TextLoc(docStart,0);

    var findParams = AllocatePropVals (1);

    findParams [0].propIdent.num = Constants.FS_FindObject;

    findParams [0].propVal.valType = Constants.FT_Integer;

    findParams [0].propVal.ival = Constants.FV_FindCharacterFormatOverride;

    myDoc.Find (tloc, findParams);

    Depending on what you're trying to accomplish, you can also take a look at the property FormatOverride of the Doc, bmp and item objects.

  • Connector WFD SDK - how to call the server method?

    I use the FMS connector C++ to perform editing work. And I am obliged to call a method side server.

    I tried to use the INetConnection::call () method, but it seems to be successful.


    The specification of the server FMS told me to do,

    1. call the server method,

    NC. Call (streamname, null, "FCPublish");


    2. implement a callback function onFCPublsih

    nc.onFCPublish = function (info) {...}

    How can I implement the latter with FMS Connector C++?

    The FMS connector document include a subject too little on the method call server-side.

    WFD SDK connector, the netconnection call prototype looks like this.

    virtual bool call (const char * funcName, const unsigned char * arguments, unsigned size, OnResultHandler * result) = 0;

    Thus, you will have to serialize the arguments and then pass it to call the function.

    Check

    bool FMSCTester::testCall (const char * cmd, const char * arg)

    method in FMSCTester sample application that comes with the software development kit how to serialize and call the function.

    For Server callbacks, you have to implement a netconnection sink with the onCommand method is called when the server calls a method on the client.

    The onCommand prototype looks like this,

    onCommand Sub (const char * cmd, const unsigned char * arguments, unsigned bufLen, IRetValue * retVal)

    again, you can check the MyNCSink class in the FMSCTester sample project for an implementation of onCommand.

  • How to stop the Action method when an Exception occur in another method

    Hi all


    {} public void action (event clientEvent)

    startAction();

    JOptionPane.showMessageDialog (null, getDocumnetId());

    }



    How to stop the action of the method ("action"), if an exception occurs in the method ("startAction")
    (if the exception to happen we didn't need to show the JOption Message)

    Hello

    Try FacesContext.getCurrentInstance () .renderResponse ();

    Frank

  • reproduce the extraction method from page to page 5.0 09 image

    Hello

    (El Cap 10.11.3)

    In recent years, I supported pages 09 to my work as a storyboard artist. Now I would like to do some of my work on an ipad pro as well and this will require me to use the 5.0 instead Pages I need to used 5.0, even when working on my mackbook pro s think I canswitch between machines easily. Everything on the use of the pages 5.0 is great except one problem in my workflow that is as follows: I draw pictures on paper and scan them and make a folder of individual JPEG which I can plug into my model of Storyboard in Pages 09 (at this point, I can also type despcriptions and reorganize etc way Pages). Then (the important bit) when I need to see the images, I double click the cell 09 document containing the image that I need to change and appears as a jpeg icon in the settings window. I can then do it on the desktop and there in photoshop/manga studio where I do the modification. then save it, then copy paste image revised in place in the document.

    Could someone tell how can I reproduce it easily and quickly in Pages 5.0

    Above is Pages 09

    and even in the Pages of 5.0:

    Thanks for all the tips!

    In Pages v5, you click the image once and when selected, you can drag its icon on the desktop in the Image tab below.

  • Threads Java - how to prevent the calling methods between objects

    I have two objects i.e. ObjectClass1 and ObjectClass2 and two threads Thread1 and Thread2. I need Thread1 to run the methods A and B of 1 of the ObjectClass and keep him execution methods C and D on ObjectClass2 and at the same time (at the same instance), I need Thread2 to run C and D of ObjectClass2 methods and keep him execution of methods A and B on 1 ObjectClass without producing a blockage.

    How can it be possible? I tried to use flags, but does not work for some reason any. I could also use synchronize (obj2) 1 wire and synchronize (obj1) in Thread2 - but that leads to a dead end
    public class InterlockingExample{
         public static void main(String[] args){
              
              final ObjectClass1 obj1 = new ObjectClass1();
              final ObjectClass2 obj2 = new ObjectClass2();
              //final boolean obj1Callable = false;
              //final boolean obj2Callable = false;
              Thread t1 = new Thread(new Runnable(){
                   public void run(){
                        //System.out.println("This is Thread1 ");
                        synchronized(obj1){
                                  obj1.obj1Callable = true;
                                  obj2.obj2Callable = false;
                                       try{
                                            Thread.sleep(1000);
                                            System.out.println(Thread.currentThread().getName());
                                            // We could call methods on obj1 here
                                            obj1.methodA();
                                            obj1.methodB();
                                            System.out.println("Trying to call Object2 methods");
                                            if(obj2.obj2Callable == true){
                                                 obj2.methodC();
                                                 obj2.methodD();
                                            }
                                       }
                                       catch(InterruptedException ex){
                                            System.out.println("Error occurred: " + ex.getMessage());
                                       }
                                            
                                  
                                                      
                        }
                   }
                   
              });
              
              Thread t2 = new Thread(new Runnable(){
                   public void run(){
                        //System.out.println("This is Thread2 ");
                        synchronized(obj2){
                             obj2.obj2Callable = true;
                             obj1.obj1Callable = false;
                             try{
                                  Thread.sleep(1000);
                                  // We could call methods on obj2 here
                                  System.out.println(Thread.currentThread().getName());
                                  obj2.methodC();
                                  obj2.methodD();
                                  System.out.println("Trying to call Object1 methods");
                                  if(obj1.obj1Callable == true){
                                       //System.out.println("Thread2: Cannot call obj1 methods...");
                                       //System.out.println("Thread2: obj1 methods are locked! ");
                                       obj1.methodA();
                                       obj1.methodB();
                                  }
                                  
                                  //System.out.println(Thread.currentThread().getName());
                                  
                             }
                             catch(InterruptedException ex){
                                  System.out.println("Error occurred: " + ex.getMessage());
                             }
                                                      
                        }
                   }
                   
              });
              
              t1.start();
              t2.start();
         }
         
         private static class ObjectClass1{
              public boolean obj1Callable;
              public void methodA(){
                   System.out.println("ObjectClass1: methodA() ");
              }
              public void methodB(){
                   System.out.println("ObjectClass1: methodB() ");
              }
         }
         private static class ObjectClass2{
              public boolean obj2Callable;
              public void methodC(){
                   System.out.println("ObjectClass2: methodC() ");
              }
              public void methodD(){
                   System.out.println("ObjectClass2: methodD() ");
              }
         }
         
    }
    Edited by: njguy March 1, 2011 20:01

    Edited by: njguy March 1, 2011 20:26

    Edited by: njguy March 1, 2011 20:37

    has njguy writes:
    jverd: according to your suggestion, I coded that follows, but do you not think that this would lead to a dead end for sure.

    If you are coding according to my suggestions, deadlock will be impossible.

    Please see the order in which I get the locks
    Thread1: {obj1, obj2} and Thread2: {obj2 obj1} which is the case perfect deadlock.

    This is exactly the opposite of my suggestion, and I even stated explicitly that if you do this, you define yourself in deadlock.

    What I said:

    1. you avoid deadlock so that any thread that needs to acquire lock1 both QL2 always does in a consistent order, like first on lock1, then inside this block synchronization, sync on QL2. If a son not {lock1 {QL2}} and the other not {QL2 {lock1}}, that's how you get blocked.

    Sorry if I wasn't clear enough. All threads need to acquire locks in the same order:

    //  ----- What I suggested ---
    // T1
    sync (lock1) {
      sync (lock2) {
        // stuff
      }
    }
    
    // T2
    sync (lock1) {
      sync (lock2) {
        // stuff
      }
    }
    
    // ---- What I said not to do, but you did ---
    // T1
    sync (lock1) {
      sync (lock2) {
        // stuff
      }
    }
    
    // T2
    sync (lock2) {
      sync (lock1) {
        // stuff
      }
    }
    

    Edited by: jverd March 2, 2011 09:23

  • How to restore the different mount point rman backup

    Hi all
    I have my RMAN bkp on my production under mount point/d01/rmanbkp server. I need to restore rman on TEST server. I don't have /d01 of mount point on my test server, so I need to restore to the point of different Assembly called /oraapps. I finished copying all my backup RMAN on TEST server, but when I try to restore it. He seeks his path of moose that is/d01/rmanbkp. Suggestions, how can I do.

    Concerning
    Musaddaq

    Hi Musaddaq,
    When you perform a restore on the test server after having mounted the controlfile enables control of catalog catalog of the backup pieces in the new directory structure.

    CATALOGUE START WITH ' / oraapps';

    Kind regards
    Tycho

  • How to call the AM method that accepts the parameter other than a string

    Hello

    I need to pass 2 parameters from the date of my method of AM.
    I checked the jdev doc and found the method which can be used for anything other than a string below parameter

    public Serializable invokeMethod (String methodName,
    [Serializable] methodParams,.
    Class [] methodParamTypes)

    one thing that I am not able to understand how to pass multiple dates in a single parameter of the class.
    can anyone tell me the syntax to invoke method for the passage of 2 dates.

    Hello

    Suppose you have a string and two date parameters

    Test of the chain;
    Date date1;
    Date2 date;

    Then move it like this

    OAApplicationModule am = pageContext.getApplicationModule (webBean);

    Serializable [] parameters is {test, date1, date2};.
    Class [] paramTypes = {String.class, Date.class, Date.class};
    am.invokeMethod ("initSummary", parameters, paramTypes);

    Thank you
    Gerard

  • How to create the new database with rman backup

    Hello
    I took an rman backup with nocatelog. can I make a new database with the rman backup.
    If so, how? I m using oracle 9i.


    thxs

    If it is useful, see the following:

    http://www.shutdownabort.com/QuickGuides/clone_rman.php

Maybe you are looking for