Location for the control file

Dear friends,

It's my backup script

RUN {}
cross-checking of backup;
overlap archivelog all;
backup INCREMENTAL level 1 format='PATH\%U_%I_%T.bkp database ' tag = 'everyday_full_bkup. '
more archivelog format='PATH\Arch%U_%I_%T.arc' tag = arcbkp;
backup current controlfile;
Validate restore them database;
}

output

I don't know if my control file is also saved in the same location as the backupfile and archivelog tables.

If this is not the case, how can I save it in the same place?

Thank you very much.

user645399 wrote:
I only see it

SQL> show parameter control

NAME                                 TYPE
------------------------------------ --------
control_file_record_keep_time        integer
control_files                        string

control_files will show you files of instance control current runnig, without the aid of the controlfiles.
Use the backup controlfile format.
or check backup controlfile locations with RMAN

RMAN > list backup of controlfile;

Tags: Database

Similar Questions

  • How can I specify location of the control file when the manual creation of DB?

    DB version: 11.2.0.4

    OS: Oracle Linux 6.6

    The CREATE DATABASE command creates the control file.

    CREATE DATABASE command is executed once you start the instance in NOMOUNT State as shown below.

    SQL > startup nomount pfile=$ORACLE_HOME/dbs/initBRCPRD.ora

    SQL > create database 'BRCPRD '.

    MaxInstances 32

    MAXLOGHISTORY 1

    maxLogFiles 192

    maxlogmembers 3

    ..

    .

    .

    < snipped >

    When you create the database manually, we can define the control_files parameter in the init.ora as below and control file will be created at this location. Right?

    control_files = ("" / u01/oradata/BRCPRD/BRCPRD_control01.ctl","/u01/oradata/BRCPRD/BRCPRD_control02.ctl "")

    When I was generating the DB using DBCA GUI creation scripts, it asks to enter the location of the Online redo logs and control files.

    I entered my desired location. But, I couldn't find CONTROL_FILES parameter in the init.ora file generated the DBCA. This is why I got confused. I think that DBCA is internally somehow. So thought I'd post it here.

    Hi John, OP

    Just checked the init.ora file created by DBCA. Although the parameter CONTROL_FILES is undefined, db_create_file_dest = '+ DATA_DG1' was created. OMF default location is defined by the db_create_file_dest parameter.

    So, I could safely use this script for the manual creation of DB, and during the CREATE DATABASE command execution, oracle will place CONTROL_FILES + DATA_DG1 using the format;

    +DiskGroup/dbname/filetype/filetypetag.file.incarnation

  • Change the location for the VMEM file

    Hello

    is it possible to change the location of the .vmem file for example in the .vmx file?

    Thank you

    Peter

    Oops - I made a mistake
    workingdir = "g:\aunt-dorothies-favourite-sausage."

    the correct syntax

  • The best location for the .vswp file

    I use RecoveProint EMC to replicate my virtual machine for use with MRS. While the implimentaion of EMC RecoverPoint recommended that we allocate a hard sepperate for pagefile guest on a non replicated operating system LUN as the page file on the guest has been constantly evolving.  We have seen a significant reduction in the rate change that enabled us to reach the RPO we were after and with our bandwidth allocated for replication.  I am able to reproduce the LUN for the swap of OS files once and leave.   I'm utilizeing now the option "Migrate storage" with in VCenter to consolidate the VM running on a given LUN and I noticed that when I move a hard to the BONE (not hard for the OS swap) two hard files are transferred to the new location.  Then I discovered that to move one of the files hard for a given virtual machine I have to turn off the virtual machine and to migrate the only hard.  Not perfect, but whatever. To do this, I noticed that the "VM workplace" has been changed to the location of my guest operating system swap file hard.

    It asked if it is a good place for hosting the .vswp.  The .vswp has a significant amount of change as well?  And as the OS swap hard matches the basically wiped clean during a restart?

    Hope it makes sense.

    The .vswp file is created on the virtual machine market. Its size is equal to the amount of UNRESERVED vRAM. This means that if you have a virtual machine with 4 GB of vRAM, but 3 GB is reserved, the .vswp is 1 GB. The .vswp is used as a last resort, if there is a physical RAM memory conflict. It is called after the transparent page sharing or balooning. If you allocate no more of RAM physical vRAM, then it will never be used. BUT, it is removed turn off power and created on the power. If the virtual machine is always on, so no worries with a bandwidth of replication.

    You can place files .vswp on local storage or a separate logical unit number. As Andrew said, you can make this a whole cluster framework if you want. It's all about management. If you are comfortable with it being separated from the .vmx, nvram, etc.. Usually, the concern is the amount of what is essentially lost a costly LUN disk, so it is moved to the cheaper SCSI disk. Assuming that there is no oversubscription of RAM, it will never be used. Rather than taking up valuable disk space, why not just use a reserve of memory in order to avoid its use definitely?

    Dave Convery

    VMware vExpert 2009

    http://www.dailyhypervisor.com

    http://Twitter.com/dconvery

    Prudent. We do not want to make of this.

    Bill Watterson, "Calvin and Hobbes".

  • How can I synchronize catalogs on 2 computers that use the same location for the image files?

    I do not understand Lightroom.

    For example, I use LR4.2 on a desktop computer and a laptop computer. Two computers (Windows 7 64-bit) go to the same image files. On my laptop in a folder, I have 42 master images and 5 virtual (virtual events) for a total of 47 images. But when I open LR4.2 on the desktop I do not see the 5 virtual (virtual events) on the 42 master images.

    Why can not I see the 5 virtual events since I can access the exact file and how I see the virtual evidence created on the laptop on the desk.

    It has no function in LR to synchronize catalogs.

    If your pictures are on an external hard drive, you can move the file catalog to this external hard drive, and then you will have a catalogue on your desk and another on the laptop. Just use the one on your external hard drive.

    If your pictures are on a network drive, you can not put the file catalog here, so the only answer I know is to manually transfer the catalog back from one computer to the other file.

    Why can I not see the 5 virtual events since I can access the correct folder

    Lightroom does not save your work to the photo files. It stores your work in the Lightroom catalog file.

  • Change the default location for the recording of files and downloads

    I want to move the user folders of my C drive (which I'll use to program files) on my D drive (which I will use for the data files). for win 7 ASUS laptop. I don't have the 'location' tab in my properties under the "user" folder, it is replaced by 'ASUS WebStorage"tab?  No information or advice will be greatly appreciated. Thank you.

    Change the default save location,

    http://Windows.Microsoft.com/en-us/Windows7/customize-a-library

    http://www.SevenForums.com/tutorials/595-Library-set-save-folder.html

  • How can I change the looks of Access Infrastructure Web location for the virtual machine files?

    How can I change the looks of Access Infrastructure Web location for the virtual machine files?

    My default is set to MACHINES C:\VIRTUAL.  But I want to change it to turn to an external drive connected with an eSata cable. Can I do this?

    Hello

    Add just like a new data store.

    Login to your web access, select your host (not the virtual machines) in the left menu.

    You should see a link on the right side with "Add data store", give it a name of store and add the directory.

    Now, you can add a virtual machine to this place.

    Good luck!

    --

    Wil

    _____________________________________________________

    Visit VMware developers at http://www.vi-toolkit.com wiki

  • How to change the location of the log file in File Appender for log4j when used with the logic of the Web?

    I use log4j with weblogic

    I want to change the location of the log file in File Appender.

    I have tried providing another place but it will create the file in the same place in mydomain

    even if it has been changed in the log4j.xml.

    No idea why it's happening or what I can do to change the location of my log File? Thank you!

    Everything is perfect just replace '-' with "/" in the given file path.

  • ORA-00221: error on write in the control file

    Experts,

    Recently, I have been unable to connect to the console em12c and after reviewing the State of who, I got to know that my instance of database crashed.

    Status of the WHO

    . / emctl status SGD

    Oracle Enterprise Manager Cloud control 12 c Release 2

    Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.

    WebTier is in place

    Oracle Management Server does not work for the following reason:

    Unable to connect to the repository database. SGD will be automatically restarted once he identifies database and the listener are on the rise.

    I connected and checked the alert log which was below error e/s on the controlfile. I'm afraid to say that my control files are multiplexed not and I don't have a valid backup of controlfile.

    alert_log

    Errors in the /u01/app/oracle/diag/rdbms/trcoem/TRCOEM/trace/TRCOEM_lgwr_25655.trc file:

    ORA-00345: redo log write error block 39818 County 15

    ORA-00312: thread 1 1 online journal: ' / u01/app/oracle/oradata/TRCOEM/redo01.log'

    ORA-27072: IO file error

    Linux-x86_64 error: 5: input/output error

    Additional information: 4

    Additional information: 39818

    Additional information:-1

    Kill Jan 28 11:34:57 2014

    Errors in the /u01/app/oracle/diag/rdbms/trcoem/TRCOEM/trace/TRCOEM_ckpt_25659.trc file:

    ORA-00206: error in writing (block 3, block # 1) of the control file

    ORA-00202: control file: ' / u01/app/oracle/oradata/TRCOEM/control01.ctl'

    ORA-27072: IO file error

    Linux-x86_64 error: 5: input/output error

    Additional information: 4

    Additional information: 3

    Additional information:-1

    Errors in the /u01/app/oracle/diag/rdbms/trcoem/TRCOEM/trace/TRCOEM_ckpt_25659.trc file:

    ORA-00221: error about writing about a control file

    ORA-00206: error in writing (block 3, block # 1) of the control file

    ORA-00202: control file: ' / u01/app/oracle/oradata/TRCOEM/control01.ctl'

    ORA-27072: IO file error

    Linux-x86_64 error: 5: input/output error

    Additional information: 4

    Additional information: 3

    Additional information:-1

    Kill Jan 28 11:34:57 2014

    CKPT (ospid: 25659): put an end to litigation because of the error 221

    Please help me what should be the solution to fix this error. Is this just a mistake of e/s on the controlfile, or do I have a disk failure?

    var http://www.filedropper.com/messages

    Version of the OS: RHEL 5 (64-bit)

    Database Version: 11.2.0.3 (64-bit)

    Thank you

    Fran,

    Syslog does not display the IO error.

    I followed the steps below to solve the problem.

    1] stop the database

    [2] restore control01.dbf to the backup location.

    [3] mount the database
    [4] recover database until cancel

    [5] Alter database open resetlogs.

    Also, takes a full cold of RMAN backup of the database, the multiplex control files and recovery logs.

  • Get the former locations of the data files and Redo logs

    Version: 11.2
    Platform: Solaris 10

    When we manage hundreds of DBs, we do not know the locations of all DB files these allows DBs. say a DB goes down and you have all the required RMAN backups.

    When you restore the DB in a new location in the path of the new server, you must run the commands for the data files and ORLs below. But how do we know

    The former location of the data files.

    B. the old location of redo online stores that I can run

    run
    alter database rename file 'oldPath_of_OnlineRedoLogs' to 'newPath_of_OnlineRedoLogs' ;  --- Without this command , the restored control file will still reflect the old control file location
    run {
    set newname for datafile 1 to '/u04/oradata/lmnprod/lmnprod_system01.dbf' ;
    set newname for datafile 2 to '/u04/oradata/lmnprod/lmnprod_sysaux01.dbf' ;
    set newname for datafile 3 to '/u04/oradata/lmnprod/lmnprod_undotbs101.dbf' ;
    set newname for datafile 4 to '/u04/oradata/lmnprod/lmnprod_audit_ts01.dbf' ;
    set newname for datafile 5 to '/u04/oradata/lmnprod/lmnprod_quest_ts01.dbf' ;
    set newname for datafile 6 to '/u04/oradata/lmnprod/lmnprod_yelxr_ts01.dbf' ;
    .
    .
    .
    .
    .
    }

    Hello

    With the help of Oracle 11.2, you can use feature 'set newname for database' using OMF.

    SET NEWNAME FOR DATABASE TO '/oradata/%U';
    RESTORE DATABASE;
    SWITCH DATAFILE ALL;
    SWITCH TEMPFILE ALL;
    RECOVER DATABASE;
    

    After the restore and recover databases (i.e. before resetlog open) you can do to rename redolog. Just a query column member from v$ logfile and deliver ' alter database rename file 'oldPath_of_OnlineRedoLogs' to 'newPath_of_OnlineRedoLogs ';

    When we use the DSO is much easier to use OMF because Oracle automatically creates the directory structure.
    But when we use the file system that the OMF does not serve due DBA dislikes system generated on file system names.

    If you don't like OMF file system, you can use the script on thread below to help restore you using readable for datafile names, tempfile, and redo.

    {message: id = 9866752}

    Kind regards
    Levi Pereira

  • Defining the new path for the data files for restoring using the VALUE of NEWNAME FOR DATABASE

    Version: 11.2.0.3 Linux

    Today, I had to do a restore RMAN to a new server and I came across the post following RTO on the VALUE of NEWNAME FOR DATABASE

    ALTER database open resetlogs upgraded;         error to throw

    So, I thought to use it to indicate the new location of the data files to restore.

    That's what I did
    ===================

    Restore the control file and catalog items to backup using the command of CATALOGUE START WITH. Then I started the restoration
    $ rman target / cmdfile=restore.txt
    
    Recovery Manager: Release 11.2.0.3.0 - Production on Thu Jul 26 04:40:41 2012
    
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    
    connected to target database: SPIKEY (DBID=2576163333, not open)
    
    RMAN> run
    2>  {
    3>  SET NEWNAME FOR DATABASE TO '/fnup/hwrc/oradata/spikey';
    4>  restore database  ;
    5>  }
    6>
    7>
    8>
    executing command: SET NEWNAME
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of set command at 07/26/2012 04:40:43
    RMAN-06970: NEWNAME '/fnup/hwrc/oradata/spikey' for database must include %f or %U format
    
    Recovery Manager complete.
    Don't know how it worked for Levi without %f or %U. So, I added %f
     $ vi restore.txt
     $ cat restore.txt
    run
     {
     SET NEWNAME FOR DATABASE TO '/fnup/hwrc/oradata/spikey/%f';
     restore database  ;
     }
    
    
     $ rman target / cmdfile=restore.txt
    
    Recovery Manager: Release 11.2.0.3.0 - Production on Thu Jul 26 04:45:45 2012
    
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    
    connected to target database: SPIKEY (DBID=2576163333, not open)
    
    RMAN> run
    2>  {
    3>  SET NEWNAME FOR DATABASE TO '/fnup/hwrc/oradata/spikey/%f';
    4>  restore database  ;
    5>  }
    6>
    7>
    8>
    executing command: SET NEWNAME
    
    Starting restore at 26-JUL-12
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=19 device type=DISK
    
    channel ORA_DISK_1: starting datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_DISK_1: restoring datafile 00001 to /fnup/hwrc/oradata/spikey/1
    channel ORA_DISK_1: restoring datafile 00002 to /fnup/hwrc/oradata/spikey/2
    channel ORA_DISK_1: restoring datafile 00003 to /fnup/hwrc/oradata/spikey/3
    channel ORA_DISK_1: restoring datafile 00004 to /fnup/hwrc/oradata/spikey/4
    channel ORA_DISK_1: restoring datafile 00005 to /fnup/hwrc/oradata/spikey/5
    channel ORA_DISK_1: restoring datafile 00006 to /fnup/hwrc/oradata/spikey/6
    channel ORA_DISK_1: restoring datafile 00007 to /fnup/hwrc/oradata/spikey/7
    channel ORA_DISK_1: restoring datafile 00008 to /fnup/hwrc/oradata/spikey/8
    channel ORA_DISK_1: restoring datafile 00009 to /fnup/hwrc/oradata/spikey/9
    channel ORA_DISK_1: reading from backup piece /u07/bkpfolder/SPIKEY_full_01nh0028_1_1_20120725.rmbk
    channel ORA_DISK_1: errors found reading piece handle=/u07/bkpfolder/SPIKEY_full_01nh0028_1_1_20120725.rmbk
    channel ORA_DISK_1: failover to piece handle=/u07/dump/bkpfolder/SPIKEY_full_01nh0028_1_1_20120725.rmbk tag=SPIKEY_FULL
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:01:56
    Finished restore at 26-JUL-12
    
    Recovery Manager complete.
    As you can see, RMAN restore data files to the desired location. But the data file names ended up as
    1
    2
    3
    .
    .      
    .
    9
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -----------| Holy Cow |-----------------------------


    So I had to rename each file as below
    $ mv 1 /fnup/hwrc/oradata/spikey/system01.dbf
    $ mv 2 /fnup/hwrc/oradata/spikey/sysaux01.dbf
    $ mv 3 /fnup/hwrc/oradata/spikey/undotbs01.dbf
    I would have been better in execution of the order for each data below file
    SET NEWNAME FOR DATAFILE
    Now, I think, there is no advantage in using NEWNAME SET of DATABASE to. Only the disadvantages. I did anything wrong above?

    Martin;

    On the issue of the VALUE of NEWNAME FOR DATABASE, you must specify at least one of the first three of the following substitution variables to avoid collisions of names: %b f % U. see semantic entry for TO 'filename' for a description of the possible substitution variables.

    You use %f

    %b
    
    Specifies the filename without the fully qualified directory path. For example, the datafile name /oradata/prod/financial.dbf is transformed to financial.dbf. This variable enables you to preserve the names of the datafiles while you move them to different directory. During backup, it can be used for the creation of image copies. The variable cannot be used for OMF datafiles or backup sets.
    
    %f
    
    Specifies the absolute file number of the datafile for which the new name is generated. For example, if datafile 2 is duplicated, then %f generates the value 2.
    
    %U
    
    Specifies a system-generated unique filename. The name is in the following format: data-D-%d_id-%I_TS-%N_FNO-%f. The %d variable specifies the database name. For example, a possible name might be data-D-prod_id-22398754_TS-users_FNO-7.
    

    Source - E10643-01

    Backup and recovery reference

    http://docs.Oracle.com/CD/E14072_01/backup.112/e10643/rcmsynta2014.htm

    I see CKPT and I agree on that!

    Best regards

    mseberg

  • the steps of the control file multiplexing

    I am preparing for the OCP and I met the case below and I don't know which is the right answer.
    So, could help the guys take the right one and explain why?

    144: you want to protect your database from single point of failure by multiplexing by the control file. Your database is started using SPFILE. You must perform the following tasks
    1. stop the database instance;
    2 copy the control to the new location.
    3 configure the parameter CONTROL_FILES.
    4 restart the instance.
    Select the order in which these tasks must be completed:
    (a) 1,2,3,4
    (b) 3,2,1,4
    (c) 3,1,2,4
    (d) 2,3,1,4

    the answer said c) is good.

    Here is my explanation, please see if it's good?

    to ensure the consistency of the control file before copying again place, we must stop the database.
    Thus, the order is 2 must be after 1, so we got a) or c).
    to configure CONTROL_FILES, you must start the instance at least, so we can eliminate one) and we left with c).

    Correct me if I'm wrong.

    Thanks to a bouquet.

    Published by: PhoenixBai on December 18, 2010 10:46

    PhoenixBai wrote:
    >
    so while editing, it will search both controlfiles...
    >
    instance would check if the two controlfiles exist, and if one of them isn't, then instance will not be able to mount the database right?

    YES, there should be two controlfiles, otherwise you get errror "Can' identity controlfile.

    >

    My question is WHY NOT?
    These two controlfiles are the same, and instance would only need or read one of them to go further, then why not be able to mount the DB?

    It's depends on the parameter control_files you have defined in the PFILE/SPFILE file...
    multiplexing is to avoid the SPOF (single point of failure)...

    as you say, a lost controlfile... without informing you if the oracle database starts with unique controlfile... so, how can you know... If you continued if tomorrow you lost the other? While is it?

    Thank you

  • How can I delete a file on my iOS device that I downloaded from my iCloud? I just want to keep the Preview on my iOS device without using my storage iOS for the entire file.

    How can I delete a file on my iOS device that I downloaded from my iCloud? I just want to keep the Preview on my iOS device without using my storage iOS for the entire file. This means that the file is still in the iCloud and available to be downloaded to any device.

    In practice, I want to be able to scan and download through my documents located in my iCloud and once I didn't need them on my iOS device I would like 'load their return to the cloud' to my storage of the iOS device is not used.

    Thank you in advance to the community!

    Max

    The only way I found to do that once a file has been downloaded is to remove it and add it again through either from Finder on Mac or iCloud.com.

  • Y at - it an easy way to have a version number that the code VI has access to, and which is used as the version number for the executable file and the installer builds?

    Y at - it an easy way to have a version number that the code VI has access to, and which is used as the version number for the executable file and the installer builds? Now whenever I update my software I need to change the global variable where I store the version number, and then when I build I have in hand, open the properties and change the version number for the executable file and the installer. Is there an easy way to make these as all corresponding automatically?

    Have you tried a search? This question comes up a LOT. Here are the results of a search: http://forums.ni.com/t5/forums/searchpage/tab/message?location=Node%3A170&q=application+version#mess...

  • Icons of file type for the .docx files are incorrect

    I started with a version of Microsoft Excel and Word Starter on my computer, but once I started University, I had to install a trial version of Office Professional. Since I installed the trial version and then uninstalled the starter version, my icons of file type for the .docx files resemble white pieces of paper. However, all other types of files shows an icon of Microsoft Word, such as for example .rtf files. Only the .docx icons are incorrect on the hard drive of the computer and to a flash drive I carry school (icons are correct on the flash drive on the school computers).

    I noticed several instances of this question which arises and have tried the following:

    (1) I gone through Control Panel and repair of Microsoft Office Professional 2010 (and restarted the computer).
    (2) I tried to check the default program for the .docx file type and he was placed to Microsoft Word. I have reset WordPad and return to the floor, but that did not always help.
    (3) I tried the command refresh of Cache icon through the Run dialog box.
    4) went through the registry to check the icon for docxfiletype, but my problem with this is that the icon for Microsoft Word is not a default system icon.
    I don't know what else I could try to fix this and I really should leave him alone because my files opens properly, but I think it's very boring and for some reason any he just in general that bothers me.
    Any other suggestions would be welcome!

    sacurasaturn, the professional office changed the icon to its own icon. they think it's better

    You can soothe just automatically change the icon back manually or if you want to be the original or even a custom of your choice

    http://www.SevenForums.com/tutorials/57455-file-extension-icon-change-default-icon.html

    I have a theme of black plague computer software as it is nice and ive messed with it before should not take a lot of space to all the

    also if you want to have the extencion in your registry and have more control on it here is a video tutorial on adding the extencion to the registry

    http://www.YouTube.com/watch?v=m-TW-2ngvKg

    Have fun

Maybe you are looking for