Restoring only the tablespace from the database

How do we restore only a 'tablespace' from a Terabyte database without restoring the entire database.
ie... if a particular tablespace has been dropped from the database and we have the backup available for the database.
So, how do we go about it for restoring only that tablespace.
Version:10.2.0.4
OS : solaris 10
Edited by: user13364377 on Sep 29, 2010 3:49 AM
Edited by: user13364377 on Sep 29, 2010 3:51 AM

If you have a RMAN backup before dropping the tablespace then we can restore the tablespace by below method
It is a tablespace point in time recovery ,here we need to create a auxillary DB.
Recover a table/tablespace from Rman backup on same server:
===============================================
Here we have to create the auxillary database.
1.u should have valid backup of the database before dropping the tablespace.
2.create the password file of target database.
orapwd file=$ORACLE_HOME\dbs\PWDORCL2.ORA password=oracle
3.Take backup of the control file to trace for creating the new control file for new
auxillary database/
SQL> alter database backup controlfile to trace;
sample control file:
STARTUP NOMOUNT
CREATE CONTROLFILE SET DATABASE "aux1" RESETLOGS FORCE LOGGING ARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 454
LOGFILE
GROUP 1 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\aux1\REDO01.LOG' SIZE 10M,//make sure here to change the location of of redo
GROUP 2 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\aux1\REDO02.LOG' SIZE 10M, logs to new location or change the location name before
GROUP 3 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\aux1\REDO03.LOG' SIZE 10M //starating the database at the end.
-- STANDBY LOGFILE
DATAFILE
'D:\ORACLE\PRODUCT\10.1.0\ORADATA\prafulla\SYSTEM01.DBF',
'D:\ORACLE\PRODUCT\10.1.0\ORADATA\prafulla\UNDOTBS01.DBF',
'D:\ORACLE\PRODUCT\10.1.0\ORADATA\prafulla\SYSAUX01.DBF',
'D:\ORACLE\PRODUCT\10.1.0\ORADATA\prafulla\USERS01.DBF',
'D:\ORACLE\PRODUCT\10.1.0\ORADATA\prafulla\USERS02.DBF'
CHARACTER SET WE8MSWIN1252
4.create the password file of auxillary database.
orapwd file=$ORACLE_HOME\dbs\PWDORCL2.ORA password=oracle
5.create the control file
sqlplus "/as sysdba"
SQL>@create.sql
6 catalog all the backuppiece to the newly created database;
catalog backuppiece 'D:\oracle\product\10.1.0\LOG_707656915_50P1';
7.We have to restore system,sysaux,undo and the tablespace which was dropped
run
set newname for datafile 1 to 'D:\oracle\product\10.1.0\oradata\aux1\system01.dbf';
set newname for datafile 2 to 'D:\oracle\product\10.1.0\oradata\aux1\undotbs01.dbf';
set newname for datafile 5 to 'D:\oracle\product\10.1.0\oradata\aux1\users02.dbf';
set newname for datafile 3 to 'D:\oracle\product\10.1.0\oradata\aux1\sysaux01.dbf';
set newname for datafile 4 to 'D:\oracle\product\10.1.0\oradata\aux1\users01.dbf';
restore tablespace SYSTEM;
restore tablespace UNDOTBS1;
restore tablespace users;
restore tablespace sysaux;
switch datafile all;
8.Take the other tablespace offline
sqlplus>alter tablespace tablespace_name offline drop;
9.recover the database prior to the time when tha table/tablespace was dropped.
RMAN> run{
2> set until time "to_date('07-01-2010 14:00:00','dd-mm-yyyy hh24:mi:ss')";
3> recover database;
4> }
10.open the database in resetlog mode.
take a transpotable tablespace backup of that tablespace and import it on the database where you dropped it.

