Recovery of table with deleted archived file

Hi all,
long back I had created a table. Recently one user has dropped the table by mistake. When I am looking for the archived file, I saw that, I have only file no 5,6 and 7 but file no. 1 and 2 are missing. Because of that reason, I am unable to recover that table. If anyone knows any method by which I can recover the table then please let me know.
Thanks and Warm Regards,
Baishali

Hi,
What is the database version?
How did you know that the table is stored in files 1, 2 and 3? If you have no backup of those files and/or a recent database backup (assuming that the table is stored in those files), then it is not possible to recover the data.
Oracle® Database Backup and Recovery Basics
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/toc.htm
Oracle® Database Backup and Recovery Advanced User's Guide
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/toc.htm
Do you have flashback enabled? If yes, then please refer to:
Using Flashback Drop and Managing the Recycle Bin
http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/tables.htm#ADMIN01511
Regards,
Hussein

Similar Messages

  • Count total number of record of table with deletion from archiving object

    Does anyone know is there any SAP standard program to count the total number of record of the table with deletion from Archiving Object and display in repprt?

    Not sure of the question. Are you looking to get the sql "select count(*) from table" from using the TopLink expression framework or are you getting that SQL already and want something else?
    If you are looking just to get the count from a table/class, you can use a ReportQuery:
    ReportQuery rquery = new ReportQuery(ClassToQueryOn.class);
    rquery.addCount(); //equivalent to count(*);
    session.executeQuery(rquery);
    You can use a report query to return data instead of objects, and use selection criteria just like a normal read query.
    Best Regards,
    Chris

  • How to delete Archived files from FTP

    HI,
    I am looking to delete Archived files from FTP Server, Can anybody have idea about this.
    Thanks,
    Ram

    To be frank, deletion of archived files is really a manual activity and is never in reality done by an interface
    so you have two options;
    1. log into the archived folder and manually delete archived files
    2. run a script in your file adapter - this way everytime the interface is triggered the files will be deleted - but then y do this.. instead just dont archive any files at all

  • Archivelog Mode Deleting archive files

    Hey,
    I have been reading about archivelog mode for a while and understand the concept and how it works. The one thing that is still alluding me is the removal/deleting of old archivelog files and how long I need to keep the files.
    I hear people saying "backup your archive files", how long do I need to keep the backed up archive files?
    What this sounds like to me is "you better keep every archive file ever created by your database in order to restore". This sounds silly to me but thats how I am interpreting this. Can someone please help me understand this a bit better?
    Thank

    Archive logs are normally backed up when a database backup is done. Some shops might backup archive logs more or less frequently. You need to keep the backuped archive logs for as long a necessary to meet the recovery policies set forth by the business.
    For example, for some database that I manage the business decision is to retain backups for an entire year. Other database have a smaller time frame of 2 to 6 months and some are only a week. So you can see that I do not keep every archive log ever created, I just keep the ones necessary to fulfil the recovery policies set by the business.

  • AAUGHH!!! Accidentally deleted archive files on external hard drive!!

    In trying to back up important archive files from one external hard drive to another, I accidentally deleted them!! Here's how it happened: A folder in XHD1 contained archive files from the past four years. I wanted to copy them to XHD2. But instead of dragging the Archive folder from XHD1 to XHD2, I accidentally dragged the Archive folder (which only contained 1 file) from XHD2 to XHD1. So, I now have two Archive folders on each XHD, both containing only 1 file instead of hundreds of important archive files. So far I've tried Time Machine (no luck, it's only set up for my computer), and I've tried "Undo Copy of Archive" under Edit in the Finder menu. Is there any other way to retrieve those files? I haven't emptied Trash, if that means anything. Please, HELP

    situations like this are why you should back up all your data, not just the main drive. the only way you can maybe recover those files now is by using data recovery software like [Data rescue II|http://www.searchbling.net/?c=91&q=datarescueII] or [FileSalvage|http://www.searchbling.net/?c=91&q=filesalvage]. you should do it asap to maximize the chance of successful recovery.

  • Deleting archive files

    Hi gurus,
    we have been archived pi messages and we can see this with t-code al11. We would like to physically delete this files. How can we do that?
    Kind Regards,
    PM

    Hi Peter,
                      Do you possess administrative rights to install software in your system? If yes please download the WINSCP software from this link http://winscp.net/eng/download.php
    After you install the software, consult the SAP logon pad and put server details of your PI server in WINSCP configuration. Put port number as 22.
    Request your SAP BASIS OS level team to provide you with username and password to login to the PI server at Operating system level. with WINSCP you can copy, move,create and delete files in the PI server. WINSCP acts as a FTP bridge between your system and PI server.
    If you do not have administrative privileges. You need to write scripts or batch files. If operating system in PI server is unix/linux use this link http://www.unix.com/shell-programming-scripting/24911-how-delete-files-unix-using-shell-script.html
    to write shell scripts to delete files. Request your basis team to copy the script to server and execute it once.
    If your operating system is windows then use this link http://stackoverflow.com/questions/51054/batch-file-to-delete-files-older-than-n-days. Request your basis team to copy the batch to server and execute it once.
    Finally you can use the feature "Defining Operating System Commands Before/After Processing" in File sender or receiver communication channel configuration settings. Here you can set the command to execute shell scripts or batch files which will delete old files during each  instance of running the scenario. For more information on this technique try these links
    Executing Unix shell script using Operating System Command in XI
    http://help.sap.com/saphelp_nwpi71/helpdata/en/44/556cb799c93677e10000000a114a6b/frameset.htm
    https://wiki.sdn.sap.com/wiki/display/XI/SAP%20XI%20File%20Adapter%20OS%20Command%20Line%20Feature
    Glimpse at OS Command: Yet Another Scenario
    Hope this solves your problem.
    regards
    Anupam

  • Deleting archived files

    I am not able to delete any files in my archive. I keep getting an "error please try again message." I moved all my files to the archive because I'm over my limit but I'm not able to actually delete any of them.

    Thanks, Ken. I had been trying to clear my archive for a few days, and then
    about 2 hours after I made that post it finally cleared out. No clear
    indication why. Thanks for looking into it.
    On Sun, Sep 7, 2014 at 2:32 PM, Ken G. Rice <[email protected]>

  • Upload table with a flat file Once - without program

    Hello,
    I know that it is possible to upload a Z table from a flat file. (without program)
    I do not have a problem with this table. I manage a  maintenance view (SM30) and I can thus enter one by one a recording in this table and to put it in an transport request(R3TR-TABU)
    I would like to enter all the recordings only one (with a file.)
    I know that it is possible... but how???
    Thank you to help me.
    Servane

    The only other way I know how to put table entries in is thru SE11   Utitlties>Table Contents->create entries.  But this does not allow to be uploaded via file.
    Regards,
    Rich Heilman

  • Hello all trying to update a table with utl input file

    Hi all
    please kindly help me with the below :
    i have a table having 100 rows ,where i have to update the vxxx_DESC column from teh input file ,when the xxx_CODE is equal to vxxx_CODE from teh input file which is 3 didgit numeric format like the below :
    exmp csv nput fie: where i have some duplicate records in it.
    238,FKP
    208,DKK
    242,FJD
    978,EUR
    978,EUR
    978,EUR
    953,XPF
    978,EUR
    950,XAF
    from the below script, in the log file its writing for me like -
    Total Records present in Input file : 275
    Total Records updated sucessfully in table : 186
    But the update count is wrong whihc is more than the existing records. how do i get the exact update count avoiding the duplicates from the input file.
    Please kindly help.
    DECLARE
    finfile UTL_FILE.file_type;
    flogfile UTL_FILE.file_type;
    vglobal_name VARCHAR2 (300) := NULL;
    vlogfile_PATH VARCHAR2 (500) := NULL;
    vINFILE_PATH VARCHAR2(100) := NULL;
    vinfile_name VARCHAR2 (400) := 'INPUTFILE.csv';
    vlogfile_name VARCHAR2 (500) := 'INPUTFILE.log';
    vxxx_CODE CUN_CODE.xxx_CODE%TYPE :=NULL;
    vxxx_DESC CUN_CODE.xxx_DESC%TYPE :=NULL;
    vinput_rec VARCHAR2 (500) := NULL;
    ntotal_rec NUMBER (20) := 0;
    nUPD_rec NUMBER (20) := 0;
    BEGIN
    DBMS_OUTPUT.ENABLE (50000);
    IF INSTR(vGlobal_name,'RAMAN') > 0
    THEN
    vLOGFILE_PATH := '/home/log/';
    vINFILE_PATH := '/home/rpts/';
    ELSE
    DBMS_OUTPUT.PUT_LINE('Incorrect DB instance, so exiting from: ' || vGlobal_name);
    RETURN;
    END IF;
    BEGIN
    flogfile := UTL_FILE.fopen (vlogfile_PATH, vlogfile_name, 'W');
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line ( 'ERROR WHILE OPENENING LOG FILE : '
    || SUBSTR (SQLERRM, 1, 200)
    END;
    BEGIN
    finfile := UTL_FILE.fopen (vINFILE_PATH ,vinfile_name, 'R');
    LOOP
    vxxx_CODE :=null;
    vxxx_DESC :=null;
    BEGIN
    UTL_FILE.get_line (finfile, vinput_rec);
    vinput_rec:=TRIM(vinput_rec);
    ntotal_rec := ntotal_rec + 1;
    vxxx_CODE := SUBSTR(vinput_rec,1,INSTR(vinput_rec,',',1,1)-1);
    vxxx_DESC := SUBSTR(vinput_rec, INSTR(vinput_rec,',',1,1)+1);
    BEGIN
    UPDATE CUN_CODE
    SET xxx_CODE= vxxx_CODE
    WHERE xxx_DESC= vxxx_DESC ;
    nUPD_rec := nUPD_rec+SQL%ROWCOUNT;
    EXCEPTION
    WHEN OTHERS
    THEN
    UTL_FILE.put_line
    (flogfile,
    'ERROR FOR WHILE UPDATING : '
    || vxxx_CODE
    || SUBSTR (SQLERRM, 1, 250)
    END;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    UTL_FILE.put_line
    (flogfile,
    'No more records in the input file.So Exiting the update :'
    EXIT;
    WHEN OTHERS
    THEN
    UTL_FILE.put_line
    (flogfile,
    'ERROR WHILE READING FROM INFILE. '
    || SUBSTR (SQLERRM, 1, 250)
    EXIT;
    END;
    END LOOP;
    UTL_FILE.put_line (flogfile,
    'Total Records present in Input file : ' || ntotal_rec
    UTL_FILE.put_line (flogfile,
    'Total Records updated sucessfully in table : ' || nUPD_rec
    DBMS_OUTPUT.PUT_LINE('Total Records updated in table : ' || nUPD_rec);
    DBMS_OUTPUT.PUT_LINE('Total Records present in Input file : ' || ntotal_rec);
    EXCEPTION
    WHEN OTHERS
    THEN
    UTL_FILE.put_line (flogfile,
    'ERROR WHILE OPENING INFILE '
    || vinfile_name
    END;
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line ( 'ERROR WHILE GETTING GLOBAL NAME'
    || SUBSTR (SQLERRM, 1, 250)
    END;
    <<skip_loop>>
    IF UTL_FILE.is_open (finfile)
    THEN
    UTL_FILE.fclose (finfile);
    END IF;
    IF UTL_FILE.is_open (flogfile)
    THEN
    UTL_FILE.fclose (flogfile);
    END IF;
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line ( 'ERROR WHILE ACCESSING DB '
    || SUBSTR (SQLERRM, 1, 250)
    END;
    /

    975482 wrote:
    i have a table having 100 rows ,where i have to update the vxxx_DESC column from teh input file ,when the xxx_CODE is equal to vxxx_CODE from teh input file which is 3 didgit numeric format Looks like your code does exactly the opposite :
    UPDATE CUN_CODE
    SET xxx_CODE= vxxx_CODE
    WHERE xxx_DESC= vxxx_DESC ;Additional suggestions :
    1) create a directory object pointing to the location of your input file
    2) create an external table to read the file
    3) use a single UPDATE or MERGE statement to do the job, instead of this mess

  • Managing assets in Creative Cloud - deleting archived files

    I have used up nearly all of my 20GB of Creative Cloud storage. However, when looking in Finder, I notice that I really only have about 6GB in the folder. Turns out, CC archives files, which is great in the event that I lose a file on a hard drive or a file get corrupted. I'd be able to restore from the archive. However, all those archive files take up a lot of space. I found out how to delete the archive files using the web based Manage Assets. However, it won't let me SHIFT select. I have to actually click each one, one at a time. I have over 3500 archive files. That will take me 20-30 minutes to do this.
    Is there a better way to delete the archive files, other than DELETE ALL ARCHIVES?
    Trevor Ward
    www.trevorwardphotography.com

    May be, I want delete file psd in Creative Cloud storage in Brackets but i don't know. Can you help me?

  • Problem with deleting a file..FILE I/O

    Hi,
    I have been trying to delete a file using File class's delete method.
    In my application, I am creating files using File.write method dynamically.after some point I would like to delete the same file which can be captured by the user's action. I am suing delete of File class and it seems to be not working. Can someone help mein this regard.
    My code:
    In jsp page:
    <%
    File fname=(File)session.getAttribute("opFile");
    String str="c:/onDemand/"+fname.getName();
    File fname1=new File(str);
    System.out.println(fname1);
    System.out.println("isdelete?"+fname1.delete());
    %>
    and output I got @console:
    c:\onDemand\xxAlH414kHOgUn9FACSs27z00489568.tif
    isdelete?false
    But I can see the file ,its neither getting deleted nor throwing an exception.
    Please help me....Thanks

    Are the files that you are trying to delete being served by the web server?
    I don't know if in your operating system the web server can lock the files when reading them to avoid being deleted when they are being served to the web clients.
    Maybe you'll need to have a separate process (a scheduled script or Java program) that periodically deletes all the old files.

  • Recovery window retention policy deletes archive logs before a backup?

    Hi All,
    Oracle 11G on Windows 2008 R2
    This afternoon, I changed my RMAN retention policy from 'RETENTION POLICY REDUNDANCY 3' to RETENTION POLICY RECOVERY WINDOW OF 3 DAYS'
    However, i checked tonight and after my daily backup ran, all the archive logs prior to the backup had been deleted! Thus meaning i dont think i can restore to any point in time, prior to my daily backup. All the .arc logs were there after the backup. So i tried another test and kicked off the daily backup again. During the backup process, the archive logs got deleted again! Now i don't have any archive logs..
    Is this proper behaviour of RETENTION POLICY RECOVERY WINDOW?? I thought it would keep all the files needed for me to restore to any point in time for the previous 3 days. When i used REDUNDANCY, with my daily backups, it kept 3 days worth of backups+ archive logs so i could restore point-in-time to any point. How can i use RECOVERY WINDOW so that i can actually restore to any point-in-time for the 3 days??
    I wanted to change to RECOVERY WINDOW since i read that by using REDUNDANCY it only keeps X copies of a backup (so if i ran the backup 3 times in a day, i would only have those 3).
    Thanks in advance.

    Hi All,
    Here is the SHOW ALL output:
    RMAN> show all;
    RMAN configuration parameters for database with db_unique_name MMSPRD7 are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 3 DAYS;
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOA
    D TRUE ; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'D:\ORACLE\DATABASE\ORA11G\DATABASE\SNCFM
    MSPRD7.ORA'; # default
    Here is the RMAN script:
    Recovery Manager: Release 11.2.0.3.0 - Production on Mon Jan 20 23:03:12 2014
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: XXX (DBID=)
    RMAN> CROSSCHECK ARCHIVELOG ALL;
    2> CROSSCHECK BACKUPSET;
    3> CROSSCHECK BACKUP;
    4> CROSSCHECK COPY;
    5> DELETE NOPROMPT EXPIRED ARCHIVELOG ALL;
    6> DELETE NOPROMPT EXPIRED BACKUPSET;
    7> DELETE NOPROMPT OBSOLETE;
    8> BACKUP CURRENT CONTROLFILE;
    9> BACKUP AS COMPRESSED BACKUPSET DATABASE PLUS ARCHIVELOG DELETE INPUT;
    Also, not sure if you needed the whole RMAN output, but here is the deletion part:
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 3 days
    using channel ORA_DISK_1
    Deleting the following obsolete backups and copies:
    Type                 Key    Completion Time    Filename/Handle
    Backup Set           1392   15-JAN-14        
      Backup Piece       1392   15-JAN-14          F:\ORAFRA\MMSPRD7\BACKUPSET\2014_01_15\O1_MF_NNNDF_TAG20140115T190054_9FG89R8N_.BKP
    Backup Set           1393   15-JAN-14        
      Backup Piece       1393   15-JAN-14          F:\ORAFRA\MMSPRD7\BACKUPSET\2014_01_15\O1_MF_ANNNN_TAG20140115T192204_9FG9KDHX_.BKP
    Backup Set           1397   16-JAN-14        
      Backup Piece       1397   16-JAN-14          F:\ORAFRA\MMSPRD7\BACKUPSET\2014_01_16\O1_MF_ANNNN_TAG20140116T190027_9FJWNW6L_.BKP
    Backup Set           1400   17-JAN-14        
      Backup Piece       1400   17-JAN-14          F:\ORAFRA\MMSPRD7\BACKUPSET\2014_01_17\O1_MF_ANNNN_TAG20140117T190138_9FMK349M_.BKP
    deleted backup piece
    backup piece handle=F:\ORAFRA\MMSPRD7\BACKUPSET\2014_01_15\O1_MF_NNNDF_TAG20140115T190054_9FG89R8N_.BKP RECID=1392 STAMP=836938856
    deleted backup piece
    backup piece handle=F:\ORAFRA\MMSPRD7\BACKUPSET\2014_01_15\O1_MF_ANNNN_TAG20140115T192204_9FG9KDHX_.BKP RECID=1393 STAMP=836940124
    deleted backup piece
    backup piece handle=F:\ORAFRA\MMSPRD7\BACKUPSET\2014_01_16\O1_MF_ANNNN_TAG20140116T190027_9FJWNW6L_.BKP RECID=1397 STAMP=837025228
    deleted backup piece
    backup piece handle=F:\ORAFRA\MMSPRD7\BACKUPSET\2014_01_17\O1_MF_ANNNN_TAG20140117T190138_9FMK349M_.BKP RECID=1400 STAMP=837111700
    Deleted 4 objects

  • Deleted archive files during the datafile offline period

    Dear Gurus
    I want to report a mishap that happened in one of our system.
    I made one of the data files x01.dbf offline(the only datafile for that tablespace say X )
    Now unfortunately i deleted the archives during the period the datafile was offline ..
    Now it is not letting me do any operation like any ddl operation ..
    How can I restore the database back to normal .
    Thanks in advance
    abhi

    Hi again,
    Dear GuruOh la, I'm not a guru, just an old oracle newwbie!
    I did not understand what was that 7 error game :)Lesson learned: do not try to translate obscure French stuff :-)
    About your problem, if this does not work, you have only one possibility: drop it. If the drop fails you'll have to bounce the database in order to do that.
    If you have to "recover" from the tablespace loss, you'll have to do some TSPITR (Tablespace Point In Time Recovery).
    HTH,
    Yoann.

  • Problem with deletion of files

    hi
    i have a very strange problem, so the application is swing app, i use intellij IDEA this is only informative.It is for uploading files to ftp, at the end of the process i must delete files, the problem is that the last one file doesn't delete.The strange is that when i run the application from idea it works ok, but when i run the application from jar it can't delete the last file
    i make jar file with ant. the difference between the running application from idea and from the jar is that in idea i create instance of Login (JFrame) and it is on, from the jar there is a method that at run time execute the following command in a new thread : "java -Xms128M -Xmx512M"
    + " -cp ./;ProcessingTool.jar; + "(here is adding all libs to class path...)"
    + " dialogs.Login");
    i thought that i have not close a stream, but why then from idea it works, and from jar doesn't.
    please help!!!

    i have used adobe reader 8 and now 9. However, i am having trouble opening form files from http://www.mca.gov.in which is a government site.
    the error i get is "this document enabled extended features in adobe reader. the document has been changed since it was created and use of extended featuresis no longer available. Please contact the author for the original version of this document."
    please help as i am able to open these files on another computer running older adobe reader version
    thanks in advance
    regards,
    ashish ahuja

  • How do i dynamically populate a table with an excel file?

    I need to move a doc from a Word file to some kind of help file (chm, webhelp, whatever). The Word doc has a bunch of tables where most of the data is the same for each customer. Unfortunately, the software has been updated in such a way as to make two of the columns customer specific.
    The customer specific data will be stored in an Excel worksheet on the customer's server.
    Thanks!

    Sorry but there is no way to do this. With this setup those two columns would have to be manually updated. Alternatively you could save the Excel file as a HTM file and import that into your RH project.

Maybe you are looking for