Rman dupicate db skip tablespace not working reserved words with quoates

This is how the script looks like
set newname for datafile '/oracle/oracle10.2/oradata/smalldb/users01.dbf' to '/oracle/staging/TEST1/users01.dbf';
set newname for datafile '/oracle/oracle10.2/oradata/smalldb/system01.dbf' to '/oracle/staging/TEST1/system01.dbf';
set newname for datafile '/oracle/oracle10.2/oradata/smalldb/sysaux01.dbf' to '/oracle/staging/TEST1/sysaux01.dbf';
set newname for datafile '/oracle/oracle10.2/oradata/smalldb/undotbs01.dbf' to '/oracle/staging/TEST1/undotbs01.dbf';
duplicate target database to TEST123
SKIP TABLESPACE 'USERS2', 'USERS3', 'CATALOG'
PFILE= '/oracle/staging/test123init.ora'
LOGFILE
'/oracle/staging/TEST1/redo01.log' SIZE 4096K reuse,
'/oracle/staging/TEST1/redo02.log' SIZE 4096K reuse,
'/oracle/staging/TEST1/redo03.log' SIZE 4096K reuse;
contents of Memory Script:
set until scn 12748962;
set newname for datafile 1 to
"/oracle/staging/TEST1/system01.dbf";
set newname for datafile 2 to
"/oracle/staging/TEST1/undotbs01.dbf";
set newname for datafile 3 to
"/oracle/staging/TEST1/sysaux01.dbf";
set newname for datafile 4 to
"/oracle/staging/TEST1/users01.dbf";
restore
check readonly
clone database
skip tablespace USERS3,
USERS2,
CATALOG ;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00601: fatal error in recovery manager
RMAN-03012: fatal error during compilation of command
RMAN-03028: fatal error code for command Duplicate Db : 600
RMAN-00600: internal error, arguments [8049] [] [] [] []
**RMAN-01009: syntax error: found "catalog": expecting one of: "double-quoted-string, identifier, single-quoted-string"**
RMAN-01007: at line 16 column 2 file: Memory Script
I tried single quote and double quote but it did not work.
Any idea what is going wrong here ?
-Rohit

What oracle version? Check the DB alert log files for information about the internal error. Other thing is RMAN may be getting confused with the 'CATALOG' tablespace with it being a reserved word in RMAN in generating the internal script - may be a bug.
See in the internal script:
skip tablespace USERS3,
USERS2,
CATALOG ;The internal script gets an error once it reaches CATALOG even though you've quoted it in the original script. For example:
RMAN> list copy of tablespace CATALOG;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "catalog": expecting one of: "double-quoted-string, identifier, single-quoted-string"
RMAN-01007: at line 1 column 25 file: standard inputwhereas with quotes should work (untested).
Edited by: Stellios on Oct 14, 2009 11:37 AM

