QQ: What generates less recovery of activity: DROP TABLE or TRUNCATE + DROP?

Hi guys,.

QQ: What generates less recovery of activity: just DRAG the TABLE or TRUNCATE first and then drop?

: p

Easy to test, here go us.
First case, GOUT:

SQL> create table mytbl as select * from all_objects;

Table created.

SQL> select sum(a.value)
  2  from   v$mystat a, v$sysstat b
  3  where  a.statistic#=b.statistic#
  4  and    b.name = 'redo size';

SUM(A.VALUE)
------------
      405988

SQL> drop table mytbl;

Table dropped.

SQL> select sum(a.value)
  2  from   v$mystat a, v$sysstat b
  3  where  a.statistic#=b.statistic#
  4  and    b.name = 'redo size';

SUM(A.VALUE)
------------
      420148

SQL> select 420148-405988 from dual;

420148-405988
-------------
        14160

14 160 bytes redo.
Second case, TRUNCATE + DROP:

SQL> create table mytbl as select * from all_objects;

Table created.

SQL> select sum(a.value)
  2  from   v$mystat a, v$sysstat b
  3  where  a.statistic#=b.statistic#
  4  and    b.name = 'redo size';

SUM(A.VALUE)
------------
      647404

SQL> truncate table mytbl;

Table truncated.

SQL> drop table mytbl;

Table dropped.

SQL> select sum(a.value)
  2  from   v$mystat a, v$sysstat b
  3  where  a.statistic#=b.statistic#
  4  and    b.name = 'redo size';

SUM(A.VALUE)
------------
      710284

SQL> select 710284-647404 from dual;

710284-647404
-------------
        62880

Therefore, although it is much smaller than a drop of WATER + DELETE, the second approach (truncated + drop) generate about 4.5 times more than the first case (combo) again.

Nicolas.

Tags: Database

