A development database hot backup

RDBMS version: 10.2.0.4
Operating system: Solaris 5.10

One of our development database is in NOARCHIVELOG mode, and we want to keep it this way. Every Sunday, we want to make a complete this DB RMAN backup. Since developers (WE, India, China) could be working from home on Sunday and need to connect to the DB, we cannot stop this DB. I think to create a hot RMAN backup script that will be
1. Place the DB in ARCHIVELOG mode temporarily
2. Startup (OPEN) the DB and Take a FULL BACKUP including the archive logs with a script
 run {
 allocate channel m1 TYPE DISK connect 'sys/fls'  FORMAT   '/u05/rbkp/ptcp_%U.rmb';
 backup as compressed backupset database tag 'full'  plus archivelog; 
}

3. After the Hot backup is done, the shell script should place the DB in MOUNT stage and revert back to NOARCHIVELOG mode   and startup
The RMAN full backup taken using the strategy above held for restoration and recovery?

I can't put the commands for the placement of the DB in ARCHIVELOG mode in the RMAN run block. I can?

You have a valid backup, but you will not be able to perform a FULL restore. You said that you will return noarchivelog mode after the backup. When your database requires recovery of the media in this mode, you will have more often a gap between the last saved archivelog and real online newspaper. If you can only make one point incomplete recovery - until the last archivelog available in the backupset.

Werner

Tags: Database