Similar Messages

  • IPod nano version 6:  random turn off, volume controls don't work, does not turn off, skip does not work.  Two years old!  Next version of nano has no clip and same amount of storage.  I do not want to give up my version 6!

    iPod nano version 6:  random turn off, volume controls don't work, does not turn off, skip does not work.  Two years old!  Next version of nano has no clip and same amount of storage.  I do not want to give up my version 6!

    Make a Genius Bar appointment at your nearest Apple Store and pay $75 USD for an out-of-warranty replacement.

  • Hi! I am having a problem with my dictation. It works fine with Greek but it does not work at all with English. Anyone knows why?

    hi! I am having a problem with my dictation. It works fine with Greek but it does not work at all with English. Anyone knows why?

    Have you changed the system voice to an English one in system preferences?

  • Auto backlight does not work on 4S with iOS 7! With iOS 6.1.3 I had the same problem.Why?

    Auto backlight does not work on 4S with iOS 7. I had the same problem with iOS 6.1.3! Why ?

    rlwebb71 wrote:
    ... I have the latest generation iPod touch, not the 5, but the latest. So why can't Siri come out and play? 
    Siri is not a feature of that iPod... 4th Gen...
    iOS 6  Which Software for Which iDevices...
    http://support.apple.com/kb/HT5457

  • Ctrl-T command do not work in website with flash

    Ctrl-T command do not work in website with flash
    == URL of affected sites ==
    http://

    If the Flash object has focus then key presses are processed by that plugin.
    In such cases you need to click outside that plugin (e.g. the menu bar if you can't click on the website) to make the keyboard work.

  • HT4721 Trackpad triple-finger tap dictionary lookup is not working on macbookPro with OS X 10.8.5. It has never worked before.

    Trackpad triple-finger tap dictionary lookup is not working on maybookPro with OS X 10.8.5. I have never seen it working before. I have also checked un System Preferences and it is enabled. All other gestures seem to work fine too. Could you please help?

    Try running the combo update.
    10.8.5 Combo Update
    That solved it for one person.

  • After installing acrobat my Microsoft office package does not work properly, word will not open and in my email i can't select anything with the mouse

    After installing acrobat my Microsoft office package does not work properly, word will not open and when I want to write an email in my outlook email i can't select anything with the mouse. so copy past en delete are not an option.@

    Are you using any MS Office third party Add-ins? Test:  Remove third party Add-ins other than PDFMaker.  Test to see if the MS Office apps run afterward.
    Did you attempt to repair MS Office?  Test:  Go to Add/Remove Control Panel run Repair.
    Finally, have you tried testing to see if it's PDFMaker?  Test: Use the Add/Remove Control Panel to modify the Acrobat installation to remove PDFMaker.  See if MS Office applications launch and behave correctly?

  • When i try to use Command   c it dose not work at all with any program but Command   x and v works ?

    when i try to use Command   c it dose not work at all with any program but Command   x and v works ?
    i don't know what to do and how to fix it and why it habend ??????!!!!!!!!!

    Open the Speech pane of System Preferences and check whether either the listening key or the speech key has become set to that keystroke; if so, change the setting.
    (63123)

  • -moz-transform:scale does not work in Firefox with select tag(DropDown)

    -moz-transform:scale does not work in Firefox with select tag(Dropdown). The Dropdown options are being displayed at incorrect location.

    'Hi, Please try the HTML attached in image. This works in IE, Safari, Crome but not in Firefox

  • Notification center does not work at all with mail

    notification center does not work at all with mail there is no sonud no banner . i try to chek and unchek thas box may it is something may effect but still not working where is the notifiication center they said to us about it but i want be fair it's working for imessege and it's not working also for app store update like they said there is abig kiind of joke. i use macbook air mid 2011.

    Have you changed the system voice to an English one in system preferences?

  • Kindle app - Not Working or Compatible with Yosemite... On installation of Yosemite final release moved to incompatibel programs!

    Kindle app -> Not Working or Compatible with Yosemite... On installation of Yosemite final release moved to incompatibel programs.
    When I go to download KINDLE not available in Cyprus App store... Asks me to switch to USA I say yes... And then gives me a dead link.
    Is kindle not available for download in certain countries? whats going on here?
    (My initial post was deleted - for "non-constructive comments" but I edited it removing what i believe they deemed non-constructive)
    Would have been nice if they answered my question and not only deleted my post.

    [url="http://web6.streamhoster.com/em2253/ZEN/ZenDeviceManager.wmv]See Movie[/url]?Hi, take a look at the movie... hopefully I answer to your question is there. [b]Let me know if you can NOT see it... [/b]and I will send you a picture. [color="#ff0000"]and if you can see the movie, give me feedback on it. Did it look ok in your computer? (it changes with all computers depending on your setting and player!). [color="#ff0000"]Was the sound ok?I almost wish I had not titled this post as "Happy Conclusion." It was happy but only a day or two... then I started having other problems... unbelievable. So, If I gave the wrong impression, sorry!

  • Skip button not working

    As of yesterday I discovered that my forward skip button does not work. Does anyone know if this can be repaired?

    Hi MissAirHostess,
    Welcome to the Support Communities!
    The article below may be able to help you with this issue.
    Click on the link to see more details and screenshots. 
    iPod troubleshooting basics and service FAQ
    http://support.apple.com/kb/TS1382
    Cheers,
    - Judy

  • Jump and Skip does not work

    I have written a program that executes certain instructions.It reads these instruction from an array of Textfield.I have a for loop to go through the Textfield.I am unable to implement a JUMP instruction that will jump to a specified Textfield as well as the SKIP instruction that will skip the next Textfield based on some condition.
    I tried the code below but it does not work
    private class Executionionhandler implements ActionListener
    { public void actionPerformed(ActionEvent event)
    { int StartLocation=(int)(Integer.parseInt(start2.getText()));
    //start1.setVisible(false);
    //start2.setVisible(false);
    //r, StartLocation, End, Stop are global
    for(int r=StartLocation;r<End && Stop==false;r++)
    {/content[r] is a Textfield
    String read=Content[r].getText();
    String com1=read.substring(0,2);
    int com11=(int)(Integer.parseInt(com1));
    String com2=read.substring(2,4);
    instruction(com11,com2);
    public void instruction(int IN1,String IN2)
    { switch(IN1)
    { case 1:
    //do something
    break;
    case 3:
    //do something break;
    case 7://the JUMP INSTRUCTION
    int JmpLoc7=(int)(Integer.parseInt(IN2));
    r=JmpLoc7;
    //StartLocation=JmpLoc7;
    break;
    case 8://the SKIP INSTRUCTION
    int copy81=(int)(Integer.parseInt(BUTTON.getText()));
    if(((copy81<0) && (IN2.equals("00"))) ||
    ((copy81==0) && (IN2.equals("01"))) ||
    ((copy81>0) && IN2.equals("02")))
    r++;
    case 11:
    error1.setText("End of command");
    Stop=true;
    break;
    default:
    error1.setText("BAD COMMAND");
    Stop=true;
    Any idea why or how can I achieve this?

    Hi,
    Not exactly sure what you code is trying to do and you didn't explain it either ...
    Some thoughts that might help:
    The variable r is only valid inside the for loop. Therefore setting it in another method will result in nothing happening. You will need to make r a class variable (like your comment says) to have access to a single variable in more than one method. Then you need to stop declaring it inside your for loop otherwise you will just create a local variable and all will be lost again.
    Something like:
    private class Executionionhandler implements ActionListener
      public void actionPerformed(ActionEvent event)
        for( r = StartLocation; r < End; ++r )
          instruction();
    }Regards,
    Manfred.

  • Skip button not working as anticipated

    I have a requirement to allow a user to skip a question in a quiz and come back to it at the end of the quiz (before submitting the
    entire quiz). However, I cannot seem to get this to work properly.
    I am uploading my quiz to a training website that we have created internally, and when I click the Skip button, it never puts the question at the end of the queue. Instead, it submits the test and I get a message that says "You skipped a question. You must retake the test."
    This is really crucial and I cannot use Captivate for quizzing if I can't figure out a way to let a user skip a question, have it put it at the end to come back to and then answer it within that same test attempt.
    Any help that anyone can shed would be wonderful!
    Thank you so much,
    Gabriella

    Understood, but I am not using the Results Page to show them their results. I actually removed all the metrics from this page, as well as the review quiz button. I also don't let them see if they got a question right or wrong from the Captivate quiz. We are uploading the Captivate assessments to our own training website. After they submit the test, it then brings them to our own web page to tell them the score and what they got right or wrong.
    That is why I would like the Skip button to work inside of the test. What we were doing on our site, was that if they click Skip, it moves that question to the end of the queue, so if there are 10 questions, they see the Skipped ones again after the 10th.
    I'm wondering if this can help. I submitted a case to Adobe Support and they responded as follows: "I would like to inform that, we have duplicated your issue at our end and found that you need to add some Java script under 'Action' of 'quiz properties' panel to accomplish this task."
    I don't know anything about JavaScript so I'm wondering if someone could assist with what I need to do here with this? I'm concerned I wont' be able to use Captivate for testing if I can't get this 1 function working, and I really would like to, b/c there are a lot of great features and we've spent a lot of time getting it to work with our site. Any help your or anyone could give would be greatly appreciated!
    Thank you for the speedy response,
    Gabriella

  • Google talk video plugin does not work any more with Firefox 4. When clicking on the video chat icon, I am repeatedly asked to install the plugin, and it never works.

    Google talk audio/video plugin used to work fine on Firefox 3, but does not work anymore on Firefox 4. Every time I click on the video chat icon on google talk, I am asked to install the plugin, even if I have already installed it before. The plugin works properly on the latest version of IE on the same PC.
    Thanks for your help. I do not want to switch to Chrome or Opera, but if this bug is not fixed, I will have to.

    Not sure if installing IE 9 did it or not but I now see the camera in IE, FF and Chrome. Could be Facebook fixed the problem also.
    Thanks for the reply.
    George

Maybe you are looking for

  • BPM application not displaying

    after Deployment of BPM application i entered the url as below-- http://localhost:8001/HelloWorld_OBE-HelloWorld_UI-context-root/faces/taskDetails1.jspx?_afrLoop=1101168224182&_afrWi- but my process is not displaying.there is a blank screen. how can

  • Ipod Nano 3rd gen 4gb unresponsive

    So I have never had an issue with my ipod till this weekend. I plugged it in to my computer to sync and charge, the ipod had about 25% charge left on it. From there things started getting weird. My computer wouldn't recognize the ipod, so I reset it

  • Just a dummy question

    Please , help me get through the following: In the licensing manner do I need to be on Oracle Enterprise Edition to use the Tuning Pack? when you're on standard Edition? My answer is no. But my boss insist if I'm sure, that's why I need other eyes to

  • 802.1x Auth Error After Installing AirPort Update 2007-002 and 10.4.9

    After installing the AirPort Extreme Update 2007-002 (and 10.4.9, but I doubt that update did it), I am unable to log into my campus's wireless network. I get the message "802.1x Authentication has failed. (Error: 1001 on port en1)" I've double-check

  • Using rules in mail

    what i would like to do.. I would like to have all incoming mail to one of my e mail addresses, responded to automatically( auto response) ( i think somewhat like 'vacation responder' if that still exists.) the response to all incoming mails which i