Best way to recover from "drop user; drop table space"

Hello,
I am practicing several different RMAN recovery senarios on oracle 11g windows 2003.
The senario that I am stuck on is.
drop user MYUSER cascade;
drop table space MYUSER including contents and datafiles;
Originally, I was trying to do this with RMAM. From further reading, it seems that RMAN fit for this type of recovery.
What is the best approach to recover from this?
thanks for any tips.

DBPITR did not bring backup my tablespaces.
break database
drop user PWRPLANT CASCADE
drop role PWRPLANT_ROLE_USER
drop role PWRPLANT_ROLE_DEV
drop role PWRPLANT_ROLE_ADMIN
alter tablespace PWRPLANT_IDX offline
alter tablespace PWRPLANT offline
drop tablespace PWRPLANT_IDX INCLUDING CONTENTS AND DATAFILES
drop tablespace PWRPLANT INCLUDING CONTENTS AND DATAFILES
recover with BDITR
RMAN> run {set until sequence 56; restore database; recover database;}
executing command: SET until clause
using target database control file instead of recovery catalog
Starting restore at 28-APR-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=317 device type=DISK
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00001 to I:\ORACLE\ORADATA\PWRGAME\SYSTEM
01.DBF
channel ORA_DISK_1: restoring datafile 00002 to I:\ORACLE\ORADATA\PWRGAME\SYSAUX
01.DBF
channel ORA_DISK_1: restoring datafile 00003 to I:\ORACLE\ORADATA\PWRGAME\UNDOTB
S01.DBF
channel ORA_DISK_1: restoring datafile 00004 to I:\ORACLE\ORADATA\PWRGAME\USERS0
1.DBF
channel ORA_DISK_1: reading from backup piece I:\ORACLE\FLASH_RECOVERY_AREA\PWRG
AME\BACKUPSET\2011_04_28\O1_MF_NNNDF_DATABASE_FULL_BACKUP_6VMMSSXV_.BKP
channel ORA_DISK_1: piece handle=I:\ORACLE\FLASH_RECOVERY_AREA\PWRGAME\BACKUPSET
\2011_04_28\O1_MF_NNNDF_DATABASE_FULL_BACKUP_6VMMSSXV_.BKP tag=DATABASE_FULL_BAC
KUP
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:07:06
Finished restore at 28-APR-11
Starting recover at 28-APR-11
using channel ORA_DISK_1
starting media recovery
archived log for thread 1 with sequence 55 is already on disk as file I:\ORACLE\
PRODUCT\11.1.0\DB_1\RDBMS\ARC00055_0748950531.001
archived log file name=I:\ORACLE\PRODUCT\11.1.0\DB_1\RDBMS\ARC00055_0748950531.0
01 thread=1 sequence=55
media recovery complete, elapsed time: 00:00:02
Finished recover at 28-APR-11
Did I miss something?

