Attempt to upgrade post to restoreBackupPiece

Hello

I recently updated my software database for Oracle 12 c, it clean without bodies or database on the subject.

The machine is Windows Server R2 2012.

When I try to run the script (after the upgrade), I get the following error:

Script:

WHENEVER SQLERROR EXIT SQL.SQLCODE ROLLBACK
WHENEVER OSERROR EXIT FAILURE ROLLBACK


-- PARAMS:
define NN_ORA_INSTALL_DIR = &1;
define ORACLE_SID = &2;
define ORACLE_SYS_BASE = &3;
define ORACLE_HOME = &4;
define SYSPASS = &5;




connect SYS/&SYSPASS as SYSDBA
set echo on;
spool &NN_ORA_INSTALL_DIR\rmanRestoreDatafiles.log
startup nomount;
set echo off;
set serveroutput on;
select TO_CHAR(systimestamp,'YYYYMMDD HH:MI:SS') from dual;
variable devicename varchar2(255);
declare
omfname varchar2(512) := NULL;
  done boolean;
  begin
    dbms_output.put_line(' ');
    dbms_output.put_line(' Allocating device.... ');
    dbms_output.put_line(' Specifying datafiles... ');
       :devicename := dbms_backup_restore.deviceAllocate;
    dbms_output.put_line(' Specifing datafiles... ');
    dbms_backup_restore.restoreSetDataFile;
      dbms_backup_restore.restoreDataFileTo(1, '&ORACLE_SYS_BASE\oradata\&ORACLE_SID\SYSTEM01.DBF', 0, 'SYSTEM');
      dbms_backup_restore.restoreDataFileTo(2, '&ORACLE_SYS_BASE\oradata\&ORACLE_SID\SYSAUX01.DBF', 0, 'SYSAUX');
      dbms_backup_restore.restoreDataFileTo(3, '&ORACLE_SYS_BASE\oradata\&ORACLE_SID\UNDOTBS01.DBF', 0, 'UNDOTBS1');
      dbms_backup_restore.restoreDataFileTo(4, '&ORACLE_SYS_BASE\oradata\&ORACLE_SID\USERS01.DBF', 0, 'USERS');
    dbms_output.put_line(' Restoring ... ');
    dbms_backup_restore.restoreBackupPiece('&ORACLE_HOME\assistants\dbca\templates\Seed_Database.dfb', done);
    if done then
        dbms_output.put_line(' Restore done.');
    else
        dbms_output.put_line(' ORA-XXXX: Restore failed ');
    end if;
    dbms_backup_restore.deviceDeallocate;
  end;
/
select TO_CHAR(systimestamp,'YYYYMMDD HH:MI:SS') from dual;
spool off;
exit;

The error I get is:

Distribute the device...

Specification of data files...

Specifying data files...

Restoration...

declare

*

ERROR on line 1:

ORA-19583: conversation interrupted due to error

ORA-19870: error when restoring a full backup

C:\ORACLE\ORA12\ASSISTANTS\DBCA\TEMPLATES\SEED_DATABASE. DFB

ORA-19615: some files not found in the backup set

ORA-19613: datafile 2 not found in the backup set

ORA-06512: at "SYS." "X$ DBMS_BACKUP_RESTORE ', line 6138

ORA-06512: at line 16 level

I checked and everything is granted regarding the permissions and privileges.

What can possibly be the cause?

Thanks in advance, David.

Found to the question, the number for each data file has changed in Oracle12.

dbms_backup_restore.restoreDataFileTo (1, ' & ORACLE_SYS_BASE\oradata\ & ORACLE_SID\SYSTEM01.) DBF', 0, 'SYSTEM');

dbms_backup_restore.restoreDataFileTo (2, ' & ORACLE_SYS_BASE\oradata\ & ORACLE_SID\SYSAUX01.) DBF', 0, "SYSAUX");

dbms_backup_restore.restoreDataFileTo (3, ' & ORACLE_SYS_BASE\oradata\ & ORACLE_SID\UNDOTBS01.) DBF', 0, "UNDOTBS1");

