Table Recovery

Hi,
I have a database of around 5Tb. And in that db one of my table got corrupted on Tuesday which is having some 50million records consuming 30Gb of space. Now I want to recover this table without shutting down the database. What are the possible ways to recover the same. My database is running in archivelog mode and I have level 0 backup taken on Sunday.
I have another machine with 80Gb of space.
Please let me know how to recover the particular table.
Regards,
-Msh

You can try the following
1.     Extracted system tablespace to specified location.
2.     Extracted redolog tablespace to specified location.
3.     Extracted tablespace containing required table to specified location.
4.     Created init.ora file from its template. Create a script to create a control file for Aux oracle database containing these three tablespaces. For example.
STARTUP NOMOUNT pfile= /trim/restore/oradata/pfile/initAUXDB.ora
CREATE CONTROLFILE SET DATABASE DTIMLDB RESETLOGS ARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 2
MAXDATAFILES 5000
MAXINSTANCES 8
MAXLOGHISTORY 843
LOGFILE
GROUP 1 '/trim/restore/oradata/redo01.log 'SIZE 1000k ,
GROUP 2 '/trim/restore/oradata/redo02.log 'SIZE 1000k
DATAFILE
'/trim/restore/oradata/data/system01.dbf',
'/trim/restore/oradata/data/rbs01.dbf',
'/trim/restore/oradata/data/data_d01.dbf';
5.     Started the SQLPLUS and executed the create control file statement.
6.     Performed the recovery to time in time by applying archive log files.
7.     Mounted and opened the aux database with resetlog (incomplete recovery).
8.     Extract the table creation script and insert statement for all the data in the table. This is an ASCII file with CREATE TABLE and INSERT INTO statements. Once extract is created then extract needs to be run as schema owner as create table/Insert statements does not specify the schema owner

