How to COPY a BACKUP as the... CONTROLFILE can be used for the OPEN database

I create a document such as a "How To" to move a position for a Junior DBA controlfile.

But it seems that I'm the Junior because I am facing the following...

Action plan:

Move/rename a Controlfile

Version of the database: 11.2.0.3

Controlfiles moving of:

/ goldengate/ORCL/ORADATA /.

TO:

/ GoldenGate/ORCL/controlfile

Step 1: Set up environment variables

$> export ORACLE_SID = ORCL1

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

$> echo $ORACLE_SID

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

ORCL1

$> export ORACLE_BASE = / u01/app/oracle

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

$> echo $ORACLE_BASE

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

/ u01/app/Oracle

$> export ORACLE_HOME=$ORACLE_BASE/product/11.2.0.3/dbhome_1

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

$ echo $ORACLE_HOME

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

/U01/app/Oracle/product/11.2.0.3/dbhome_1

Step 2: Check control_files parameter

$> echo "see THE PARAMETER control_files | sqlplus-s "virtue sysdba".

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

VALUE OF TYPE NAME

------------------------------------ ----------- ------------------------------

control_files string/goldengate/ORCL/ORADATA/control

ol01. CTL, / goldengate/ORCL/ORA

DATA/control02.ctl

Step 3: Closing the open database

$> echo 'SHUTDOWN IMMEDIATE'; | sqlplus-s "virtue sysdba".

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

The database is closed.

The database is dismounted.

ORACLE instance stops.

Step 4: Editing of the database

$> echo "STARTUP MOUNT"; | sqlplus-s "virtue sysdba".

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

ORACLE instance started.

Total System Global Area 4275781632 bytes

Bytes of size 2235208 fixed

822084792 variable size bytes

3439329280 of database buffers bytes

Redo buffers 12132352 bytes

Mounted database.

Step 5: Creating a copy of the current controlfile

$> echo "AS BACKUP COPY CURRENT CONTROLFILE FORMAT ' / goldengate/ORCL/CONTROLFILE/control01.copy.ctl'; ' | RMAN target / nocatalog

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Recovery Manager: release 11.2.0.3.0 - Production Fri Oct 22 17:03:27 2015

Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.

connected to target database: ORCL (DBID = 1420762587, is not open)

using the control file of the target instead of recovery catalog database

RMAN >

From 22 October 15 backup

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID = 58 type of device = DISK

channel ORA_DISK_1: from data file copy

copy the current control file

tag name=/goldengate/ORCL/CONTROLFILE/control01.copy.ctl output file = RECID = 1 STAMP = 893783011 TAG20151022T170329

channel ORA_DISK_1: datafile copy complete, duration: 00:00:03

Backup finished at 22 October 15

RMAN >

Complete recovery manager.

Step 6: Change of parameter control_files

$> echo "ALTER SYSTEM SET control_files='/goldengate/ORCL/CONTROLFILE/control01.copy.ctl' SCOPE = SPFILE;" | sqlplus-s "virtue sysdba".

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Modified system.

Step 7: Closing of the mounted database

$> echo 'SHUTDOWN IMMEDIATE'; | sqlplus-s "virtue sysdba".

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

ORA-01109: database is not open

The database is dismounted.

ORACLE instance stops.

Step 8: Installation of the database

$> echo "STARTUP MOUNT"; | sqlplus-s "virtue sysdba".

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

ORACLE instance started.

Total System Global Area 4275781632 bytes

Bytes of size 2235208 fixed

822084792 variable size bytes

3439329280 of database buffers bytes

Redo buffers 12132352 bytes

Mounted database.

Step 9: Check control_files parameter

$> echo "see THE PARAMETER control_files | sqlplus-s "virtue sysdba".

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

VALUE OF TYPE NAME

------------------------------------ ----------- ------------------------------

control_files string/goldengate/ORCL/CONTROLFILE/c

ontrol01. Copy.CTL

Step 10: Open the mounted database

$> echo "ALTER DATABASE OPEN"; | sqlplus-s "virtue sysdba".

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

ALTER DATABASE OPEN

*

ERROR on line 1:

ORA-01589: must use RESETLOGS or NORESETLOGS option of database open

$> echo "ALTER DATABASE OPEN NORESETLOGS"; | sqlplus-s "virtue sysdba".

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

ALTER DATABASE OPEN NORESETLOGS

*

ERROR on line 1:

ORA-01610: recovery using BACKUP CONTROLFILE option must be

