How do I replicate the traditional method in RMAN ?

How do I perform the following using RMAN ?
DB version 10.2.0.4
Redhat 5.2
I am not using an rman catalogIn the past I have moved large databases from 1 server to another with 5 minutes downtime using backups done the old way by putting tablespaces in backup mode and making copies of the datafiles.
I used the following method :
========> Part 1
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE set DATABASE "VPMY" RESETLOGS ARCHIVELOG
MAXLOGFILES 32
MAXLOGMEMBERS 3
     ....etc
LOGFILE
......... log file names
DATAFILE
... list of datafiles
CHARACTER SET US7ASCII;
========> Part 2
Up until the scheduled downtime, I would copy the archive logs from the production server to the new and run the following to apply the latest archive logs:
RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL;
->AUTO<-
========> Part 3
After applying the last archive log while in restrict mode -
ALTER DATABASE OPEN resetlogs;
My question is, how do I do Part 2 in RMAN. I have managed to duplicate databases and restore databases using rman to a different server, but this obviously only covers the data upto the backup point. How can I do the above parts 1 -3 with downtime of about 5 minutes like I have done using old methods ?
Any help is much appreciated.

+========> Part 2+
Up until the scheduled downtime, I would copy the archive logs from the production server to the new and run the following to apply the latest archive logs:
RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL;
->AUTO<-
My question is, how do I do Part 2 in RMAN.
To performing this part using rman you need execute just rman>recover database if archivelogs placed(or transferred) other directory then before executing recover you have to catalog start with 'arch_location' through rman
I have managed to duplicate databases and restore databases using rman to a different server, but this obviously only covers the data upto the backup point. How can I do the above parts 1 -3 with downtime of about 5 minutes like I have done using old methods ?.
I do not think about that limit.But in archivelog mode(in your case) you can take backup(hot) with rman even while database is open.You can try as below
rman target /
configure controlfile autobackup on;
backup database plus archivelogThen copy(transfer) these backup files to new server,and
export ORACLE_SID=<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;Edited by: Chinar on Aug 12, 2010 2:45 AM