Similar Messages

  • Single table recovery from hotbackup?

    In oracle 9i, accidently one of table has dropped, is it possible to recovery single table from the hotbackup without any downtime, to the user session..

    Hi
    No, you can't make it possible , you have to restore your whole database and perform the incomplete recovery to get your table back.however you can go for tablespace point in time recovery , where you only need to restoter the perticular tablespace datafile , without distrurbing the rest of the operation. hi alok,you should verify ur answer before posting here.because we can use TSPITR for recovery of drop table.
    As per Oracle Documentation
    User-managed TSPITR is most useful for recovering the following:
    An erroneous DROP TABLE or TRUNCATE TABLE operation
    An erroneous DROP TABLESPACE operation
    A table that is logically corrupted
    An incorrect batch job or other DML statement that has affected only a subset of the database
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96572/ostspitr.htm#421341
    Thanks and Regards
    Kuljeet Pal Singh

  • !! Urgent Help Needed in Database Table Recovery !!

    Hi,
    What happened is I add a new field to the table. It's a field which need reference but I didn't include it and proceed with table adjustment in under SE11->Utilities->Database Adjustment. I encountered an error during adjustment saying that the reference field is not set and I can't proceed further since the table is now locked. There's 2 options, to continue adjustment and to unlock the table. When I choose continue adjustment, it still lead to the same problem, so i choose to unlocked it thinking that I could be able to change it since there's a prompt saying that I might loose some data. Once I clicked on onlocked, then I it tells me that the adjustment is done. However, I found out that now my table was not editable. It's saying that it's not in the database.
    Can this table be recovered without the lost of data? Please anyone, I need this help urgently. THanks you in advance.

    Your DBAs might be able to help you.
    Rob

  • Single table recovery

    Is it possible to recover a single table in oracle instead of the entire database?
    We lost all of our data in just one table by mistake.
    Please let me know..

    user517674 wrote:
    We will have to go back atleast 3 or 4 days to recover. Wehn I run it for timestamp - 4 I get:
    ORA-01555: snapshot too old: rollback segment number 33 with name "_SYSSMU33$" too small
    IS there any other option available?Was it that the rows were deleted or was the table dropped?
    If it was dropped, you may (if you're lucky) stand a chance of getting it back with flashback...
    SQL> select * from t1;
             X          Y
             1         11
             2         12
             3         13
             4         14
             5         15
             6         16
             7         17
             8         18
             9         19
            10         20
    10 rows selected.
    SQL> drop table t1;
    Table dropped.
    SQL> select * from t1;
    select * from t1
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> flashback table t1 to before drop;
    Flashback complete.
    SQL> select * from t1;
             X          Y
             1         11
             2         12
             3         13
             4         14
             5         15
             6         16
             7         17
             8         18
             9         19
            10         20
    10 rows selected.
    SQL>

  • MaxDB Recovery - Table Data Recovery Failed

    Dear All,
    I'm trying to simulate the backup and recovery functionality of MaxDB by using Database Studio.
    This is what I've done so far,
    1) Create dummy table with data inside.
    2) Performed a complete backup.
    3) Performed log backup.
    4) Removed all the data within the dummy table.
    5) Performed a complete recovery of data and log backup.
    However, the table is still empty after recovery.
    Does this means that the recovery failed? Or the backup?
    There is no error message or whatsoever during the backup and recovery.
    I did some research and found some information about MaxDB recovery considerations, whereby it states that "recovering individual tables is not possible."
    Is that what causes it?
    Please advise further.
    Many thanks in-advance!

    > I did some research and found some information about MaxDB recovery considerations, whereby it states that "recovering individual tables is not possible."
    >
    > Is that what causes it?
    Nope. Single table recovery is not supported by any relational database - at least not the way that you'd like it to.
    The reason for that is not the technical implementation of data storage, but simple the way how relational databases have their data distributed over all the tables.
    Due to normalization you usually have a huge number of dependencies between the rows of multiple tables.
    Joined together these rows form your application information.
    If you would restore just one table, the dependencies between this  table and all the other tables would be broken.
    The database management software cannot repair it so you would have to manually ensure that the restored table still fits to the rest of the database.
    THAT is the reason why you always restore databases and not tables.
    If you're thinking now: Wait, what about things like Oracles table flashback/flashback query then?
    Well, these features do produce the mentioned inconsistencies as well, if applied to only one of the tables.
    And they are actually no recovery tools.
    Hope that clarifies your question.
    Always try to get your database back to a consistent state!
    regards,
    Lars

  • Advise tables - 16K pagesize migration

    Dear All,
    I'm in the process of upgrading our ECC 5.0 systems to ECC 6.0 with EhP5. While the process is on, I was prompted to migrate the tables in the BTABD, POOLD, STABD tablespaces to be migrated to 16K pagesize during the Checks phase. As mentioned in note 1099936,  I've created new tablespace and moved all the tables in the 4K pagesize tablespace to the newly created 16K tablespace except the following tables which lies in the BTABD tablespace.
    ADVISE_INDEX
    ADVISE_WORKLOAD
    EXPLAIN_ARGUMENT
    EXPLAIN_INSTANCE
    EXPLAIN_OBJECT
    EXPLAIN_OPERATOR
    EXPLAIN_PREDICATE
    EXPLAIN_STATEMENT
    EXPLAIN_STREAM
    I was not able to migrate these tables using the stored procedure as described in the note 10999836 as it throws an error "Advise tables are not supported". Please let me know how can I move these tables from 4K pagesize to 16K pagesize. Also let me know whether I can proceed with the upgrade without migrating these tables from the 4k tablespace to 16K pagesize tablespace.
    Awaiting your response/guidance to resolve the issue.
    Regards,
    Varadharajan M

    How can you move all tables from tablespace 4k to 16k ?
    On 1099936 note guide is :
    db2 "rename tablespace D3D#POOLD to D3D#POOL4KD"
    db2 "create tablespace <TABLESPACE> in <NODEGROUP> pagesize 16K managed by database using ( file '<PATH_TO_CONTAINER_16K>/<CONTAINER_16K>.container001' <SIZE_IN_MB>M ) bufferpool  <BUFFERPOOL_16K> extentsize 2 prefetchsize automatic dropped table recovery off"
    db2 "alter tablespace <TABLESPACE> autoresize yes maxsize none"
    db2 "grant use of tablespace <TABLESPACE> to public"
    but to move all data you have to execute after install "online_table_move " dll :
    db2 "call saptools.online_table_move( '<SCHEMA OF TABLE>', '<NAME OF TABLE>','<NEW 16KB DATA TABLESPACE>','<NEW 16KB INDEX TABLESPACE>','<NEW 16KB DATA TABLESPACE>','','','MOVE' )"
    How can I move all data ? selecting all table from tablespace ?
    Thanks a lot !

  • SAP R/3 System Copy - DB instance error

    Hi!
    I'm doing a SAP R/3 heterogeneous system copy.
    I'm insttaling the Db Instance (system copy) but in the step DB2 UDB Tablespaces I'm getting the following error:
    TRACE
    Execute: db2 create temporary tablespace PSAPTEMP16 in nodegroup IBMTEMPGROUP pagesize 16k  managed by system using ('/db2/ILD/saptemp1/NODE0000/temp16/PSAPTEMP16.000' ) extentsize 16 prefetchsize 16 bufferpool BP_STD_16K  DROPPED TABLE RECOVERY OFF
    ERROR 2008-07-21 15:03:25
    MDB-01043  Error message: DB6CliExecute(): [IBM][CLI Driver][DB2/AIX64] SQL0204N  "BP_STD_16K" is an undefined name.  SQLSTATE=42704
    The DB2 version is 8 and fixpak 15.

    Hi Beck,
    Thanks for the reply.
    But I began the installation from zero, but right now I'm having a different error with DB2, it doesn't start. I beilieve it has something to do with services and stuff like that but I dont know how to resolve it.
    santa_maria:db2ild 2> db2set -all
    [e] DB2CHKPTR=OFF
    [e] DB2CODEPAGE=819
    [e] DB2COMM=TCPIP
    [e] DB2COUNTRY=1
    [e] DB2DBDFT=ILD
    <i> DB2_OBJECT_TABLE_ENTRIES=50000
    <i> DB2_INLIST_TO_NLJN=YES
    <i> DB2_MINIMIZE_LISTPREFETCH=YES
    <i> DB2_REDUCED_OPTIMIZATION=4
    <i> DB2_EVALUNCOMMITTED=YES
    <i> DB2_ANTIJOIN=ON
    <i> DB2_SKIPDELETED=YES
    <i> DB2_HASH_JOIN=ON
    <i> DB2MEMMAXFREE=2000000
    <i> DB2ENVLIST=INSTHOME SAPSYSTEMNAME dbs_db6_schema DIR_LIBRARY LIBPATH
    <i> DB2COUNTRY=1
    <i> DB2COMM=TCPIP
    <i> DB2CODEPAGE=819
    [g] DB2SYSTEM=santa_maria
    [g] DB2ADMINSERVER=dasusr1
    santa_maria:db2ild 3> db2 get dbm cfg
    SQL6031N  Error in the db2nodes.cfg file at line number "0".  Reason code
    "11".
    santa_maria:db2ild 4> db2start
    SQL6030N  START or STOP DATABASE MANAGER failed.  Reason code "13".

  • Export-import in 9.7

    Hello DB6 experts!
    I've made an export-import in a 9.7 database.
    The problem is that after this clean process, I can't use the statement:
    db2 alter tablespace tbs_name reduce MAX
    it gives me an error:
    SQL1763N  Invalid ALTER TABLESPACE statement for table space
    It's an error expected if the tablespace was created in a db version previous that 9.7.
    Although, sin I have made an export-import, I think that tablespace was created in 9.7 version.
    Do you know how can I get rid of this error?
    regards,
    Filipe Vasconcelos

    I was able to check the log sapinst_dev.log and there is the following statement:
    function createTablespaceCreateStatement <done>, return <create tablespace PR8#BTABD
      in nodegroup SAPNODEGRP_PR8 pagesize 16k  extentsize 2 prefetchsize automatic
      no file system caching
      dropped table recovery off;
    So these tablespaces were created in 9.7 during the import.
    thanks.
    regards,
    Filipe

  • 39008 error in OBIEE

    I get the belo warningmesage which is not consistent. I have 7 warnings realted to this kind of issue.
    WARNINGS:
    WARNINGS:
    BUSINESS MODEL Core:
    [39008] Logical dimension table Clients has a source Client Company(W_ORG_D) that does not join to any fact source.
    [39008] Logical dimension table Need Last Discussion (W_LOV_D) has a source Need Last Discussion (W_LOV_D) that does not join to any fact source.
    [39008] Logical dimension table Recovery Date (W_DAY_D) has a source Recovery Date (W_DAY_D) that does not join to any fact source.
    BUSINESS MODEL Usage Tracking:
    [39008] Logical dimension table Calendar has a source NQ_CALENDAR that does not join to any fact source.
    BUSINESS MODEL Core New:
    [39008] Logical dimension table Clients has a source Client Company(W_ORG_D) that does not join to any fact source.
    [39008] Logical dimension table Need Last Discussion (W_LOV_D) has a source Need Last Discussion (W_LOV_D) that does not join to any fact source.
    [39008] Logical dimension table Recovery Date (W_DAY_D) has a source Recovery Date (W_DAY_D) that does not join to any fact source.

    Please see these docs.
    Error: "[39008] Logical dimension table COMPONENT_CODE has a source 'XYZ' that does not join to any fact source." Importing Essbase Cube Into Repository [ID 746919.1]
    DAC: Inactive tables (W_PERSON_D; W_ORG_D) and missing from Oracle Business Analytics Data Warehouse [ID 963369.1]
    Thanks,
    Hussein

  • Can't register Shared Services with workspace while using db2 9.1

    Hi,
    When I used Hyperion EPM to register workspace shared services with db2 9.1 pack 3,it's failed and workspace database configuration failed too.
    When I used db2 9.5, it's failed too.But workspace database configuration is success. When I excute the sentence as follow
    ===================================================================================
    db2 CREATE DATABASE HPSUX USING CODESET GBK TERRITORY CN COLLATE USING SYSTEM
    db2 connect to HPSUX
    db2 create bufferpool HPSUX_BP immediate size 256 pagesize 8k
    db2 create bufferpool HPSUX_BP_TEMP immediate size 512 pagesize 8k
    db2 terminate
    db2 force application all
    db2stop
    db2start
    db2 connect to HPSUX
    db2 "create regular tablespace HPS_TS pagesize 8k managed by system using ('hps_ts') extentsize 16k overhead 10.5 prefetchsize 16k transferrate 0.33 bufferpool HPSUX_BP dropped table recovery on"
    db2 "create system temporary tablespace HPS_TS_TEMP pagesize 8k managed by system using ('hps_ts_temp') extentsize 16k overhead 10.5 prefetchsize 16k transferrate 0.33 bufferpool HPSUX_BP_TEMP"
    db2 grant connect on database to user hypadmin
    db2 grant createtab on database to user hypadmin
    db2 grant bindadd,implicit_schema on database to user hypadmin
    db2 grant use of tablespace HPS_TS to user hypadmin with grant option
    db2 "update dbm cfg using DRDA_HEAP_SZ 2048"
    db2 drop tablespace USERSPACE1
    db2 force application all
    db2stop
    db2start
    =================================
    It's all work with db2 9.5 but still failed with db2 9.1.
    Can someone give me the suggestion?
    Thanks
    Edited by: [email protected] on 2009-7-23 上午12:25

    Start in Shared Services
    What have you Provisioned your user with?
    Are there Projects Registered with Shared Services? Have you Assigned Users to those Projects?
    I would suggest you refer to the Hyperion Security Guide as a starting point
    http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/hyp_security_guide.pdf
    Wayne Van Sluys
    TopDown Consulting

  • Unable to boot to Vista after changing Mac OS partition size

    Greetings,
    After creating an additional Mac OS partition, I can't boot into Vista anymore. Any way to fix it without re-installing?
    I have an intel iMac running Leopard, and Vista on a bootcamp NTFS partition. That was working fine.
    I created a new partition on the drive (using space from my Leopard partition) and installed Tiger on it for a short project.  I’ve been dual booting between Leopard and Tiger just fine.
    However, now I’m unable to boot using the Vista partition.  I boot to a black screen with white text that states "No bootable device, hit any key" error. Of course hitting a key does nothing.
    I can boot into Leopard/Tiger just fine, and can see the Vista partition from Leopard and view the files as usual. However I just can't boot into Vista. I tried running the repair tool from the Vista install disk, but that doesn't work on the NTFS partition (I think it doesn't see a windows partition to fix). Disk utility from Leopard shows the vista partition as the right size and formatted as NTFS.
    I'm really stumped by the problem. Any help would be appreciated.
    Thanks!

    TestDisk - CGSecurity.
    TestDisk is a powerful free data recovery software! It was primarily designed to help recover lost partitions and/or make non-booting disks bootable again when these symptoms are caused by faulty software, certain types of viruses or human error (such as accidentally deleting a Partition Table). Partition table recovery using TestDisk is really easy.
    TestDisk can
    * Fix partition table, recover deleted partition
    * Recover FAT32 boot sector from its backup
    * Rebuild FAT12/FAT16/FAT32 boot sector
    * Fix FAT tables
    * Rebuild NTFS boot sector
    * Recover NTFS boot sector from its backup
    * Fix MFT using MFT mirror
    * Locate ext2/ext3 Backup SuperBlock
    # Mac partition map
    # NTFS ( Windows NT/2000/XP/2003/Vista/2008 )
    TestDisk has features for both novices and experts. For those who know little or nothing about data recovery techniques, TestDisk can be used to collect detailed information about a non-booting drive which can then be sent to a tech for further analysis. Those more familiar with such procedures should find TestDisk a handy tool in performing onsite recovery.
    http://www.cgsecurity.org/wiki/TestDisk
    Seeing you could lose everything, I would definitely use WinClone while in OS X to backup Vista, and CCC or SuperDuper to backup your OS X volumes (or Apple DU Restore, just be sure to turn off "Ignore Ownership" and repair permissions afterward, and then rerun 10.5.2 if possible).
    http://www.twocanoes.com/forums/

  • Please tell me about flash back query

    Hi
    Please tell me about flash back query and when to use it and the advantages..
    Thanks in advance..

    Flash back query is mainly used for table recovery and data recovery.. To do the flashback user requires the FLASHBACK ANY TABLE privilege.
    This is how it can be used.
    1) DROP TABLE emp;
    2) SELECT * FROM recyclebin
    You will get the tablename in the Recyclebin table.
    3) FLASHBACK TABLE emp TO BEFORE DROP.
    Following part expalins how it cane be used for the data in the table.
    1) UPDATE emp SET sal=5000;
    2) COMMIT;
    3) ALTER TABLE emp ENABLE ROW MOVEMENT;
    4) FLASHBACK TABLE emp TO TIMESTAMP(SYSTIMESTAMP-5/1440);
    Now query the table to get the data which was updated before 5min.
    Similarly one can use it for the database recovery also.

  • IPCC ICM AW/HDS B Side Server Rebuild

    Are there any documentation available on how to do rebuild or disaster recovery on the AW/HDS server on the B side?  
    We are running ICM version 8.0 on Windows 2003 Enterprise Server.  The server will not boot (in any mode) after applying Windows security patches.
    We are still working on the OS recovery, but if we have to build the server from scratch, can the AW/HDS configuration be restored from the A side server?
    Any information is appreciated.  Thanks.

    Hello Richard,
    For AW please see:
    https://supportforums.cisco.com/discussion/11832906/how-backup-ucce-config
    HDS would involve:
    HDS A Side database backup using SQL Management Studio,
    Database restore on HDS B Side (remember to select OVERWRITE in Options),
    truncate table Recovery, truncate table Logger_Admin in HDS B Side database,
    Services restart.

  • When I tried to uprgrade to Mountain Lion, my computer told me my HD was damaged. I'm right now using my external as my main HD. How do I fix this??

    Last ight I downloaded (and paid for) Mountain Lion thinking it was going to be a simple uprgade. Naive I know.
    In the process of restarting my computer, I got a message saying I have an error on my HD. When I checked it in disk utility, it said my HD is damaged. It wouldn't let me start my computer on it. I had to use my time machine restore point but then it used my other partitioned side as the HD to restart my computer. What do I do to get my mac HD back??

    Ok, boot to Partition B and use the Finder Go> Computer and open your Partition A and grab your files, make another duplicate backup of your files to a regular storage drive and disconnect.
    When that's completed use Disk Utility to select Partition A and erase with the middle selection and wait it out, it's zeroing the partition and mapping off bad sectors. You might have to use the command r boot to use the Recovery Partition.
    Hold Command r keys while booting to enter Recovery and install 10.7 or 10.8 whatever, onto Partition A.
    This is assuming your problem is located in your Partition A, which I suspect as your booting fine into Partition B, thus your GUID partition table, Recovery and EFI partitions (hidden) seems to be ok.
    However you also should make one of these, this will allow you to boot from the USB and really wipe the entire drive, instead of partition to partition wiping like your doing now, this is in case your problem is located in the hidden partitions I've mentioned.
    http://osxdaily.com/2011/08/08/lion-recovery-disk-assistant-tool-makes-external- lion-boot-recovery-drives/

  • Can I use gpt to recreate/unerase a partition table? (Rebuild the GPT/GUID partition table?)  I don't want to do FILE recovery.

    (Yes, I've  googled a bunch and read threads like this one already.)
    Can I use gpt or some other app to recreate/unerase a partition table?  That is, how can I rebuild a disk's GPT/GUID partition table?)  I don't want to do FILE recovery.
    What happened: Instead of erasing a single partition off a disk with many partitions, the entire partition table was erased (using Disk Utility, w/o deleting the underlying files).  Somehow the "Erasing a disk deletes all data on all its partitions." warning message was missed.
    I have a copy of the output of df, with the number of blocks in each partition, from just prior to the erasure, so I should be able to recreate the GPT/GUID partition table.  Editing the GPT with a hex editor is not feasible.  Simply recreating the partitions with Disk Utility will overwrite the key filesystem tables on each partition, and I don't want to do that, plus Disk Utility doesn't allow me to specify exact partition sizes anyway.
    Surely there's an app for rebuilding the partition table (other than emacs' hexl-mode!) for recreating/unerasing a partition table when the partition sizes and orders are known?  I've looked at the advertising for a bunch of recovery software and none of them clearly indicate that they will do what I want. 
    I guess I can try using gpt on a copy of the reformatted drive I've made with dd, and see what happens.  But perhaps someone knows of a tool that should do what I need, or knows if gpt is that tool or not.
    There are answers and tools that will do FILE recovery - search for files and recover the ones that aren't fragmented or deleted.  As far as I can find, they just look for files on the disk, and don't pay much, if any attention to the filesystem info or directory heirarchy, which in this case is valuable.  Of course I could send it in to DriveSavers, or the like.  But none of that seems necessary, and the scavenging file recovery apps won't do the job well,
    E.g. some are mentioned here:
    I don't want to do FILE recovery.
    Thanks for any help.
    The links in this post are to pages describing the underlined term, e.g. the man pages for df and gpt.
    dd output includes:
    Filesystem
    512-blocks 
    Used Available Capacity  Mounted on

    Aperture has the ability to work with files in their existing location. They are called "referenced masters." When you import images, you should select the "In their current location" in the "Store Files:" drop down box. Have a read of the documentation for full specifics. Unsure how you can resolve your duplication; might be some work but next time have a read of the manual first
    Information for versions is stored in the Aperture database (library file). The masters can be inside the library file itself, or they can be somewhere else.

Maybe you are looking for

  • I really need help with my decision in purchasing an iPhone 4! =(

    I will just go to my main concern. I lost the phone of my aunt which is an iPhone 4. It was stolen from my bag. Out of common sense, I have to find a replacement because I know the my aunt invested money on it. However, brand new iPhone 4 here on our

  • Problem with JNDI/LDAP AND connection pool

    I'm a newbie to Java but am attempting to write a servlet that retrieves info use to populate the contents of drop down menus. I'd like to only have to do this once. The servlet also retrieves other data (e.g. user profile info, etc ...). I'd like to

  • Special character getNodeValue newbie needs help!

    I need to find and strip an opening quotation mark from a string I'm retrieving from some xml using getNodeValue before I insert the text into a database. The original xml is iso-8859-1, and the quotation mark is tagged as “ I thought it would simply

  • Batch - image processor

    Posting gives me error "m4", so I'll try to post it as a reply to this...

  • Restore Original Settings ?'s

    If I restore my original settings (which everyone on here recommends when you are having a problem) will I lose all of my contact information? Is there a way to back up contacts to iTunes?