Backup from ASM database

Hi,
I have an ASM database instance in Oracle 10g in windows XP environment.
I want to know how to take backup from ASM database and store it in tape drive.
Thanks in advance.
Regards,
A.Mohammed Rafi

Thanks for the immediate reply.
Since I am very new to this concept could you please let me know how to perform backup through RMAN.
Also let me know whether backup through RMAN generates any dump file so that it can taken to tape or can be used for import.
Once agains thanks a lot....

Similar Messages

  • How to remove Database Files and Backup from ASM

    Hi All,
    Oracle Database 11.2.0.3
    OEL 5.7
    We have a host for restore purposes.
    We execute monthly or quarterly restore operations to verify that I am able to restore a subset of the data in the given amount of time or to other purposes.
    I have a automated script to Clone the Database, but to Clone Database we need remove the old database from ASM before start this operation. I want remove only Database files and keep the configuration (such as oratab/network/ocr and so on).
    Question: There is a easy way to remove these files without connect on ASM or by using DBCA?
    Appreciate any helps.

    user12028775 wrote:
    Hi All,
    Oracle Database 11.2.0.3
    OEL 5.7
    We have a host for restore purposes.
    We execute monthly or quarterly restore operations to verify that I am able to restore a subset of the data in the given amount of time or to other purposes.
    I have a automated script to Clone the Database, but to Clone Database we need remove the old database from ASM before start this operation. I want remove only Database files and keep the configuration (such as oratab/network/ocr and so on).
    Question: There is a easy way to remove these files without connect on ASM or by using DBCA?
    Yes... there is a easy way. Use command DROP DATABASE.
    Use the DROP DATABASE command to delete the target database and, if RMAN is connected to a recovery catalog, unregister it. RMAN removes all datafiles, online redo logs, and control files belonging to the target database. By default, RMAN prompts for confirmation.
    Put this command on your script before clone your database:
    RMAN> CONNECT TARGET SYS@test1
    RMAN> STARTUP FORCE MOUNT
    RMAN> SQL 'ALTER SYSTEM ENABLE RESTRICTED SESSION';
    RMAN> DROP DATABASE INCLUDING BACKUPS NOPROMPT;Regards,
    Levi Pereira

  • DG backup advisory , backup from standby database 11gr2

    Hi everyone
    I'm having a bit of issues with how the backups are setup in my DG environment. I have searched high and low and not really found a easy answer to how to setup your DG backups.
    One says this, another says that. So i'm asking here in the forum.
    What is the correct way to backup a DG environment? Some discussions just shows do a normal backup on the standby only, another says you must backup the controlfiles from the primary as well (this is where my problem starts)
    We recently upgraded a 11gr1 DB to 11gr2 and now the old setup does not work anymore. The old setup was doing backup on standby , and spfile + controlfile backup on primary node. this now fails with  ANU2614E Invalid sequence of function calls to Data Protection for Oracle (backup to tape)
    This particular error happens when I run a backup controlfile on the primary before the backup on the standby. If I skip the controlfile backup on the primary, the standby will backup correctly, including the controlfile + spfile.
    There is also a delete obsolete script running within each script (controlfile backup etc), might also cause issues I guess. But this worked fine in 11gr1.
    So i'm reaching out, trying to figure out the proper way to do backup, everyone says different.
    Sincerely
    Johnny

    What is the correct way to backup a DG environment?
    Neither backing from Primary or Standby is more correct than the other.
    You can use a backup taken on the Standby in order to restore and recover a Primary Database and vice versa.
    Datafiles, Control files and archive backups are interchangeable in a Data Guard environment.
    Where you backup should depend upon load. If the Primary can handle the load without causing a SLA issue then I would backup there.
    The main things I would do with Data Guard and RMAN are as follows:
    Enable Block Change Tracking.
    Always use Autobackup.
    Always use a FRA.
    Keep Flashback Database on.
    And always set this on the Primary  ( CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY; )
    ANU2614E Invalid sequence.
    Odd, If you are using Third party software along with RMAN I might check this:
    Rman fails ORA-19511 ANU2614E Invalid sequence of function calls to Data Protection for Oracle (Doc ID 1300134.1)
    Otherwise I would open a support ticket ASAP.
    Best Regards
    mseberg

  • Restoring RMAN Backup from ASM RAC env to Non ASM standalone environment

    Hi,
    Can anyone please tell me how to restore database using RMAN in a Non ASM environment as my backup file with ASM RAC environment.
    i was also looking for some documentation which provides clear explanation about RMAN backup and Restore in ASM and Non ASM environment.
    Thanks

    You can set the parameter db_file_name_convert in init.ora in you new database with [ID 47325.1]
    or
    you can set parameter "set newname" in your script rman. [ID 549972.1]
    if you have one or two destinations of dbfiles in ASM I seggest to you set parameter db_file_name_convert in init.
    example:
    db_file_name_convert=('+DGDATA','/u01/oradata/');
    remenber you need set log_file_name_convert to.
    log_file_name_convert=('+DGREDO','/u01/redo/');
    if you use "set newname" commands you need set this lines in your script rman.
    set newname for datafile 1 to '/u01/oradata/system01.dbf';
    set newname for datafile 2 to '/u01/oradata/undotbs01.dbf';
    set newname for datafile 3 to '/u01/oradata/sysaux01.dbf';
    set newname for datafile 4 to '/u01/oradata/users01.dbf';
    and every datafiles you need set!
    Edited by: user1107977 on 21/07/2011 13:47

  • AUXILIARY database update using full backup from target database

    Hi,
    I am now facing the problem with how to implement AUXILIARY database update to be consistent with the target database during a certain period (a week). I did a fully backup on our target database everyday using rman. I know it is possible to use expdp to realize it but i want to use the current fully backup to do it. Does anybody has idea or experience with that? Thanks in advance!
    Regards,
    lik

    That's OK. If you don't use RMAN to clone your database. You can create a database just using the cold backup of the primary database simply.
    Important things are
    1) you must catalog all datafiles as image copy level 0 in the cloned database
    RMAN> connect catalog rman/rman@rcvcat (in host 1)
    RMAN> connect target sys/manager@clonedb (in host 2)
    RMAN> catalog datafilecopy
    '/oracle/oradata/CLONE/datafile/abc.dbf',
    '/oracle/oradata/CLONE/datafile/def.dbf',
    '/oracle/oradata/CLONE/datafile/ghi.dbf'
    level 0 tag 'CLONE';
    2) You need to make incrementals of the primary database to refresh the clone database.Make sure that you need to specify a tag for the incremental and the name of tag is the exactly same as the one used step (1).
    RMAN> connect catalog rman/rman@rcvcat (in host 1)
    RMAN> connect target sys/manager@prod (in host 3)
    RMAN> backup incremental level 1 tag 'CLONE' for recover of copy with tag 'CLONE' database format '/backup/%u';
    3) Copy the newly created incrementals (in host 3) to the clone database site (host 2). Make sure the directory must be exactly same.
    $ rcp /backup/<incr_backup> /backup/
    -- rcp <the loc of a incremental in host 3> <the loc of a incremental in host 2>
    4) Apply incrementals to update the clone database. Make sure you provide the tag you specified.
    RMAN> connect catalog rman/rman@rcvcat
    RMAN> connect target sys/manager@clone
    RMAN> recover copy of database with tag 'CLONE';
    5) After update the clone database, then delete the incremental backups and uncatalog the image copies
    RMAN> delete backup tag 'CLONE';
    RMAN> change copy like '/oracle/oradata/CLONE/datafile/%' uncatalog;
    *** As you can see, you can clone a database using any methods. The key is you have to catalog the clone database when you refresh it. After finishing it, then uncatalog..

  • Move datafile from asm datafile database to non asm database

    Hi Nice morning all DBA Guys, I want move datafile from asm database datafile to non asm configurated database. Hoe to move this?
    Datafiles like this
    +DATA/saico/datafile/users.259.631612183
    +DATA/saico/datafile/DBA.XXX.XXXXXXXXX
    Regards
    S.Azar

    The all files movement of asm to non-asm and vice-versa is given in document id 252219.1 on metalink. Please look at the same. In nut shell you have to do the following:
    1. Start your database with ASM.
    2. Create pfile from spfile.
    3. Edit pfile to reflect controlfile name in file system location.
    4. SQL> Startup nomount.
    5. Use RMAN to copy the control file from ASM to NON-ASM.
    RMAN> RESTORE CONTROLFILE FROM '<filename_of_old_control_file>';
    6. SQL> alter database mount;
    7. Use RMAN to copy the database from ASM to NON-ASM.
    RMAN> BACKUP AS COPY DATABASE format '/u01/oradata/nonasmdb/datafile/%U';
    8. From RMAN
    RMAN> SWITCH DATABASE TO COPY;
    Regards.

  • Rman backup and restore from ASM env to Non ASM Environment

    Hi,
    I got a situation where i need to take RMAN Backup from ASM RAC environment and Restore that back to Non ASM standalone database.
    Please let me know the procedure.
    would appreciate your quick response

    874152 wrote:
    Hi,
    I got a situation where i need to take RMAN Backup from ASM RAC environment and Restore that back to Non ASM standalone database.
    Please let me know the procedure.
    would appreciate your quick response
    Hi,
    You can follow this procedure
    1. take the backup to destination host
    2. restore spfile and controlfile
    3. catalog the backup with command 'catalog start with <location of backup>'
    4. use "set newname for datafile" to restore the datafile to non asm disk
    5. restore database
    6. recover database until point in time
    7. rename redolog and tempfile
    8. open database with resetlogs
    9. remove redolog group from another instance
    10. you might want to drop undo tablespace from another instance too
    11. task complete
    Cheers

  • Copy RMAN backups from RAC ASM

    Hi, I have 2-node (RHEL 5.8) RAC database with ASM shared storage. RMAN is doing daily backups on this ASM storage too. How could I copy backups from ASM to another place ? I'm using version 10gR2 db, and there is no "cp" command in asmcmd.

    How could I copy backups from ASM to another place ? I'm using version 10gR2 db, and there is no "cp" command in asmcmd.You can use RMAN to accomplish it.
    Use command
    RMAN>  backup backupset from ... format '<new_location>' ;Example here:
    Re: Move Backups from ASM to Disks
    Using Tag:
    Re: RMAN to both ASM and Network File system
    Edited by: Levi Pereira on Apr 4, 2013 11:39 AM

  • Restore RMAN from different Database Rman backup

    Hi Everybody
    I am practicing Rman so I have one query that how to restore rman backup from another database.
    For Example :
    1. I have Rman backup of DB1 with level 0 and level 1 cumulative database plus archievelog
    2. I need to import or restore Rman backup of DB1 to another database DB2.
    What is the procedure for doing the above queries. Please anyone one help me out.
    I have using oracle 10g r2 running in windows server 2003.
    Thanks in advance.

    These are the steps ; you need to write the appropiate commands for each step: Hope it helps!
    1) Take appropriate RMAN backup of the database db1. Note that you should turn on the CONTROLFILE AUTOBACKUP configuration so that we have the controlfile backed up after the database backup. When we restore the controlfile on new host from this autobackup piece, it will have the information of the latest backup.
    2) Create a PFILE for the destination database db2 using the database db1
    3) Move the backup pieces and the modified INIT.ORA file to the new host. Starting from 10g it is NO longer compulsory to copy the RMAN backup pieces to exactly the same location on the new host as the production location.
    4) Use the pfile created above to STARTUP NOMOUNT the database on the new host
    5) Now invoke RMAN and restore the controlfile specifying the location where the controlfile autobackup piece is restored on this new server. You can mount the database once the controlfile is restored successfully.
    6) You can skip this step if you have restored the RMAN backup pieces to exactly the same location they were backed up on database db1. If this is not the case then you need to catalog the RMAN backup pieces to make RMAN aware of thier new location on the new host. Note that CATALOG BACKUPPIECE command is available only starting from 10g.
    7) Having determined the point up to which media recovery should run, start the restore/recovery using for example:
    RMAN> run {
    2> set until sequence 59 thread 1;
    3> set newname for datafile 1 to '/new_location/system01.dbf';
    4> set newname for datafile 2 to '/new_location/undotbs01.dbf';
    5> set newname for datafile 3 to '/new_location/sysaux01.dbf';
    6> set newname for datafile 4 to '/new_location/users01.dbf';
    7> restore database;
    8> switch datafile all;
    9> recover database;
    10> }

  • RMAN restore from active database, ASM

    I'm attempting to refresh a stage database from a prod database using RMAN restore from active database. Both are on ASM. After working through various hurdles, I've got one issue I'm a bit stuck on. I've got a handful of data files that do NOT have OMF names (ie MSTRDATA/mstrmdpd/datafile/gsa_indx instead of MSTRDATA/mstrmdpd/datafile/gsa_indx.351.714779777) and these are failing when I do the restore. The syntax I'm using in RMAN is as follows:
    duplicate target database to dwstage
    from active database
    spfile parameter_value_convert 'dwprod','dwstage'
    SET DB_FILE_NAME_CONVERT '+DWPROD','+DWSTAGE'
    SET LOG_FILE_NAME_CONVERT '+DWPROD','+DWSTAGE';
    The error message I'm getting is this:
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 04/21/2011 13:26:24
    ORA-17628: Oracle error 19505 returned by remote Oracle server
    continuing other job steps, job failed will not be re-run
    Normally from what I've seen/read this error can be traced back to needing to pre-create the directories for the controlfiles etc, but since 90% of the datafiles copied correctly...
    Any suggestions as to a way around this, or am I going to be forced to restore from a backupset?

    This fails saying that "ORA-12528: TNS:listener: all appropriate instances are blocking new connections" which is quite normal given that the listener is havig a handle in BLOCKED state for this AUXDB as it is in NOMOUNT state.
    Could you please help me on how to proceed?
    One option can be to create the controlfile manually and mount the instance before doing the duplicate. I hope Rman can continue from there.
    Another option is to go for backup based duplicate.
    Is there any other way to go?
    Provide static registration on AUXILIARY side for your auxiliary instance and try again.For example change listener.ora file as
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = AUXDB)
          (ORACLE_HOME = <your oracle home>)
          (SID_NAME = AUXDB)
    LISTENER =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = <auxiliary host/ip>)(PORT = 1521))
      )And restart listener on auxiliary host then try again

  • How to remove archive log files from ASM managed 11g R2 database?

    Hi,
    I am planning to automate deletion of older archive log files from my 11g R2 Production instance which is ASM managed.
    Also want to remove the archive log files files from standby database.
    Please provide your inputs on how can I remove the older archive log files.
    Regards,
    Avinash

    Greetings
    Did you check RMAN,
    RMAN>show all;
    CONFIGURE RETENTION POLICY . . . .
    CONFIGURE ARCHIVELOG DELETION POLICY TO [CLEAR | NONE | APPLIED ON STANDBY];
    DELETE NOPROMPT EXPIRED ARCHIVELOG ALL;
    DELETE NOPROMPT ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE-10';
    This will be part of your RMAN Backup scripts/process
    Check the urls below:
    11gRel2:
    http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmmaint.htm#BRADV90079
    http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmmaint.htm#BRADV89634
    10g:
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14193/toc.htm#sthref45
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmconc1.htm#i1008093
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/maint003.htm#sthref712
    Regards & Thanks
    BN

  • Database Refresh From ASM Filesystem to Local Filesystem

    Hi ALL,
    I am performing a database refresh from production server to a demo server. Our Production database is 11.2.0.1 and it is using ASM filesystem to keep the data, redo and other files in ASM disks.
    On the other hand demo server is not having ASM, all the database files are stored in a local filesytem.
    I have taken a fresh backup of our production database, but I am not sure to perform the restore part as the demo server is not having ASM.
    Can anyone suggest me how to perform this, I mean datafile restore from ASM to local filesystem.
    Any usefull links will be helpful.
    Regards,
    Arijit

    Hello,
    You can restore the backup of your Production database which is using ASM to your demo server (using file system).
    Make sure that the control_files parameter in the pfile/spfile is pointing to the file system location where you want to have contol files located on the demo server.
    Next, before you use the restore command to restore the database, provide the location of the datafile where you need to restore using the "set newname" clause.
    run
    set newname for datafile 1 to '<file-system-location-on-demo-server>';
    set newname for datafile 2 to '<file-system-location-on-demo-server>';
    restore database;
    switch datafile all;
    recover database;
    }

  • Failover Database - From ASM to Filesystem

    Hi,
    Based on this article : http://manchev.org/2012/01/building-a-failover-database-using-oracle-database-11g-standard-edition-and-file-watchers/
    I would like to know if it would be possible to perform the same operation but in a case where my source database is using ASM and the failover one isnt.
    I think this (http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmasmmi.htm#i1014926) should apply , but I haven't got the time to test it myself just yet so I thought to try out here and maybe get some valuable information/feedback on it.
    Thanks in advance.
    Greetings,
    N K

    Yes that's correct.
    The control file can be restored using the from/to clause. Generate a control file backup from the primary (which is on the FRA) and restore it:
    restore controlfile from '/backup/controlfile.bkp' to '/u01/control_file_path.ctl';And the datafiles new location can be set during restore as you pointed out, with switch datafile all at the end:
    SET NEWNAME FOR DATAFILE 1 TO NEW;
    SET NEWNAME FOR DATAFILE 2 TO NEW;
    SET NEWNAME FOR DATAFILE 3 TO NEW;
    SET NEWNAME FOR DATAFILE 4 TO NEW;
    restore database;
    SWITCH DATAFILE ALL;"TO NEW" clause is if you plan on using OMF with the File System, through the db_create_file_dest. If the datafiles are to be spread out on different mount points you can name them individually, like:
    SET NEWNAME FOR DATAFILE 1 TO '/path/to/datafile1.dbf';
    SWITCH DATAFILE ALL;Also don't forget to clear (rebuild) your redo log files after restore, setting DB_CREATE_ONLINE_LOG_DEST_n appropriately.

  • Extracting Backups Sets from ASM with RMAN (10g)

    If I backup my database to my flash recovery area in ASM using RMAN, can I then extract those backup sets from ASM and turn them into normal file system files?
    I think I read that you can do this but I just wanted to be sure. I don't need super detail on this, just get me pointed in the right direction.
    I've certainly read about extracting a database from ASM, but I'm just not sure how I'd migrate an individual, arbitrary file.

    http://www.oracle.com/technology/oramag/oracle/04-nov/o64rman.html#T2 describes something like this, in the "Adding ASM" section. Here's the excerpt:
    Files inside an ASM location are not accessible as operating system files. To get the backups and archived logs from the ASM disk group to regular disks and tapes, John will use RMAN to back up the recovery area from ASM to tape (at the network backup server) through the following command:
    BACKUP RECOVERY AREA;
    This backs up the entire recovery area, including data file backups, archived logs, and control file backups from the ASM disk group to the tape.
    So, this would lead us to believe that what we want can be done. However, I read somewhere in the RMAN doc that BACKUP RECOVERY AREA will only create a backup to an sbt (i.e. tape) device. That is, it would appear that RMAN cannot store backups in ASM, and also allow you to "export" them to disk. You can export to tape, but not to disk.
    This is disconcerting. I'd like to store all Oracle-related files under ASM, but I'd also like to allow our tape backup procedures (which I am not in control of, and which do more than just backup Oracle) to easily just grab OS files that I put out there.

  • Move database to new server from ASM to FS

    Hey, I have to move my database from ASM to filesystem storge (10.2.0.3 on sles 10 sp1)
    The new server is also sles 10 sp1.
    Can I just do an full export on the source site, and an import on the target site ? Will that work ?
    Any other steps to perform ?
    Chris

    Hi,
    1. Export db wlth FULL=Y . and then we have to create new database at target location and then import operation have to done.
    2.we can take rman backup, restore rman backup in target location. This method will reduce the complexity
    take backup through Rman.
    Target location:-
    1. export ORACLE_SID=xxx
    2. rman target /
    3. startup nomount
    4.RMAN> RESTORE CONTROLFILE FROM 'backup piece';
    5.RMAN> alter database mount;
    6.
    set newname for datafile '+DG/datafile.dbf' to 'FS/location';(do for all datafiles)
    restore database;
    switch datafile all;}
    7. alter database rename file '+DG/datafile.dbf' to 'FS/location';(do for all datafiles)
    8.alter database open;
    follow these steps from ASM TO FS.
    Edited by: startup on May 23, 2013 7:41 PM

Maybe you are looking for

  • Using a Single Library for Entire Site and When to Use Subsites

    I'm hoping a discussion I am having with my coworkers can be solved.  We are trying to decide two things: Should the entire office be under a single site or should each division have their own site?  Our Office has 5 divisions that contain 17 Branche

  • Need help with pre ordering the iphone 4s.

    I did everything and im at the screen where it tells you how much it is total and everything you chose. But it says No text plan, it didnt ask me about a text plan, is this something i have to do with my carrier to get a text plan?

  • Adobe Forms in ABAP Image upload from a local drive

    Hello, Can anybody suggest me the procedure, how to upload the image field dynamically of an employee which is existing in PA30 to SAP interactive forms (SFP). I have gone through many forums but could not able to find any right solution on it.. and

  • Archiving Material Master Record

    Hi Friends, I have marked few materials flagged for deletion by transaction code MM06. Then in transaction code MM71, I create a variant, then maintained the variant, then I gave the start date, spool request and execute. The system shows a message "

  • What's a nice FHS-compliant spot to put all my media?

    I recently migrated from Ubuntu to Arch and am loving it so far (although I have nothing bad to say about Ubuntu). I got almost everything set up how I want it, except all my music/movies/videos/etc. In Ubuntu I just put it all in my home folder but