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

Tags: Database

Similar Questions

  • 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 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

  • Where is the official Oracle documentation that describes the hot backup?

    I used the cruelly utility failure to search for Metalink and Google, but the closest thing, I found is a description on "ask Tom".

    I'm looking for official Oracle documentation that describes what is happening internally during a hot backup. There are many websites and blogs out there that describe, but I'm looking for a description of Oracle themselves. The only things I found in the Oracle documentation until now is to know how to start and stop the hot backup, but not what is happening internally. GR 11, 2 preference if it made a difference.

    Thanks in advance.

    Hello;

    Its probably gone RMAN covers this.

    The closest would be:

    Backup and recovery reference 11g Release 2 (11.2) E10643-06

    Or

    Backup and recovery User Guide 11 g Release 2 (11.2) E10642-05

    See Chapter 8 - Concepts of backup RMAN - online backups and backup Mode

    Best regards

    mseberg

  • 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

  • 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.

  • 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

  • More redo generation during hot backup

    Hi all
    I want to know more over the generation of redo during hot backup.
    I know that in this case the data file headers are frozen. But I want to know how the whole thing goes. All did this experiment practically?
    Did any problems of performance because of this?



    Thank you
    Rafi.

    Hmm well, it basically means like this, assuming you have a block filled with 1s like that,

    ----
    1
    ----
    1
    ----
    1
    ----
    

    And this is the copy of the block that was sent to the backup by you and was taken over by the command cp o/s. While the cp command will make a backup of the block as it can be read much more small piece that, suppose that he would start with the 1st part of the block and starts copying to the o/s somewhere. At the same time feel, DBWR peaks upwards again and written on block 2, like that.

    ----
    1
    ----
    2
    ----
    1
    ----
    

    It can from the flie is always online and is available to be used by the database. Now, you have a problem. The image you sent for backup isn't th that is here now. Next time what cp command would return, he would find 2 instead of one in the 2nd part of blok and copy it since it is a mute command when comes to oracle. So now that you have in what you wanted in the backup and the backup are not the same images. You have a cracked now block which is of no use for the recovery. To this end, in the case of the hot backup, the first image of the block time is copied and is maintained. This saves us from the State to have 2 there. We have all the 1s who sent us. Now, if in the case, dbwr also changes the block, the original help oracle reover the block properly.

    HTH
    Aman...

  • archivelog mode and hot backup

    Hello
    in g R2
    This is the hot backup:
    online backup
    
    A backup of one or more datafiles taken while a database is open and the datafiles are online. 
    When you make a user-managed backup while the database is open, you must put the 
    tablespaces in backup mode by issuing an ALTER TABLESPACE BEGIN BACKUP command. 
    (You can also use ALTER DATABASE BEGIN BACKUP to put all tablespaces in your database into backup mode in one step.)
    would we in log mode archive to do an online backup?

    Thank you.

    user522961 wrote:
    Hello
    in g R2
    This is the hot backup:

    would we in log mode archive to do an online backup?

    Yes. It is a must!

    HTH
    Aman...

  • excluding tablespace in the hot backup

    Hi master,

    I use oracle 10g on linux. We use the hot backup to date strategy to back up the database.


    but I think that I support too much data. I now have tablespeces in my database

    System
    users
    Temp
    Cancel
    index
    perfstat
    blob1
    tool
    etc. and default tablespace installed by oracle at installation time.

    I can I exclude some of the hot backup table spaces so that it consumes less time to back up the database?


    can I exclude spaces of temp, perstat and tool table?

    It will cause no impact on the database and?

    Thanks and greetings
    VD

    DON'T think to drop your UNDO tablespace. You use it to save "in front of your block images.
    Re: cancel

  • Any method of maintaining different user in Essbase sessions

    Hello

    A question that comes usually is to assume that you have a person who hangs and sends the data values in a cube and another person B who locks and sends the different values for the same combination of dimension members, is there anyway essbase shows the person's data, he entered and data B in B?

    Kind regards
    Alex Thomas

    Hi Alex,

    It's not a way to maintain different user sessions. What is common in budgeting applications say is to have different scenarios or versions depending on what information you send in. For example, you could have versions BROUILLON1 and Draft2 of a Budget where user1 sends test data in BROUILLON1 and user2 sends data in draft2. Once they are both pleased with their figures in the budget, then you might have a calc script/trade rule that copies of the buget areas they work in a final version. Be careful with that obviously you don't want to hang around 17 versions.

    You can use the SSAUDIT. Setting the CFG. This follows exactly what data was sent in the cube, and by whom, but still, he maintains no different sessions, logging just exactly what was sent in the cube. This can affect the performance and you also need a separate process to interpret the files SSAUDIT to make sense out of them.

    I hope this helps.

    Gee

  • How to make my user scripts work again

    I have a user scripts that I use for my zoo game I play a they worked fine until yesterday. I get the shield who told me this page, I is not course when I mark it dangerous by firefox one do a refresh still can not get my user script

    It has something to do with firefox blocks dangerous content, but the REF info says that the gray shield in the address bar that your supposed to click on to make them run does not work for me at all. He tells me I'm in jeopardy one when I update right pouf to the gray shield again. So I have to go back a look for more information. the firefox support.

  • V21 Firefox cannot find the files if file *.htm used "style windows" path slashes to the java scripts (on Unix, hosting with apache)

    Hello. I find a strange behavior of Firefox v21. If the 'windows' path used *.htm file slashes to the java scripts (on Unix, hosting with apache). Firefox says 404, but other browsers (such as Opera, Chrome, IE10) works properly with this.

    You should use slashes in links so that they work properly in Firefox, otherwise Firefox will escape them that 5% C as you can see if you would them hover in the case of a real link (this is obviously not possible in this case).

  • Assign a user script to a button

    How can I assign a button to a .jsx for quicker access? Currently, I use 6 mouse clicks and keyboard 3 calls!

    Well... your description was not helpful at all... but:

    The user script must be copied to the folder '%.. programfiles%/abobe/' write protected where all other scripts can also be found.

    Honestly: it is not easy to use, but it works somehow at least.

  • 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

Maybe you are looking for

  • Firefox hangs for a while when the download window appears

    Whenever I have start a file download (regardless of its size), Firefox hangs for a few seconds, sometimes more. I deleted the downloads.sqlite file and it helped for a few days but it started happening again. I deleted new downloads.sqlite but this

  • Linking the Photos to iPhoto library

    My library is on an external hard drive (150 + GB). I installed my MacBookAir from the Mavericks to El Capitan (I jumped from Yosemite). I don't want to use iCloud for storing photos. How directly the Photos to find my external hard disk iPhotos libr

  • HP 14-g008au: driver does not display hp 14-g008au

  • Clicking HP deskjet D5560

    My printer makes a clicking noise before each printing. The noise comes from the right inside of the machine looking from the front (the area is ink nozzel cleaning area). There is no paper jammed anywhere. The prints are great. The noise occurs when

  • no available in Media player dvd player

    recently updated Vista with service pack 2.  My Windows Media Player: (1) in 'View' is no longer click on DVD features, (2) according to 'Play' can no longer have DVD, VCD or audio CD available.  In other words, no opportunity to read the CD in the C