Similar Messages

  • How can I call the create method in BO from Application Service

    Hello!
    When I create a Business Object, CAF generates some methods automatically.
    How can I call the create method in the BO from Application Service logic?
    When i call the method then the entityManager and the sessionContext is NULL.
    How can I initialize this?
    Can anybody help me?
    Thanks, Thomas

    If you are using CE 7.11...
    1) In the Application Services, add the BO as dependant object in dependencies tab.
    2) In the implemention, add the following codes to call create method of the BO:
    this.get<BO>.createMethod();
    julius

  • How can I change the payment method to None with gift card balance.

    How can I change the payment method to None with gift card balance?
    I already have an Apple ID account with no credit card but when I try to log in download free app it says Apple ID has not been used in iTunes store please review your account and it appears the billing info and there's no none in the option..how can I solve this so that I can used my Apple ID and can download free apps?

    Hi ..
    Help here >  Why can’t I select None when I edit my payment information?HHi

  • How do I use the find method to find multiple items in a single paragraph?

    I am desigining a script to find any instances where ctrl+b and ctrl+i are applied to body text and then replace those character format overrides with Italic or Bold chartag.  Here's what the script is supposed to do:
    put the find method in a while loop that searches for character format overrides.
    If a character format override is found, pass the text range returned by the find method and the CharPropsChange flag to the GetTextForRange method.
    Use a boolean compare between the idata of the text item to the character angle and character weight constants.
    Whichever boolean evaluates to true, then use the SetTextProp method to set properties of the text range to the properties of the italic or bold character tag.
    This script does work on the first character format override found however it ignores any other overrides in the same paragraph. The cause of this is that the while loop updates the text loc that the find method uses to the next paragraph in flow. I suspect that i need to add an inner loop that goes through all the text in a single paragraph, where at teach iteration the text loc used by the find method is based on the same paragraph but the offset is modified. I am just not sure how to do that.
    function removeOverrides (pDoc)
        var vDocStart = pDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;
        var vBoldFmt=getCharFmt (pDoc, 'Bold')
        var vItalicFmt=getCharFmt (pDoc, 'Italic')
        initFA_errno ();
        while (FA_errno==Constants.FE_Success)
            var vTextLoc = new TextLoc(vDocStart,0);
            var vFindParams=findOverrideParams (pDoc);
            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==Constants.FTF_WEIGHT)
                       pDoc.SetTextProps (vTextRange, vBoldFmt.GetProps())
                    if (vTextItems[0].idata==Constants.FTF_ANGLE)
                       pDoc.SetTextProps (vTextRange, vItalicFmt.GetProps())
                    } else (Log (vLogFileName, '\nERROR: No items were found in the text format array but format override was found: '+pDoc.Name))
            vDocStart=vDocStart.NextPgfInFlow;
    function findOverrideParams (pDoc)
        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;

    Hi Rick,
    Well, following up on the previous posting, I actually did figure out how to make it work but it seems rather inefficient. I can insert a new paragraph right after the paragraph that has the table anchor but when i cut the table, i also cut the paragraph i just created. So to get around that, I create two paragraphs, so that there will be one paragraph left after i do the cut and that is the paragraph that I paste the table into. Once the table is pasted into the new paragraph, I delete the other paragraph that I created.
    Here's the updated code from the for loop:
    var vTbl = vDoc.GetUniqueObject(Constants.FO_Tbl, vTextItems[i].obj.Unique);                 
    var vAnchorPgf=vDoc.NewSeriesPgf (vTbl.TextLoc.obj)      
    var vAnchorPgf2=vDoc.NewSeriesPgf (vAnchorPgf);        
    var vAnchorTextLoc=new TextLoc (vAnchorPgf2, 0);             
    var vTblTextRange=new TextRange ();        
    vTblTextRange.beg.obj=vTbl.TextLoc.obj;       
    vTblTextRange.beg.offset = vTbl.TextLoc.offset;        
    vTblTextRange.end.obj=vTbl.TextLoc.obj;        
    vTblTextRange.end.offset = Constants.FV_OBJ_END_OFFSET                 
    vDoc.TextSelection=vTblTextRange;        
    vDoc.Cut (0);                
    vTblTextRange.beg.obj=vAnchorTextLoc.obj;        
    vTblTextRange.beg.offset = 0;              
    vTblTextRange.end.obj=vAnchorTextLoc.obj;       
    vTblTextRange.end.offset =0;                 
    vDoc.TextSelection=vTblTextRange;       
    vDoc.Paste (0);                   
    vAnchorPgf2.Delete();        

  • How can i invoke the set method before value change listener?

    Hi,
    My code is like this:
    <af:selectManyCheckbox value="#{bean.statusList}"
                                     binding="#{bean.statusCheckBox}"
                                     label=" " autoSumit="true"
                                     valueChangeListener="#{bean.changeStatusList}"
                                     id="dc_smc1" layout="vertical"">
                <f:selectItems value="#{bean.statusBuckets}"
                               id="statusBuckets"/>
              </af:selectManyCheckbox>
    public void changeStatusList(ValueChangeEvent valueChangeEvent)
      //in this method, i want to set the statusList by myself, this is not the same with the ui.
    public void setStatusList(List<String> statusList)
            this.statusList = statusList;
        public List<String> getStatusList()
            return statusList;
    As i set the autoSumit="true", then no matter what i set the statusList in the method changeStatusList, it will be reset the value after invoke the method setStatusList, Therefore, it will always change the checkbox status through ui operation, i cannot change it through code.
    Pl help me!
    Thanks,
    Emma

    Emma, which jdev version do you use?
    As you have set the value property to the list you try to change in the valueChangeListener method this is expected behavior. If the list is bound to the af:selectManyCheckbox values you can't change it with a set method.
    It would help if you tell us what you are trying to do in a broader scope.
    Timo

  • How to correctly use the evaluate() method in Xpath?

    I have this sample code. I would expect the output to be something like
    Channel #0
    Channel Name : Ch1
    Channel #1
    Channel Name : Ch2
    Channel #2
    Channel Name : Ch3
    but all I get is
    Channel #0
    Channel Name : Ch1
    Channel #1
    Channel Name : Ch1
    Channel #2
    Channel Name : Ch1
    Do I misuse the evaluate() method? It seems the evaluate method disregards the"doc" start node I pass in and always start from the beginning of the XML...
    Very appreciate your suggestion. Thank you very much.
    import javax.xml.xpath.*;
    import org.xml.sax.InputSource;
    import java.io.StringReader;
    import org.w3c.dom.Document;
    import org.w3c.dom.NodeList;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    public class EvaluateTest {
         * @param args
         public static void main(String[] args) {
              String myxml = "<?xml version='1.0' encoding='utf-8' ?><mytest><ChannelList>" +
              "<Channel><ChannelId>0001</ChannelId><ChannelName>Ch1</ChannelName></Channel>" +
              "<Channel><ChannelId>0002</ChannelId><ChannelName>Ch2</ChannelName></Channel>" +
              "<Channel><ChannelId>0003</ChannelId><ChannelName>Ch3</ChannelName></Channel>" +
              "</ChannelList></mytest>";
              //Get the Document object
              Document doc = null;
              try {
                   InputSource inputSource = new InputSource();
                   inputSource.setCharacterStream( new StringReader(myxml));
                   DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                   DocumentBuilder db = factory.newDocumentBuilder();
                   doc = db.parse(inputSource);
                   //Iterate thru the Channel list
                   NodeList channellist = getSubElements(doc, "/mytest/ChannelList/Channel");
                   if (channellist==null)
                        System.out.println("the channel list is null");
                   for (int i=0, len=channellist.getLength(); i<len; i++) {
                        System.out.println("Channel #" + i);
                        /*{XPathFactory factory = XPathFactory.newInstance();
                        XPath anxpath = factory.newXPath();
                        String result = (String)anxpath.evaluate(".", channellist.item(i), XPathConstants.STRING);
                        out.println(result);}*/
                        String name = getTagValue(channellist.item(i), "//ChannelName/text()", -1);
                        System.out.println("Channel Name : " + name);
              catch ( Exception e ) {
                   e.printStackTrace();
                   return;
         //Get the text value of a tag from a document object using XPath method
         static public String getTagValue(Object doc, String xpathstr, int index) throws Exception {
              String result = "";
              if ((doc==null)     || (xpathstr==null) || "".equals(xpathstr))
                   return result;
              XPathFactory factory = XPathFactory.newInstance();
              XPath xpath = factory.newXPath();
              result = (String)xpath.evaluate(xpathstr, doc, XPathConstants.STRING);
              if (result==null)
                   result = "";
              return result;
         static public NodeList getSubElements(Object doc, String xpathstr) throws Exception {
              if ((doc==null)     || (xpathstr==null) || "".equals(xpathstr))
                   return null;
              XPathFactory factory = XPathFactory.newInstance();
              XPath xpath = factory.newXPath();
              Object result = xpath.evaluate(xpathstr, doc, XPathConstants.NODESET);
              return (NodeList)result;
    }

    Sorry here is a repost of the code. Didn't realize there is a code tag feature.
    import javax.xml.xpath.*;
    import org.xml.sax.InputSource;
    import java.io.StringReader;
    import org.w3c.dom.Document;
    import org.w3c.dom.NodeList;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    public class EvaluateTest {
        * @param args
       public static void main(String[] args) {
          String myxml = "<?xml version='1.0' encoding='utf-8' ?><mytest><ChannelList>" +
                      "<Channel><ChannelId>0001</ChannelId><ChannelName>Ch1</ChannelName></Channel>" +
                                 "<Channel><ChannelId>0002</ChannelId><ChannelName>Ch2</ChannelName></Channel>" +
                      "<Channel><ChannelId>0003</ChannelId><ChannelName>Ch3</ChannelName></Channel>" +
                      "</ChannelList></mytest>";
          //Get the Document object
          Document doc = null;
          try {
                InputSource inputSource = new InputSource();
                inputSource.setCharacterStream( new StringReader(myxml));
                DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                DocumentBuilder db = factory.newDocumentBuilder();
                doc = db.parse(inputSource);
                //Iterate thru the Channel list
                NodeList channellist = getSubElements(doc, "/mytest/ChannelList/Channel");
                if (channellist==null)
                      System.out.println("the channel list is null");
                for (int i=0, len=channellist.getLength(); i<len; i++) {
                      System.out.println("Channel #" + i);
                      String name = getTagValue(channellist.item(i), "//ChannelName/text()", -1);
                      System.out.println("Channel Name : " + name);
          } catch ( Exception e ) {
                e.printStackTrace();
                return;
       //Get the text value of a tag from a document object using XPath method
       static public String getTagValue(Object doc, String xpathstr, int index) throws Exception {
          String result = "";
          if ((doc==null)     || (xpathstr==null) || "".equals(xpathstr))
                return result;
          XPathFactory factory = XPathFactory.newInstance();
          XPath xpath = factory.newXPath();
          result = (String)xpath.evaluate(xpathstr, doc, XPathConstants.STRING);
          if (result==null)
                result = "";
          return result;
       static public NodeList getSubElements(Object doc, String xpathstr) throws Exception {
          if ((doc==null)     || (xpathstr==null) || "".equals(xpathstr))
                return null;
          XPathFactory factory = XPathFactory.newInstance();
          XPath xpath = factory.newXPath();
          Object result = xpath.evaluate(xpathstr, doc, XPathConstants.NODESET);
          return (NodeList)result;
    }

  • Sorting in iTunes changed - How do I get the former method restored?

    For a couple years I used iTunes for Windows with 2 music content folders - the normal iTunes folder(s) under my Windows profile in which I kept iTunes-purchases and iTunes CD-ripped songs, and one in c:\mp3 for unprotected ripped or purchased MP3 files. Until I made a change in iTunes, I had the following sort order properties when the corresponding header bar was clicked:
    Title
    =======
    'Wonderful
    "Dalla...
    "In Crowd...
    (I Love you) For...
    1,2,3
    101 Eastbound
    A Beautiful Morning
    Your Wildest Dreams.
    The same sort of effect was seen when sorting by Artist or Album or whatever.
    I decided I wanted ONE music folder. On advice from a magazine (Maximum PC) column, in preferences I chose to have iTunes organize my music (previously unchecked) and then in the advanced tab chose to iTunes Consolidate my music. It copied my music and everything initially looked fine. But, after looking more carefully, I saw the following new effect:
    Title
    =========
    Abilene
    Your Wildest Dreams
    1,2,3
    101 Eastbound
    99 Miles from L.A.
    and,
    Artist
    ======
    a-ha
    A3
    ZZ-Top
    10cc
    5th Dimension
    It's as if the entire sort order algorthm is different as regards punctuation and numerals. So, I unchecked the option to have iTunes "organize" my music, but the order didn't change.
    What am I missing here?? How do I get the former order back to column sorting?
    I'd appreciate any help you could give me - this is pretty annoying.
    thanks.
    Windows XP SP2
    Intel 2Mhz Core 2 Duo
    100MB H/D, 2GB RAM
    iTunes 7.3.0.54

    Get info and change the sort field(s) for one song,
    then click Apply.
    Right click the song and select Apply sort field and
    pick which you want.
    Unfortunately this is not working as intended with iTunes 7.3 for Windows (Mac too?). The "Apply Sort Field ..." does apply the new Sort Artist, Sort Album, etc. to related songs, but iTunes refuses to recognize that the songs were updated. If you check the tags, sure enough their Sort Artist, etc. have been updated, but iTunes does not seem to make use of the change. The only way I've been able to make it work is to go back into Get Info for each song and just cycle through them one-by-one without changing anything. As you cycle through, then the songs move to their proper sort order based on the updated sorting option. This wasn't the case with 7.2, so this would be a new bug.

  • How do I untag the Resample Method..?

    Hi Everyone,
    Its possible to untag the Resample Method in image size window..?
    Thanks in advance.
    -yajiv

    In the screenshot you posted »Resample Image« is unchecked so I don’t seem to understand your question.

  • HT3702 How can i Change the payment method?

    Hpw can i change the payment method?

    Hi ..
    Help here >  Why can’t I select None when I edit my payment information?HHi

  • How to find out the public methods and public fields available

    Hi,
    I have a dll for which to use it, i need to know the methods and the fields available for public use. Is there anyway to find out that information using any tool. I dont have any literature about the dll. Only have that dll.
    Thanks in advance,
    -Madhuri.

    You can find an article about creating the methods on the Microsoft Developement Network call "How to Create 32-bit Import Libraries Without .OBJs or Source"
    However that is only part of the problem.
    Consider if you find that the dll has a function like this:
    InitApplication(char*, int, char, long);
    What do you put in for each of those parameters? The only way I know to do that it to use a debugger and step through the assembler code figuring it out as you go. Alternatively you buy or find a disassembler - C code would probably be easier to figure out.
    I would also seriously suggest finding some different lists/news groups than this one. The topic has nothing to do with java. So you are likely to get better help somewhere that is more specific - like one of the MS lists.

  • How can i change the paying method on my account?

    I dont have a paying method and i cant update or download anything on the appstore because my account needs to be reviewed on the itunes, itunes demands a paying method and i dont have one

    See http://support.apple.com/kb/HT5552

  • HT5552 how i can change the payment methods of my account from visa to non ?

    i have problem with my visa, so i want to change the method of pay to non until i fix that problem. I can't change it because the potion non does not appear ? !

    clean way is to reset your ipad in the option menue.
    other way is, start itunes app on ipad. scroll down. down left is the actual login. tap it. logout, login other account.
    sync with your itunes. iam not sure if you get problems when syncing mixed 2 itunes accounts, so clean way is reset ipad

  • How obtain HttpServletRequest  from the decode method of a component

    in the ea3 imlementation there was a method:
    HttpServletRequest request = (HttpServletRequest)context.getServletRequest();
    the context.getServletRequest(); does not exist in the new implementation. Is there any way left to access the servlet request?

    You found the right answer, but note that you'd have to cast the return value to HttpServletRequest in order to access any of the methods. Doing so would mean, for example, that your application will never be able to run in a portlet environment, where the underlying request object will be a PortletRequest instead.
    Most of the interesting information from the request is available directly through calls on ExternalContext -- for example, you can get a Map of all the request parameters by calling getRequestParameterMap(). You should prefer such calls if they provide the information you need, and access the underlying request object directly only as a last resort.
    Craig McClanahan

  • How can I restore the traditional Open File view?

    Hi,
    When I choose the option to open a file from within an application when using Win8.1 I am presented with a list of common places which are placed before the drives. I rarely use these pre-defined locations for storing data and would like to be
    able to have the computer drives listed first. Can this be done?
    I'd like to see my C, D, E and F drives listed first. Any help would be appreciated. Thanks!

    as far as I know, you cannot change the order.
    You can however select details view and fold the 'folders'. That is if the application uses Windows 8 controls. From your screenshot, that appears not to be the case.
    You can remove the 'folders' from registry. This will make sure these are not displayed in explorer or any file dialogue.
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace
    HKEY_LOCAL_MACHINE\wow6432node\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace
    MCP/MCSA/MCTS/MCITP

  • How do I cancel the open method if there's an unresolved text inset in the doc?

    According to the FDK reference guide, the open parameter FS_RefFileNotFound means "Document imports another file that isn’t available." One of the supported values for this parameter is FV_DoCancel, which cancels the open operation. So before calling the open operation, I specifically set this parameter's value to FV_DoCancel. I assumed that if i did that and the document has an unresolved text inset, then the document would not open. But it does. What am I missing?
    Code is as follows:
       var vFileName='C:\\testing\\test.fm'
        var vOpenParams=GetOpenDefaultParams();
        var vReturnParams=new PropVals();
        var index;
        index=GetPropIndex(vOpenParams,Constants.FS_RefFileNotFound);
        vOpenParams[index].propVal.ival=Constants.FV_DoCancel;
        var vDoc=Open (vFileName,vOpenParams,vReturnParams)  
        if (FA_errno!=0)
            if (CheckStatus (vReturnParams,Constants.FV_CancelReferencedFilesNotFound))
                Err ('ERROR: '+vFileName+' was not opened because the document imports files that cannot be found. Verify there are no unresolved text insets in the document. \n')

    What bar are you talking about? Is it part of an add-on?
    If so, open the Add-ons Manager and disable it.
    Type '''about:addons'''<enter> in the address bar to open your Add-ons Manager.
    Hot key; '''<Control>''(Mac:<Command>)''<Shift> A)'''
    Separate Issue;
    Your System Details shows;
    Installed Plug-ins
    Adobe Shockwave for Director Netscape plug-in, version 12.0.5.146
    Adobe Shockwave for Director Netscape plug-in, version 12.0.7.148
    Having more than one version of a program may cause issues.
    Grab the uninstaller from here:
    '''[http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html Uninstall Flash Player | Windows]'''
    '''[http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-mac-os.html Uninstall Flash Player | Mac]'''
    Then reinstall the latest version.
    Flash Player '''Version 17.0.0.134<br>https://www.adobe.com/products/flashplayer/distribution3.html'''
    Shockwave Director '''Version 12.1.7.157 http://get.adobe.com/shockwave/'''

Maybe you are looking for

  • Can I install WIndows XP on a mid 2010 macbook (7,1)

    I bought my Macbook in October 2010. Earlier this year I had installed Windows 7 on it with no problems, but i decided tom install that on my Mac Pro (2006 model). I am now trying to install Windows XP (SP3), but installation freezes at 45%. When it'

  • Oracle 11G database for 64 bit windows installation error

    Hi, I downloaded the 11G 64bit for windows and unzipped the files into one folder and ran the setup.exe as an administrator. It opened up the java screen and I chose, create and configure a database. Next screen I chose, Desktop Class, when I click n

  • Oracle10g run in Solaris 10

    Hi Brother, We have 10g DB run in Solaris10 with 8G RAM, I would like to have the parameter file which for Solaris10 8G ram server with optimal setting (exp VGA, SGA, buffer, cache size...etc). The DB is DBMS for store the data and run the batch proc

  • How to type in russian

    I am slightly computer challenged... I got my keyboard russified, now how do i actually use it?

  • FC 5.5 cannot open FC panini

    Hello, I'm having trouble opening the files in the new FC version 5.5 panini. I tried to open through the FB, regardless of the Catalyst, but it was impossible to openand find the error and edit it as I used to do it in Burrito. This is what appears