Accidentally dropped data using datapump's replace command

All,
I exported 2 partitions of a table using the following data pump command:
expdp user1/password1 directory=DPUMP_DIR tables=tab1:P27,tab1:P28 logfile=tab1.log dumpfile=tab1_27_28.dmp
I moved the dump file to staging and tried importing using the following command:
impdp user1/password1 directory=DPUMP_DIR tables=tab1:P27,tab1:P28 logfile=tab1.log dumpfile=tab1_27_28.dmp table_exists_action=APPEND
when I ran the command above, I got the following error:
ORA-31696: unable to export/import TABLE_DATA:"VOP"."R_REQUEST":"P28"."P28_RN" using client specified AUT
I checked this on Oracle Support website and got the following advie:
=====================================================
+*<Moderator edit - deleted MOS Doc content - please do not post contents of MOS Docs - this is a violation of your Support agreement>*+
=================================================================================
I then proceeded to use table_exists_action=replace (thinking it was only going to replace the 2 partions specified).
Using table_exists_action=replace deleted rows from all other partions and loaded the 2 partitions which I exported.
I have tried retrieving lodt data using command below but it didn't work:
SQL> flashback table user1.tab1 to timestamp (systimestamp - interval '120' minute);
I've enable row movement and we've always had flashback enabled:
db_flashback_retention_target integer 1440
Does anyone know how else I could retrieved lost data without having to export and import the entire table (which is almost 1 Terabyte)

If your database in archivelog mode? If yes you can try doing PITR

