Offline Tablespace Backup?

Please let me know how to take Backup of Offline Tablespace?
I will be very thankful to all of you

If the tablespace is already in offline mode, then just copy the datafiles of that tablespace to your backup destination. When ever you want to restore it, Just copy the datafiles of the tablespace to the location it is to be restored and then make it online. The checkpoint will start and it will synchronise all the datafile headers and controlfile with the CKPT info.
Why would you require to backup an offline tablespace regularly? It just needs to be backed up once.
Regards,
Sanju

Similar Messages

  • If the offline tablespace will be backuped when I issue the BACKUP DATABASE

    will the offline tablespace be backuped if I issue the BACKUP DATABASE command?------No.148
    Message was edited by:
    frank.qian

    Simple answer is yes. Use the SKIP OFFLINE to skip offline tablespaces.
    sys@ORCL> create tablespace test datafile 'c:\oracle\product\10.2.0\oradata\orcl\test01.dbf' size 100m autoextend on
      2  extent management local uniform size 1m;
    Tablespace created.
    Elapsed: 00:00:06.96
    sys@ORCL> alter tablespace test offline;
    Tablespace altered.
    Elapsed: 00:00:02.54
    sys@ORCL> select tablespace_name, status from dba_tablespaces;
    TABLESPACE_NAME                STATUS
    SYSTEM                         ONLINE
    UNDOTBS1                       ONLINE
    SYSAUX                         ONLINE
    TEMP                           ONLINE
    USERS                          ONLINE
    EXAMPLE                        ONLINE
    TEST                           OFFLINE
    7 rows selected.
    Elapsed: 00:00:00.01
    sys@ORCL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    c:\sql>rman
    Recovery Manager: Release 10.2.0.2.0 - Production on Mon Jan 15 11:40:06 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    RMAN> connect target /
    connected to target database: ORCL (DBID=1133000557)
    RMAN> backup database;
    Starting backup at 15-JAN-07
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=159 devtype=DISK
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF
    input datafile fno=00002 name=C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF
    input datafile fno=00003 name=C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF
    input datafile fno=00005 name=C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF
    input datafile fno=00006 name=C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEST01.DBF
    input datafile fno=00004 name=C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF
    channel ORA_DISK_1: starting piece 1 at 15-JAN-07
    channel ORA_DISK_1: finished piece 1 at 15-JAN-07
    piece handle=C:\ORACLE\PRODUCT\10.2.0\ORADATA\BACKUP\0AI7IGP2_1_1 tag=TAG20070115T114018 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:01:15
    Finished backup at 15-JAN-07
    Starting Control File and SPFILE Autobackup at 15-JAN-07
    piece handle=C:\ORACLE\PRODUCT\10.2.0\ORADATA\BACKUP\C-1133000557-20070115-02 comment=NONE
    Finished Control File and SPFILE Autobackup at 15-JAN-07
    RMAN>

  • Tablespace Backup

    SQL> CREATE TABLESPACE RMANTBS
    DATAFILE 'C:\Oracle10g\Ora10gdata\oradb\RMANTBS1.DBF' SIZE 10M
    EXTENT MANAGEMENT LOCAL AUTOALLOCATE
    SEGMENT SPACE MANAGEMENT AUTO;
    RMAN> BACKUP TABLESPACE RMANTBS;
    SQL> DROP TABLESPACE RMANTBS INCLUDING CONTENTS AND DATAFILES;.. Accidentally
    How can we recover the tablespace..using the Tablespace backup
    ..But I can do a Incomplete Recovery successfully..
    RMAN> run {
    2> shutdown immediate;
    3> startup mount;
    4> sql " alter session set nls_date_format=''yy-mm-dd hh24:mi:ss'' ";
    5> set until time '09-11-24 12:30:00';
    6> restore database;
    7> recover database;
    8> alter database open resetlogs;
    9> }
    Edited by: Verma on Nov 24, 2009 10:28 AM

    DROP TABLESPACE RMANTBS INCLUDING CONTENTS AND DATAFILES;..
    Will cause the control file to be updated also.
    So RMAN> SQL 'ALTER TABLESPACE RMANTBS OFFLINE';..
    gives ERROR..
    RMAN> SQL 'ALTER TABLESPACE RMANTBS OFFLINE';
    sql statement: ALTER TABLESPACE RMANTBS OFFLINE
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 11/25/2009 17:21:27
    RMAN-11003: failure during parse/execution of SQL statement: ALTER TABLESPACE RMANTBS OFFLINE
    ORA-00959: tablespace 'RMANTBS' does not exist..
    So only if the physical file is corrupted your solution is Ok..which I know..
    Or you have to go for point-in-time recovery..which was Ok

  • Restoring from RMAN tablespace backup ; Few questions

    11.2.0.3/RHEL 5.8
    We have a RAC DB which is used by more than 20 applications. One schema for each application and one tablespace for each schema.
    We have a schema with 130gb in size. All Objects in this schema use a single tablespace MCS_DATA.
    This weekend we are applying some changes involving DDL, Code and Data .Usually we take an expdp backup of the schema before the activity starts and later if something goes wrong with script deployment we'll revert to old state by dropping the schema and doing an impdp from the expdp backup.
    Question1.
    Can we do an RMAN tablespace only backup and if something goes wrong with script deployment can we drop the schema and the tablespace and then create an empty schema and then restore from the tablespace backup ?
    Question2.
    If the above is possible , can you explain how it is going to work out because we are essentially plugging (restore,recover) in a tablespace to the database. Any potential problems ?
    Question3. If the above (Question1) is possible, will restore/recover of this tablespace require a downtime for the entire DB ?

    Tom;
    If you are talking about RMAN TSPITR then yes you can. See - Purpose of RMAN TSPTIR in Backup and Recovery User's Guide E10642-03.
    The problem with TSPTIR is bulk. You need a lot of disk space to create a copy and then data pump the information out and back in. I just tested this on 11.2.0.3 and its slow. RMAN created a script which produced an AUX instance and did the data pump, but I had clean up afterwards. If it errors out you can have an AUX instance hanging out in the background.
    For TSPTIR you will need an area on the disk to server as an auxiliary destination large enough to hold what you are recovering plus the SYSTEM, UNDO and TEMP tablespaces.
    I would probably look at Transportable tablespaces as a possible option too.
    http://docs.oracle.com/cd/E25054_01/backup.1111/e10642/rcmttbsb.htm
    E10642-03 has a section for recovering a tablespace in chapter 2. The Tablespace must be offline, but the database can be up.
    This uses "restore tablespace" and "recover tablespace" commands. You would perform this type of recovery when you are say missing a datafile. You can recover any tablespace except SYSTEM and UNDO with this.
    Data Pump might be an option too, but given your tablespace size I would have worries about recovery time. Oracle lets you set compression
    and a limit to each file produced.
    expdp TABLESPACES=YOUR_DATA dumpfile=DATA_PUMP_DIR:ts_dumps_%U.dmp LOGFILE=DATA_PUMP_DIR:ts_dumps_log.log parallel=2 filesize=10G compression=ALL
    Given the size of your database a better option might be something like Data Guard as your recovery time would be brutal.
    Best Regards
    mseberg

  • Restoring a Rman Tablespace backup to noarchilog mode database

    Hi All,
    Is it possible to take a backup of a tablespace through rman from archivelog mode database and restore the same to noarchivelog mode database through rman ? Please suggest if it is not possible why it is not possible.
    We have a testing database from which a tablespace has been dropped. Can it be restored from the Prod database ?
    Please help. The database version is 9.2.0.8..

    Fabricio_Jorge wrote:
    I think it's possible to backup/restore a single tablespace:
    BACKUP TABLESPACE nome_tablespace [FORMAT 'path/bkp_file'];
    Being able to backup a single tablespace is NOT the same as grafting that TS into a different database.
    First, you are not really backing up a 'tablespace'. You are backing up files. In this case, just the files that implement the named TS, but files, nevertheless. And files belong to a database. Header info in each file defines, among other things, the dbid of the database the file belongs to. And the current scn. That will be a severe mis-match if you tried to 'restore' it to some other db.

  • Offline & online backups????

    Hi all,
             Why are the advantages & disadvantages of offline & online backups??

    Hi Ravi,
    Joydeep has described it very well.
    Just to add a bit:
    If you are wondering what happens to the online redo log files while the online backup is running:
    <i>During online backup, BRBACKUP does not backup the online redo log files. Instead, BRBACKUP generates online redo log switches so that all the online redo log files written during the online backup are copied into the archive directory. These offline redo log files then need to be backed up, since an online backup is consistent only in conjunction with these redo log files. The BRARCHIVE program backs up the offline redo log files.</i>
    So the idea that during an online backup some redo files might be missed, is explained from the above paragraph.
    Regards,
    Loukas

  • Full offline disk backup

    i want to take full offline disk backup on mount point /bakoffline with the help of brtools.
    how can i do this.
    SAP -> ECC6
    Database -> Oracle10g
    OS --> AIX
    Tks.
    FC..

    Read this guide .....
    SAP on Oracle
    Rgds..

  • Regarding OFFLINE TABLESPACES

    Hi all,
    You will say this guy have so many qusetions... but when I try my level best to get the answer from searchin on internet.. some books and by asking other people.. and when I don't get satisfied answer, I always choose OTN....
    Right now I have a question and this is related to live secnario...
    My table is partitioned and each partition is placed in different tablespace. There are 12 partitions which holds the data for each quarter of every year. So if I take the tablespace that belongs to year 2004 and 2005 OFFLINE, and fire the query to SELECT data from that table, will ORACLE ignore the data read from the OFFLINE tablespaces?
    In other words, I want to know, does Oracle ignores read from the offline tablespaces?
    Your answer will really help me to proceed with my activity!
    Thanks in advance
    Himanshu Dabir

    Few corrections:
    He said, he able to extract the value from the offline tablespace, which is not possible, everybody knows, he definetly getting it from shared pool, that's why Isuggested him to flush shared pool, so the next time, he would definatly not goint to get it.
    For your kind information, data blocks are kept in the bufer cache not in shared pool as you think.
    Also, I guess, when you make datafile offline, not with immediate option, oracle must updates its datafile header with the offline status flag and data block belonging might be flushed back to disk from the buffer cache.
    This is for the original poster:
    when your query criteria is not going to access data from those offlne datafiles, why the hell you wanna bring those datafile to offine? I dont see anymeaning of it.
    for any specific reasons doing so?
    You may make them to read only in order to avoid getting ORA errors, in case of accessing data from those datafiles.
    Jaffar

  • Query: Tablespace backup Vs Full database backup

    Which is an better option- Tablespace Backup or Full database backup.What are the adv and disadv of each?
    Rgds,

    RMAN> backup tablespace users;
    Starting backup at 27-AUG-11
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    input datafile file number=00004 name=/u02/oradata/TEST/datafile/o1_mf_users_6o06qs2q_.dbf
    channel ORA_DISK_1: starting piece 1 at 27-AUG-11
    channel ORA_DISK_1: finished piece 1 at 27-AUG-11
    piece handle=/u02/fra/TEST/backupset/2011_08_27/o1_mf_nnndf_TAG20110827T163233_75l0015r_.bkp tag=TAG20110827T163233 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    Finished backup at 27-AUG-11

  • Tablespace Backup & Restore

    Hi Team,
    I am working on the TableSpace Backup & restore operation.
    I can able to take backup of the tablespace using the rman script. Also I can able to restore that table space properly without any errors.
    Now my query is that How can I verify that tablespace is restored properly or not.
    Like in whole database backup & restore , we will create table in database & take a backup of the whole database after that we delete that table. & then we will perfom the Incomplete recovery to get back that table.
    Can we have any method to verify for Tabalespace.?
    Plz comment ,
    Regards,
    S. Tiwari

    Hi edrian,
    Thanks for the reply,
    I had created the table in the EXAMPLE tablespace as testing
    Now after that I had taken the backup of EXAMPLE tablespace using follwing script.
    run
    BACKUP TABLESPACE 'EXAMPLE' FORMAT 'C:\BK\EXAMPLE_%d_%s';
    & its taking the tablespace backup succesfully also .
    Now after that I am dropping that table from the database.
    If I do Incomplete recovey for the EXAMLE tablespace , I am expecting the table back in the database. But its not there in the database.
    I am using Incomplete restore Script as given below.
    run
    RESTORE TABLESPACE "EXAMPLE" UNTIL TIME "to_date('Feb 08 2007 11:54:56','Mon DD YYYY HH24:MI:SS')";
    Plz comment if I am going wrong anywhere. Also suggest me the proper Incomplete tablespace restore script.
    Regards,
    S. Tiwari

  • Option for cpio an offline DB Backup

    Hi, I like to know which options are available for performing a clean (no fuzzy bits, no problem !) cpio for an offline database backup, you know: datafiles, redo log files, control files, etc.).
    On Unix you would code a script with a combination of find and cpio commands. This would also apply to Linux. I need to know which specific options of cpio (-ocv ...) are require for this clean and safe backup.
    Thanks ....!

    Sorry. I do have the error
    cpio: xxxxxx "valor demasiado grande para el tipo de datos definido. Which translate to something like : value to large for the specified data type.

  • Automatic Offline Full Backup Plan: CQ5 Installed As a Service

    I have designed an Automatic Offline Full Backup Plan for CQ5 Installed As a Service. I welcome your comments.
    Do you have any better way (scripts)?
    Offline Full Backup Scripts for Author
    :: offlineAuthorBackUp_CQ5AsService.bat
    :: Stop CQ5 service
    chdir /D %~dp0
    net stop cq5
    ::copy all files and folders to the destination
    mkdir h:\cq5backup\offline\author\backup
    ::robocopy only copies the updated files, so it is very quickly
    c:
    robocopy /MIR c:\cq5\author h:\cq5backup\offline\author\backup
    :: Start CQ5 service
    net start cq5
    ::Zip the backup with 7z.exe
    h:
    cd h:\cq5backup\offline\author
    7z a -y -tzip offlineAuthorBackup_%date:~4,2%%date:~7,2%.zip h:\cq5backup\offline\author\backup

    There is one big advantage of a clone.  You can immediately reboot
    to it and continue working and deal with the regular boot drive faiure,
    what ever it may be, later.  Especially since all your data and such
    is on another drive.  If you use your computer for work and time
    critical projects, this is a major plus!
    In the case of a hard drive failure/replacement, copying the clone
    to the drive is the fastest way to get the system and all your settings
    back.
    Time Machine and incremental backups have a place as well.  It is best
    suited for "incremental" problems.  Examples are installing an upgrade to
    software that doesn't work or just don't plain like.  With Time Machine it
    is easy to just restore back to the point before the install.
    Something else I do is backup current project files to USB memory sticks.
    If you are using your computer for business, you can never have too many
    backups.  Coralllary 456 of Murphy's Law is the "number of backups that
    you need will be one more than what you have!"

  • Offline disk backup

    i want to take full offline disk backup on mount point /bakoffline with the help of brtools.
    how can i do this. plz help.
    SAP -> ECC6
    Database -> Oracle10g
    OS  --> AIX
    Regards
    Karan

    Hi All,
    I become successful in taking offline backup, but I got following problems
    1. Unable to take offline backup when SAP is running.
    - Brtools is unable to stopdb
    2. Unable to take online backup
    -  log is showing
    "cp /oracle/SID/sapdata2/sr3_1/sr3.data1 /sapbackup/bectbizf/sr3.data1 failed"
    I changed ownership of my /sapbackup directory from root to oraSID:dba, I provided full permission to this folder also.
    I tried to execute above command manually then system saying invalid  parameter line..even I can't copy this data file to tmp directory also. I tried to copy by root, sidadm and orasid but no success.
    Finally I stopped SAP, then I executed offline backup...then brtool started the backup activity.
    But this process doesn't make sence while considering first problem.
    I am unable to track...why brtools is unable to stopdb for offline backup and why I am unable to take online backup.
    In my solman (which is based on windows), I am able to take online / offline backup by using brtools without error, but in Development (on AIX) its nt happenin
    Any more guidline will be very helpful.
    Thanks in Advance.
    Regards,
    Ramesh

  • Can I plug in (restore) an RMAN tablespace backup into another DB ?

    11.2.0.3/AIX 6.1
    We accidently dropped a development DB without taking the latest expdp backup of an important schema. All the objects on this schema belonged to only one tablespace and we have the RMAN backup of that tablespace. Is there anyway we could recreate that schema by restoring the tablespace backup into another database ?

    Yes.
    Use the TRANSPORT TABLESPACE feature/method :
    http://oracle.su/docs/11g/backup.112/e10643/rcmsynta2021.htm
    Also check out sys.dbms_tts.transport_set_check
    RMAN> transport tablespace emp_data, emp_data2
               tablespace destination '/u01/app/oracle/oradata'
               auxiliary destination '/u04/app/oracle/oradata';If you need to check your endian format use this query :
    SELECT
      PLATFORM_NAME,
      ENDIAN_FORMAT
    FROM
      V$TRANSPORTABLE_PLATFORM;http://www.fadalti.com/oracle/database/how_to_transportable_tablespaces.htm
    http://husnusensoy.wordpress.com/2008/07/12/migrating-data-using-transportable-tablespacetts/
    Best Regards
    mseberg

  • UNDO Tablespace backup- RMAN

    Hi Team/champions,
    I am confused in RMAN full DB backup why UNDO tablespce is included even we include the archive logs also.
    in Short ?
    why UNDO tablespace backup is required while taking RMAN backup ?
    Regards,
    Shitesh Shukla

    if I dont want to include the UNDO tablespce in my backup
    what if I took only database files backup excluding TEMP n UNDONOT an option. You have to include UNDO. 11g has optimization for backing up an Undo tablespace.
    In 10gR2 what you could do is
    1. Create a New Undo Tablespace
    2. Switch to the new Undo Tablespace
    3. verify that the Old Undo Tablespace is no longer in use -- confirm that there are no active transactions in undo segments in it
    4. drop the old Undo tablespace
    5. Run your RMAN Backup
    You run the risks of
    a. Waiting a long time at step 3
    b. ORA-1555s for users after you drop the Undo tablespace in step 4.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

Maybe you are looking for