The truncated table rows

Hi team,

One of my colleague ran a batch which will truncate a table and insert the final table by extracting data from different tables in backup taking the old table.

But today before 10 minutes he missed to keep the export backup of this table and ran the batch. All the old data of the truncated table and now we need these data.

Flashback is DISABLED in our case and Undo retention is dry 7200 and since it is a DDL so it will change the definition of the table.

Is it possible to get the data that truncated.

Daily HT full backup will run and we are in the process of restoring the backup but the db size is 4 TB and it will take time and then let's apply archive logs, before that got truncated.

Until can we try something else?

Hemant seems good to me.

Please check the Version of Oracle where you are restoring the database and the Oracle version of the primary database that saves youi have taken.

I'm 100% sure that there could be the difference in the release.

We faced this problem 2 times and every time the issue is different binary or different architecture was the problem.

Tags: Database

Similar Questions

  • Check for the empty table row before adding the date

    On the form below, when I click on the green button (extreme right) plus a new row in the table is created with today's date. the user can then enter more text to the right of the date. Problem is when the form is saved and reopened, the text that the user entered is removed and today new is added because it is in the intialize event. How do I script to check and make sure that each dated line is empty before you add today's date?

    https://Acrobat.com/#d=qTINfyoXA-U6cDxOGgcSEw

    Thank you

    ~ Gift

    Hi Don,

    One possibility would be to use the box caption of the textfield for the date and leave the value part free for the user to enter their data:

    if (xfa.resolveNode("this.caption.value.#text").value === "") {
              this.caption.value.text = util.printd("[mm/dd/yy] ", new Date() );
    }
    

    See here: https://acrobat.com/#d=VjJ-YsXLKmV6QU84JrAAIw.

    Hope that helps,

    Niall

  • How to make the waveform table rows less laeti WITHOUT using a lot of mathematics of interpolation

    So I use a graph shaped wave, the numbers of entries sequence like that, sensor 22,23,24,25... the graph seems laeti. (Fussy) client says hey I want a good graph, you have function spline or something?

    So I was to research the properties of chart and saw the settings below that does not help much. I proposed to the customer (picky) that Hey maybe we can make the balance Y greater for the lines of the stairs will be not so obvious, the customer (picky) says no. So I was sweating on tedious mathematics required for interpolation in the hot oil and noisy, without internet, fortunately the dinner bell rang.

    Now is there some function blocks which makes the table lines smooter, a function spline or something? Thank you.


  • For the InDesign table row height

    I have a table so I want to set a height of minimum line for all lines. If I select all the lines, I can't enter a value in the field 'At least' palette of paintings. I can select some of the columns individually and change them, but 2 of the 5 columns are not playing ball! I am currently having a minimum height of 4 mm, if I get it, I get the message "the value must be between 6.35 and 211.677 mm.

    The table was an existing document, but I recreated from scratch and still no joy.

    Any ideas anyone?

    This probably means that the 6 column cells are divided.

    The minimum value of a line are 1 058 mm.

    For 6 adjustable cells in a column the value 'at least' will be 6 * 1 058 = 6 348 mm

  • The "Current" table row

    I have a TableView and scrolls for a few visible lines. Lets call above the visible row T down a B.

    I now have to replace elements of the TableView with a whole new list of items (if new data to see), but I want to scroll to T or B.

    What is the best way to do it? It seems to me that I have somehow followed by the visible line to the foreground or the most visible part, but I can't figure out how to do this.

    Thank you

    Graham

    You may need to use the VirtualFlow API.  VirtualFlow is a com.sun APIs and are not part of the officially compatible with the javafx.* API, so any code you write against it could break if you use a new version of JavaFX.  You can find some information about its use on StackOverflow:

    Java - Javafx Tableview keep the line selected in the current view - Stack Overflow

  • truncate the ADDRESS table

    Hi all

    I'm unable to truncate the parent table, even I deleted data in the child table.

    Truncate table ADDRESS

    ORA-02266: permit to unique/primary keys in table referenced by foreign keys

    Thank you

    Hello

    Right; in versions prior to version 12.1, TRUNCATE TABLE will not work if it has enabled foreign key refers to this table, just like DROP TABLE will not work.  If all the rows in the child one or several tables made reference to refer to the parent table is not serious.  As Tsharma said, you must disable foreign key constraints before making the TRUNCATE TABLE, like this:

    ALTER TABLE emp
    Emp_address_fk DISABLE the CONSTRAINT;

    Address of TRUNCATE TABLE;

    ALTER TABLE emp
    CONSTRAINT to ALLOW emp_address_fk;

  • Create the procedure, truncate table

    When I run the following, I get the following error:
    PLS-00103: Encountered the symbol "TABLE" when expecting one of the following:
    
       := . ( @ % ;
    on the 'truncate table BASE;' line in the following text:
    CREATE OR REPLACE PROCEDURE TransferData IS
    
    BEGIN
        --clear current tables to allow for clean data    
       truncate table BASELINE;    
       truncate table TREATMENT;   
       truncate table FOLLOWUP;   
       truncate table WITHDRAW;
    END;
    Can someone tell me what I am doing wrong?

    Thank you!

    TRUNCATE is not DML, DDL, but you will need the dynamic SQL statements here:

    CREATE OR REPLACE PROCEDURE TransferData IS
    BEGIN
        --clear current tables to allow for clean data
       execute immediate 'truncate table BASELINE';
       execute immediate 'truncate table TREATMENT';
       execute immediate 'truncate table FOLLOWUP';
       execute immediate 'truncate table WITHDRAW';
    END;
    
  • Oracle VPD and truncate table command

    I can still use the truncate table SQL command when you are connected to an Oracle VPD. I wonder how Oracle related where clause for a truncate table command.

    Thanks in advance,
    Alexandre Bailly

    You can truncate the table or you may not.
    It is not possible to truncate only part of the picture.

    VPD political work by adding the predicate for the policy of the DML.
    You cannot add a predicate to truncate - DDL.

    And I do not expect truncated to the error just because EVP is enabled.
    Your results are so as I expect--political VPD are applied, if necessary, but if you have privilege to truncate the table, truncated happen.
    (Same as DROP TABLE - he would just let it go in the table)

    If you want to delete lines in a VPD piolicy, then use the command DELETE policy that includes this type of statement.

    Published by: dombrooks on October 7, 2009 15:45

  • How to truncate 1000 rows from a table of 7000 lines?

    Hello

    Please give me a quick answer to truncate the 1000 rows from a table of 7000 lines... I don't want to truncate the entire table

    Thank you all for the valuable support,

    My activity is still ongoing... Somehow my client was not specific about what lines are deleted. It has no date column in the table to delete records by date...

    The table contains information about the error logs, so he wanted to keep a few lines and remove the rest... and then copy the table to another database.

    So right now using this query:

    SQL > delete (select * from ) where rownum<>;

    Once again thank you to all...

  • Truncate table removes the corresponding LOB segment of the table or not?

    Hi all

    I have little table with BUSINESS segments, if I pull the table truncated on the table it will purge the LOB segment as well?

    About how long will take to truncate 100 GB LOB segments.

    Thank you

    903787 wrote:
    Hello

    1 Truncate will delete the LOB segment or not?

    It will not erase the LOB segments, but it must release the majority of the allocated space.

    >

    2. If you want to recover the space, we need to run the command, below is correct?

    ALTER TABLE CHANGE LOB (LOB_COLUMN) (SHRINK SPACE);

    Should not be necessary to 11.2:

    SQL> select * from v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    
    SQL> select count(*) from user_segments;
    
      COUNT(*)
    ----------
             0
    
    SQL>
    SQL> create table t(x clob);
    
    Table created.
    
    SQL> select segment_name, segment_type, bytes
      2  from user_segments;
    
    SEGMENT_NAME                             SEGMENT_TYPE            BYTES
    ---------------------------------------- ------------------ ----------
    T                                        TABLE                   65536
    SYS_IL0000030908C00001$$                 LOBINDEX                65536
    SYS_LOB0000030908C00001$$                LOBSEGMENT              65536
    
    SQL>
    SQL> insert into t select lpad(segment_name,8192) from dba_segments;
    
    6312 rows created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL>
    SQL> select segment_name, segment_type, bytes
      2  from user_segments;
    
    SEGMENT_NAME                             SEGMENT_TYPE            BYTES
    ---------------------------------------- ------------------ ----------
    T                                        TABLE                  393216
    SYS_IL0000030908C00001$$                 LOBINDEX                65536
    SYS_LOB0000030908C00001$$                LOBSEGMENT           53477376
    
    SQL>
    SQL> truncate table t;
    
    Table truncated.
    
    SQL>
    SQL> select segment_name, segment_type, bytes
      2  from user_segments;
    
    SEGMENT_NAME                             SEGMENT_TYPE            BYTES
    ---------------------------------------- ------------------ ----------
    T                                        TABLE                   65536
    SYS_IL0000030908C00001$$                 LOBINDEX                65536
    SYS_LOB0000030908C00001$$                LOBSEGMENT              65536
    
    SQL>
    SQL> alter table t modify lob(x) (shrink space);
    
    Table altered.
    
    SQL>
    SQL> select segment_name, segment_type, bytes
      2  from user_segments;
    
    SEGMENT_NAME                             SEGMENT_TYPE            BYTES
    ---------------------------------------- ------------------ ----------
    T                                        TABLE                   65536
    SYS_IL0000030908C00001$$                 LOBINDEX                65536
    SYS_LOB0000030908C00001$$                LOBSEGMENT              65536
    
    SQL>
    
  • get the number of rows affected by their table top

    Hello, I need to count the number of rows updated in table form. In the process of ApplyMRU, I can use the string substitution #MRU_COUNT # to show the lines updated in a success message, but I need to get this value and store it on a table. Any help would be much appreciated. Thank you.

    oscarjavier99 wrote:

    Hello, I need to count the number of rows updated in table form. In the process of ApplyMRU, I can use the string substitution #MRU_COUNT # to show the lines updated in a success message, but I need to get this value and store it on a table. Any help would be much appreciated. Thank you.

    For that you would benefit from the APEX$ ROW_STATUS integrated substitution string.

    1. create a page element display only (in my case P15_UPDATED_ROWS) Save Session State set to Yes and the Type of Condition is set to never.

    2. Add a calculation after the shows with a Type of static assignment and calculation value 0 to reset the counter whenever the page is sent.

    3. Add an On submit - after calculations and Validations process of PL/SQL page linked to your tabular presentation with a Status of Type PL/SQL Expression and Expression 1 :apex$row_status = 'U' and the code of the following process :

    :p15_updated_rows := :p15_updated_rows + 1;
    

    If you don't actually means "day" in the strict sense, and then change the status of process to include possible APEX$ ROW_STATUS 'C', 'U', and "D" values as needed. If you want to count all created, updated and deleted lines, do not add the condition to the process, but make sure the extended run is set to createand changed lines.

  • Count the number of rows in a table (s)

    Hi all

    I have a TKT_PRIORITY_LK table that I want to count the number of rows returned by a priority level... say Low, Medium, High, critical. I want to be able to count how many of each created are they, instead returning ID instead, if making any sense... Can you please help with this.

    Example; Select count (*) in TKT_PRIORITY_LK

    PRIORITY group

    Kind regards

    Sandrine

    Try this

    Select a.PRIORITY, count (*) from TKT_PRIORITY_LK a, TKT_TICKET_MAIN b

    where a.id = b.PRIORITY_ID

    A.PRIORITY group

  • Failed to truncate the target table while programming the interface in ODI

    Hi Expertise,

    I developed a scenario in an interface, where I planned keeping the option Truncate as false, right there the data is been going to target without any problems, but when I changed the status of truncate to TRUE, the interface is been run, but the array is not get truncated, rather the data's been loading again to target. (when running manually, the target table is been truncated perfectly) but not in programming.

    Can someone help me in this problem.

    Thank you

    Shakur.

    Have you regenerate the scenario in question since you changed the option Truncate. If you have not the regular job must still run the old code

  • Using Merge in oracle 11g this error SQL Error: ORA-30926: failed to get a stable set of rows in the source tables

    whenever I run this code I get this error

    SQL Error: ORA-30926: failed to get a stable set of rows in the source tables

    30926 00000 - "impossible to get a stable set of rows in the source tables.

    * Cause: A stable set of rows could not be achieved due to the large dml

    activity or one not deterministic where clause.

    * Action: Remove any non deterministic of the clauses and reissue of the dml.

    Don't know wht goes wrong!


    SQL:

    MERGE IN VENDORS_ACTIVE_DATE s

    USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,

    NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.

    (case when ((d.VENDOR = s.VENDOR) and (d.COMPANY_CODE = s.COMPANY_CODE)))

    )

    then "MATCH".

    When d.COMPANY_CODE is null

    then 'DELETE '.

    When s.COMPANY_CODE is null

    then "INSERT."

    else 'UPDATE '.

    chck end)

    from (select * from VENDORS_ACTIVE_DATE where COMPANY_CODE = 2) s

    full outer join (select * provider where COMPANY_CODE = 2) d

    on (d.COMPANY_CODE = s.COMPANY_CODE AND s.COMPANY_CODE = 2)

    ) d

    WE (d.COMPANY_CODE = s.COMPANY_CODE AND d.chck in ('UPDATE', 'GAME', 'DELETE'))

    WHEN MATCHED THEN

    UPDATE SET s.VENDOR = d.VENDOR

    WHERE d.chck in ('UPDATE', 'DELETE')

    DELETE WHERE d.chck = 'DELETE '.

    WHEN NOT MATCHED THEN

    INSERT (SELLER, COMPANY_CODE)

    VALUES (d.VENDOR, d.COMPANY_CODE)

    Work request: (deleted the duplicate data in tables (source and target))

    MERGE IN VENDORS_ACTIVE_DATE s

    USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,

    NVL (d.ACTIVEDATE, s.ACTIVEDATE) ACTIVEDATE.

    NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.

    (case when ((d.VENDOR = s.VENDOR))

    - AND D.ACTIVEDATE = S.ACTIVEDATE

    and NVL (d.ACTIVEDATE, trunc (sysdate)) = NVL (s.ACTIVEDATE, trunc (sysdate))

    and (d.COMPANY_CODE = s.COMPANY_CODE)

    )

    then "MATCH".

    When d.COMPANY_CODE is null

    then 'DELETE '.

    When s.COMPANY_CODE is null

    then "INSERT."

    else 'UPDATE '.

    chck end)

    from (select * from suppliers where COMPANY_CODE = 2) d

    full outer join (select * from vendors_active_date where COMPANY_CODE = 2) s

    on (d.COMPANY_CODE = s.COMPANY_CODE and s.vendor = d.vendor)

    ) d

    WE (d.COMPANY_CODE = s.COMPANY_CODE AND d.VENDOR = s.VENDOR AND d.chck in ('UPDATE', 'GAME', 'DELETE'))

    WHEN MATCHED THEN

    S.ACTIVEDATE = UPDATE SET d.ACTIVEDATE

    WHERE d.chck in ('UPDATE', 'DELETE')

    DELETE WHERE d.chck = 'DELETE '.

    WHEN NOT MATCHED THEN

    INSERT (VENDOR, ACTIVEDATE, COMPANY_CODE)

    VALUES (d.VENDOR, d.ACTIVEDATE, d.COMPANY_CODE)

  • We can directly delete rows in the XLA_DIAG_SOURCES table?

    Hi all

    There are lines in our database of the EBS R12.1.3 26043887 in the XLA_DIAG_SOURCES table. I tried to launch the program of Diagnostics to Purge Transaction object, but is not the removal of the lines. Can we delete the lines manually?

    Kind regards

    Vinod

    Its Ok to do a purge or truncate the data. Check the notes below as well.

    But before to do that set "ALS: Select Diagnostics.

    Create accountants: create accounting program (XLAACCUP) error ORA-01653 cannot extend the Table XLA. 16 in the Tablespace APPS_TS_TX_DATA (Doc ID 943938.1) XLA_DIAG_SOURCES

    How to purge the populated tables allowing the diagnosis of ALS? (Doc ID 1516562.1)

Maybe you are looking for

  • A60 Pro battery issues?

    I have a Pro A60 which seems to work pretty quickly batteries down. A full charge of the battery takes a little more than 2 hours. If I leave the laptop on the presentation of standby time on battery setting, that power will stop within 2 hours. It i

  • Error address IP IX2 individual cloud in the Cloud graphic configuration interface

    Hello I'm triying to set up my personal cloud on my IX2 but I have a strange IP address on the Setup chart interface (see image below): my ix2 network address is 192.168.1.111... but in the settings interface Personal Cloud, the IP address is 5.10.0.

  • How to activate a Bluetooth between my iPhone and my macbook?

    How to activate a Bluetooth between my iPhone and my macbook?

  • How one is resized the calendar widget?

    The owner's manual says to press the widget until vibration, and then drag the corner of the new size. Everything that happens to me is that calendar wants to move to a new position. On one attempt, the widget went in the trash. When I re-installed t

  • Visual Studio 2010 silent install

    I'm unable to install Visual Studio 2010 silently on client computers. I'm following the steps here: http://msdn.Microsoft.com/en-us/library/ee225237.aspx When I run \\server\VS2010\Setup\setup.exe/unattendfile \\server\VS2010\VS2010_deployment.ini s