Backup of particular tablespace

Hi..
I want to create a script that perfoms the backup of a particular tablespace and the tablespace name should be prompted from user. please suggest me how can i do it?
thanks in advance...

Hi;
Please use google. See:
http://www.google.com.tr/#hl=tr&sclient=psy-ab&q=tablespace+backup%2Boracle&oq=tablespace+backup%2Boracle&aq=f&aqi=g-vCL4&aql=&gs_sm=3&gs_upl=7124l10281l2l10390l13l9l3l0l0l0l250l1452l0.7.1l11l0&gs_l=hp.3..0i15i33i19l4.7124l10281l2l10390l13l9l3l0l0l0l250l1452l0j7j1l11l0.frgbld.&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.,cf.osb&fp=3c85694bbe64504b&biw=1280&bih=793
Regard
Helios

Similar Messages

  • How to get the list of tables having index in particular tablespace

    HI
    can anyone help me with this
    i need to display the list of tables that are having indexes in a particular tablespace(let it be A)
    and the list of tables that are not having indexes in tablespace A.
    thanks in advance...

    user8884944 wrote:
    HI
    can anyone help me with this
    i need to display the list of tables that are having indexes in a particular tablespace(let it be A)
    and the list of tables that are not having indexes in tablespace A.
    thanks in advance...Use TABLESPACE_NAME, INDEX_NAME and TABLE_NAME columns of DBA_INDEXES view
    [Kamran Agayev A. |http://kamranagayev.wordpress.com] (OCP 9i/10g)
    Author of the upcoming book - *"Oracle Backup & Recovery: Expert secrets for using RMAN and Data Pump"*
    http://www.rampant-books.com/book_1002_rman_backup_recovery.htm

  • Backup of one tablespace in noarchivelog mode

    Hi,
    I am running 10g.
    Is it possibe to backup a specific tablespace in noarchive mode?
    Thanks

    Hi
    I am able to backup the tablespace,
    but after the recovery loosing the table data.
    The database is in noarchivelog mode!
    here is what I am doing:
    my_table TABLE has 100 rows, and is saved under my_tablespace TABLESPACE.
    RMAN> sql 'alter tablespace my_tablespace offline';
    RMAN> backup tablespace my_tablespace;
    RMAN> sql 'alter tablespace my_tablespace online';
    Now I truncate the table
    TRUNCATE TABLE my_table;
    RMAN> sql 'alter tablespace my_tablespace offline';
    RMAN> restore tablespace my_tablespace;
    RMAN> recover tablespace my_tablespace;
    RMAN> sql 'alter tablespace my_tablespace online';
    Now the my_table TABLE is after the rcovery empty :-(
    What I am doing wrong

  • How to backup only one tablespace in cold backup noarchivelog mode

    Hi,
    How to backup only one tablespace in cold backup noarchivelog mode
    Reagrds,
    Rushang

    We have to restore all 50 GB database if we fail in scripts meanwhile to start again the data load.
    Out scripts populater only two tablespaces.
    That's why if i take backup of those tabblespace then i have to restore only those tablespace not whole database.
    Regards,
    Rushang

  • RMAN level 0 backup with bigfile tablespaces

    We noticed that our rman backup process for PROD database is not working properly.
      PROD is a 8 TB size database having two bigfile tablespaces each having more than 2 TB datafile.
      PROD is a 11gR1 (11.1.0.7) RAC database with ASM storage.
       We are taking weekly incremental level 0 backup for entire database and level 1 backup every day.
      As per v$session_longops, the approx completion time for the two tablespaces is 5 days.
    We can use "SECTION SIZE" parameter to take rman backup for bigfile tablespaces and exclude them from the level 0 backup.
    However, in this case our level 0 backup wont include the two bigfile tablespaces and the daily level 1 backup will not include them.
    Will you pls advise us on how to take backup in this scenario.
    we have only 4TB of LUN allocated for backup and have to keep 7 days of backup on disk.
    Thanks in advance !
    DR

    We can use "SECTION SIZE" parameter to take rman backup for bigfile tablespaces and exclude them from the level 0 backup.
    How do you think that the backup will be useful if you exclude some files from level 0 or base backup? You will find difficulties or you can't restore the database in case of disaster.
    Yes you can use section size parameter for paralleled big file tablespace backup.
    Check below for explanation and example.
    Backing Up the Database: Advanced Topics
    http://www.oracle-base.com/articles/11g/rman-enhancements-11gr1.php#multisection_backups
    You can use the below note for your case which will be of help.
    Reducing RMAN backup time for unevenly sized tablespaces « Oracle DBA – A lifelong learning experie…
    Thank you!!

  • Particular  tablespace  is filling up rapidly

    Hi All,
    I need the query to identify the jobs which are filling up the particular tablespace .
    Want to know which table get regularly get updated on the particular tablespace .
    Regards,
    Apps DBA

    Please post the details of the application release, database versiona and OS.
    I need the query to identify the jobs which are filling up the particular tablespace .
    Want to know which table get regularly get updated on the particular tablespace .What tablespace you are referring to?
    I do not think you can find a script that list all the tablespaces/table and what processes are filling them. You can query dba_segments to determine the tables size and then you can start troubleshooting.
    https://forums.oracle.com/forums/search.jspa?threadID=&q=dba_segments+AND+Space&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=dba_segments&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    If you have issues with specific tables (i.e. growing rapidly) please post the list here.
    Thanks,
    Hussein

  • How to backup read only tablespace in rman

    Hi,
    I am using oracle 10gR2 in solaris 10.
    I am taking Rman full backup using catalog.
    My target database have 5 datafiles, in that one datafile is in read only mode.
    When I issue the backup command in rman. it takes only 4 datafiles. its not taking the readonly datafile.
    I want to take backup of all 5 datafiles.
    kindly help me..
    Many Thanks

    My target database have 5 datafiles, in that one datafile is in read only mode.I presume that you mean to say that 1 Tablespace consisting of 1 datafile is Read Only.
    What does SHOW ALL in RMAN present ?
    If you have BACKUP OPTIMIZATION set to ON, the Read Only Tablespace will not be backed up after the first backup.
    You could still explicitly backup the tablespace with a BACKUP TABLESPACE tablespacename; , although a BACKUP DATABASE would exclude it.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com
    Edited by: Hemant K Chitale on May 3, 2010 12:02 AM

  • RMAN Backup specially for tablespaces

    Hi@everybody,
    we have a Oracle 11gR2 (11.2.0.3.0) Server, based on RedHat 6, running in our company. For the Backups i'm using RMAN with a script. In that script this code specially creates the backup:
            run {
                allocate channel oem_backup_disk1 type disk;
                backup incremental level ${level} cumulative as COMPRESSED BACKUPSET tag '${tag}' database;
                backup as COMPRESSED BACKUPSET tag '${tag}' archivelog all not backed up;
                release channel oem_backup_disk1;
    ${level} is for 0 or 1, full backup or incremental backup. ${tag} is the name for the backup. This script is for the hole database. But now i want to change that script to tablespace level. We have some "test" tablespaces, where a backup is not needed. I just found that one:
    backup tablespace TEST tag='BACKUP_TEST';
    But now i'm not shure how i can implement that into my script.
    Can you guys help me?
    Thanks and best regards,
    David

    I've just to ask again to understand it right:
    In RMAN - Console i just exclude the tablespaces that should not be backed up with:
    CONFIGURE EXCLUDE FOR TABLESPACE Tbs1, tbs2, tbs5;
    And then RMAN knows, when he is doing a backup of the database, he will exclude that tablespaces that i've told him? Thats awesome! And easier to handle!
    EDIT: I've tested this on my Oracle Test server and it works! Thanks a lot for the answers!

  • Backup and recovery tablespace.

    Hi all,
    one is production server and second one is totally fresh server. I had created database manually.
    We are migrating the database from hpux to hpux but from one server which is in boston and second server is on chicago.
    which is the fast way to do it.
    is there any good documents which i can refer?.
    thanks a lot.

    Logical steps for database backup and recover.
    1)     Take RMAN full backup of the 5 customer tablespaces being migrated from
    H1 to the mounted Data Domain Server
    Read the script for convert tablespace. :Convert data files for non asm server.
    2)     Restore table space to the tower hpux server for the new database.
    3)     Take an incremental backup from HPUX Burlington. Then repeat step 2nd again for the restore tablespace.
    Physical steps for database backup and recover.
    1)     This will take a Full backup of table space automatic.      TABLESPACE BACKUP=
    RMAN> run {allocate channel d1 type disk;
         backup
         tag tbs_users_read_only
         convert tablespace (table space_name) format '(location for backup tablespace 
    /backups/ (NEW NAME)tbs_2_%U.dbf '
         (tablespace users)(TABLESPACE SYSTEM)(REST);
         release channel d1; }
    2) At HTTOWER database make a table space offline and restore and recover the system.     
    sql ‘alter tablespace tablespace_name offline;
    restore tablespace tablespace_name;
    recover tablespace tablespace_name; (change no);
    sql ‘alter tablespace tablespace_name online;
    3) Take a Incremental level table space backup from burlington.
    BACKUP INCREMENTAL LEVEL 1
         TABLESPACE (tablespace_name)
         DATAFILE 'ora_home/oradata/trgt/tools01.dbf';
    (For all the data files.)
    4) At HTTOWER database make a table space offline and
    restore and recover the system.     
    sql ‘alter tablespace tablespace_name offline;
    restore tablespace tablespace_name;
         recover tablespace tablespace_name;
    sql ‘alter tablespace tablespace_name online;
    something like this..

  • Backup a user/tablespace with trigger

    Hi,
    i have an database from which i have to backup the data user by user (or if there is no way tablespace by tablespace) and every user at another time. And now i need a solution how to backup the user (maybe the tablepace) an all his trigger and so on. But i don´t want to backup the sys every time.
    Is there any possibility to do this?

    If you want to store all data of a specific user you still have to use export (or datapump in 10g). Although it is possible to backup single tablespaces, it wouldn't help you, trigger definitions are stored in the data dictionary, that means in the SYSTEM tablespace.
    Export is not a compensation for a regular backup, when data changes after the export was taken this data is lost.

  • How to know the DB objects using the particular tablespace

    Hi All
    I have tablespace which is used by different database objects.
    I want to know which objects are using that tablespace.
    How can I know this??
    Thanks

    I have tablespace which is used by different database objects.
    I want to know which objects are using that tablespace.
    How can I know this??
    select owner,segment_name,segment_type,tablespace_name from dba_segments where tablespace_name='&TBS';

  • User specific previledges on a particular tablespace

    Hi,
    1. I have created a user giving him permission for a
    default tablespace for him.Can i revoke his
    permissions from all other available tablespaces . If
    yes? How?
    2. I have gone through some related documents that says
    we can change user's tablespace quota to zero.Can we
    make it zero for all other tablespaces except his
    default tablespace.If yes ? How?

    As long as the user does not have resourse role, or DBA role, then he, by default, has no quota on any tablespaces... even his default one. So, you allot quota per tablespace to the user.
    ALTER USER SCOTT
    QUOTA UNLIMITED ON EXAMPLE_TS
    "UNLIMITED" could be "5M" or whatever you want it to be. To remove this quota, make that be "0K". That's a zero followed by a K - not the work "okay". OK?
    Tom Best

  • How to identify corrupted block in Particular tablespace?

    Hi,
    i am getting lot of block corruption error from particular tablesapce datafile. i couldn't able to use DBVerify utility .bcz datafiles not created using .dbf format.
    how to idetify corrupted blocks?

    Detecting and Repairing Data Block Corruption
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96521/repair.htm(9i)
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/repair.htm(10g)
    Find more information “Handling Oracle Block Corruptions in Oracle7/8/8i/9i/10g” Metalink Note: 28814.1.
    http://dbataj.blogspot.com/2008/04/oracle-database-block-corruption.html
    http://sysdba.wordpress.com/2006/04/05/how-to-check-for-and-repair-block-corruption-with-rman-in-oracle-9i-and-oracle-10g/

  • Single Tablespace Backup, Restore and Recovery

    Hi Experts,
    I need your kind help. Actually I want to take hot backup by RMAN for a particular TABLESPACE ..
    I know this is possible. My question is when I restore a tablespace to any other test database
    I need to create new database or I can restore it to any existing database? Just like adding new tablespace??
    To recover this tablespace I need to archive log backup ?
    How I can open the database on which I m going to restore/recover this particular tablespace ???
    Regards,
    Rizwan

    You cannot copy a tablespace from one database to another using the normal Backup/Restore methods.
    You have to use the TTS (Transportable Tablespace) methods.
    See http://download.oracle.com/docs/cd/E11882_01/server.112/e17120/tspaces013.htm#ADMIN01101
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

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

Maybe you are looking for

  • ODI Lightweight Designer Installation Problem  on AIX

    Hi guys, I have installed oracledilwd on OAS 10.1.3.1.0 and encountered a problem while accessing the same. The installation for ODI 10.1.3.5 has been done on IBM AIX 5.2 and the deployement of oracledilwd.war on the OAS instance. the master and work

  • More than one companies with my client

    One of my client having four companies they want to share master data (customer,vendor & item) they want enter master data in any ofbthe companies and it should share with all there four firms to all the companies.Require separate budget separate. Th

  • Download total BSP

    how to download the BSP page? i would like to download total BSP page contents.

  • OOD With multiple jFrames

    Hello All, I am writting an application which contains a nubmer of GUI classes which operate on the same data class. For example I have classes A, B, and C which extend jFrame and contain an ActionEvent which creates the next appropriate user interfa

  • Can't run neither Protools or Logic on my new intel mac!

    Hi. I am really starting to get frustrated about this!!! I recently bought a Macbook Pro to run Logic Pro 7.2.2 on using a digi002 rack interface. Everything seem to be working out right according to all settings both in audio/midi setup in mac-utlit