Backup control files on the eve of the database

Hello

One of my friends told me that controlfile cannot be saved with RMAN.

Is this true?


Kind regards
Achyot

deleted

Tags: Database

Similar Questions

  • Retrieve by using the backup control file

    Hello

    I was reading a book called Pro Oracle Database Administration by Darl Kuhn. There, under the theme of "The valuation of the loss of all control files", noted that all data files and control files are restored from a backup, because if we do not restore the data files the RCS in control files would be lower than the data in these scenarios files. Since online redo logs and archived newspapers is applied to the data files to roll forward in a current consistent state and does not roll forward to a control file.

    It is then mentioned to use 'recover the database by using the backup control file' then apply the logs (archive and redo if necessary).

    However I personally tested this script in a test environment and to bring all the backup control file could issue the same command as above and recover the database.

    My question is I know again and archives are applied only to the data files. So how does the control file are synchronized back when we do not restore the backup data files.

    Thank you

    If we do not restore the data files, the RCS in control files would be lower than the data files. Since online redo logs and archived newspapers is applied to the data files to roll forward in a current consistent state and does not roll forward to a control file.

    It would be incorrect you have determined. You can only restore the control files. You can manually create a control file and always do the restore.

    My question is I know again and archives are applied only to the data files. So how does the control file are synchronized back when we do not restore the backup data files.

    The control file is updated as well.

    See you soon,.
    Brian

  • How to get the break control file in the xml editor

    Hi all

    I use oracle Apps r12 and Bi publisher 10g.

    I followed these steps to burst Xml reports

    http://apps2fusion.com/apps/21-technical/251-xmlp-concurrent-program-revisited-with-bursting.

    I created the definition of data and now I need to reach the break control file.

    If the system will generate burst control file after the creation of data definition, or to create a control file.

    Thanks and greetings
    Srikkanth.M

    You must create a control file and upload it.
    You can also check this blog for detailed steps http://garethroberts.blogspot.com/2008/03/bi-publisher-ebs-bursting-101.html

  • Why open DB with RESETLOGS option after either complete or CAMILLE with a backup control file?

    Hi all

    I'm newbie DBA and totally confused when reading about the recovery.

    Why open DB with RESETLOGS option after either complete or CAMILLE with a backup control file?

    Using while will happen after we open DB using resetlogs in above mentioned mode of recovery.. .apart from resetting the log sequence 1?

    Kind regards

    Ritu

    Hi Ritu,

    Google is a very rich source of information...

    I found this article in Hemant which I suppose is very informative for you... Read everything including the comments!

    Hemant Oracle DBA blog: OPEN RESETLOGS without making a recovery

    HTH,

    Thierry

  • hot backup control file?

    I wonder and wants to know... we can put hot backup control file... If so, then isn't the content of the controlfile changed after backup?
    alter database backup controlfile to 'd:\backups\cntrlfilebackup.dbf reuse';
    alter database backup controlfile to trace as 'd:\backups\cntrlfile_trace.txt reuse';
    

    Hemant K Collette

  • Download any file in the database column

    Hi all

    Is it possible that I can download any file in a column of data?

    I use oracle forms 6i and oracle database 10g.

    Kind regards

    Atif Zafar

    Dear Sir

    You can select the built-in file using GET_FILE_NAME. And then copy the file into the database using HOST Directory integrated (using the CMD). After you copy the file in the database directory, you can call the procedure of database to update the database file.

    Manu.

  • .txt or CSV file to the database

    Hi-

    I have a file of text generated by a Pulse Oximeter, what I want is, as the system is receiving the file (CSV .txt) he automaticly walked into a MySql or SQL Server database and generates an SMS message. Thank you

    Concerning

    Tayyab Hussain

    Web services involve using sychronous communication. However, the use case you describe means that asynchronous, the so-called fire-and-forget, communication is better suited to your needs.

    For example, with sychronous communication, the system ignores the exact moment where in a TXT or CSV file will come. Also, when the Treaty system a file, all the other treatments waits until the system ends. This can cause synchronization problems if multiple files enter the system in quick succession.

    ColdFusion is an asynchronous solution that fits the requirements of your use case. The following methods will allow you to receive the file to automatically enter data and generate an SMS message. Use the DirectoryWatcher gateway in ColdFusion to monitor the directory in which the TXT or CSV files are deleted and events of ColdFusion SMS gateway to send SMS messages.

    Whenever a third party files a file in the directory, an event is triggered, setting the DirectoryWatcher in action. Set up a query to the onAdd of listener of the DirectoryWatcher CFC method to store the file in the database.  Following the request, use the sendGatewayMessage method to send the SMS message.

  • Download csv file into the database using apex

    Hi all

    I use apex 4 and express oracle 10g, I need to upload the .csv file in the database for one of my queries, I just discussion forum for solutions, I found too, but some how its does not work for me.

    below mentioned is error and the code


    ERROR:

    ORA-06550: line 38, column 8: PLS-00221: 'V_DATA_ARRAY' is not a procedure or is undefined ORA-06550: line 38, column 8: PL/SQL: statement ignored ORA-06550: line 39, column 8: PLS-00221: 'V_DATA_ARRAY' is not a procedure or is undefined ORA-06550: line 39, column 8: PL/SQL: statement ignored ORA-06550: line 40, column 8: PLS-00221: 'V_DATA_ARRAY' is not a procedure or is undefined ORA-06550 : line 40, column 8: PL/SQL: statement ignored ORA-06550: line 41, column 8: PLS-00221: 'V_DATA_ARRAY' is not a proc
    Error
    Ok


    CODE:
    DECLARE
    v_blob_data BLOB;
    v_blob_len NUMBER;
    V_POSITION NUMBER;
    v_raw_chunk RAW (10000);
    v_char char (1);
    number of c_chunk_len: = 1;
    v_line VARCHAR2 (32767): = NULL;
    v_data_array wwv_flow_global.vc_arr2;
    BEGIN
    -Read data from wwv_flow_files
    Select blob_content from v_blob_data
    of wwv_flow_files where filename = "DDNEW.csv";

    v_blob_len: = dbms_lob.getlength (v_blob_data);
    V_POSITION: = 1;

    -Read and convert binary to a char
    WHILE (v_position < = v_blob_len) LOOP
    v_raw_chunk: = dbms_lob.substr(v_blob_data,c_chunk_len,v_position);
    v_char: = chr (hex_to_decimal (rawtohex (v_raw_chunk)));
    v_line: = v_line | v_char;
    V_POSITION: = v_position + c_chunk_len;
    -When a whole line is retrieved
    IF v_char = Chr (10) THEN
    -Convert comma to: use of wwv_flow_utilities
    v_line: = REPLACE (v_line, ', ' :'); ")
    -Converting each column separated by: in the data table
    v_data_array: = wwv_flow_utilities.string_to_table (v_line);
    -Insert data into the target table
    EXECUTE IMMEDIATE ' insert into TABLE_X (v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11)
    "values (: 1,: 2,: 3: 4:5:6,: 7,: 8,: 9,: 10:11).
    USING
    v_data_array (1),
    v_data_array (2),
    v_data_array (3),
    v_data_array (4);
    v_data_array (5);
    v_data_array (6).
    v_data_array (7);
    v_data_array (8);
    v_data_array (9);
    v_data_array (10);
    v_data_array (11);

    -Remove
    v_line: = NULL;
    END IF;
    END LOOP;
    END;



    what I understand of it's system does not identify v_data_array as table for some reasons, please help me.



    initially the system was in error for hex_to_decimal, but I managed to get this feature on the discussion forum, and now it seems to be ok. but v_data_array problem is still there.



    Thanks in advance

    concerning

    Uday

    Hello

    Correct errors in your sample, I have

    Problem 1

    select blob_content into v_blob_data
    from wwv_flow_files where filename = 'DDNEW.csv'; 
    

    TO

    select blob_content into v_blob_data
    from wwv_flow_files where name = :P1_FILE;
    

    Problem 2

    EXECUTE IMMEDIATE 'insert into TABLE_X (v1, v2, v3, v4 ,v5, v6, v7,v8 ,v9, v10, v11)
    values (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11)'
    USING
    v_data_array(1),
    v_data_array(2),
    v_data_array(3),
    v_data_array(4);
    v_data_array(5);
    v_data_array(6);
    v_data_array(7);
    v_data_array(8);
    v_data_array(9);
    v_data_array(10);
    v_data_array(11);  
    

    TO

    EXECUTE IMMEDIATE 'insert into TABLE_X (v1, v2, v3, v4 ,v5, v6, v7,v8 ,v9, v10, v11)
    values (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11)'
    USING
    v_data_array(1),
    v_data_array(2),
    v_data_array(3),
    v_data_array(4),
    v_data_array(5),
    v_data_array(6),
    v_data_array(7),
    v_data_array(8),
    v_data_array(9),
    v_data_array(10),
    v_data_array(11);  
    

    And I have created table missing

    CREATE TABLE TABLE_X
      (
        v1  VARCHAR2(255),
        v2  VARCHAR2(255),
        v3  VARCHAR2(255),
        v4  VARCHAR2(255),
        v5  VARCHAR2(255),
        v6  VARCHAR2(255),
        v7  VARCHAR2(255),
        v8  VARCHAR2(255),
        v9  VARCHAR2(255),
        v10 VARCHAR2(255),
        v11 VARCHAR2(255)
      );
    

    Kind regards
    Jari

    Published by: jarola November 19, 2010 15:03

  • Recovery of control files. I need to restore database?

    I am using below command procedure files recovery: restore the backup controlfile. I'm not restore database in this procedure with RESTORE DATABASE

    ==================================================================================
    QUESTION: Do I need to restore a full database to be consistent?
    =====================================================

    SQL > select name from v$ controlfile;

    NAME
    --------------------------------------------------------------------------------
    / QA/Data/OBT/QA112QA/Data/control01. CTL
    / QA/Data/OBT/QA112QA/Data/control02. CTL
    / QA/Data/OBT/QA112QA/Data/control03. CTL

    [oracle@rh56b64-1 rmanbackup] $ rm /qa/data/obt/QA112QA/data/control01.ctl /qa/data/obt/QA112QA/data/control02.ctl /qa/data/obt/QA112QA/data/control03.ctl

    SQL > stop the demolition
    ORACLE instance stops.

    SQL > startup
    ORACLE instance started.

    Total System Global Area 275615744 bytes
    Bytes of size 2212496 fixed
    184552816 variable size bytes
    Buffers data 83886080 bytes
    Redo buffers 4964352 bytes
    ORA-00205: error in the identification of control files, see log alerts for more information


    [oracle@rh56b64-1 rmanbackup] $ pwd
    / QA/Data/OBT/rmanbackup

    [oracle@rh56b64-1 rmanbackup] $ ls - ltr
    Total 591368
    -rw - r - 1 oracle oinstall 586711040 24 Dec 19:25 1antmgo6_1_1
    -rw - r - 1 oracle oinstall 1435648 24 Dec 19:25 1dntmgov_1_1
    -rw - r - 1 oracle oinstall 16809984 24 Dec 19:25 d to cfc-1266678734-20121224-0

    -set DBID - get the name of the controlfile autobackup.
    -For example, if the name of auto backup is
    -CTL_SP_BAK_C-1507972899-20050124-00 the the DBID is
    -1266678734. This step is not necessary if the instance is
    -Start RMAN

    RMAN > set dbid 1266678734

    executing command: SET DBID

    RMAN > restore controlfile to ' / qa/data/obt/rmanbackup/EFA-1266678734-20121224-0;

    From restoration to December 24, 12
    using the control file of the target instead of recovery catalog database
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID = 135 type device = DISK

    channel ORA_DISK_1: restore the control file
    channel ORA_DISK_1: restore complete, duration: 00:00:03
    output file name=/qa/data/obt/QA112QA/data/control01.ctl
    output file name=/qa/data/obt/QA112QA/data/control02.ctl
    output file name=/qa/data/obt/QA112QA/data/control03.ctl
    Finished restore at December 24, 12

    RMAN > change the editing of the database;

    mounted database
    output channel: ORA_DISK_1

    RMAN > restore database;

    From back to December 24, 12
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID = 135 type device = DISK

    starting media recovery

    Journal archived for thread 1 sequence 2 is already on the disc in the file /qa/data/obt/QA112QA/data/redo02.log
    Journal archived for thread 1 with sequence 3 is already on the disc in the file /qa/data/obt/QA112QA/data/redo03.log
    Journal archived for thread 1 with sequence 4 is already on the disc in the file /qa/data/obt/QA112QA/data/redo01.log
    Archive log file name=/qa/data/obt/QA112QA/data/redo02.log thread = 1 sequence = 2
    Archive log file name=/qa/data/obt/QA112QA/data/redo03.log thread = 1 = 3 sequence
    Archive log file name=/qa/data/obt/QA112QA/data/redo01.log thread = 1 sequence = 4
    media recovery complete, duration: 00:00:01
    Finished recover at December 24, 12

    RMAN > alter database open resetlogs;

    open database

    Hello

    ==================================================================================
    QUESTION: Do I need to restore a full database to be consistent?
    =====================================================

    You don't have to restore the full database. You just need to restore the backup controlfile and restore the database.
    The steps you mentioned are good restore the controlfile. After recovery, you must open the database in resetlogs.

    Also, you can take a look at this http://neeraj-dba.blogspot.com/2011/04/loss-of-control-file-in-various.html

    Kind regards
    Shivananda

  • Create the new database of complete hot RMAN, atrchivelog and backup control files

    Hi all

    I'm trying to create the new database U1234 of P1234 of full hot RMAN, atrchivelog and control P1234 file backup.

    Here are my steps

    (1) to restore the control file

    #! / bin/sh
    ORACLE_SID = P1234
    export ORACLE_SID
    RMAN nocatalog target / < < EOF | Tee restorecontrol.out
    startup nomount pfile=/u01/oradba/admin/U1234/scripts/restore/restore071009U1234/initP1234.ora;
    the value of DBID 6767676;
    run
    {
    allocate channel d1 type disk;
    controfile catering to ' / u02/oradba/U1234/control/P1234_control01.ctl';
    Restore controlfile to ' / orarman/restore/P1234/cf_P1234_c-00';
    change the editing of the database;
    }
    EXPRESSIONS OF FOLKLORE

    (2) database stop then restart the database with the new contraol file using pfile.

    (3) restore data files

    #! / bin/sh
    ORACLE_SID = P1234
    export ORACLE_SID
    RMAN nocatalog target / < < EOF | Tee restore_dbfiles.out
    Run {}
    the value of newname for datafile 1 to ' / u05/oradba/U1234/dbfile/U1234_system01.dbf';
    the value of newname for datafile 2 to ' / u05/oradba/U1234/dbfile/U1234_undotbs01.dbf';
    the value of newname for datafile 3 to ' / u05/oradba/U1234/dbfile/U1234_sysaux01.dbf';
    the value of newname for datafile 4 to ' / u06/oradba/U1234/dbfile/U1234_users_d01.dbf';
    the value of newname for datafile 5 to ' / u06/oradba/U1234/dbfile/U1234_tools_d01.dbf';
    the value of newname for datafile 6 to ' / u08/oradba/U1234/dbfile/U1234_audt_x01.dbf';
    the value of newname for datafile 7 to ' / u07/oradba/U1234/dbfile/U1234_audt_d01.dbf';
    the value of newname for datafile 8 to ' / u07/oradba/U1234/dbfile/U1234_audt_d02.dbf';
    the value of newname for datafile 9 to ' / u08/oradba/U1234/dbfile/U1234_lh_x01.dbf';
    restore the database;
    switch datafile;
    }
    EXPRESSIONS OF FOLKLORE


    ORA-27063: number of bytes read or written is incorrect
    SVR4 error: 28: no space is available on the device

    Now, I missed the space during the restoration of data files and want to restore remaining who is 3 and 4 of datafile datafile.

    Can you please let me know how I can restore it.

    I need to change the names of database after the successful restoration.

    DBVERSION 10.2.0.1
    operating system: solaris 10

    Thanks in advance.

    Hello..

    Do you have free space? If Yes, then you can try: -.

    RUN {}
    SET NEWNAME for DATAFILE 3 to ' / u05/oradba/U1234/dbfile/U1234_sysaux01.dbf';
    RESTORE THE 3 DATA FILE;
    DATAFILE 3 SWITCH;
    }

    [http://www.oracle-base.com/articles/9i/DBNEWID.php]

    Anand

  • We can to restore the content of a game without the backup control file?

    Hello

    I went in earlier today, a situation when someone (it wasn't me this time!):
    (1) a to back up a database and its archivelogs, in a compressed backup sets;
    (2) pushed the files to another server and
    (3) deleted everything on the server source, including ALL control files and control files.

    As he tried to recover the control file was missing and asked for help... I worked around the issue by using the snapshot controlfile he had forgotten (lucky me!)

    Now I can not remove from my mind the idea that I won't be so lucky the next time... I wonder if there is another way to work around this problem?

    Does anyone have an idea how to restore the contents of a backupset when we lack ALL control files and their backups? I tried to save the backup in the controlfile to a different database, but it does not work. I didn't find anyway to recreate a controlfile with a specific dbid without data files (and those who are in the backupset...).

    Any other idea? Best regards

    Gregory

    Hi arkzoyd,
    Is the only way to restore data from a backup set files using rman an instance and a controlfile so the answer is no.
    Kind regards
    Tycho

  • Incompatible control file and the data after the backup files

    The company that I work has servers where some components are new more, so have a backup in the event of hardware failure. If we intend to do some clones of 1:1 of the current servers to change them in case of emergency. As most of the necessary data is not volatile and we reset stuff in any case, there is no need of replicaton, replace an old version of the database works very well. Now we could not easily get substitutes for our old material, so we had to set up new machines. And that's where my trouble starts, because now I had to actually set up the system and the database rather than do a simple copy of byte to byte. I'm mainly a programmer, using Oracle of 'other' side, but as our DBA is yet to come and the work must be done now...

    So I did some reasearch and decided to do a normal backup of the cold. I have dumped the controlfile, copied data and configuration files to the new server and read the prompt SQL (no mistake there) control file. After some initial hiccups with the system (memory, etc.), I was finally about to start the database, only to get an error ORA-01190 ("1 database or control file is from before the last RESETLOGS").

    I guess I did is a bad thing when you restart the database (used the wrong part of the control file) or when the copy of the data. The original data have split two readers for simplicity and logical, I copied their entire contents. So maybe I don't not copied to little but too?

    As I said in the introductory paragraph, I'm not a DBA, but I'm willing to learn and listen. I don't expect a complete solution, but some guidelines when to look and what to avoid. Any help on this would be appreciated.

    Currently, there are some points need clarification,

    1. you don't need to re-create the control file, if you have a clean shutdown database and copied all the files at the same time (data files, control files etc.)

    2. If you stop DB, copied files of data but do not copy the control at shutdown file, you must re-create the control file.

    3. the error ORA-19909 suggested you resetlog prior to recovery.

    ORA-19909: string data file belongs to an orphan incarnation
    Cause: The data file specified has been restored from a backup that was taken during a period of time that has already been abandoned by a resetlogs operation or Oracle cannot identify what incarnation of database file belongs. The alert log contains more information.
    Action: Restore a backup of this file that belongs to the current or a previous incarnation of the database. If you use RMAN to restore, RMAN automatically selects a good backup.

    4. it would be better that again follow you from scratch the article.

    for example,.

    Copy the files you did copy over the data base to the bottom of the old server,
    modify the control file creation script

    RECOVER DATABASE USING BACKUP CONTROLFILE;
    ALTER DATABASE OPEN RESETLOGS;

  • 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

  • File system backup as well as the database

    Hello, people dear oracle,

    Is it possible to make the backup hot to the application (files) as well as the database layer?

    Best practices in this regard?

    I know it does not seem serious and it is not an urgent issue, but I would appreciate if someone can find more information about this.

    Thank you.

    Yes it is possible (assuming that you are on Linux/Unix). However, you may lose some of the files that are generated at the time wherever you take the backup of the node (s) application layer, as (files of applications simultaneous/out of the newspaper, newspapers of CM... etc).

    Thank you
    Hussein

  • Backup of files on the computer

    Hello

    I'm trying to implement a system with Adobe and because I'll end up with a large number of files, I wonder... Is it possible to save files in the cloud on my computer? I would like to be able to import the files and folders, as it is (not one) to my computer so I can delete them in the app on my ipad.

    Thanks for your help!

    Mary

    Hi MPguillot,

    If you want to save the PDF files you can use free storage space of 5 GB on Adobe Document cloud https://cloud.acrobat.com/recent using Adobe ID, else if you have too many other file formats, you can use services like google or dropbox cloud.

    Kind regards
    Nicos

Maybe you are looking for

  • Satellite L500 - very slow operation

    Hello A Satellite L500 running Windows 7. It has suddenly slowed down, almost at a standstill. If I expose the computer for a few hours just on desktop it goes into mode "Eve" as expected.The problem is that he comes back to life very slowly, taking

  • System hangs when starting

    Someone had problems with t he laptop freezing on the screen of the Toshiba logo when starting? The only way to turn it off is to pull the battery, no other button works. Cannot, press F2 or F12 or button / stop. No response from either of them. Afte

  • Can I switch window 32 bit of 64 bit Windows?

    Upgrade from 32 bit to 64 Hello, I'm upgrading to Vista Ultimate 32-bit 7 Pro 64-bit. And I just bought the upgrade. Or did I have to buy a full version of Windows 7?

  • Windows mail suddenly strange behavior in Windows Vista Ultimate Edition

    Windows mail attachment installation behaves is no longer as he did before some 25 windows updates 14/04/2011. When I receive today a mail with an attachment list of the mails in the Inbox screen poster that an attachment is present however when you

  • Office home and Student 2007 for use on an xp machine.

    I can't seem to send a document by e-mail in outlook windows - how can I go about changing the settings to activate this please. Thank you.