Then...

$> sqlplus/nolog

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

SQL * more: Production release 11.2.0.3.0 the game Oct 22 17:14:43 2015

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

SQL > CONNECT sysdba virtue

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Connected.

SQL > RECOVER DATABASE with the HELP of BACKUP CONTROLFILE until CANCEL;

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

ORA-00279: change 621941 September at 22/10/2015 16:57:33 needed to screw 1

ORA-00289: suggestion:

/U01/app/Oracle/product/11.2.0.3/dbhome_1/DBS/arch1_11_892981851.dbf

ORA-00280: change 621941 thread 1 is in sequence #11

Specify the log: {< RET > = suggested |} Filename | AUTO | CANCEL}

Cancel

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Cancelled media recovery.

SQL > ALTER DATABASE OPEN;

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

ALTER DATABASE OPEN

*

ERROR on line 1:

ORA-01589: must use RESETLOGS or NORESETLOGS option of database open

Issues related to the:

What am I misunderstanding? BACKUP COPY THAT isn't really a COPY.

Why I can't use the 'copy' of the controlfile created by RMAN?

Note:

If I just copy the controlfile to the new location when the database shuts down everything works fine.

Thanks in advance.

Juan M


Recovery Manager (RMAN)

It is also mentioned in https://docs.oracle.com/cd/E11882_01/server.112/e25494/control.htm#ADMIN11288

Create additional Copies, rename and move the control files

Tags: Database

