Drop dbf file and then recover - possible?

We have to 'startup mount' our database and then
1. alter database datafile ....12.dbf offline
2. recover using backupcontrolfile until cancel.
Can we do this on oracle 9.1.7

Hi,
I am not sure if I have understood the question.
Here is my translation of my understanding:
- you have dropped a datafile and do not have a backup, right?
- you want to recover the lost datafile, right?
My question now is:
- how did you drop the file?
1. did you remove it on OS level?
2. did you drop the tablespace?
Here the possible answers:
=> 1: if you "just" removed the file from the OS it is no problem to recreate it and recover it, under the condition that you have all the redologs archived or online which contain all the changes applied to the db since the creation of the lost datafile. Oracle will know the creation change number for the file and will be able to create a new one. It works like this:
SQL > ALTER DATABASE CREATE DATAFILE '<name of your lost file>';
SQL> RECOVER DATAFILE '<name of your lost file>' -- number of the file is also possible
SQL > ALTER DATABASE DATAFILE '<name of your lost file> ONLINE;
=> 2: if you have dropped teh entire database by DROP TABLESPACE ... INCLUDING CONTENTES AND DATAFILES; it is a little more tricky. Now you first need a controlfile which still contains the talespace information, because the tablesapce has been removed from the controlfile with the drop stsatement. And you can only recover what is in the controlfile. So you need a backup of the old controlfile, either a binary controlfile backup or a backup from a trace controlfile backup.
In this case you must shutdown the db and startup with a backup controlfile. You must restore the entire db from backup and recover incomplete, which means loss of data!
You must recover the whole db to a point in time short before the drop tablespace. YOu can find the timestamp for the drop tablespace in the alertSID.log file.
The first thing you do is to take a full backup of the entire db including redologs and controlfile, just in case you make a mistake in order to be able to get back to where you started!!!
Then resore db from backup.
Then:
SQL> RECOVER DATABASE UNTIL TIME <timestamp> USING BACKUP CONTROLFILE;
Then you must open teh database with RESETLOGS:
SQL> ALTER DATABASE OPEN RESETLOGS;
The next thing you do is check if you met the point in time you wanted and then TAKE A NEW BACKUP OF THE ENTIRE DATABASE, because you do not have ya valid backup any more now. It is a new database you have, at least a new incarnation.
Let me know if this was helpfull or if I have completely misunderstood your question.
Good luck,
Lutz