Similar Questions

  • Smaller databases HOT backups

    Must plan us backups hot for small databases? the size of the database is about 1.5 GB. We have to COMPLETE DB Export daily demand.

    The database is Oracle 8i.

    Must plan us backups hot for small databases? the size of the database is about 1.5 GB. We have to COMPLETE DB Export daily demand.

    Depends on the amount of data, you are allowed to lose with. If zero data lose, then start to use rman to back up the database. If you ok to lose export of data is sufficient.

    Anand

  • hot backup managed user problem

    Jin

    A few days ago, I took the managed user my database hot backup. And then, to check if the data file are in correct mode, I ran the query:

    SQL > select * sauvegardΘ v$.

    FOLDER # STATUS CHANGES # TIMES
    ---------- ------------------ ---------- ---------
    1. NO ASSETS 6302304272 23 JANUARY 10
    2. NO ASSETS 6302305573 23 JANUARY 10
    3. NO ASSETS 6302304259 23 JANUARY 10
    4. NO ASSETS 6302305573 23 JANUARY 10
    5. NO ASSETS 6302305573 23 JANUARY 10
    6 0 NO ASSETS
    7 0 NO ASSETS



    And, I didn't know that all data files have completed end backup mode. But today, when I query v$ datafile_header to check the column fuzzy then I was shocked to see the result below:

    SQL > select fuzzy from v$ datafile_header;

    FUZ
    ---
    YES
    YES
    YES
    YES
    YES
    YES
    YES

    7 selected lines.

    I use oracle 9.2.0.8 on windows server 2003.


    Although the view of backup $ v shows the same 'NOT ACTIVE' because all data files.this make me very confused.


    Please give me some feedback...

    Kind regards

    V$ BACKUP and V$ DATAFILE_HEADER are two different views. Why confuse yourself? They are there to meet different requirements.

    V$ BACKUP is used to check if a data file is in backup mode.

    V$ DATAFILE_HEADER is used to check the header of a data file. Of course a datafile is BLURRED when the database is OPENED - independently of the question whether an online backup is running or has run earlier.

    Hemant K Collette
    http://hemantoracledba.blogspot.com

  • Is make Journal required for backup of database hot and cold water?

    Hi Experts,

    Please explain--again it takes to backup of database hot and cold water?

    Thank you

    Did you backup managed user or RMAN backup. In RMAN backup, you only need logs archived. But in the cold backup managed user, you don't need the redolog also if the PB was properly arrested. Jut copy the DBF and controlfile and put it there to the target server and during the recovery of redolog files will be created automatically.

    Please note that the database must be correctly stopped before cold backup is taken.

  • UNDOTABLESPACE and TABLESPACE TEMP in cold or hot backup database

    Hello

    I have a BACKUP, including logs generated after the backup archive. What is the use of the UNDOTABLESPACE and TABLESPACE TEMP datafile data file backup? When it is used?


    Kind regards

    007

    >
    I have the archives which have all entries are committed in it. Undoinformation is necessary for the restoration and recovery of the database? Can u explain more clearly?
    >

    The archives are as congested entries of redo logs. And the redo logs contain all changes to the database. Information cancellation will be there in the segments of cancellation that there can be some uncommitted transactions active in the segments of cancellation. Cancellation information is necessary to put the database in a consistent state. It is one of very important storage similar to the control file and system tablespace to bring a database

    Edited: Imagine a scenario. You make a backup hot at 07:00. And there are a lot of transactions happening before and during hot backup. For ex, I run a massive update to a table. This will cause the recovery to write logs of recovery that will be eventually written to logs archived. Now, you finish the backup mode. But I have not validated or cancelled my transaction. Say to the reasoning, I roll back the transaction.

    Now, you restore the backup. Do you think that my transaction will be in inconsistent state? Redo logs and archiveed newspapers had my transaction changes/redo entries. If you are not using undo in recovery segments, what will happen to my operation that I rolled back? Without cancel, half of my transaction (even if they were not truly committed) will be sitting in the database. This is where undo tablespace helps us in rolling back the transaction during your recovery. Remember, the cancellation information "peuvent" not all in recovery if you do not a complete database recovery. But Oracle should know that. If you need to undo tablespace in your backup set.

    I hope it's clear now

    Published by: VenkatB on Sep 15, 2011 10:17

  • stop the database when the HOT backup running

    Hello

    Can someone pls tell... WHT can impact on the database if the database will get stop accidentally during the hot running backup...

    Thank you

    There will be no impact on db; because its ORACLE database; very smart and easy to use.

    What happens if the instance goes down for the tablespaces into backup mode?

    When you start the database after that, Oracle will say that it requires recovery. It's because the RCS has been frozen and this is the expected behavior, because if you restore the file copied, it needs to be recovered. (and the only way that oracle has to set its value in the copy is put in the current file while it is copied)

    In this case, you can issue:

    ALTER DATABASE END BACKUP; ALTER DATABASE OPEN; to open the database.

    But your backup is not usable, it must do it again.

    Source: http://knol.google.com/k/oracle-begin-backup-end-backup#

    HTH
    Girish Sharma

  • HOT backup database 10g express edition

    Dear Sir
    I use oracle database 10g express edition with 3.2.1 apex.

    I'm planing to db.here hot backup entire database is 24 x 7 running... fashion archive
    Info

    pFile, control, password file
    System datafile
    SYSAUX datafile
    Undo tablespace file
    temporary tablespace file
    redo log files
    application data tablespace file
    application index tablespace file

    for backup of the entire database HOT including apex WORKSPACE... which tablespace or files are REQUIRED for backup?

    Thank you
    Engr.M.K Chowdhury

    Hello

    To be convinced, you can do the following:

    alter database begin backup;
    

    Then, you check the backup status of your datafilles with the following query:

    select file#, status
    from v$backup
    order by file#;
    

    If the status is ACTIVE, this means that the data files are in backup mode, and you can copy them.

    The redologs online, you can save them but this is not mandatory, because you have logs archived.

    It is important to get all archived logs generated during (and after) the backup.

    To do this, you can run the following right after the hot data files backup:

    alter system archive log current;
    

    It will generate a log archived that you need to include in your backup.

    If you lose all your data (including the redologs online), after you restore the data files, you need to retrieve
    the database. During this operation, you apply all archived logs and then you reset the redologs. It is a
    incomplete recovery.

    However, for the online redo logs, it is important to multiplex to another disk. So, if you lose members on
    a single disk, you can perform a full restore with their copy on the second disc.

    Hope this helps.
    Best regards
    Jean Valentine

  • Closed APB hot backup

    Hello

    Could someone please help me to clarify the following:

    Screen Shot 2014-11-19 at 5.46.41 AM.jpg

    The above is the new guide features 12 c University student.

    Is not "alter database begin backup" called "backup of user management?

    "Hot backup" AFAIK means online of RMAN backup and requires that the database is in log mode archive.

    Also the instructer said "If the PDB is closed, you take a hot backup, that APB is not save, because the files are not in line.» "If the file is not open to the database, RMAN cannot hot backup.

    I just test rman backup in 12.1.0.1 when the PIC is opened and it included also all the PDB, including those that have been closed and in mounted condition. So what is the correct history?

    Thank you!

    Unfortunately, I can ask is no longer the instructor, but I noticed yesterday that I have actually ask your instructor about the same question a year ago. The answer was however really does not correspond to the question. In any case I guess it was just some confusion about the context.

    From what I understand, there are two ways to make a hot backup. One is called "user managed backup" by putting the database in backup mode by using the "alter database begin backup" statement and the other is to use RMAN. Two hot backupl methods require that the database is in log mode archive, but RMAN, by default, unlike "user managed backup" includes storage in offline mode.

    This means while a database is hot backup mode using "user managed backup", cannot close a PDB file and doing so will trigger an error ORA-01149. RMAN however has no such restrictions and will automatically include the backup of the PDB closed.

    I hope that my conclusion is correct and I am considering this thread supposed replied.

  • Hot backup cloning

    Hi all

    I have HOT backu cloning. After taking backup 100000 transaction in the source database.

    I can't open the database cloning.

    SQL > startup pfile='/u01/app/oracle/product/10.2.0/db_1/dbs/inithotdb.ora' nomount;

    ORACLE instance started.

    Total System Global Area 884998144 bytes

    Bytes of size 1222432 fixed

    226494688 variable size bytes

    654311424 of database buffers bytes

    Redo buffers 2969600 bytes

    SQL > @/ home/sham/conttrol.sql.

    Created control file.

    SQL > alter database open resetlogs until cancel;

    ALTER database open resetlogs until cancel

    *

    ERROR on line 1:

    ORA-02288: invalid OPEN mode

    > > Option 2:

    SQL > restore database using backup controlfile until cancel;

    ORA-00279: change 481440 September at 14/04/2014 10:09:15 necessary to screw 1

    ORA-00289: suggestion:

    /U01/app/Oracle/product/10.2.0/Db_1/flash_recovery_area/HOTDB/ARCHIVELOG/2014_04_14/o1_mf_1_2_%U_.arc

    ORA-00280: change 481440 thread 1 is in sequence #2

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

    Cancel

    ORA-01547: WARNING: RECOVER succeeded but OPEN RESETLOGS would get below error

    ORA-01195: online backup of file 1 needs a recovery more match

    ORA-01110: data file 1:

    ' / u01/app/oracle/product/10.2.0/db_1/oradata/hotdb/system01.dbf'

    ORA-01112: media recovery not started

    I generated archives

    SQL > select name from v$ archived_log where first_change # > = & change_no;

    Enter the value of change_no: 481399

    old 1: select name from v$ archived_log where first_change # > = & change_no

    new 1: select name from v$ archived_log where first_change # > = 481399

    NAME

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

    /U01/app/Oracle/product/10.2.0/Db_1/flash_recovery_area/db3/ARCHIVELOG/2014_04_1

    4/o1_mf_1_3_9nptbnb5_.arc

    /U01/app/Oracle/product/10.2.0/Db_1/flash_recovery_area/db3/ARCHIVELOG/2014_04_1

    4/o1_mf_1_4_9npvc3jb_.arc

    /U01/app/Oracle/product/10.2.0/Db_1/flash_recovery_area/db3/ARCHIVELOG/2014_04_1

    4/o1_mf_1_5_9npvc4of_.arc

    /U01/app/Oracle/product/10.2.0/Db_1/flash_recovery_area/db3/ARCHIVELOG/2014_04_1

    4/o1_mf_1_6_9npvcbr3_.arc

    NAME

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

    /U01/app/Oracle/product/10.2.0/Db_1/flash_recovery_area/db3/ARCHIVELOG/2014_04_1

    4/o1_mf_1_7_9npvcdmw_.arc

    /U01/app/Oracle/product/10.2.0/Db_1/flash_recovery_area/db3/ARCHIVELOG/2014_04_1

    4/o1_mf_1_8_9npvcfpq_.arc

    /U01/app/Oracle/product/10.2.0/Db_1/flash_recovery_area/db3/ARCHIVELOG/2014_04_1

    4/o1_mf_1_9_9npvcmp7_.arc

    /U01/app/Oracle/product/10.2.0/Db_1/flash_recovery_area/db3/ARCHIVELOG/2014_04_1

    NAME

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

    4/o1_mf_1_10_9npvcoy8_.arc

    /U01/app/Oracle/product/10.2.0/Db_1/flash_recovery_area/db3/ARCHIVELOG/2014_04_1

    4/o1_mf_1_11_9npvcqcs_.arc

    /U01/app/Oracle/product/10.2.0/Db_1/flash_recovery_area/db3/ARCHIVELOG/2014_04_1

    4/o1_mf_1_12_9npvcx6j_.arc

    /U01/app/Oracle/product/10.2.0/Db_1/flash_recovery_area/db3/ARCHIVELOG/2014_04_1

    4/o1_mf_1_13_9npvd26l_.arc

    NAME

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

    /U01/app/Oracle/product/10.2.0/Db_1/flash_recovery_area/db3/ARCHIVELOG/2014_04_1

    4/o1_mf_1_14_9npvdcfc_.arc

    /U01/app/Oracle/product/10.2.0/Db_1/flash_recovery_area/db3/ARCHIVELOG/2014_04_1

    4/o1_mf_1_15_9npvdkr6_.arc

    /U01/app/Oracle/product/10.2.0/Db_1/flash_recovery_area/db3/ARCHIVELOG/2014_04_1

    4/o1_mf_1_16_9npvdmkn_.arc

    This:

    >/u01/app/oracle/flash_recovery_area/ORCL/archivelog/2014_04_15/o1_mf_1_13_%u_.arc

    would be entered as

    > /u01/app/oracle/flash_recovery_area/ORCL/archivelog/2014_04_15/o1_mf_1_13_9nsh7x1g_.arc

    Should be pretty obvious.  Oracle not knows not the exact file name, %u is a placeholder. You KNOW the exact name of the file.

    Hemant K Collette

  • HOT backup done but the archive deleted after the end, so need to backup from backup

    Hello team,

    I did the sequence up to CLONE HOT: -.

    ALTER database begin backup; and golbal change #= 12564

    alter database end backup; and sequence # 12675 = Street

    Now the problem is that my archives are deleted between 12564 and 12675, street


    I want to take backup for production sequences, how do I do?

    920092 wrote:
    I'm not"allow corruption" and force resetlogs. and export all data damage shortly after?

    That would be foolish.

    Published by: JohnWatson on November 24, 2012 15:14
    Sorry, I'll try to be constructive. Ever, you can restore and recover that backup. Your suggested course of action would result in a corrupted database, so I can't imagine never work. You will be absent from the changes not only to the user data, but a number of data dictionary changes, too. The contradictions are not fixable.

  • Hot backup question

    Our DBA functions are currently outsourced, and I'm just curious about something.

    We asked them to copy a schema from our database of Production (during the day) to its equivalents in the acceptance and Test environments. We found a problem in that the maximum value of a primary key on a table was 100121, and the sequence used to generate the value of the primary key is only 100081.

    Is a risk to a backup in hot and any annex a backup must be taken after hours? Or maybe did something wrong?


    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi

    If the request was to copy only a single schema, then it is unlikely that a "hot" backup would have been used. Most likely exp/imp or expdp/impdp would have been used to export the Production schema and import it into the other two databases.

    The sequences are always 'a problem' when export - import is used when the database is active. Export of the sequence and the export of the table (or tables) using the sequence are not at the same time / SNA so that the values can differ as they have updated in the source database.
    The plan is to restore order in the target database by manually incrementing until it reaches the desired target (100122).

    Hemant K Collette

  • Hot backup

    We take the backup hot at 18:00 (daily, filled in 1-2 hours).
    At 23:30 all archive log files will be separately BackupExec backup and the log files are deleted from the file archive of the Oracle.

    Day before yesterday, for some reason, the copy of the data file hung up (after alter database begin backup has been published in the Hot backup script)
    That the copy has been hung up, 'alter database end backup' has been issued, the PB was in backup mode.
    The average while the deleted BackupExec database journal archive file Archive of the Oracle.

    Yesterday hot backup was completed successfully, only alter database begin backup failed (ORA-01146: cannot start online backup - folder 1 is already in the backup)
    After the hot backup 'alter database end backup' was published successfully.

    Given that logs archiving failed whien database is always in backup mode, will all the data generated duing the applied to the data file backup mode?

    Please notify.

    Thanks in advance,

    Arul

    You hear all changes (including the dml, ddl) applied to the database during the backup mode...

    YES.
    See http://www.bluegecko.net/oracle/oracle-tablespace-hot-backup-mode-revisited/

    Hemant K Collette

  • disk memory and space requirment for development database

    Hi all

    I want to know the disk space and memory required for the configuration of the environment development database.

    Production database size is max 25 to 30 concerts
    and only 3 user will use this database

    on this info my suggesion is to go with 3 GB memory 60 GB of backup space and archivelog. Let me know experts comment on that

    xuv500 wrote:

    I want to know the disk space and memory required for the configuration of the environment development database.

    Production database size is max 25 to 30 concerts
    and only 3 user will use this database

    on this info my suggesion is to go with 3 GB memory 60 GB of backup space and archivelog. Let me know experts comment on that

    How long lasts this string? ++

    So, in other words - it depends. Development environment might include a database logic dev (containing data from prod), one database Q & A logic (to test changes in dev) and a complete copy of the prod database logic (to test the final deployment).

    It could contain an R & D environment - where all data from prod is necessary for data mining research and then to deploy processes of extraction of useful data in the production.

    It could be used in a number of ways - and some of them will be more intensive in the transformation and requiring more data, than the production.

    Ideally - dev environment should look like as close as possible to the prod environment. Ideally, that means a server hardware and similar size, same o/s and Oracle versions and same volumes of data.

  • When use REUSE/SET, no.-ARCHIVELOGS in create controlfile in HOT BACKUP?

    I am an Oracle DBA intern and I have the following queries. Good response with detailed explanations, I want to get my deleted concepts!

    T1 > > while a user managed hot backup, when we create a path for recovery (CREATE CONTROLFILE) control file when we use the control file created with the following options:
    * 1. REUSE / SET *.
    * 2. ARCHIVELOGS / NOARCHIVELOGS *.

    T2 > > in what scenarios re - create the control file while recovering the data from a hot backup files?

    Thanks a ton!
    Kind regards
    Blabla

    Specify REUSE to indicate that existing control files identified by CONTROL_FILES initialization parameter can be reused and overwritten.

    SET the DATABASE to change the name of the database.

  • Hot backup maintained by users script? 11g (Unix) good measures?

    I'm looking for a script to hot backup maintained by users for GR 11, 2 under Unix. My client does not want to use RMAN.

    I think that the main steps are:

    -alter system switch logfile
    -change the system log archive current
    -alter database begin backup
    -alter database backup controlfile (and also the backup on the track)
    -copy the data files, archives, remake, controlfiles to another location
    -take the database out of hotbackup mode
    -J' have also capture spfile and other config files

    Recovery is just restore to the original location, at STARTUP and backup of the end.

    Basically, there may be cases where we have archives that have been made after the hotbackup we want to apply. In this case, it is RECOVER database with the HELP of BACKUP CONTROLFILE until CANCEL in order to apply the archives.

    His right?

    After you take the database out of Hot Backup, you must switch logfile (preferably several times) and backup generated archivelogs.
    You can back up archivelogs while the database is in backup mode but you must also back up the first archivelog (s) after the backup of the end.

    Hemant K Collette

    PS: Oracle provides documentation.
    http://download.Oracle.com/docs/CD/E11882_01/backup.112/e10642/part_umb.htm#BEHBHCBA

    Hemant K Collette

Maybe you are looking for