Similar Messages

  • How can the artist view pictures in music be updated in IOS 7?  My device (Ipod Touch 5th) used to have the artist pictures but when I restored it from factory default, it only used the pictures from the album.

    Please help.  I have updated to the IOS 7 and there was a cool feature in the Music app wherein when you view an album artist, i think apple updates the picture of that artist from their gallery.  But when I decided to restore to factory defaults, it never came back and only uses the picture from the albums.

    I have the same problem.  After a full restore my iphone 5 does not display the artist photos, but it does show the correct album covers once i go into that group.  Instead i get a grey box with diagonal writing saying the band name but no picture.

  • The Messaging Engine failed to retrieve the configuration from the database. Details:"c0002a1f".

    Hi All,
    We have two BizTalk nodes, from both nodes we are getting this error from today morning, nothings has changed from application end. 
    Error : The Messaging Engine failed to retrieve the configuration from the database. Details:"c0002a1f".
    Warning : Cannot perform encryption or decryption because the secret is not available from the master secret server. See the event log for related errors.
    Can you please suggest step where need to check.
    I don't have any knowledge where the master secret file saved during installation.
    Regards
    Suman 

    Most of the time, master secret server is not backup frequency. Mostly its is done during the time when the servers have been setup. If anything changed between the time the master secret has been backed up and now, then you don't have the correct version
    of master secret file backed up. This is why its is always a good practice to backup the master secret periodically and also try restoring in any of the test server to verify the backed up file is correct and also to make us conformable in restore
    process.
    You have one option now, try restoring with the file what you have  (4 years old). If the backed version is not the correct version, then only option is to reconfigure the BizTalk.
    MSDN: How to Restore the Master Secret
    You cannot backup the master secret file now as ii could have been corrupted. That the reason we're suggesting to restore the corrupted master secret file. For your future reference, following the steps as suggested in this article to take backup of master
    secret.
    MSDN: How to Back Up the Master Secret
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • I want to get the values from the second hiphen only

    Hey Guys,
    I have one column and the data like this
    col1 = 'AI463-901-001'
    Now,
    I want to get the values from the second hiphen only(any no. of values).
    Please can any one help me on this .
    Thanks in advance!
    Regards,
    -LK

    you have a mistake
    you result is -001
    this is right
      select substr('AI463-901-001',instr('AI463-901-001','-',1,2)+1) from dual;
      -- @user11928732 -  if you are using Oracle Database 11g, ttry this please
    with data as
      (select  'AI463-901-001'from dual)
      select substr(str,instr(str,'-',1,2)+1) from data;
      select substr(<YOUR COLUMN>,instr(<YOUR COLUMN>,'-',1,2)+1) from <YOUR TABLE>;result is : 001
    Edited by: Mahir M. Quluzade on May 3, 2011 5:37 PM

  • HT4859 Is there any way to restore the contacts from the iCloud onto my existing phone?

    I had all my contacts disappear this afternoon.  Is there any way to restore the contacts from the iCloud onto my existing phone?  This article makes it seem as if the iCloud information is only accessible upon setup of a new devise.

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • How to restore a deleted file from the iCloud

    How to restore a deleted file from the iCloud

    first you right click on the ipad (on the left in itunes): restore from backup.
    It will restore to factory ALL data anda apps
    At some point it will offer restoration from itunes, but you will only see backups made on your computer.
    If you wish to restore from icloud you forget itunes on your computer, go to the ipad and follow the instructions. At some point you will be asked to choose from icolud or confgiure it as a new ipad.
    it works

  • How to view data in tables by selecting the synonym from the database objec

    I could not figure out how to view data in tables by selecting the synonym from the database objects navigation tree. I had to first choose the synonym, view the details of the synonym to determine the table name, and then select the table from the database objects tree. Is this the only way available?

    This functionality currently does not exist. I don't see it on the 1.1 statement of direction either, so perhaps someone from Oracle can give some insight as to when this could be expected.
    Eric

  • How to Copy the PLD from one database to another

    Dear Members,
       i have designed the  PLD for Purchase Order, i want to copy the particular PLD into another Database.
    i tried to copy the PLD from one database to another through copy express.. i copied the PLD sucessfully. But the problem is,it copies all PLD's from one database to another. i want only the Purchaseorder PLD has to be copied in to another database.any body can help me in this regard.
    With Regards,
    G.shankar Ganesh

    Hi,
    select * into A1 from RDOC where Author !='System'
    select *  into A2  from  RITM   where Doccode  in (select Doccode from A1 )
    select * from A1
    select * from A2
    sp_generate_inserts 'A1'
    sp_generate_inserts 'A2'
    you will get Insert scripts of A1 and A2 tables .After that You 'll  Replace A1 to RDOC and A2 to RITM.
    So that you can RUN this SQL srcipts any where (In any Database)
    but First u have to run sp_generate_inserts  Storeprocedure(from websites) .
    drop table A1,A2

  • [kde] "Only show tasks from the current desktop" doesn't work for max

    Hi,
    I have two monitor setup (laptop + main monitor) and I would love to use "Only show tasks from the current desktop" option in KDE Task Manager but for some strange reason it doesn't work for me. Well, it works but only partially - for restored/unmaximized windows. When I maximize one it appears on the Taskbar on both screens. Is this normal? May it be due to the fact that I've placed Taskbar on top of the screens?

    Did you miss this bit
    "Graphics : 1 GB NVIDIA Quadro 600 (1DP & 1DVI-I) (1DP-DVI & 1DVI-VGA adapter) (ELGA13) 1"
    And the final image clearly states the type of Graphics Card he has
    Photoshop CS6 GPU FAQ
    Tested video cards for Photoshop CS6
    Adobe tested the following video cards before the release of Photoshop CS6. This document lists the video card by series. The minimum amount of RAM supported on video cards for Photoshop CS6 is 256 MB. Photoshop 13.1 cannot display 3D features if you have less than 512 MB of VRAM on your video card.
    Important: This document is updated as newly released cards are tested. However, Adobe cannot test all cards in a timely manner. If a video card is not listed here, but was released after May 2012, you can assume that the card will work with Photoshop CS6.
    Adobe tested laptop and desktop versions of the following cards. Be sure to download the latest driver for your specific model. (Laptop and desktop versions have slightly different names.)
    nVidia GeForce 8000, 9000, 100, 200, 300, 400, 500, 600 series
    nVidia Quadro 400, 600, 2000, 4000 (Mac & Win), CX, 5000, 6000, K600, K2000, K4000, K5000 (Windows & Mac OS)

  • HT1711 I backed up my iphone5 in the morning and later again on the same day, in the afternoon. I then restored an older backup from the morning. Now all my music files refuse to play even though they still appear on iphone. How can I resolve this?

    I backed up my iphone5 in the morning and later again on the same day, in the afternoon. I then restored an older backup from the morning. Now all my music files refuse to play even though they still appear on iphone. How can I resolve this?

    Most likely you have Office 2004 which are PPC-only applications and will not work in Lion. Upgrade to Office 2011. Other alternatives are:
    Apple's iWork suite (Pages, Numbers, and Keynote.)
    Open Office (Office 2007-like suite compatible with OS X.)
    NeoOffice (similar to Open Office.)
    LibreOffice (a new direction for the Open Office suite.)

  • How to import the datafiles from one database to another

    Hi,
    I have got some datafiles from the existing database(Consider it as Database A), but it has been removed as of now.
    I am having the datafiles and control files of it.
    I have freshly installed one oracle Database(database B), I am planning to load those datafiles in the newly installed
    database.
    Is it possible, if so wat is the procedure.
    Both the databses are Oracle 11g.
    Help me out of this.
    Thanks.
    Regards
    Gatha

    Hi,
    As you said that you have data files and Control files, then using import quite no possbile, but you need to do it manually (as it exits in the Source System in same path).
    Initially, you copy these files from the Source System to Destination System that is
    Data Files and Control Files
    Next, you will get the DBID from the controlfile backup is you have Example :-
    CTL_SP_BAK_C-1507972899-20070228-00, then " 1507972899" is the DBID,
    Try to use the RMAN for this
    example :-
    Open the rman
    set dbid 1507972899
    then you need to build the initilizaition file to start an instance based on the Configuration
    or Copy the spfile from the back from source system if exits.
    Startup the DB in mount mode.
    You might get the error
    ORA-01078: failure in processing system parameters
    Now restore spfile from 'backup path' where you have copied files
    startup force nomount
    Now the instance is started
    connect to DB as sysdba
    check the control file parameter values and online redo Log files paths (Log_Archive_dest)
    Restore the old control file from backup, since the new instance must the know where the files are located
    restore controlfile from 'backup path'
    then shutdown the DB
    start in mount mode
    restore the DB - restore database
    Note: Recovery is dependent on the available archived (and online) redo logs.
    Final step will be Alter database open resetlogs;
    - Pavan Kumar N

  • Can't restore my blackberry z10 from the backup file

    Hi,
    I did total backup of my BB z10 with BB link. After the backup was completed, I wipe my BB z10 totally. Then I connected it to the link once again (After the wiping process completed) And suddenly I  can't restore my BB z10 from the previous .bbb file. It only restarted back and turned off. I tried to extract with numeruous program, but they don't support .bbb from BB z10.  Does anyone know the solution??
    I really need to extract the phone contact files. 

    The Backup is encrypted so you will have no luck extracting anything with other programs. If your device itself was encrypted prior to the wipe, would it help if you re-encrypted it using the original password?
    Disclaimer:
    I know a little about lots of things,
    yet not a great lot about those little-things.
    Ultimately, I'm here to learn.

  • I can only play songs from the cloud that are checked with a dark checkmark-I have many other songs with a faint check that don't play

    I can only play songs from the cloud that are checked with a dark checkmark-I have many other songs with a faint check that don't play

    Restoring from backup will result in the iPod being like it was when the backup was made. If you restore via iTunes, you have to have all the synced media in your iTunes library since those are not included in the iPod backup.

  • I restored my iPad 2 from the iTunes backup but my music, audio books and iBooks are all missing.

    I restored my iPad 2 from the iTunes backup but my music, audio books and iBooks are all missing. It seems only the Apps were restored and settings. Anyone else had this problem?

    Oh and the bizarre thing was that when I opened iBooks for the first time after the restore it showed all the books in the open collection and then they vanished in front of my eyes!

  • Problem: I lost the option to get the sound from external speakers or headphones to upgrade to Lion 10.7.3. It accepts only internal speakers.  I downloaded  Combo directly. I followed all the advice from the Apple community

    Problem: I lost the option to get the sound from external speakers or headphones to upgrade to Lion 10.7.3. It accepts only internal speakers.  I downloaded  Combo directly , without using "Actualización de software". I followed all the advice from the Apple community.  Can I use bluetooth speakers to solve this problem?  My Computer: iMac. 20-inch, Early 2008. Processor 2.4 GHz Intel Core 2 Duo.

    You may need to reset PRAM/NVRAM.
    First, check that the jack is clean. Put some alcohol on a plug and insert it a few times. See if that helps.
    is your output both digital and analog? If digital, is the red laser light visible in the socket? Do not look directly into the socket when checking.
    If all else fails try a PRAM reset:
    Reset your computer’s PRAM
    A small amount of your computer’s memory, called “parameter random-access memory” or PRAM, stores certain settings in a location that Mac OS X can access quickly. The particular settings that are stored depend on your type of Mac and the types of devices connected to it. The settings include your designated startup disk, display resolution, speaker volume, and other information.
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Immediately press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Continue holding the keys down until the computer restarts, and you hear the startup sound for the second time.
    DO NOT HOLD These keys beyond the second startup sound!
    Release the keys.
    Resetting PRAM may change some system settings and preferences. Use System Preferences to restore your settings.