Similar Messages

  • I have moved old Back Up files from my external hard drive to the trash and as the Trash previews the files, i.e. counts them (over 850,000 files) it then begins to delete but then stops. Is it possible to move the files out of the Trash file and then onl

    I have moved old Back Up files from my external hard drive to the trash and as the Trash previews the files, i.e. counts them (over 850,000 files) it then begins to delete but then stops. Is it possible to move the files out of the Trash file and then only delete a small amount at one time?

    See
    Deleting backups via the Finder on Lion 10.7.x or later:
    http://pondini.org/TM/12.html
    Hold option (alt) while emptying the Trash.
    See also
    http://pondini.org/TM/E6.html
    Message was edited by: WZZZ

  • Since I have the newest version of itunes, I can't back up like normally. The only way is to considilate files and then put them on an external drive which I don't have. Are there any other options? If I can't back up to a disc like I used to, can I inste

    Since I have the newest version of itunes, I can't back up like normally. The only way is to considilate files and then put them on an external drive which I don't have. Are there any other options? If I can't back up to a disc like I used to, can I instead just keep everything on my ipod and then if I have to get a new computer or something just download all my songs from the ipod to my new computer's itunes? Will that work? Will I still be able to keep all my songs that way?

    I'm going to assume the consolidating files does not work due to hard drive space limitations.
    Since you're moving to Windows 7, have you tried using the Windows files and settings transfer utility?  That will move everything for you to the same location on the new computer, it also allows some control over what actually gets moved.
    Alternatively, if you know the location of all of the media, it can be manually moved by copying it from the old computer to the new computer in the same location.
    Also, using the Apple article on moving the library, take a slight twist on what it says.  Move the iTunes library to the external drive, update the settings in iTunes to reflect the library being on the external drive, then consolodate it.
    The options are endless for moving the library... it simply takes a little effort to make it happen and possibly a twist on existing "standard" methods depending on your unique situation.

  • I deleted all my music files and then emptied the trash.. I didn't know that I wouldn't be able to play those songs in iTunes anymore.

    I deleted my music files and then emptied my trash bin and later realized that I can't play the songs in iTunes anymore if the files are delted. Is there anyway I can recover all the files?

    1) If you bought them from Apple you canprobably download them again.
    2) If you back up your computer as you should, they will be on the backup.
    3) If you stop using your computer this instant (because as you use the computer it overwrites deleted files even if you have lots of space), buy recovery software ($100+), there is a  chance you can recover some of them, though they may have lost filenames and will be in quite a mess.

  • HT4527 I am trying to move my library and playlists to a new computer by burning to CD's. However, I followed the directions by going to File and then Library - then they said to go to burn CD(s) - I DO NOT have that option for some reason. How do I do th

    I am trying to move my library and playlists to a new computer by burning to CD's. However, I followed the directions by going to File and then Library - then they said to go to burn CD(s) - I DO NOT have that option for some reason. How do I do this? I have done the library sharing thing but I am getting rid of my primary computer and am afraid I will lose the library.

    To move an iPhoto Library to a new machine:
    Link the two Macs together: there are several ways to do this: Wireless Network,Firewire Target Disk Mode, Ethernet, or even just copy the Library to an external HD and then on to the new machine...
    But however you do choose to link the two machines...
    Simply copy the iPhoto Library from the Pictures Folder on the old Machine to the Pictures Folder on the new Machine.
    Then hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Choose Library'
    and select the Library that you moved.  That's it.
    This moves photos, events, albums, books, keywords, slideshows and everything else.
    Your first option didn't work because you imported one Library to another. Every version and thumbnail is imported like a distinct photo, you lose all your Albums, Keywords etc., the link between Original and Previews is destroyed, the non-destructive editing feature is ruined and so on. In summary: it's mess.
    Your second option didn't work because you simply referenced her library on the old machine.
    Regards
    TD

  • Powershell script - how to read a registry hive and store the value in text file and then again read the text file to write the values back in registry

    Hi All,
    powershell script Method required to read a value from registry and then taking the backup of that values in some text file.
    For example the hive is
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path
    and under path i need to take back up  of values in some text file and then put some value in the registry after back is taken in text file.
    Also how to read the text file values so that we can again write to registry hive  back from the back up text file.
    Your help is much appreciated.
    Umeed4u

    I think you need to read this first:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/a0def745-4831-4de0-a040-63b63e7be7ae/posting-guidelines?forum=ITCG
    Don't retire TechNet! -
    (Don't give up yet - 12,830+ strong and growing)

  • How to open a pdf file and then attach it with images

    I am new to Indesign Server.
    I'm currently working on a pdf.
    I have a white blank pdf template.
    that I want to attach/glue it with images.
    How to open a pdf file and then attach it with images.
    Please, help me.
    Thanks.

    First step would be to make yourself familiar with InDesign desktop version.
    Whatever you intend to achieve, do it there manually. (see regular app docs or forums)
    Then try to automate your steps with scripting (see scripting docs or forum)
    If you can do it with a script in the desktop version, that script will likely also run in ID Server. (see server forum).
    If you can specify missing features not achievable thru scripting or manual use, reconsider to write a plugin (this forum).
    A seasoned C++ programmer will need a few months to learn the basics, wade thru tons of documentation etc. Alternatively consider to hire a consultant to do the development work for you.
    Dirk

  • HT1343 On my 4 1/2 year old Macbook I could select multiple files  by highlighting a file and then moving cursor over a file lower in the list, and pressing shift-control-click. I can't do that in now with Mac Pro.  What am I doing wrong?

    ghlighting a file and then moving cursor over a file lower in the list, and pressing shift-control-click. I can't do that in now with Mac Pro.  What am I doing wrong?

    Holding down the control key will invoke "right-click."
    Depending on the View, holding down Shift will with either toggle the selection (Icon View), or it will make a continuous selection from the previous selection (List View or Column View).
    The only way to make a continuous selection in Icon View is to drag out a selection marquee around or through the icons.
    I can't remember the behavior of previous OS's.

  • Taking the kth-column of multiple files and then joining them together in a single file

    Hi
    I would like some help with array manipulation
    I have multiple (1000) files with 5 columns each and 20,000 rows. The first row of each file has a header that labels the columns.
    I would like to be able to read these files, pull out colum 3 from each file and then build these into a new 2D array. It would be nice if they also had their corresponding header labels. So then I would end up with the new 2D array containing 1,000 columns (corresponding to column 3 of each of my 1000 files) with 20,000 rows plus a first row with the header labels.
    I would also like the option to in future select column 2 for example, or column 5; plus I would also like the functionality to allow me to perhasp pull out more than one colum, e.g. colum 2 and 3, before we build the new array.
    I hope I made some sense and that someone can help. Thanks you

    RVR,
    This is a great exercise to get familiar with LabVIEW's array functions.  A great place to start is actually the LabVIEW help on arrays, located here:
    http://zone.ni.com/reference/en-XX/help/371361B-01/lvconcepts/grouping_data_with/
    Depending on your data format, you can probably use the Read From Spreadsheet File VI to bring your data into a 2-d array.  You could then use the index array VI to pull your column out.  You could do this in a For loop and use Autoindexing to build your 1,000 column resulting array.  I would leave everything as a String format until I'm done. 
    This doesn't sound like a very difficult task.  Good luck!
    --Paul Mandeltort
    Automotive and Industrial Communications Product Marketing

  • Adding line to txt file and then rename

    Hello there. I am trying to create a class that will add a line to a txt file and then if the nuber of lines are greater than 5 it will rename the file.
    I think I have solved it with this class.
    My problem is that the file2.renameTo does not work does anyone have any suggestions why?
             public void CopyLines(String string, String location, String fileName) throws IOException {
                 BufferedReader inputStream = null;
                 PrintWriter outputStream = null;
                   GregorianCalendar calendar = new GregorianCalendar(Locale.UK);
                boolean b=false;
                 try {
                     int counter = 0;
                      File file2 = new File(location + fileName);
                      ArrayList arrays = new ArrayList();
                      if (file2.exists()){
                     inputStream =
                         new BufferedReader(new FileReader(file2));
                     String l;
                     while ((l = inputStream.readLine()) != null) {
                          arrays.add(l);
                         counter++;
                     outputStream =
                         new PrintWriter(new FileWriter(location + fileName));
                      if (!arrays.isEmpty()){
                           for(int i= 0; i<arrays.size();i++){
                              outputStream.println(arrays.get(i));
                     outputStream.println(string);
                     if (counter>5){
                          String newFileName = location + fileName + calendar.getTime().getTime();
                          b = file2.renameTo(new File(newFileName));
                 } finally {
                     if (inputStream != null) {
                         inputStream.close();
                     if (outputStream != null) {
                         outputStream.close();
             }

    What is ". . .does not work. . ."?

  • With Mozilla Firefox, I cannot go to "File" and then "Send Link" so as to pull up an email ready to send via Outlook Express, as I can with Internet Explorer - how do I change the settings to permit this?

    If I am using Explorer, I can go to "File" and then "Send Link" -
    an email will automaticallt pop up, with the website url pasted in;
    I merely put in the recipents email address, hit Send, and away it goes
    With Firefox, the email does not pop up; I have to manually pull up an email ("create mail"), then copy and paste the website url
    displayed by Firefox
    I want to override this default to Explorer

    Hi,
    Please try this: '''Tools''' (or '''Alt''' + '''T''') > '''Options''' > '''Applications'''. Look for or start typing '''mailto''' in the search box and for the '''Action''' change it to the desired mail client (the application that opens up in Explorer) if the value is different.
    '''Options''' > '''Applications''': https://support.mozilla.com/en-US/kb/Options%20window%20-%20Applications%20panel
    Managing Actions: https://support.mozilla.com/en-US/kb/Managing%20file%20types

  • How do I scan a photo to a file and then send the file as an attachment via email.

    How do I scan a photo to a file and then send the file as an attachment  via email.

    All of this depends largely on what printer /software you have, which Email client you use and to some extent which OS you are running.
    Most HP printers have HP Solution Center which is used to set up scanning,choosing where to save,etc. Once a file/photo is scanned and saved to the folder, open the folder.Select the file and at the top of the window should be the option to 'Email'.
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • Add image in uploaded pdf file and then save it specific location using C#

    I need to upload a pdf file and then add image in that file and then save it in specific location. This process should be in C# . Is it feasible or not in Acrobat XI Pro ?

    Hi Irosenth,
                        In 'License & Compliance Services' document provided by Adobe, they specified as
    For server use, installing desktop licenses in a server based environment is generally allowed,
    so long as the total number of users, (not concurrent users) who can access the software
    deployed on that server, do not exceed the Permitted Number of licenses. Usage is defined as
    individuals or entities who “use, download, copy OR otherwise benefit” from the
    functionality of the Software installed on the server.

  • In the past when I have imported my dslr video/audio files and then my zoom audio files Final Cut Pro has organized them in pairs in my library. For some reason my video/audio and my audio are being organized seperately. How do I fix this? Thanks!

    In the past when I have imported my dslr video/audio files and then my zoom audio files Final Cut Pro has organized them in pairs in my library. For some reason my video/audio and my audio are being organized seperately. How do I fix this? Thanks!

    Thank you Russ! Seems as though the timestamp on my audio files was completely incorrect so it placed the files far away from the corresponding video. I've modified the timestamp information and this has helped. The hour/minute information is incorrect but at least now I'm in the ballpark. Thank you!

  • When I click "File" and then "New" it keeps opening a new file as a layer and not a background. RGB is selected as the mode.

    When I click "File" and then "New" it keeps opening a new file as a layer and not a background. RGB is selected as the mode.
    With new files opening as a layer and not a background I'm not able to create multiple layers and it wont let me convert the layer to the background.
    How did this happen. I used PS just yesterday and had no problems. Today my computer did mandatory updates and now this.

    Yes. You are using the Ellipse Tool's Pixel option. So it is laying down pixels as it is supposed to do without creating a layer.
    Choose the Shape option:
    Also Layer menu > New Layer creates layers and the curled paper at the bottom of your Layers palette also creates a New Layer. I hope those work.

Maybe you are looking for

  • BACKGROUND PROCESSING, REPORT NOT LOADING, "OBJECT NOT SET TO INSTANCE..."

    Post Author: thecoffeemachine CA Forum: .NET I already posted this message in other Web sites, but I am almost getting crazy here and I need help: HI: The Web application I am testing was having several issues related to loading Crystal Reports. It w

  • How do I get iTunes to sync working PDF files to iPad (iBooks)?

    iTunes is synching PDFs into its books section (I can confirm the latest file times) but not passing the updated PDF to iPad iBooks during syncs (the file is selected for sync).  How do I get iTunes to sync the latest PDF to iPad without manually des

  • XML Namespace Prefix required

    Hello, our partner uses Biztalk to receive our SOAP calls. They tell us that each attribute and element needs to have the namespace prefix otherwise Biztalk cannot read it. We are sending: SAP XI Output <?xml version="1.0" encoding="utf-8" ?> <ns11:R

  • Upgraded to larger HD cannot retrieve from earlier backups on Time Capsule... help!

    Hi I Took out my small, original HD and upgraded to larger HD. Cloned my computer and reistalled it onto the new HD. Now, I cannot retrieve from earlier backups from older HD. I can see the data in pink on right, but it refuses to go past  the day of

  • Bad Quality of Fade to black after transcoding

    Hi everybody! I have a problem with Premiere Pro CS3/Encore. I created a sequence in Premiere and send it via "Export to encore" to Encore. It was a DV movie and I chose "PAL High Quality" for the transcoding. Most of the video is fine but when there