Similar Messages

  • Best way to recover from incorrect migration

    Let me start out by saying that we know we did things incorrectly, and that "doing it over again the right way" isn't the advice we're looking for in this discussion.
    Here's the situation:
    Existing database instance (A) is Oracle 10g on AIX.
    New database instance (B) is Oracle 11g on Solaris.
    We exported our schema from A and imported it into B.
    Unfortunately, about 12 tables in the schema were versioned using Workspace Manager in the 10g instance, but no data from WMSYS was exported.
    So we have a situation where we have MyTable_LT tables containing rows, but the MyTable views are reporting 0 rows. User_WM_Versioned_Tables reports 0 rows.
    It would be perfectly OK with us if we could "unversion" the tables in the new instance, and start again.
    Is there a way to determine which rows in the _LT tables are belonging to the LIVE workspace?
    Alternatively, is there a way to export/import the metadata from WMSYS in instance A into instance B?
    Thanks in advance for your advice.

    Ben -
    Thank you - that is very helpful. Your first solution looked like it would be best.
    Yesterday I looked at obtaining the LIVE version data from the source DB instance, but the drift in data content since the time the original export was done meant that the data refresh would have been fraught with risk, just as you identified.
    I convinced the powers-that-be that a do-over of the full export/import was the best way to go, however, this time we first un-versioned the tables in the source DB.
    I intend to study the documentation for how best to perform this process if we *did* want to retain all the workspaces and versioned data, but can I beg your indulgence and ask you what you would recommend?
    Assuming a clean install of Oracle 11g (complete with WMSYS) as the destination, would it be appropriate to:
    drop the WMSYS schema in the destination;
    export the MY_SCHEMA and WMSYS from the source;
    import into the destination
    upgrade the WMSYS in the destination from 10g to 11g
    Is this the basic process, or am I missing something important?
    Thanks,
    - Colin

  • What is the best way to recover from an error which requires a reconnect (e.g. ORA-01033)?

    We use 11g with the OCI library.  A session pool was created for the server process (OCISessionPoolCreate), and a session was obtained in a thread (OCISessionGet).  Is it sufficient to call OCISessionRelease(...,OCI_SESSRLS_DROPSESS) in the thread, and then get a new session?  Or should the application call OCISessionPoolDestroy(...,OCI_SPD_FORCE), and then recreate the pool?

    Do the following:
    Copy the backup library package/folder to the Pictures folder on your new Mac. If you have any other libraries there move them to the Desktop first.
    Download and run iPhoto Library Upgrader 1.1 on the library to convert it to the new format.  The app will be in your Applications/Utilities folder.
    Launch iPhoto 9.5.1 and open the "converted" library.
    Now you can delete any libraries that you previously moved to the Desktop.

  • Best Way to deal with Corrupt User Account

    Preview is crashing over and over again in my main user account (ADMIN) yet it does not crash in any other account.
    What is the best way to create a new user account that has all the things I need from this account (bookmarks, keychains, etc.)?
    Thanks in advance.
    Dwaine

    Have you tried trashing the Preview .plist files?
    Under Finder's Go menu, choose Go To Folder, and paste in ~/Library/Preferences.  Look in there, and also in the ByHost folder, for any com.apple.Preview plist files, trash them, and see if Preview will then work properly.
    You might also look in ~/Library/Caches for Preview files and trash those too.

  • I need a recommended way of recovering from Bus Off errors

    I have write problems when a UUT is instructed to reset. When the UUT in the reset state I get Error Passive warnings and Bus Off errors after attempting to write extended CAN messages using the Frame API.
    In brief the test goes like this,
    1. I send extended message 0x500 with 8 data bytes containing information to tell the UUT to go into reset.
    2. I wait 400ms hopeing that the UUT get's at least 1 of the 3 possible messages. It always does and does a reset.
    3. I then MUST send message 0x500 with updated data telling the UUT to come out of reset.
    Problem is the write fails with a Bus Off error (can't remember the error code as I am typing this at home). I can get this to work in a brute force kind of way by repeating these steps below several times in a loop,
    1. reopen the network object
    2. reopen all perodic tx objects,
    3. do a ncAction NC_OP_RESET on the network object,
    4. do a ncAction NC_OP_RESET on all periodic tx objects,
    5. do a ncAction NC_OP_START on the network object,
    6. do a ncAction NC_OP_START on all the periodic tx objects,
    (no warnings or errors so far from these calls allthough occasionally ends up with an exception and NI-CAN internal driver errors. I'm probably abusing the CAN standard and API with all the rapid opening and closing of all these handles and blindly ignoring errors.)
    7. then do a ncWrite for all periodic tx objects (we usually get Error Passive warnings here, if the write is repeated it frequently gets a Bus Off error).
    When the UUT (by chance in all honesty) gets the 0x500 message and comes out of reset, CAN operations are fine, but the problem lies when the UUT is in reset, I can't send the updated 0x500 message to tell it to come out of reset. I get randomly Error Passive errors and Bus Off errors.
    Found out today this is what the UUT is doing when in reset (written in PDL),
    while not received 0x500 with data indicating to come out of reset
       possibly repower most of the UUT circuitry (I can't remember)
       reset Bosch CANBUS controller circuitry on ASIC (takes 2us I'm told)
       do some unit reset processing, takes up to 100ms
    wend
    (yes, it resets the CANBUS controller roughly every 100ms!)
    I need a sensible way of recovering from a Bus Off error and retry sending that 0x500 message again.
    Any thoughts, comments, solutions?
    Regards.

    Hi Flump,
    The idea here is that many CAN devices will "sleep" after some predetermined period of inactivity (not receiving a frame). In such cases, the device usually wakes up after seeing activity on the bus, where the amount of time it takes to go from the "sleep" state to an "active" state will inevitably vary from device to device. Well, suppose the controller on a CAN network sends a frame to a device which is "sleeping," and the device takes, for arguments sake, 10 seconds to "wake up" and become active again. By definition in the CAN standard, frames which are not acknowledged will be retransmitted. Also in the CAN standard is the requirement that a device or controller implement transmit and receive "error counters" in order that an "errant" device or controller can be "silenced" if it continues to generate errors. There are 3 basic error states, the last (worst) of which is the Bus Off Error State, which occurs when the error counter exceeds 255. Herein lies the problem; if a device takes a long time to wake up, then a controller will send, and subsequently resend, the frame while it attempts to communicate with the "sleeping" device. Since the controller's transmit error counter will increase by 8 for each frame which is sent and NOT acknowledged, and it will continue sending frames until acknowledged, the controller can actually reach a Bus Off Error state before the device fully "wakes up." This is usually undesirable, and can be prevented.
    For more information about the CAN standard, see Appendix B of the NI-CAN Hardware and Software Manual linked in the Related Links section below.
    The solution may be to send a single wake-up frame (just one time), then delay to allow the device to "wake-up," and then continue normal communication. It is important to realize that when a device "sleeps," it actually relies on the fact that a CAN controller will send frames multiple times. That is, the first frame received when a device is "sleeping" is NOT processed. The sudden voltage change on the bus caused by a frame transmission is sensed by a CAN device and will cause it to resume active operating conditions, but the frame which initiates the wakeup cannot be processed because the hardware was previously asleep (some of it literally not powered). Thus, if we have a mechanism for sending a single "wake-up" frame, and then delay until all devices (or at least the one we intend to communicate with) wake up, we can resume normal communications while knowing deterministically that subsequent commands should/will be processed by the device to which we wish to communicate.
    In the NI-CAN API, the way to transmit a single frame - one time only - is by setting the Single Shot Transmit attribute to 1 (using the set attribute function: in LabVIEW use the ncSetAttr.vi for the Frame API and CAN Set Property.vi for the Channel API). For Frame API users, the Network Configuration object (programmed explicitly) can be used, where of course we must stop and start the task (using ncAction.vi) around the attribute setting. The sequence of events would generally be: Network Config (should have happened anyway at some point), Network Open, Stop, Set Attribute, Start, Write "wakeup frame," proceed with the program after sufficient delay. Please note that the required delay may be very small; the "10 second" wake-up time suggested for a device above is much much longer than a normal device's "wake-up period". Of course, the baud rate used on a given network will factor into how many frames can be sent by a controller in a given period, and therefore how fast a corresponding error counter will increment as a result of unacknowledged frames.
    Attached is an example, which will write a single "wake-up" frame using the technique described above, where the write will take place when a "Wake-Up" button is clicked.
    Is this what you are looking for?
    AdamB
    Message Edited by AdamB on 12-12-2006 04:47 AM
    Applications Engineering Team Leader | National Instruments | UK & Ireland
    Attachments:
    SendSingleWakeUpFrame.vi ‏73 KB

  • Although we have iPhones and iPads, this is our first mac pc and we wanted to know the best way to set up multiple users with parental contro;s

    although we have iphones and ipads, this is our first imac and we wanted to know the best ways to set up multiple users with parental controls

    I'm assuming you have the lastet OSX version 10.9 "Mavericks." Here are some useful links from Apple I think will help:
    http://support.apple.com/kb/PH14414
    http://support.apple.com/kb/PH14099
    http://support.apple.com/kb/PH14280
    and a video:
    http://support.apple.com/kb/VI28
    I suspect you have a newer iMac than the pre-2006 models this forum covers (the forum labels are unbelieveably vague). If you can confirm that yours is newer than 2005, I can ask the Hosts to move you the the forum for current iMacs, which gets many more views.

  • What is the best way to print from an iPad?

    I have the Printer Pro app, and it seems to do a good job locating my wireless printer, but it gets complicated to print webpages or pages documents. What is the best way to print from an iPad 2?

    If you have a compatible printer, use AirPrint http://www.apple.com/ipad/features/airprint.html and http://support.apple.com/kb/HT4356
    If not, you would need to purchase software, such as:
    http://itunes.apple.com/us/app/printcentral-for-ipad/id366020849?mt=8
    http://www.ecamm.com/mac/printopia/
    http://www.collobos.com/

  • Best way to read from a file

    What would be the best way to read from a file. Which classes do I need to use?
    I have to write a program, which reads data from a comma separated flat file, parse it and after inserting some busineess logic insert into a databse .
    I will have to read the data line by line.
    Any help????

    I would use:
         public void readData()
              try
                   data = new String[this.countRows("comp.txt")][];
                   BufferedReader br = new BufferedReader(new FileReader("comp.txt"));
                   for(int x = 0; x < data.length; x++)
                        StringTokenizer temp = new StringTokenizer(br.readLine(), "?");
                        data[x] = new String[temp.countTokens()];
                        for(int y = 0; y < data[x].length; y++)
                             data[x][y] = temp.nextToken();
              catch(Exception e)
                   System.out.println(e.toString());
         private int countRows(String f)
              int t = 0;
              try
                   BufferedReader brCountRows = new BufferedReader(new FileReader(f));
                   while(brCountRows.readLine() != null)
                        t++;
              catch(Exception e)
                   System.out.println(e.toString());
                   return t;
              return t;
         }It works deliciously!

  • Best way to go from FCP to After Effects and back?

    Hi guys,
    What's the best way to go from FCP (5) to AE (7)? I'm exporting as a Quicktime Movie, but not self-contained. Then from AE I make a Quicktime Movie
    and drag it back to FCP.
    Is this the best method?
    Thanks
    G5 Quad   Mac OS X (10.4.6)   Dell 2405

    Thanks Cap'n, but am I losing any resolution this way? And should I be including or excluding markers?
    That is one rich little duck! :P
    G5 Quad   Mac OS X (10.4.6)   Dell 2405

  • Best way to scan from office jet pro 8600 to mac pro and attach to email

    What is the best way to scan from an officejet pro 8600 printer to a mac pro desktop, attach and scan?

    dunno if you can do it directly, but, assuming the drivers are up-to-date, use Image Capture*, which should get you  a scan, then save it, then when sending the email, click on the paperclip,  and choose whatever it was that you scanned, wherever you saved it....
    and then send it.
    JB
    *Preview might work, but I don't recall 100% if it does...
    don't recall seeing anything that'd let you scan something in, then have it go directly to email and send it out, one-step

  • What's the best way to migrate from an old iMac to a new iMac?

    What's the best way to migrate from a 2010 iMac running Yosemite to a new 2014 iMac?

    Hello jonfromnorth caldwell,
    The article linked below details how to utilize target disk mode to transfer files. This can also be used in conjuction with Migration assistant to transfer your information quickly (the 2010 iMac will appear as a storage device to the new iMac).
    OS X Yosemite: Transfer files between two computers using target disk mode
    http://support.apple.com/kb/PH19021
    OS X Yosemite: Transfer your info from a computer or storage device
    http://support.apple.com/kb/PH18870
    Cheers,
    Allen

  • BEST WAY TO RECORD FROM TV

    Whats the best way to record from TV and then be able to edit the footage, without losing quality?
    Is it with a dvd recorder, how to you get the files off the recorder???
    Thanks
    Simon

    If you already have a digital video camera, you can probably do it without buying anything extra. I have done this by connecting the video output from my able box to an input on my video camera, then connected the camera to the computer using the FireWire cable. I opened iMovie and imported the video from there. Of course, it's a bit of a pain, so I haven't done it often, and the quality is only as good as your camera is capable of. You may need to buy the cable to connect the cable box to the camera, though mine came with such a cable.

  • Best Way to go from 2.1.1 to 2.1

    What is the best way to go from 2.1.1 to 2.1? I have a legit copy of 2.0 and no application backup copy available to me.
    Thx in advance

    remove the 2.1.1 app ... prob best to remove the app support folders for aperture too ...
    install 2.0 from disk and go to :
    http://www.apple.com/downloads/macosx/apple/application_updates/aperture21update .html
    for the 2.1 update ...
    prime example of why one needs to have a good solid plan prior to performing ANY upgrade/update on one's systems ... but i don't need to tell you that now do i ...

  • Best way to print from iPad?

    Which app is best to print from iPad, iPhone?

    Well AirPrint is probably the best way to print from a iOS device but if you dont have a AirPrint printer then there are apps like print central that can help you

  • What is the best way to display errors to users when using JSPs?

              Hello,
              Could someone suggest me the best way to display errors to users when using JSPs?
              Many thanks in advance.
              Rino
              

              Thanks for the code snippet!
              Rino
              "Deepak Vohra" <[email protected]> wrote:
              >
              >
              >The 'errorPage' attribute of the 'page' directive forwards uncaught run-time
              >exceptions
              >to an error processing page. For example:
              >
              ><%@ page errorPage="error.jsp" %>
              >
              >redirects the browser to the JSP page error.jsp if an uncaught exception
              >is encountered.
              >
              >
              >Within error.jsp, indicate that it is an error-processing page, via the
              >directive:
              >
              >
              >
              ><%@ page isErrorPage="true" %>
              >
              >The Throwable object describing the exception may be accessed within
              >the error
              >page via the 'exception' implicit object.
              >
              >
              ><% if (exception != null) { %>
              ><p> An exception was thrown: <b> <%= exception %>
              >
              ><p> With the following stack trace:
              ><pre>
              >
              ><%
              > ByteArrayOutputStream ostr = new ByteArrayOutputStream();
              > exception.printStackTrace(new PrintStream(ostr));
              > out.print(ostr);
              >%>
              ></pre>
              >
              >
              >
              >"Rino Srivastava" <[email protected]> wrote:
              >>
              >>Hello,
              >>
              >>Could someone suggest me the best way to display errors to users when
              >>using JSPs?
              >>
              >>Many thanks in advance.
              >>
              >>Rino
              >
              

Maybe you are looking for

  • Installation Problem with my Sound Blaster Audigy Li

    I own a Win XP 64 bit Edition and want to install my soundcard. But there is no driver for my Soundblaster. Please help, the Model Number is SB000. Cause i installed linux next to windows i saw, that it is identified as an SB Li've! 5. so i downloade

  • MacBook Pro crashing and restarting on wake from sleep?

    My MacBook Pro 17inch Late 2011 has started crashing and restarting on wake from sleep 3 out of 4 times.  This is really interrupting my workflow and I need help to remedy it. Here is about 2 minutes from the system log at the time of restart. After

  • Canon iR7105, iR-ADV9065 with GX300 server, and Mountain Lion

    I am having no luck setting up two relatively recent, large and expensive Canon printers in Mountain Lion. The situations are different so there are two chapters to this wall of text. This is a fresh Mac, so it didn't have any 'old' Canon driver tras

  • UNIX command for Energy Saver settings - Set Schedule

    Using ARD 3, can anyone help me with a UNIX command for setting the scheduled sleep and wake times for 10.4 clients? Thanks, Josh

  • Changepassword on wiki. (OS X Server 10.8/Server 2.1.1)

    Somebody help me. I want to know how to use changepassword on wiki. You can see change password on wiki portal page. May be appear bottom. ( https://serverURL/changepassword ) But, Can not change.  Wiki server responded "No available service. You sho