Increase the performance of pl/sql delete

version: 10g

Hi all

Help me please by increasing the performance of the code below,

The code below takes about 10 min for deletion in 80 tables he recovered. Each table it does not remove more than 50,000 thousands

Is there another way I can increase the performance of the below.

I thought to delete forall, but I don't think its useful in this context.

DECLARE

v_num_2 PLS_INTEGER: = 50000;

BEGIN

THE C1

(SELECT master: '.) '       || table_name table_name

From all_tables owner WHERE = 'ARCHIVE' AND num_rows > 0 ORDER BY table_name

)

LOOP

BEGIN

EXECUTE IMMEDIATE 'remove'. C1.table_name |

"where arch_ts < (sysdate-530) and rownum < =' | ' v_num_2;

END LOOP;

END;

Thanks in advance

Without asking what purpose your code is used:

You can enable parallel DML and add a hint of parallel to your delete statement.

Something like (not tested, but you'll get the idea):

Start

immediate 'alter session enable dml parallel. "

--

C1 in (select master: '.) ' || table_name table_name

from all_tables

where owner = "ARCHIVE".

and num_rows > 0

-order of table_name<-- not="" really="" needed,="" is="">

)

loop

Start

run immediately "remove / * + parallel (t 4) * / ' |"

'from' | C1.table_name | |' t ' |

"where arch_ts".< (sysdate-530)="">

'and rownum '.<= 50000="">

end loop;

--

immediate "alter session disable dml" parallel execution

end;

/

You can test with different values for the declaration of principles (degree of parallelism), 4 in the index and find the optimal value.

Tags: Database

Similar Questions

  • ways to increase the performance of the processor

    It might be a silly thing to ask, but I can use a 4 GB USB key to increase the performance of the processor

    during execution of the movies netflix and Amazon to steam. I have 17.4 GB of free space, but then the streaming of the CPU usage is maxed out

    c increace disk space I made the following suggestions given by someone else in the community:

     You can create more free space in C by doing one of the following suggested measures.

    The default allocation for the restoration of the system is 12% on your C partition is more generous. I have them would be reduced by 700 MB. Make my computer right click on your icon, and select System Restore. Place the cursor on your C drive select settings but this time find the slider and drag it to the left until it shows 700 MB and output. When you get to the settings screen, click on apply and OK and leave.

    A flaw that might be useless which is for temporary internet files, especially if you keep no copies on the disk offline. Setting the default value is 3% of the walk. Depending on your attitude to copies offline, you could bring it to 1% or 2%. In Internet Explorer, select Tools, Internet Options, general, temporary Internet files, settings to make the change. At the same time, look at the number of days, the story stands.

    The default allocation for the basket is 10% of the disk. Change to 5%, which should be enough. In Windows Explorer hover over your Recycle Bin, right click and select Properties, Global and move the slider from 10% to 5%. However, try to let you become so complete that if it is complete and you delete a file by mistake it will bypass the Recycle Bin and have gone forever.

    Operating system

    MS Windows XP Professional SP3 32-bit

    CENTRAL PROCESSING UNIT

    Intel Pentium III - M

    Tualatin 0.13 technology

    RAM

    1.00 GB OF SDRAM

    Motherboard

    IBM 2648AU0 (no) 52 ° c.

    Graphics

    ThinkPad TV (1024x768@60Hz)

    S3 Graphics SuperSavage/IXC 1014

    Hard drives

    29.3 GB IC25N030ATCS04-0 (PATA) 47 ° C

    Optical drives

    HITACHI DVD - ROM GD-S250

    Audio

    Intel (r) 82801 CA/CAM AC 97 Audio Controller

    Hello

    Right-click on any video 'flash' and select 'Settings' in the context menu, select the option "use hardware acceleration"...

    You have a graphics card installed... flash videos will / should use his memory for buffering streaming.

    go

    Start > Control Panel > drivers

    or look for updates of your display driver...

    or

    go

    Start > run > dxdiag > display tab, a diagnosis of your display drivers.

  • RAM 1 GB upgrade will increase the performance of the Satellite Pro M30?

    My ram size is currenty 512 MB.
    I have the model Satellite Pro M30.
    As the old model, my laptop would be faster if I increase to 1 GB

    Hello

    Of course, the 1 GB of RAM would help increase the performance of your laptop.
    It must be useful for faster loading applications.
    You will notice also that your tools and other software will be faster.

    To upgrade to the 1 GB RAM, you would need two 512 MB modules.
    Usually the PC2700 DDR - RAM 512 MB module must be compatible.

    Welcome them

  • To increase the performance of the system (Windows XP, Vista, 7 and 8)

    Hi all

    Most people enjoy to keep their work in the computer and working properly, as long as possible. I have provided a few interesting documents that they will help you to keep your system as recent as possible concerning regular maintenance. I am able to provide information for systems already in Windows XP and as recent as Windows 8. What's even better is that these changes and updates can be performed without modification or upgrade any hardware.

    Increase the performance of the XP system

    Increase the Performance of the system Vista

    Increase the performance of the system 7

    Increase the performance of the system 8

    Thank you

    I hope this helps everyone.

  • Re: Satellite L500-19Z - how to increase the performance of the game?

    Hey

    Basically, I have a Toshiba Satellite L500-19z, with chipsets Intel Series 4 express. I know this isn't a particularly good game, but surely the performance of game should be reasonable?

    I get 80% of the time lag - while on my old laptop (which costs no more than £200) I could play World of Warcraft on it no problem (I played the Sims3 on this laptop and had very few problems. I'm playing Dragon Age, but it is almost impossible.) My laptop is not more than 8 months old.

    I just want to know if there is a way to increase the performance of the game? I thought that maybe to connect my laptop to a PC Tower, but that could lead to the worst game performance, so I said.
    I'm sure I can't replace the graphics card, I've updated my drivers, defragment disks and so on.

    Any help is really appreciated, thanks in advance.

    Hello

    Is there anything to do to increase game performance. It depends on the graphics card and Intel cards are not designed for games, they are a good choice for mobile use because they don t need a lot of power.
    In addition, the peut t graphics card be exchanged, s thereby.

    It s always depending on the game that you can play. Therefore, check the system requirements of all the games you want to play and if your graphics card is supported. Not all games support all graphics cards.

    You must also use low graphics settings in each game. You can use the parameters of t.

    For example on my Satellite U400, possessing the same Intel graphics card, I can play Half Life 2 which has already 5 years but always low medium graphics settings.

  • is it possible to use external memory to increase the performance of my computer?

    I have a slow xp and each program/app/files in an external drive.
    But I want to know if I can improve the performance of my control memory left him in the external drive.

    Hi cesar vidal,.

    1. What is the total capacity of the hard drive primary?
    2. Since when are you facing problems of performance on the computer?

    Method 1

    There is no way the use of the memory or the space left in the external drive to increase the performance of the computer.

    See the article and check if it helps increase the performance of the computer.

    Slow PC? Optimize your computer for peak performance

    http://www.Microsoft.com/athome/Setup/optimize.aspx

    Method 2

    It is possible that some third-party programs installed on the computer is at the origin of the performance problem.

    I suggest that you put the computer in a clean boot state and check if it helps.

    To help resolve the error and other messages, you can start Windows XP by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See the link below to learn more about how to clean boot.

    How to configure Windows XP to start in a "clean boot" State

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

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    (a) click Start, type msconfig in the search box and press ENTER.

    (b) If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    (c) under the general tab, click the Normal startup option, and then click OK.

    (d) when you are prompted to restart the computer, click on restart.

  • I want to increase the performance of the PC using Readyboost

    Here are my stats to computer

    Windows vista home (32-bit) sp2
    Intel Pentium Dual CPU E2160 @ 1.80 Ghz
    2 GB of RAM
    now I want to increase the performance of the pc using readyboost
    How can I do
    also how can I get the max of readyboost performance
    is there a support for an external device?
    thnx in advance
    Original title: readyboost

    Hello

    'ram 2 GB'

    You have too much RAM for Readyboost work effectively.

    ReadyBoost is designed for machines that have between 500 MB - 1 GB RAM

    The physical RAM you have installed, less you will notice an improvement using Readyboost.

    This is a very good tutorial on how to configure Readyboost:

    http://www.bleepingcomputer.com/tutorials/using-Windows-ReadyBoost-to-increase-performance/

    See you soon.

  • If I activate 2 processors in msconfig, it will increase the performance of my computer... !

    If I activate 2 processors in msconfig > advanced > number of processors to 2 it will increase the performance of my computer... !

    Original title: two processors

    In most cases, you will probably have to use these options, but they can come in handy. For example, if you think that a startup problem is caused by the presence of more than one processor, you can limit the number of processors used to boot the system by activating the checkbox number of processors, and specifying a number.

    Mr President I'm on hp xw6400 workstation it has 2 processors and I use windows 10 on it, I want to run the two processors at the same time to improve performance is anyway you can tell me how...

    Hello

    Installation is possible, however, the operating system will use a processor at a single time. There are also the prerequisites if you want this kind of installation. Even if it is possible, we have no advice to use both processors at the same time, because performance will always be bottleneck depending on the hardware and the operating system you are using.

    Kind regards.

  • Increase the performance of research in the interactive report

    Hello

    I created a report that around 10,000 + records. To load the report, it does not have a lot of time. But when I do a search in interactive report that it takes a lot of time. Please suggest me how to increase the performance of interactive research.

    I use Oracle apex 3.2 and Oracle 10 g XE database.


    Please suggest me.

    Thank you
    Sudhir

    Antonio,

    Pagination: thank you. My concern was if pagination is in the form "x y z", where z is the total number of lines, then all lines may need to be returned to produce the total number.

    Function: Nice modular approach. As suggested above, four by rank function calls could produce a LOT of overhead in APEX (or elsewhere). A way to see if it is part of the problem, replace the code in function just a call with the code online and see if you get a large (15 to 20%) to accelerate.

    Howard

  • Increase the performance of MAC with the SSD upgrade

    I have a 21.5-inch iMac model 14.1 (end 2013) with 8 GB of memory and a 1 TB drive. On this, I use some applications in memory such as Adobe CS 5.5 and VMWare Fusion 8.1.1. I have Applecare on the machine until September 2017. I often find myself running out of memory. My goto solution would be to increase the memory and replace the hard drive with an SSD. I fear, however, that this cancels my Applecare. My research indicates that while that frowned upon, I can upgrade my memory and keep my Applecare as long as it is done by an authorized by Apple, but if I do the SSD I'm out of luck for the installed components. My thought is that I can get an external SSD and move the ' WIndows 10' VM (s), as well as expand and move the swapfiles for the SSD system.»

    My questions are am I right about the Applecare and warranty and I plan to use an external SSD to accelerate performance and ease the work of memory constraints?

    I have f

    I have a Macbook Air in 2010 and also a 2008 iMac - both with only 4 GB of memory (you have twice as much), both running El Capitan and the two with SSD - and perform very well. The 2008 iMac used to have a rotating disc which has recently failed, with the replacement of SSD, it is a remarkable transformation with the new SSD, it seems very quickly for me. Both have Photoshop CS4, which is not used much more, but they run this software very well, as well as MS Office 2011 and other programs such as Mail, Safari, Firefox, etc. (Firefox + Photoshop together put a noticeable load on machines, in fact, but while I sometimes hear the fans come on the Macbook Air, it maintains not up very well) No slowdown) You'll be in great shape with a SSD for your newer computer. These old machines that I use have Core 2 Duo CPUs, chips relatively slow, but they seem very quickly with the SSD.

    You will need to check with Apple directly on your AppleCare and so that would be affected. I don't know that anyone is not Apple should trust this question.

  • How to increase the historical number of Sqls stored in SQL

    Hello

    Is it possible to increase the number of SQLs stored in history of the SQL SQL Developer?

    Thank you

    Hello

    Use the tools - preferences - data - sheet - SQL history limit.
    Change its value to what you want.
    Note: the greater value, as you put it, the SQL Dev more will maintain the size of the history.

    Kind regards

    Buntoro

  • SSD storage has increased the performance of EI?

    What is the performance difference between:

    SSD:

    Capacity: 240 GB

    Interface: SATA Rev 3.0 (6 Gb / s)

    SATA Rev.3.0 reading speed: 450 MB / s

    Records speed SATA Rev.3.0: 450 MB / s

    vs

    HDD:

    Interface: SATA III (6 Gb / s)

    Cache 64MB

    Capacity of 1 TB

    Shaft speed (RPM) 7200 rpm

    Put the disk on an SSD cache makes a big difference.

  • increase the performance of the query how

    SELECT * from load_log
    where
    filetype = ' O/c '.
    AND EXISTS (SELECT view_orders FROM ' 1')
    WHERE O_ftype = ftype
    AND o_loadno = loadno - < < this line
    AND o_cocode = 1)


    HOW TO INCREASE THE PERFORMENCE OF QUERY.
    THE view_orders IS THE VIEW THAT CREATED 4 TABLES THAT HAVE SAME COLUMSN EXCEPT FTYPE


    If I remove this line very quickly run the query
    AND o_loadno = loadno - < <



    PLEASE GIVE ME SOME IDEAS/SUGGESTIONS.

    Thank you

    STONE ROUGH

    hard_stone wrote:
    the index of the user

    May be you want to re - edit your post: I asked the information only for the "PRT_ORDER_CONFIRM_LOAD" index, not for all indexes.

    Goes the same for the table, only for the table 'PRT_ORDER_CONFIRM '.

    This list of values without the name of the index is useless, and a line for this index should be enough.

    Kind regards
    Randolf

    Oracle related blog stuff:
    http://Oracle-Randolf.blogspot.com/

    SQLTools ++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676 /.
    http://sourceforge.NET/projects/SQLT-pp/

  • Increase the performance of the Insert using e DBlink

    Dear friends,

    I try inserting 4 Lakes records in a table using the DB - Link.It is taking a lot of time (1 hour) to insert the records, is there another way to increase performance.
    It's my insert statement.

    Insert / * + APPEND PARALLEL NOLOGGING * / in target_table
    Select * from source_table@dblink_name

    Nowhere in this thread I see the following:

    1. the hardware (servers) and the operating system.
    2. WEP (which is the speed of the network and the bandwidth?).
    3. oracle version number.
    4. any real time
    5. the time inserts take when it is not pushed through the db link but run locally.
    6. explain the plan.
    7. a DML statement.
    8. information about the indexes on the target table.
    9. information about constraints on the target table.
    10. information on the triggers on the target table.
    11. the evidence that the target is, in fact, a table and not a view or another object type.

    I don't see how someone can do more than ask the OP for more information about the fact that what was provided is totally inadequate to make a recommendation.

  • How to increase the number of days before deleting messages in the trash?

    The automatic removal of e-mails to the trash is set for about 3 days. Much too short an e-mail should be necessary.

    In the left column of the files right click Trash. Select them properties. Click on the retention policy tab. Uncheck the box if it is enabled. Select the number of days you want to keep before deleting.