Similar Questions

  • ORA-01153: an incompatible media recovery is active

    Hello

    the eve of ments is created (11.1.0.7), time real usng apply.

    go to the eve of the database:

    SQL > select flashback_on from database v$.

    FLASHBACK_ON
    ------------------
    NO.


    SQL > alter flashback database;
    change the flashback of the database on
    *
    ERROR on line 1:
    ORA-01153: an incompatible media recovery is active


    question here:

    1. If I use flashback in a database of pending?

    2. If so, how can I turn it on?

    Thank you
    951932

    Yes, you can do it. But to allow the return of flame, you must have your database in editing mode.

    Example:

    SQL> select max(sequence#) from v$archived_log where applied='YES';
    
    MAX(SEQUENCE#)
    --------------
    546
    
    SQL>
    SQL> alter database recover managed standby database cancel;
    
    Database altered.
    
    SQL> alter system set db_flashback_retention_target=1440;
    
    System altered.
    
    SQL>
    SQL> alter database flashback on;
    
    Database altered.
    
    SQL> alter database recover managed standby database disconnect from session using current logfile;
    
    Database altered.
    
    SQL> select process,status,sequence# from v$managed_standby;
    
    PROCESS   STATUS        SEQUENCE#
    --------- ------------ ----------
    ARCH      CONNECTED             0
    ARCH      CONNECTED             0
    ARCH      CONNECTED             0
    ARCH      CLOSING             545
    MRP0      APPLYING_LOG        547
    RFS       IDLE                  0
    RFS       IDLE                  0
    RFS       IDLE                547
    RFS       IDLE                  0
    
    9 rows selected.
    
  • The WRT54GL router DHCP Active IP table show those wired?

    Hello.

    On my old router Linksys WRT54GL (with its latest stock firmware) of http://192.168.1.1/DHCPTable.asp for DHCP active IP Table, it shows that wireless connections. How is it does not show wired those?

    Thank you in advance.

    Make sure that the wired computers are not on the static ip configuration, there is no IP permanently assigned to them. They should all be on DHCP, obtain the IP address of the router. If that's ok. It could be with the fw of the router. I suggest you can reflash but if it does not resolve the issue, reset the router and then reconfigure. Because on the DHCP client table, it should show all the connected devices wired and wireless through the router.

    Here is the link to the download site.

    http://homesupport.Cisco.com/en-us/support/routers/WRT54GL

  • How to capture what oracle object delete rows in the table?

    Hi all

    I have a table in which I am storing data deleted from the main table. I have a delete on the main table statements in the various packages, now I want to capture what sql statement what package is remove rows from the table. I created the trigger to insert data into the backup table. I'm using oracle 11g.

    Please help me...

    Thanks and greetings

    Vidyasagar.B

    You can use DBMS_UTILITY.FORMAT_CALL_STACK.
    
    SQL> create table t
      2  (
      3    no integer
      4  );
    
    Table created.
    
    SQL> create table t_log
      2  (
      3    str clob
      4  );
    
    Table created.
    
    SQL> create or replace trigger t_trig before insert on t
      2  begin
      3     insert into t_log(str) values (dbms_utility.format_call_stack);
      4  end;
      5  /
    
    Trigger created.
    
    SQL> create or replace procedure p
      2  as
      3  begin
      4    insert into t (no) values (1);
      5  end;
      6  /
    
    Procedure created.
    
    SQL> create or replace package pkg
      2  as
      3     procedure run;
      4  end;
      5  /
    
    Package created.
    
    SQL> create or replace package body pkg
      2  as
      3     procedure run
      4     is
      5     begin
      6       p;
      7     end;
      8  end;
      9  /
    
    Package body created.
    
    SQL> exec pkg.run
    
    PL/SQL procedure successfully completed.
    
    SQL> select * from t_log;
    
    STR
    --------------------------------------------------------------------------------
    ----- PL/SQL Call Stack -----
      object      line  object
      handle    number  name
    3abbbc6d8         1  anonymous block
    3ad03bf88         2  KARTHICK.T_TRIG
    3a51a18a8         4  procedure KARTHICK.P
    3ac4f1508         6  package body KARTHICK.PKG
    3ac91c250         1  anonymous block
    
  • Generate the DDL to create the table in the database

    Hi all

    I want to create the new fact and Stadium as being under the statement:

    (1) in the designer, access the models > Oracle BI Applications (folder) > (model) Oracle BI Applications > done (sub-model) step, right click on the WC_SAMPLE_FS data store and select duplicate the selection.

    2) double-click the new data store, and then rename it. Name and resource name must match the name of the actual table. Alias can be the same or greater value easy to use.

    (3) in the sub-tab of the columns, add all columns.

    (4) repeat the same steps to create the fact Table by copying the data store WC_SAMPLE_F under the submodel of "facts".

    (5) for the fact table, define the type of OLAP to "fact Table.

    (6) generate the DDL to create the table in the database.

    In step 6, I don't know where and how to generate the DDL to create the database table. Please help me. If you have another tutorial with screenshot, please share with me. Thank you.

    Kind regards

    Cong

    Hi Cong,

    Please see section 6.3 DDL generation of scripts in this link:

    Working with the Designer of the common Format - 11g Release 1 (11.1.1)

    I hope this helps.

    Thank you!

    Saran.

  • Recovery of Active - office cannot retrieve the desktop computer

    original title: Active recovery of funds.

    Active desktop recovery showed on my page of initial start-up after sum it was Martin who knows what doin here, now, they can't fix or solve why this watch!  IV followed the instructions for that my office turned on bk & showin my screensaver, but it does not do anything. His red in writin (high Active Desktop), then the page is white with 2 instructions follow. I also tried switching off & re-initialization again but its still there.  Is there someone in the forums who doesn't know this problem or is familiar with it please help because its driving me crazy, I can't solve well followed the instructions.  Thank you Cara.

    See these:

    http://benosullivan.co.UK/Windows/Active-Desktop-recovery-error/

    http://www.techtamasha.com/how-to-remove-Active-Desktop-Recovery-screen/109

    http://wiki.answers.com/Q/How_do_you_repair_Active_Desktop_in_Windows_XP

  • How to: Disable the new 'Visit what you type' in the url drop-down list. FF 43

    So with the update of FF 43 Mozilla is still destroying my workflow. While browsing I have I'll especially out of muscle memory. And the new updated through upward in the top position most of the url drop-down the search with the option. I disabled that within 5 minutes but now instead of it's me give "visit"url what ever I can partially be hit". I wish that this new item disabled and can't seem to find an option for her.

    I never understood why the url bar allowed for searching the Web when there is already a dedicated search bar.

    You can set this pref to false on the topic: config page.

    • Browser.urlbar.unifiedcomplete = false

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

    Location drop-down menu bar may show items from the history, as well as pages of a bookmark and sites currently open in tabs.
    You can define what suggestions to show when you enter a URL in the address bar in "Options/Preferences > privacy".

    • Tools > Options > privacy > address bar: when you use the location bar, suggest:
      History
      Bookmarks
      Open tabs
    • choice of browser.urlbar.suggest.history.onlyTyped must be modified directly through the pref
    • choice of browser.urlbar.Suggest.Searches is present in Firefox 43 + as 'See the search in the location bar results suggestions' in "Options/Preferences > Search" in the search parameters
  • What is airportd in the activity monitor.  Is there a list defining what are these processes?

    I have a 'airportd' process that appears in my monitor activity periodically and locking system. I don't know where it comes from, or find a definition of what is our why it runs.

    The airportd process is the demon of the airport. This process is used to manage your wifi interface, which Apple has already called the airport. Do you use the WiFi on the Mac?

  • What is communication for 3D Active shutter technology?

    Hello

    I buy Toshiba 3D 46tl438 screen, the TV comes with 3D glasses active two model: FPT-AG02G.
    I watch almost everywhere (including the manual and on the glasses themselves) what is the technology of communication? IR, RF or BP?
    I also try Web of Toshiba, but without success.

    Thanks in advance,

    Kobi

    I think its IR because the module is placed in the middle of the glasses and the same info on IR can be found on other Web pages.

  • What is the recovery CD contain - Satellite A100-847

    Hello guys

    I had a few questions on the recovery CD:

    1. what the recovery CD contain? and the other CD, which is called the media something?

    2 - has Windows inside? So can I format my PC to use it? And where can I find the product key (windows key)

    3. what happens if I wanted to use the CD without formatting? etc., install the software?

    Sorry to ask too but my laptop started to bother me. Just FYI, my laptop is satellite A100-847

    Hello

    I'll try to answer your question.

    1 recovery media contains recovery image. Recovery image is a kind of package that contains the operating system, all necessary drivers, Toshiba tools and utilities and some other software like WinDVD or Norton antivir application. Media, that something is not known to me. Perhaps the exact description can help.

    2 Yes there the Windows operating system. Yes, you can format your laptop to use it. You don't need a product key. Just install it.

    3 I don't know what you mean. The fact is that HARD drive will be formatted before you start the installation of recovery. Make sure that all your important data are saved on an external device.

    Good bye

  • What is the recovery disc include - Satellite A300?

    Hello. I have a laptop Satellite A300.
    I have seen that my computer has 1 hidden partition in the first drive and another recovery file in the second disc.

    (1) what is the difference between the 2?
    (2) I accidentally deleted the file on the second drive, and now I am unable to create a recovery disc, so I need to order a new one.

    What is the disk? It only installs the operating system, or it will also include some of the software came with my laptop (Microsoft works, using the camera software and so on...)

    Thank you.

    (1) it's pretty easy. The hidden partition contains the Windows recovery environment and the file on the second partition in HARD disk recovery file, factory settings or leave a picture of her.
    The recovery environment is a feature of Vista, not a Toshiba. If you want to return factory settings, or to reinstall Windows, you need the HARD drive recovery function or the Toshiba recovery disc.
    Here is a useful link to the recovery environment: http://en.wikipedia.org/wiki/WinRE

    (2) the reason why you can t create the recovery disk is that you deleted the file. On the second partition in HARD disk recovery file is normally only for this image and this can also be used for the recovery of HARD drive feature. Therefore, you need to go into the advanced boot menu and select Repair my computer. But now it s too late and you can t use this feature.

    If you want the recovery disc, you can order directly into a new to Toshiba:
    https://backupmedia.Toshiba.EU/landing.aspx
    The recovery disk contains the operating system and all the drivers and tools you need for the Toshiba laptop.

    I m that you have right didn't look in the manual? ;)
    Otherwise you all know what I told you.

  • HP laptop 15 15-r110dx: what makes the recovery through the HP Recovery Manager

    Hello.

    My question is this, I upgraded my OS to windows 10, after upgrade, I did a reset of the operating system... Now I can't reset my laptop to its factory settings. and the recovery of original windwos 8.1 is no longer accessible. so I'll download windwos 8.1 pro from microsoft.com and then will install it in my laptop. so after installing, I'll be able to make a recovery of windwos 8.1 partition in my laptop via hp Recovery Manager. Please answer

    SJunaid1

    Looks like you used the Win10 GoBack feature infamous attempt to restore your PC updated Win10 to a previous version of the OS, right?

    If this is the case then, sorry to be the bearer of bad news, but, unfortunately, the Win10 GoBack function is known to be unreliable, and when it fails it can leave machinery in a State corrupted - that seems to be what has happened to yours.

    The Win10 upgrade is known, in some cases, corrupt the partition of recovery that are stored by the OEM that built the original machine.  It's pretty much guarantee that no HP recovery will work.

    While you MIGHT be able to reinstall and reactivate using a downloaded MS Win8.1, you won't be able to recreate the partition recovery as requiring a compressed image of HP OEM of Win8.1, which you can not create or get.

    What will work restores your computer to its original factory state using HP recovery media.  It is a DVD and CD set that will erase the hard drive (removing all data, applications and settings, reinstall the original OS, drivers and utilities for HP. In some cases, you will be able to order a USB instead of discs.  You must order at HP; they cannot be downloaded.

    You can look online for recovery from the paged media related: http://support.hp.com/us-en/drivers

    Once there, enter your product name or number. On your software page and download the drivers, select your operating system and version. Click on "Update".  If the HP recovery support is available for your computer, down near the bottom of the page, you will see an entry for the command Recovery Media-CD/DVD/USB. Click on the symbol '+' to expand this entty and click on order to press for more details.

    Or, if you prefer, you can do the same by contacting HP Customer Service:

    If you live in the United States or the Canada, details are on this page: http://www8.hp.com/us/en/contact-hp/phone-assist.html#section1

    If you live elsewhere, contact details are on this page: http://www8.hp.com/us/en/contact-hp/ww-contact-us.html

    Note that if HP no longer provides a recovery media for your model, a few other sites, you can check are: http://www.computersurgeons.com/ and http://www.restoredisks.com/

    Don't forget to read through the material in the linked thread before attempting the recovery: http://support.hp.com/us-en/document/c00707939

    Good luck

    I'm a volunteer and I do not work for, or represent, HP.
    ========================================================================
    If you feel that my suggestions helped you, please click on the thumbs-up symbol to say thank you!

    If they helped to solve your problem, please click 'Accept as Solution' to help others find similar information.

  • Windows Server 2012 Foundation - installation of recovery DVDs - Activation question

    Hi all

    Please could you help me with the following text:

    After the installation of Windows Server 2012 Foundation of Fujitsu Operating System Recovery DVD Fujitsu server activation does not work. Error code: 0xC004E003, Error Description: The Software Licensing Service reported that license evaluation failed.

    Thank you

    Ivo

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
  • Why sometimes make a mistake Active Desktop recovery when active desktop is not enabled in XP Pro 32-bit w / SP3?

    I've seen this several times in the last year or two and I don't understand why it's happening. I NEVER use the Active Desktop.

    Hello

    1. when exactly did you receive this error message?

    2. what web browser do you use?

    3. have you made changes on your computer?

    Method 1:

    I also suggest you to see link and check.

    To enable the Active Desktop interface

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/ie4_turnon_active_desktop.mspx?mfr=true

    After I installed Windows Internet Explorer 7 on a computer that is running Windows XP with Service Pack 2, a "Restore my Active Desktop" button appears on the desktop

    http://support.Microsoft.com/kb/929200

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    322756 (http://support.microsoft.com/kb/322756/) how to back up and restore the registry in Windows

  • What is the difference between activation voice Dragan and voice activation Windows?

    I used to have voice activation Dragan and loved. What is the difference between the software you buy and the system already installed in Windows?

    original title: why NOT use speech recognition?

    I guess you have already watched on the site Web of Nuance for the features of Dragon & compared to Windows using Windows speech recognition.

    [I found useful, the following as well: How can I remove software voice of Windows 7 so it won't conflict with the Dragon Naturally Speaking software?]

Maybe you are looking for

  • Addons site just redirects to the Mozilla download page, is the site broken?

    I can't seem to download for a page (or add-ons). If I go to this link: https://addons.mozilla.org/en-us/thunderbird/addon/importexporttools/I get redirected to: https://www.mozilla.org/en-US/firefox/new/?utm_source=addons.mozilla.org & utm_medium =

  • How to access the address bar via the BT keyboard? (ctrl-l does not work)

    Having a whole bluetooth keyboard connected to my Android tablet, I can't really use it well with Firefox, as there is no way to reach the address bar using the keyboard. CTRL-L because it works on the desktop doesn't seem to work on Android tablet.

  • alternatives to iTunes

    Little by little, as the Apple software worsens gradually, I've been finding third party alternatives that seem to be able to help make working with the Nice computer. With the recent loss of an important source of my own music (added to iTunes from

  • Satellite 2450 s203, "Key Blind" vs Alt right

    Hello!I have a problem with my Satellite 2450 s203 keyboard. The sequence of keys on my keyboard is (right): bar space, "blind button", Ins, Del, RightAlt."Blind touch" is the key with any letter/sign on them. When you type, you will get "------" ("'

  • Upgrade memory on a Satellite 1800 712

    Hello I want to upgrade the RAM on my 1800-712.In fact, I have a 256 MB PC133 SDRAM.It is strange that the bus on this type of machine seems to be 100 Mhz! I want to install a Kingston memory in second slot.Thus, it is mandatory to install any memory