Similar Messages

  • Not able to Import data using "clear and replace"

    Hi,
    If I import data using the data admin package "Import" and "Merge" as 'method for importing' the process runs without problems.
    If I change the 'method for importing' to "Clear and Replace" the process fails. See message:
    TOTAL STEPS  2
    1. Convert Data:         completed  in 3 sec.
    2. Load and Process:     Failed  in 1 sec.
    3. Import:               completed  in 1 sec.
    [Selection]
    FILE=\UHRENHOLT\LEGAL_DATALOAD\DataManager\DataFiles\\Axapta_Load.txt
    TRANSFORMATION=\UHRENHOLT\LEGAL_DATALOAD\DataManager\TransformationFiles\\Axapta_Load.xls
    CLEARDATA= Yes
    RUNLOGIC= Yes
    CHECKLCK= Yes
    [Messages]
    Key cannot be null.
    Parameter name: key
    I'm uisng the standard data admin package (and thereby the values 0 and 1). For some reason the value 1 is not accepted.
    Any suggestions?
    /Lars

    Hi,
    The "Replace & clear..." feature during data import depends on Work Status. So to use this functionality, you need to setup Work Status under your application. Notice that you need to setup Work Status even if you aren't selecting the option to check Work Status when running the package.
    Hope this will help you.
    Kind Regards,
    Patrick

  • Transporting Georaster Data using datapump

    Hi all,
    I'm trying to use datapump to transport my schema from one database to another. However i have problem with my georaster data.
    MAP
    Name Null? Type
    ID NUMBER(38)
    GEOR SDO_GEORASTER
    MAP_RDT
    Name Null? Type
    RASTERID NOT NULL NUMBER
    PYRAMIDLEVEL NOT NULL NUMBER
    BANDBLOCKNUMBER NOT NULL NUMBER
    ROWBLOCKNUMBER NOT NULL NUMBER
    COLUMNBLOCKNUMBER NOT NULL NUMBER
    BLOCKMBR MDSYS.SDO_GEOMETRY
    RASTERBLOCK BLOB
    SCHOOL
    Name Null? Type
    CODE NOT NULL NUMBER(38)
    ENG_NAME VARCHAR2(200)
    ADDRESS VARCHAR2(200)
    POSTAL VARCHAR2(200)
    TELEPHONE VARCHAR2(200)
    FAX VARCHAR2(200)
    EMAIL VARCHAR2(200)
    STATUS VARCHAR2(200)
    ZONE_ID NUMBER(38)
    GEOM SDO_GEOMETRY
    MG_ID NUMBER(38)
    Other table just contain my normal data.
    Export statement:
    - expdp schools/** schemas=schools directory=exp_dir dumpfile=schools.dmp
    Import statement:
    - impdp schools/** schemas=schools directory=imp_dir dumpfile=schools.dmp
    parfile=exclude.par
    exclude.par content:
    exclude=trigger:"like 'GRDMLTR_%'"
    exclude=table:"IN('MAP','MAP_RDT')"
    - impdp schools/** schemas=schools directory=imp_dir dumpfile=schools.dmp
    parfile=include.par content=metadata_only
    include.par content:
    include=table:"IN('MAP','MAP_RDT')"
    - impdp schools/** schemas=schools directory=imp_dir dumpfile=schools.dmp
    parfile=include.par content=data_only
    However, after my import, i did a validation on the georaster object
    select sdo_geor.validategeoraster(geor) from map;
    SDO_GEOR.VALIDATEGEORASTER(GEOR)
    13442: RDT=MAP_RDT, RID=1
    There is problem in the georaster object but i don't quite understand the information that i found online.
    After my import, the type of the georaster change to
    MAP
    Name Null? Type
    ID NUMBER(38)
    GEOR PUBLIC.SDO_GEORASTER
    SCHOOL
    Name Null? Type
    CODE NOT NULL NUMBER(38)
    ENG_NAME VARCHAR2(200)
    ADDRESS VARCHAR2(200)
    POSTAL VARCHAR2(200)
    TELEPHONE VARCHAR2(200)
    FAX VARCHAR2(200)
    EMAIL VARCHAR2(200)
    STATUS VARCHAR2(200)
    ZONE_ID NUMBER(38)
    GEOM PUBLIC.SDO_GEOMETRY
    MG_ID NUMBER(38)
    And i have problem running my application that render the georaster with a theme created on the school. The error message is as below:
    In the mapviewer console
    2008-07-29 16:46:26.773 ERROR cannot find entry in ALL_SDO_GEOM_METADATA table for theme: SCHOOLS_LOCATION
    2008-07-29 16:46:26.773 ERROR using query:select SRID from ALL_SDO_GEOM_METADATA where TABLE_NAME=:1 and (COLUMN_NAME=:2 OR COLUMN_NAME=:3 or COLUMN_NAME=:4) and OWNER=:5
    2008-07-29 16:46:26.774 ERROR Exhausted Resultset
    2008-07-29 16:46:26.783 ERROR cannot find entry in USER_SDO_GEOM_METADATA table for theme: SCHOOLS_LOCATION
    2008-07-29 16:46:26.784 ERROR Exhausted Resultset
    I sincerely hope if anyone could provide me with some guidance. Thanks in advance =)

    This is probably almost a year too late but I had the same problem and was able to resolve it by registering the recently imported geoRaster data
    SQL>select * from the (select sdo_geor_admin.listGeoRasterObjects from dual);
    This will likely show that you have 'unregistered' data and the following will register it after which your validation calls should all return true instead of 13442
    SQL>execute sdo_geor_admin.registerGeoRasterObjects;
    SORRY -- I just saw that you'd already done the registerGeoRasterObjects bit msm
    Edited by: mmillman on May 27, 2009 5:11 PM

  • Error in import data using datapump

    Hi all,
    I just install oracle 10gR2 in my local machine and tryied to import data in 9iR2 database. But it ended with errors. Here r the steps I have followed.

    SQL> conn sys/ as sysdba
    Enter password:
    Connected.
    SQL> crete user amila identified by a;
    SP2-0734: unknown command beginning "crete user..." - rest of line ignored.
    SQL> create user amila identified by a;
    User created.
    SQL> grant connect,resource,create any directory to amila;
    Grant succeeded.
    SQL> create or replace directory dump_dir as 'E:\oracle\dump';
    Directory created.
    SQL> grant read,write on directory dump_dir to amila;
    Grant succeeded.
    -==========================================================
    C:\>impdp amila5/a@cd01 directory=dump_dir dumpfile=amila5.dmp logfile=amila5.lo
    g
    Import: Release 10.2.0.1.0 - Production on Friday, 19 October, 2007 13:27:17
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    UDI-00008: operation generated ORACLE error 6550
    ORA-06550: line 1, column 52:
    PLS-00201: identifier 'SYS.DBMS_DATAPUMP' must be declared
    ORA-06550: line 1, column 52:
    PL/SQL: Statement ignored
    Pls help on this issue.

  • ORA-39070 Error  when using datapump and writing to ASM storage

    I am able to export data using datapump when i write to a file system. However, when i try to write to an ASM storage, i get the following errors.
    ORA-39002: invalid operation
    ORA-39070: Unable to open the log file.
    ORA-29283: invalid file operation
    ORA-06512: at "SYS.UTL_FILE", line 536
    ORA-29283: invalid file operation
    below are the steps i tooks.
    create or replace directory jp_dir2 as '+DATA/DEV01/exp_dir';
    grant read,write on directory jp_dir2 to jpark;
    expdp username/password schemas=testdirectory=jp_dir2 dumpfile=test.dmp log=test.log
    Edited by: user564785 on Aug 25, 2011 6:49 AM

    google: expdp ASM
    first hit:
    http://asanga-pradeep.blogspot.com/2010/08/expdp-and-impdp-with-asm.html
    "Log files created during expdp cannot be stored inside ASM, for log files a directory object that uses OS file system location must be given. If not following error will be thrown
    ORA-39002: invalid operation
    ORA-39070: Unable to open the log file.
    ORA-29283: invalid file operation
    ORA-06512: at "SYS.UTL_FILE", line 536
    ORA-29283: invalid file operation
    "

  • Can we change the system date using Sql

    can we change the system date using Sql statement..
    can anyone help
    Tariq.

    There is an initialization parameter called FIXED_DATE which lets you set a fixed sysdate for testing purposes, and you can alter that date using the ALTER SYSTEM command, but as implied by the name you are setting a data/time that doesn't change. Since the normal sysdate is derived from the O/S it cannot be altered through SQL

  • Error in import table data using oracle datapump

    i am trying to import table data using oracle datapump
    CREATE TABLE emp_xt (
    ID NUMBER,
    NAME VARCHAR2(30)
    ORGANIZATION EXTERNAL (
    TYPE ORACLE_DATAPUMP
    DEFAULT DIRECTORY backup
    LOCATION ('a.dmp')
    it return the following error
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04084: The ORACLE_DATAPUMP access driver does not support the ROWID column.
    ORA-06512: at "SYS.ORACLE_DATAPUMP", line 19
    please help me

    .dmp file generated from exp command file not from oracle_datapump

  • I accidentally dropped by old ipod in the garage and drove over it.  So I bought an ipod nano 7th gen. to replace it.  Can I transfer the itunes from my old ipod to my new one?  I only have about 30.

    I accidentally dropped by old ipod in the garage and drove over it.  So I bought an ipod nano 7th gen. to replace it.  Can I transfer the itunes from my old ipod to my new one?  I only have about 30.

    AAll of your iTunes purchases can be re-downloaded again. Log into iTunes Store, select the Purchases tab for Apps, Music, etc.
    if you've been syncing your old iPod with iTunes, you can restore everything to your new iPod from the old backup.

  • REPLACE command using passed variable values does not work

    Hi SDN Community
    Are you aware of the replace command not working when passing strings as opposed to a variable containing the string.
    For example:
    This works:
         replace '>JUL 2008</a>' with I_TEXT_VALUE into
                    I_TEXT_VALUE_REPLACE.
    This dosen't work:
         replace I_TEXT_VALUE_MATCH with I_TEXT_VALUE into
                     I_TEXT_VALUE_REPLACE.
    where I_TEXT_VALUE_MATCH = '>JUL 2008</a>'
    where I_TEXT_VALUE =  '>JUL 2008<BR>Actual</a>'
    Thank you.
    Simon

    Hi SDN Community,
    The following method was used to derive the same outcome required as per the REPLACE command.
          LEN_REPLACE = STRLEN( C_CELL_CONTENT ) - 12.
          I_TEXT_VALUE_REPLACE = C_CELL_CONTENT.
        replace I_TEXT_VALUE_MATCH with I_TEXT_VALUE into
                    I_TEXT_VALUE_REPLACE.
          I_TEXT_VALUE_REPLACE = I_TEXT_VALUE_REPLACE+0(LEN_REPLACE).
          CONCATENATE I_TEXT_VALUE_REPLACE I_TEXT_VALUE INTO
                        I_TEXT_VALUE_REPLACE.
          C_CELL_CONTENT = I_TEXT_VALUE_REPLACE.
    Thank you.
    Simon

  • Replace ' with ' in my data using pl/sql

    I want to replace all occurrence of special characters like &apos; with ' in my data using pl/sql.
    How can I achieve this?

    Thank you for your quick reply. My code is:
    DECLARE
    firstname varchar2(200) := 'cccc&a p o s;dddd'; ---> Please remove spaces between a p o s. Combine them as apos
    lastname varchar2(200) := 'eeee';
    BEGIN
    dbms_output.put_line('Before changing : firstname :' || firstname);
    dbms_output.put_line('After changing: firstname :' || replace(LastName, "&apos;" , "'") );
    END;
    When I run this in sqlplus, I see:
    SQL> @EscapeCharTesting.sql
    Enter value for apos:
    So I want to change all occurences of "&a p o s;" to CHR(39)

  • Adobe Reader importing XML data using command line reference

    Financial Gonverment in Poland prepared new VAT declarations, which are protected from changing.
    Restrictions summary is as follows: Printing, Commenting, Filling of form fields: Allowed; other restrictions are not allowed.
    I am able to export xml data, using Acrobat Reader, change it to have desired data and than import it and everything works fine. In ERP program I need to fill this document with data from the system. Normally we were doing this using FDF printing channel, but for this document it shows an error with bad user password. We were talking with people from government and only answer was that it is not possible to change document restrictions... We find out the way to create xml document, but we want it now to open from the command line (UNIX commands). But we only find the way to open pdf file with specified fdf file... But when I'm trying to open PDF document with specified fdf URL (url is linked to xml file... i don't know if it is proper... if not than how to create fdf file with desired xml?)
    Is there any possible to open a pdf with specified xml url to load to that PDF?

    I found the mistakes I made and I corrected them. The newly revised/corrected code is:
    USE OPENXMLtesting1
    GO
    With XmlFile (Contents) AS (
    SELECT CONVERT (XML, BulkColumn)
    FROM OPENROWSET (BULK 'C:\Temp\books.xml', SINGLE_BLOB) AS XmlData
    SELECT *
    FROM XmlFile
    GO
    It worked: Results
         Contents
    1  <catalog><book.id="bk101"><author>Gambardella.M...
    If I clicked on this, I got a listing of the whole book.xml!!  I don't know what it means.  Please comment and respond.
    Thanks,
    Scott Chang

  • Warranty?  I went to apple for a piece of dust in my screen told me I could replace it made and appointment on 1/4/14 for 1/5/14 and couldn't get there and accidentally dropped it and cracked the screen will they still replace it?

    Warranty?  I went to apple for a piece of dust in my screen told me I could replace it. Decided to wait till after New Years. made an appointment on 1/4/14 for 1/5/14 and couldn't get there and accidentally dropped it and cracked the screen. will they still replace it?

    I know that they don't cover accidents but I went in on the Sunday before Christmas and they said I could get a replacement but I decided to wait so I could back up my iPad and now I've made 3 appointments and haven't vote to either of them and it just happened today on the 5th the day of my appointment but again couldn't make it and they replaced my iPod tough in 2011 for water damage unless they changed their warranty but thank you guys for answering :)

  • Does not make sense in evaluating data using isnull(Command.name)

    Hi,
    Environment:
    Os - Windows 7
    Crystal report developed in CR2008 - .rpt developed and running successfully here with the same formula.
    VS2010
    CRforVS2010
    Does not make sense in evaluating data using isnull(Command.name)  function when the report is integrated into VS2010 using Crystal report for VS2010 (13.0.2).
    But the same report is running in crystal report 2008 (12.3.0.601)  report Dev environment when previewed.
    Please reply me ASAP.
    Thanks & Regards,
    Mani G.S.

    Thank you and are you using the MS SQL Native 10 drivers.
    And still need to know if you are using ODBC or OLE DB?
    Can you copy the SQL in and use the PUBS sample database? Or import the xtreme.mdb and use one those tables. You can get it from our sample reports:
    https://smpdl.sap-ag.de/~sapidp/012002523100005852352008E/cr_xi_xtreme_rep_smpl_en.zip
    Thanks again
    Don

  • Good evening..i accidentally dropped my iphone 5ang it has scratches on the metal case,how can i replace a new and original metal case?

    good evening..i accidentally dropped my iphone 5 and it has scratches on the metal case..how can i replace anew and original metal case?

    You cannot.  Apple also does not repair iPhones.
    Did you purchase Apple Care Plus?  If yes, they will replace the phone for a $49 fee.
    If nothing else is wrong, I'd just put it in a case and not worry about it.

  • I had iphone 5s which was accidently dropped in water i dont know if it could be fixed or not but is it possible to save my data using i clouds without fixing the phone

    i had iphone 5s which was accidently dropped in water i dont know if it could be fixed or not but is it possible to save my data using i clouds without fixing the phone

    if you set it up to sync with iclouds in terms of contacts and calendar and the likes in advanced the data is still in icloud
    if you set it up to backup to iclouds since you only get 5GB free storage you would likely had paid to get more or used very little storage on your phone then the backup is still in iclouds
    about if it can be fixed then read
    iPhone 5 water - how screwed am i

Maybe you are looking for