Maybe you are looking for

  • Everyone try to use app VLC with Airport Extreme by car?

    I have the new VLC app installed on my Apple TV4. I also have a USB drive connected to my current gen Airport Extreme. I have a video file (Video_TS) residing on the drive from the airport. When I run VLC on the ATV4, under the "local network" menu,

  • Windows 7 - XP Virtualization

    I upgraded to Win Pro to be able to use XP for College, I get a hardware error on a switch in the BIOS that must be activated. I looked for it and my laptop DELL Inspiron 1545 does not. Is there anyway that I can do this without having to buy a new P

  • runOnStartUp for BB10

    Hello I want to write a BB10 application that is still running. I know for BB5 - 7 is it possible to do: but the document says that this does not apply to the BB10. Is this correct? If so, are there other options?

  • How to keep the titles and names of events when importing from iPhoto?

    I have 17,000 photos and you want to migrate from iPhoto to LR. Some of them have titles I assigned in iPhoto. Other events, which I'd love to keep the names. This information is really important for me, because it contains a lot of travel since the

  • Poster frame ignored by Media Encoder

    HelloI'm having a bad day with the "Set poster Time' in AE.    All my compositions are made to Media Encoder and the poster frame is completely ignored.  My client is chewing a new because "it wasn't like that before... you ruined.If indeed, the play