dbms_backup_restore.restoreDataFileTo (4, ' & ORACLE_SYS_BASE\oradata\ & ORACLE_SID\USERS01.) DBF', 0, 'USERS');

Must be:

dbms_backup_restore.restoreDataFileTo (1, ' & ORACLE_SYS_BASE\oradata\ & ORACLE_SID\SYSTEM01.) DBF', 0, 'SYSTEM');

dbms_backup_restore.restoreDataFileTo (3, ' & ORACLE_SYS_BASE\oradata\ & ORACLE_SID\SYSAUX01.) DBF', 0, "SYSAUX");

dbms_backup_restore.restoreDataFileTo (5, ' & ORACLE_SYS_BASE\oradata\ & ORACLE_SID\UNDOTBS01.) DBF', 0, "UNDOTBS1");

dbms_backup_restore.restoreDataFileTo (6, ' & ORACLE_SYS_BASE\oradata\ & ORACLE_SID\USERS01.) DBF', 0, 'USERS');

Tags: Database

Similar Questions

  • error 0 x 80070015 when attempting to upgrade from Windows 7 to Windows 10

    error 0 x 80070015 when attempting to upgrade from Windows 7 to Windows 10The link to Support MS is not only useless, but also frustrating. It's time for an APPLE?

    Are you trying to update via Windows Update or by using the support tool?

    I suggest you to download the tool for creating Windows Media 10 ISO and make a place in upgrade.

    Download the update of Windows Media Player 10 tool creation build 10586:
    http://www.Microsoft.com/en-us/software-download/Windows10

    How to download an ISO using media tool:
    http://www.tenforums.com/tutorials/9230-Windows-10-ISO-download.html

    How to make a upgrade in Place using method 1:
    http://www.tenforums.com/tutorials/16397-repair-install-Windows-10-place-upgrade.html#step6

    If this does not work please provide more information for your issue to be diagnosed.

    Restart your computer and wait 20 minutes for the system to operate before you download information. When the review much, not Event Viewer log files all problems show in the period immediately after the computer has booted.

    Please provide a copy of your system information file. Type system information in the search box above the Start button and press the ENTER key (alternative is select Start, all programs, accessories, System Tools, system information). Select file, Export and give the file a name noting where it is located. Do not place the cursor in the body of the report before exporting the file. The system creates a new information file system each time system information is available. You must allow a minute or two before the file is completely filled before exporting a copy. Please download the file to your OneDrive, to share with everyone and post a link here. If the report is in one language other than English, please indicate the language.

    Please download and share with everyone a new copy of your system log of your event viewer on your disc one and post a link here. It allows to avoid confusion if you delete all previous copies of the log files of your OneDrive.

    To access the system, log, select Start, Control Panel, administrative tools, Event Viewer, in the list on the left of the window, expand Windows logs and select System. Place the cursor on the system, select the Action in the Menu and record all events (the file default evtx type) and give a name to the file. Don't provide filtered files. Do not place the cursor in the list of reports before selecting the Action from the menu. Do not clear the logs so that you have a persistent problem.

    For assistance OneDrive see paragraph 9.3:

    http://www.gerryscomputertips.co.UK/MicrosoftCommunity1.htm

  • Black screen after the attempt to upgrade to windows 10

    I was trying to upgrade windows 7 on a laptop HP Windows 10. The first attempt was via the white windows logo in the taskbar. This attempt was interrupted, probably accidentally turned off the button wifi trying to move the computer. The second time I tried to use windows ten upgraded Installer. I did the usual download and installed up to 99%. He remained on the installation of 99% during the night and the next morning without change. I turned off the computer and he made a series of updates before shutting down for good. When it starts again, it has a black screen but the cursor is there and movable. I tried in safe mode for the repair and restoration of the system, but it did not work. I tried to reset the BIOS to default, but does not. I try to leave the computer turned off for an extended period of time disconnected from the internet to see if that helps. The last attempt to start, windows 7 seems to start but then ends up on the black screen and I held down the power button to stop it. I'd rather upgrade to windows 10 if possible, but if cannot then if can go back to windows 7 will be enough. It worked great on Windows 7 before trying to upgrade, so there is no problems with the computer.

    Hi Chris,

    I'll be happy to help you with the problem you have with black screen.

    The problem may occur if the video drivers are not updated.

    What is the model of your HP computer?

    I suggest you follow the suggestions by Sharath Srinivasan replied on August 7, 2015, the link below:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_10-hardware/black-screen-after-upgrading-to-Windows-10/cf3b4559-67d8-40E0-9cf2-ebf4528e1e78

    Please reply with the results, we are happy to help you.

    Thank you.

  • 11.2.0.4 DB Upgrade: upgrade post tool reports "OPTION OFF.

    Hi all

    I'm upgrading ebs DB to 11.2.0.4 of 11.2.0.3. Post upgrade tool reports "OPTION OFF" for some components. "My first research lead me to the Doc ID ' components OLAP with"NO SCRIPT"or"OPTION OFF"status after Upgrade (Doc ID 602824.1). It is said... If, at the time when the software has been installed and OLAP has been deselected then this (NO SCRIPT) would be a normal state resulting.

    Analytic workspace OLAP OPTION OFF 11.2.0.3.0 00:00:00

    Catalogue OLAP OPTION OFF 11.2.0.3.0 00:00:00

    API Oracle OLAP OPTION OFF 11.2.0.3.0 00:00:00

    I don't know how it happened, as the 11.2.0.4, s/w installation was performed in silent mode with the help of a response file and I specified the optional components during installation.

    The contents of the answer file:

    oracle.install.db.InstallEdition = EE

    oracle.install.db.EEOptionsSelection = true

    oracle.install.db.optionalComponents=oracle.rdbms.partitioning:11.2.0.4.0,oracle.oraolap:11.2.0.4.0,oracle.rdbms.dm:11.2.0.4.0,oracle.rdbms.dv:11.2.0.4.0,oracle.rdbms.lbac:11.2.0.4.0,oracle.rdbms.rat:11.2.0.4.0

    Thank you

    Thank you very much, Hussein, thank you for your help!

    The problem is resolved. I followed this rather "how to manually install Oracle OLAP in 9i, 10g or 11g database after the DB was created (Doc ID 296187.1)"

  • Help! Aurora R4 BIOS upgrade, post after reset CMOS

    In preparation for the installation of my new GTX970, I decided to update the bios on my R4 Aurora. I started bios a02 and upgraded to a05. Restart the new bios could not find my HARD drive. I ran the software post-diag and checked everything very well, my HARD drive was in the list and was checked off as OK. My hypothesis was that something was wrong with the upgrade of the BIOS so I decided to reset and start again...

    To reset the BIOS, I swapped the CMOS of 1-2 and 2-3 Horseman after 10 seconds. Now, when I try to start the screen is black and I get the error beep 5 (resettlement or replace the CMOS battery).

    That's what I did to try to fix it until now:

    • Reinstall the CMOS battery
    • Pull the CMOS battery, sauter jump reset, then replace CMOS battery
    • Replace the dough CMOS (new battery)
    • Disconnect all components except for the video and the RAM, battery CMOS replace
    • Disconnect all components except for the video and 1 stick of Ram, reinstall the CMOS battery

    After that each rider reset the pc starts to boot up, then after a few seconds will restart. When it restarts I'm stuck at a black screen and 5 beeps.

    Update! I reinstalled everything once more and now I get video and there is no more than beep. But I'm stuck on the screen of the Intel Rapid Storage Technology technology and cannot continue.

    I tried pressing f12 during the boot and could not enter the boot parameters.
    By pressing the shortcut of on the intel RST screen does nothing.

    Thank you all. It turns out that all I had to do was to change the hard drive in legacy mode and it starts fine.

  • Satellite Pro M10 attempted to upgrade processor

    Hello

    I tried to upgrade cpu original 400 fsb 1.4 mhz centrino centrino 1.6 mhz 1 MB cache 400 fsb cache 2 MB (SL7EG), it works but only the minimum frequency (+-670 Mhz), it remains each time to the lowest frequency even if a lot of work is invited to the cpu (tried a lot of cpu stress tools).

    I really don' t know how solve this problem... can someone help me please?

    Bios version 1.50, version of the firmware 83,72, 23/05/2003 date of the bios.
    Thanks for advantage

    NB: only in documents from toshiba, the CPU seems to be fully compatible with Satellite PRO M10

    Hey Buddy,

    Just a quick question: you know that upgrading the CPU is not supported by Toshiba?
    With other words, it means that no one can tell if another CPU works correctly, and if you can use the higher speed.

    I guess if you can use t as the higher speed, the CPU is not taken in charge and that s a limitation of the card motherboard/BIOS.

  • G62 notebook: G62 notebook - recovery of unsuccessful attempt to upgrade to Windows 10

    Hello. First of all, let me tell you about my machine:

    HP G62x - 400 CTO laptop

    Model # LD642AV

    [personal information]

    Windows 7 Home premium

    I tried to update your Windows 10. At the end of the process, I got an error message saying that the upgrade has failed. I thought - so I'm back to Windows 7 and it's OK. But now I get frequent error messages telling me that the various "points of entry" can not be found on DLL files that seem in Windows 10 ONLY. How can I get rid of the problem?

    Thank you for your help.

    Craig3428

    The parition of recovery being present is not enough for the function HP Recovery works - as Win10 corrupts the things inside of this partition, or change the alignment of the partition - no problems you will be able to see.

    If F11 does not work, it's a sign of corruption.

  • Attempt to upgrade memory but error 0 x 00000019, 0x1000007e and 0x000000C5 appear!

    Hello

    I tried to upgrade the memory of my HP Pavilion g42-340br and after exchanging two 2 GB memory for one screen 8 GB blue of death with the folowwing error appeared and my laptop does not start:

    0 x 00000019, 0x1000007e and 0x000000C5 (tried many times)

    Laptop HP G42

    Intel Core i5 2.40 GHz M450

    Memory: 4 GB (front)
    Memory: 8 GB (now)

    Could someone help me?

    I bought the bad memory?

    Thank you.

    Problem solved

    I tried another memory, and it worked. It seems that the problem was with the chip memory which was incompatible with my chipset.

  • Error message after attempting to upgrade Vista to Windows 7

    Have an older Gateway laptop. Decided to try to upgrade to Windows 7. Can not get anywhere now, goes to blue screen and keep this message:

    SMART failure provided on hard disk 2: WCD WD 3200BEVT-22ZCT0-(S1)

    Contact hardware manufacturer

    File: \Boot\BCD

    Status: 0xc00000e9

    Info: An unexpected i/o error has occurred

    94.29.00 BIOS version

    Thanks for your suggestions,

    Anna

    Hello

    Your hard drive is about to fail according to the mini-message.

    Read this information about it:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-system/smart-failure-predicted-on-hard-disk-2-WDC-WD/2921839c-9C9D-4d4b-9752-8287605df956

    ______________________________________

    And also before you try to upgrade an older machine to Windows 7 follow these steps:

    Go to your computer / computer laptop manufacturer Web site and see if Windows 7 drivers are available for your make and model computer / laptop.

    If this is not available, Windows 7 will not properly work for you.

    Run the "Windows 7 Upgrade Advisor.

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=20

    Check if your specifications are compatible for Windows 7:

    "Windows 7 system requirements"

    http://Windows.Microsoft.com/en-us/Windows7/products/system-requirements

    "Windows 7 Compatibility Center" for software and hardware:

    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/default.aspx

    Windows 7 upgrade paths:

    http://TechNet.Microsoft.com/en-us/library/dd772579 (v = ws.10) .aspx

    «Installation and reinstallation of Windows 7»

    http://Windows.Microsoft.com/en-us/Windows7/installing-and-reinstalling-Windows-7

    See you soon.

  • Need to find a way to install Win Vista Home (I have my own series) for Win 7 Upgrade post.

    My laptop came with Windows Vista, and I recently bought an upgrade to Windows 7 for her. The upgrade works only as an upgrade, not as a stand-alone installation.
    My computer recently crashed, and with top Vista recovery CD is defective, so I have no way to use the upgrade CD.
    Is it possible to arrange a download of the Vista test for my to validate with my own serial number or to order a copy?

    Hello

    Here are different ways to reinstall Vista.

    There is no Windows Vista downloads available from Microsoft.

    You can contact your computer manufacturer and ask them to send you a set of recovery disks.

    They should do this for a small fee.

    To reinstall Vista using their recovery disk/s, you start from the 1st recovery disk they provide and follow the manufacturer's instructions to reinstall:

    You need to change the Boot order to make the DVD/CD drive 1st in the boot order:

    How to change the Boot order in BIOS:

    http://pcsupport.about.com/od/fixtheproblem/SS/bootorderchange.htm

    "How to replace Microsoft software or hardware, order service packs and replace product manuals.

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

    Check if you have a recovery Partition on the hard drive to reinstall Vista on how you purchased your computer.

    The recovery process can be started by pressing a particular combination of the key or keys at startup. (Power on / start)

    Maybe it's F10, F11, Alt + F10, etc., depending on the manufacturer.

    Ask them to the proper key sequence.

    Some manufacturers have more available Vista recovery disks.

    If this happens, you may need to try this instead:

    You can also borrow and use a Microsoft Vista DVD, which contains the files for the different editions of Vista (Home Basic, Home Premium, Business and Ultimate) must be installed. The product key on your computer / Laptop box determines what Edition is installed.

    Other manufacturers recovery DVDs are should not be used for this purpose.

    And you need to know the version of 'bit' for Vista, as 32-bit and 64-bit editions come on different DVDs

    Here's how to do a clean install of Vista using a DVD of Vista from Microsoft:

    "How to do a clean install and configure with a full Version of Vista '

    http://www.Vistax64.com/tutorials/117366-clean-install-full-version-Vista.html

    And once the operating system is installed, go to your computer manufacturer's website and get the latest drivers for your particular model or laptop computer.

    And phone Activation may be necessary when you use the above installation method.

    "How to activate Vista normally and by Activation of the phone '

    http://www.Vistax64.com/tutorials/84488-activate-Vista-phone.html

    See you soon.

  • attempt to upgrade Vista to 7, said I must uninstall Omnipass but I can't

    Uninstall Omnipass

    I tried to upgrade Vista to Windows7 - error appeared - was told that I had to uninstall "omnipass" - tried to uninstall the device manager - would not let me do.

    Hello

    If it's a software why are you looking in Device Manager?

    read what it is

    http://www.softexinc.com/omnipass_sso/overview

    http://davesgarden.com/community/forums/t/459325/

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

    or try free revouninstaller

    http://www.revouninstaller.com/revo_uninstaller_free_download.html

    or that it is a problem of windows 7 installation ask in the forums of windows 7

    Try the repost in Forum windows 7 the link below

    http://answers.Microsoft.com/en-us/Windows/default.aspx#tab=2

    Answers by topic

  • Windows 7 Build 7601, non-genuine copy after the failure of an attempt to upgrade to Windows 10.

    I have a notebook Acer Aspire that I was given as a gift in 2009 after being seriously ill, it came with Windows 7 above and that it is authentic! I had a neighbour/friend IT fix a few years after obtaining a virus, had no problem until recently tried to upgrade to Windows 10.  The upgrade failed because then I get messages from all time indicating that my version of Windows is not genuine! The product key sticker is so worn that the numbers/letters are impossible to read, so what I do?  Please try and keep things simple for me, I'm not savvy in computer science. Thanks in anticipation, Tanya

    How to: fix Windows 7 or Windows 8.1 active or true reports after cancellation of Windows 10

  • Attempt to upgrade to Windows 10 keeps failing

    I received notification that my Windows 10 update is available, and so far I have tried to update a total of 11 times and get the same error "WindowsUpdate_80070005" "WindowsUpdate_dt000"  I find no answer to this error helping me.  I tried to disable my antivirus software and malware and do the upgrade - same question.  Then I tried unplugging all devices - same question.  I tried, as suggested, install the Fixit - same question.  I tried a clean boot state, won't even download the upgrade file.  Every time to try download the install file and gets partially through the installation (in the background) and then crashes and displays more error message.  Help, please.

    Moved Windows 10

    Original title: Upgrade Windows 10 Crash

    Welcome & thank you for your comments!

  • T61 - unsuccessful attempt to upgrade the HDD using "Acronis True Image - disk clone".

    T61, Win XP Pro,

    Problems with the free space on HDD - disk(160GB) factory original is more than 90% full.

    There are a lot of existing user settings and the user information on the HARD drive - of the specific settings for different network environments (home network, company network, VPN, etc.), specific applications, a lot of drivers for specific devices, many documents and photos and other information.

    So, we need to upgrade the disk, but we do not want to go back to factory state - we want to keep all existing user settings and user information.

    The existing drive was dismantled and connected to a standard desktop PC.

    And using "Acronis True Image Home" the existing drive has been cloned again drive WD Scorpio Black 320 GB.

    There is not any errors during the cloning process.

    But when we set up the new drive of the laptop, the OS has not started - black screen with blinking cursor only flashing white dash (top left). So, we put back the old disk, in order to work.

    After cloning, we see the new disk is similar, as it is on the old drive. There are two partition - hidden, system partition partition with Windows XP and all user folders and documents. Thus, we believe that the problem is only in part "start".

    Everyone can us advice what is the problem.

    Or we let another solution how to change the drive, but without going to the factory condition.

    Thank you

    Hi MitkoS and welcome to the Lenovo user community!

    Try a clone "reverse" as described in Acronis forums:

    http://Forum.Acronis.com/Forum/4196#comment-5187

    You will also find other good advice it on ThinkPad upgrade problems!

  • Alienware x 51 beep Code: 1, after the attempt to upgrade RAM

    I recently bought a new stick of RAM, to upgrade my desktop computer. I then installed in my office, with another - the original-stick of memory RAM. Then, I turned on my computer, only to hear a beep periodic long, immutable, which is emitted from my computer. After some research I found that it was a BIOS ROM - MB Possible failed checksum failure error message.
    So far I have tried:

    • My BIOS data, reset by disconnecting the battery connected to the memory.
    • Reset my BIOS data and replace my RAM, than a stick and both of the original sticks.

    During this time, I realized the clock speeds RAM were different (even if they were not on the original sticks).

    Is it what can I do except buy a new card mother?

    Not good enough, you did one troubleshooting steps that may help you, if after that the system to continue to give a continuous beep the only solution is going to replace the motherboard.

Maybe you are looking for

  • HP Pavilion p 15-132nd: unknown device of the HP wireless button driver

    Madam, Sir, After you perform a clean installation of Windows, I noticed an unknown device which I can't find drivers for. The device has the following hardware id: ACPI\VEN_HPQ & DEV_6001. And I suspect the Wiriless button or something similair. Cou

  • Internet Explorer does not allow my program to run.

    I have the Foscam wireless camera setup to display on my computer.  I now watch on a Mac.  I just bought the HP Pavilion Entertainment PC.   When I try to run Internet Explorer will not allow him to start.  It has something to do with the certificate

  • How can I cancel a display setting?

    Hello! I changed the setting of the screen to the maximum, but he came back with the message 'enter' not supported now my screen is black, with this message roaming all over the screen.  Can you suggest a method to reverse this setting? B McGraw

  • HP G60 notebook PC laptop - model VM803UA #ABA

    -a lately a rattling noise that lasts about one second at a time. This isn't a warning message. Would it maybe the hard drive?

  • Cannot open. DOC attachments in Windows Mail or Windows Live Mail

    Get the error message "this file has no program associated with it for performing this action. Create an association in the control panel to define the Associations. " I checked and the Association for .doc is correct. If I save the attachment to dis