Maybe you are looking for

  • Want to clean and reinstall my early 2009 IMAC, but have Snow Leopard and no discs

    Have an Early 2009 IMAC.  My daughter (14, and an indiscriminate clicker of "OK" buttons on pop ups to get rid of them) has been using it for a year, and is it is now running very slowly, locking up, etc.  I am not particularly computer savvy, but wo

  • Pages Error "The required index.xml file is missing."

    When I try to open an existing Pages File by double clicking on the name in Finder (default application is Pages), I get the error message "The required index.xml file is missing." If I select the pages file, then use Open With / Pages App (default),

  • How can i overcome this problem...in applet

    my applet will read in a file for data, when i compile using JCreator, it work... but when i open the html file to run, problems occur, state that loading java applet failed. the message shown in java console: java.security.AccessControlException: ac

  • N79 NAM RM350 server certificate not valid "firmwa...

    i have updated my phone frm v11 to v20 but nw wen i go to devices update to update to latest firmware it says " SERVER CERTIFICATE NOT VALID" i want to update to v30 plzz help anyone reguards zain Message Edited by kaskay on 21-Aug-2009 10:42 AM

  • Split view default

    I have posted an "Idea" about how a server-side page should be opened. Please cast your vote. In my opinion, it should work as it always has - it opens in whatever you had last selected. But if forced to choose one, I would say SPLIT VIEW.