Similar Questions

  • How to make a backup of the folder for Captivate 7 Patch Layouts?

    Hello-

    I'm trying to follow the instructions for the Captivate 7 patch, but I don't know how to create a backup of the folder Layouts as the State of instructions to do so. In addition, they say to make backup "and delete it. They mean to delete the original file and keep the file backup that I create, correct?

    Important: before using Adobe Captivate 7.0.1 make sure you take a backup of the Layouts folder and delete.

    File layouts are present:

    • Location of Windows: C:\Users\Public\Documents\Adobe\eLearning \-assets\

    I was able to find this folder, I just need help in creating the backup... Sorry, I'm not the most computer person warned

    Thank you!

    You just copy in a different folder, or rename it as, say Layouts_old.

    Anthony

  • How to copy and paste into the search engine does not work?

    How to copy and paste into the search engine does not work?

    It should be.

    Restart your Mac and try again.

    Other than that, make sure that OS X is updated.

    Open the App Store, and then select the updates menu.

  • Do you know how to copy certain tasks in the calendar and the past on different days?

    Do you know how to copy certain tasks in the calendar and the past on different days?

    This year, I even tasks to every month, so it is difficult for me to create new tasks for the same information. I can't find how to copy beyond the tasks, so if someone could help me I aprecciate it.

    Thanks in advance!

    Select, press COMMAND = C to copy it to the Clipboard; Select the date that you want a copy with the mouse, them press COMMAND\-V to paste. If you want a repetitive task, you can select the item and double-click it to open it, and then the pop up config, select repeat.

  • the friends hyii UA HUD need help how to make a backup of the files from his deleted with (shift + delete) memory card

    the friends hyii UA HUD need help how to make a backup of the files from his deleted with (shift + delete) memory card

    Hello

    It seems that you want to restore the files removed from the memory card.

    I will definitely help you with this.

    I would say you can search the Internet for data recovery software by using your favorite search engine.

    Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    It will be useful. If you have any other questions, feel free to let us know. We will be happy to help you.

    Thank you.

  • How to make a backup of the system files?

    I want to just back up the filesystem in the case where.

    Hello

    You can save your own personal files (documents, photos, etc.) or do a complete PC backup that contains the system files.

    If you want to make a complete PC Backup or a backup file only, buy an external hard drive.

    Only Vista professional, comprehensive and company have the opportunity to make complete backups of PC.

    All editions of Vista can do backups of files.

    Here's how to back up and restore your files:

    "How to back up your data.

    http://www.wintuts.com/how-to-backup-your-data

    http://www.home-PC-help.com/windowsvistabackup.html

    "How to restore your files.

    http://www.wintuts.com/how-to-restore-files

    This is how to do a full backup of the computer and how to restore it (for Vista Business, Ultimate and Enterprise only):

    «How to make a backup of the computer in Vista»

    http://www.bleepingcomputer.com/tutorials/how-to-use-Vista-complete-PC-Backup/

    "How to restore a full backup of the computer.

    http://www.bleepingcomputer.com/tutorials/Windows-Vista-complete-PC-Restore/

    FAQ from Microsoft about backup and restore:

    "Back up and restore: frequently asked questions.

    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-and-restore-frequently-asked-questions

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    There are a number of 3rd party programs available for a full backup of the computer; others, you must pay for, some are free.

    This program must be purchased:

    "Acronis True Image".

    http://www.Acronis.com/homecomputing/products/TrueImage/index_gwo.html?utm_expid=4274314-6

    These are free programs for the protection of the computer:

    "EaseUS Todo Backup free"

    http://www.TODO-backup.com/products/home/free-backup-software.htm

    "Download Backup & Recovery 2012 free FREE!

    http://www.Paragon-Software.com/home/BR-free/download.html

    «Macrium Reflect FREE Edition»

    http://www.Macrium.com/reflectfree.aspx

    ___________________________________________________

    And if you do not score a manufacturer of recovery on your hard drive, you should be able to make your own recovery discs that are system files in order to reinstall the operating system.

    Go to programs > name of the manufacturer of your computer > then their system or recovery tools software topics for them, depending on how it is formulated.

    If you can't find any reference to it, contact the manufacturer for advice on how to make these recovery disks.

    See you soon.

  • How to make a backup of the Windows BACKUP DELL?

    I have a Dell 0ptiplex 3010 with windows 7 pro 32 bit 10 units.
    How to make a backup of the Windows BACKUP DELL?
    Please help, I'm still confused with BACKUP DELL.

    Hi rahar_satriyo,

    Only the version complete Dell backup and restore will give you an option to backup computer image which is a paid version. The default Basic that comes with the system version will have only the restore factory in image.

  • Unable to take backup on Windows 7 get error code 0 x 81000019 and message backup Windows found errors on the media during a backup on it and can't use it for additional backups.

    Original title: backup Windows found errors on the media during a backup.

    original title: backup errors

    Whenever I try to do my monthly backup I get the following messages

    Backup Windows found errors on the media during a backup on it and can not use it for additional backups.

    Pleas write the following label on a blank media and insert it into D: /.

    I did and then he asked me to get in shape, I say OK and I get the same message on the media errors and I put another disc and get the same problems again. I can't find out what the problem is, what can I do to fix this problem and get a new backup?

    I now have an error 0 x 81000019

    Hello

    You did changes to the computer before the show?

    Method 1: Check if the shadow copy volume is running
    (a) click Start.
    (b) in the search box, type Services.msc.
    shadow copy Volume c) right-click and go to properties.
    (d) select Auto (Delayed) in the start menu type in the menu drop-down.

    Method 2: Clean boot
    When the computer starts to boot, programs non-Microsoft will not be started and would avoid any interruption of their share.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.microsoft.com/kb/929135.

    Note: Once you are done with the boot, follow step 7 of article to reset your computer to normal startup.

    Method 3:

    Check all your drives to NTFS.

    This problem may occur if the drive is not NTFS format.

    Please follow the steps mentioned below to convert the reader:

    Using the Convert command

    1. click on the "Start" button, click "all programs" and click on "Accessories".

    2. right click on "command prompt" and click "run as administrator".

    3. in the window "Administrator: command prompt", type the following command and press ENTER.

    CONVERT %Drive% letter: / FS: NTFS

    letter of %Drive% is the driver that you want to convert. For example, type the following command to convert drive F to NTFS:

    CONVERT F:/FS: NTFS

    4. when the following message appears in the command prompt window, type the volume label of the drive that you are converting, and then press ENTER:

    The type of the file system is FAT.

    Enter the name of the current volume of reader letter %Drive%:

    Type any string of characters for the Volume name. If you simply press ENTER, it will affect 'Local disk' as the default Volume name.

    5. when the conversion to NTFS is complete, the following line appears in the command prompt window:

    "Complete conversion".

    6. restart the computer and check the result.

    Hope this information is useful.

  • How can I use firefox to open the public sybercafe.

    How can I use firefox in open public sybercafe.and what precautions should be taken.

    Hi, you can use the Firefox private - browsing Mode navigate the web without saving the information on the sites you visit

    The incognito on Firefox for Android

  • I bought the plan for photography and still pay each month. but I can't use photoshop only after update. and they need to join a plan. How can I do? I can only use for the trial version even I never tell months.

    I bought the plan for photography 6 months ago and still pay every month.

    but I can't use photoshop only after update. and they need to join a plan.

    How can I do?

    I can only use for the same test version that I pay every month.

    Hi yejik42305752,

    Please see the following article: https://helpx.adobe.com/creative-suite/kb/trial--1-launch.html

    Kind regards

    Tanuj

  • How to find this value in the oracle database to find out the table

    Hi expert,

    I know there is a value in the oracle database, please show me how to find this value in the oracle database to find out the table that contains this value.

    Thank you very much

    918440 wrote:
    Hi expert,

    I know there is a value in the oracle database, please show me how to find this value in the oracle database to find out the table that contains this value.

    Thank you very much

    Go to the online documentation and discover the data dictionary. You may be interested in reading about ALL_TAB_COLUMNS, but you will need to know what you want until you can query the view to find information

  • We can share with the Community (related to oracle) document which can be useful for someone... ?

    Dear all,

    We can share with the Community (related to oracle) document which can be useful for someone... ? Is there a specific place, so that it... where, once that we download... our document is checked and published if it is deemed sufficiently credible... ?

    Thank you and best regards,

    Séverine Suresh

    Question has now moved to the space of the feedback from the community.

    The community provides for the possibility for members to upload documents to the content-> spaces of Documents in the workspace of each product (if available).  However, the feature is currently disabled for most members due to problems with spam, so only a few members (most of Oracle employees) have the necessary permissions to do this.

    The admin studying how they can implement something that would allow members to upload documents, etc., which also has some mechanism to prevent spam.

    There is an idea already created for this: allow users to create community Documents

    for the Admin provided details on their current attitude

  • How to convert a Microsoft Office Publisher document that we use for a monthly newsletter in PDF format?

    How to convert a Microsoft Office Publisher document that we use for a monthly newsletter in PDF format?

    Hi michaelv43076341,

    You cannot export Microsoft Publisher to PDF file using the service export to PDF as it is not a taken supported file format supported file formats. Export PDF, Adobe PDF Pack.

    Kind regards

    Nicos

  • the things that I create within the trial period can be used for commercial purposes, otherwise if I buy CC who will give me the right to use the things I create for commercial purposes

    the things that I create within the trial period can be used for commercial purposes, otherwise if I buy CC who will give me the right to use the things I create for commercial purposes

    While there is really no way to stop you using the trial for commercial purposes (and to be honest, it's probably the best way to know if it works for you, in any case) you need to keep in mind that, after the 30 day trial period you will not is no longer able to work the same day or any other project unless you register it.

  • no user key can be used for the instance of the component integration "Contact."

    I try to use the InsertOrUpdate method on the contacts. All I'm trying to add is a first contact name, first name, telephone number and the owner. Using InsertOrUpdate I get, no user key can be used for the instance of the component integration "Contact."

    I can use the Insert method with no problems. What Miss me? Why the InsertOrUpdate method will not insert it?

    Thank you.

    Hey... I also had the same problem into account.

    so I tried to give the ExternalSystemId. and it worked... It should work once you set the external id.

    Concerning
    Balaji Tr.

Maybe you are looking for

  • How can I create a filter to remove only "junk" from the server?

    One of my email accounts is an important customer. I manage their online customer service. Normally our protocol must always leave all messages on the server, so that one Thunderbird account, I never put delete messages on the server. But the account

  • FN key does not activate anything on my Satellite A105 series

    I have a Satellite A105-S4094 running Vista Ultimate. I looked everywhere, but nobody has solved my problem. When I try to use the FN functions, it does nothing. Correction - It does nothing different than when I do not press the FN key. If I press F

  • He can't change Z3 mode LTE.

    Hello. I bought a new Xperia Z3 Canadian company Wind Mobile. They have no LTE service. After 3 weeks of horrible service, I bought the phone out and went to Virgin Mobile (which has LTE), I got my unlocked Z3, put in the good AFN, and the phone won'

  • THIS ERROR I GOT THE CODE

    WHEN I TRIED TO UPDATE MY WINDOWS VISTA I GET THIS ERROR AND IT SHUTS DOWN MY COMPUTER 8007062 ERROR CODE THANKS FOR YOUR HELP EMAIL - * address email is removed from the privacy *. THANKS AGAIN. STEVE

  • Emotional development server

    I use 4 Expressions after a few updates of Windows 7 Home Premium, I get an error in the development of a missing file server, but it does not say which file it is absent. This is the code that he has a problem with. This code works on the same site