Find the latest ignored issue of an attribute

Oracle DB 12.1.2

A large table, I need to find the last ignored an attribute number. For example, consider this test scenario:

drop table

create table no matter what)

number of ukeyd);

insert into some(ukeyd) values (1);

insert into some(ukeyd) values (1); - Yes number can repeat

insert into some(ukeyd) values (3);

insert into some(ukeyd) values (5); - Yes gaps can be greater than 1 number

insert into some(ukeyd) values (10);

The result should be: 9

And I could do with this code:

Select max (missing) in)

Select min_ukeyd - 1 + level missing

of (min (ukeyd) select min_ukeyd)

max (ukeyd) max_ukeyd

of whatever

)

connect by level < = max_ukeyd - min_ukeyd + 1

less

Select ukeyd

of whatever

);

However, in my table that has records of 150 M, I get this error:

ORA-30009: not enough memory to CONNECT BY operation

Can anyone think solution that would work with large table?

SQL> ed
Wrote file afiedt.buf                                  

  1  select max(ukeyd) - 1 from
  2  (select ukeyd, lag(ukeyd) over (order by ukeyd) u
  3  from whatever)
  4* where u is not null and u + 1 != ukeyd
SQL> /                                                  

MAX(UKEYD)-1
------------
          9                                   

I'm just now to make a table with a few tens of millions of lines to see how it behaves and this pics... more to come Oracle plan.

Tags: Database

Similar Questions

  • Portege - where to find the latest version of the Atheros WLAN driver?

    Atheros AR5001x wireless drivers?

    Whats thw later and where I can find?

    Hi ollie,.

    Can you please tell us what phone you have?
    Normally, you can find the latest drivers if you are looking for the driver Toshiba download page for your model.

    An alternative, you can consult the WLAN Portal: http://aps2.toshiba-tro.de/wlan/

  • Re: Satellite P200D - 11L: where can I find the latest drivers for the Radeon HD 2600

    Hello

    Where can I find the latest drivers for the Radeon HD 2600? The Catalyst 7.11 since the official site of Ati/Amd works on a laptop? I read some stuff that these drivers do not support mobile maps and that there is a software for this problem, so I'm a bit confused now.

    What about drivers on the Toshiba site? They are more suitable? I don't really know.

    Thanks for your help.

    Of origin ATI/nVidia drivers are not designed for Toshiba laptops.
    ATI drivers can be used on desktop computers.
    The drivers of Toshiba graphics card supports thermal protection which is necessary to avoid the increase in temperature.
    Laptops, graphics cards do not have huge as cooling office modules graphics cards and therefore the GPU driver control the performance of the graphics card.

    What you could do is to check the site driver for 3rd party such as;
    www.OmegaDrivers.net.

    But the non-Toshiba drivers may be used only at your own risk!

  • How can I find the latest driver for my Canon MX310 all-in-one printer after "redevelopment" of the new Mac OS (El Capitan)?

    How can I find the latest driver for my Canon MX310 all-in-one printer after "redevelopment" of the new Mac OS (El Capitan)?

    Have you looked at the site of Canon?

  • Help to find the latest driver from Intel HD Graphics 3000 specific material for my laptop?

    I have the latest generic version of my driver VGA, Intel HD Graphics 3000.

    My laptop (gateway NV57H) came originally with a specific version of the pilot material.

    The problem is that when I go on the Gateway Web site to find the latest version of my display driver specific (or any other driver), all the drivers 'later' are dated from 2011-2012. This is probably because my computer is old and is no longer supported, kind of gateway that mind, is no longer adding drivers updated for it.

    In addition, the 'later' video driver for my computer running Win7 64 bit is so old (from 2012) that it is not supported for hardware acceleration on many of my browsers / applications. That's why I decided to get the latest generic driver, which apparently is causing BSOD on occasion when I run Minecraft. Basically, I'm stuck between a get a former working driver that doesn't support hardware acceleration and a new driver glitch causing the BSOD.

    Can you help me find a VGA driver for my laptop model material-specific? I do not know how to find my laptop manufacturer can't stand my computer or its pilots, but I think that it is based on the chipset or something? I don't know how this research and afraid I would probably just install another incorrect driver, please help.

    "all pilots 'later' are dated from 2011-2012... . Gateway is no longer bothers, addition of drivers updated for her... I think that it is based on the chipset or something? "

    Your Intel HD3000 graphics part of your Intel processor.

    The mfg of the laptop is the best place to download drivers and laptops and equipment

    often long a period to support pilot as dedicated graphics cards.

    Gateway (and other hardware mfg) Choose not not update drivers, not because your laptop is particularly old. More because the limits inherent material means that there is probably no benefit from an update.

    My cpu Intel with HD4000 is on a motherboard of 2011/2012 and the update of

    AsRock was November 2012 (I won't call it 'old' for two more years, and then it will be)

    be 'new' for my wife; (D.)

    -However, I welcomed recent updates to Windows Update my HD4000 graphics and have

    had no problems. I would never allow Windows updates near my dedicated, graphics card drivers

    and have never allowed the updates for the HD4000 either, but decided to try it with the

    HD4000 as an experience, but PC motherboards are different from laptops.

    Fortunately a newer driver is not likely to bring an improvement of your HD3000 graphics

    but you can try which allows updates Windows Update your HD3000 as well (in the)

    "Optional" updates).

    Even with the pilot of the dedicated gpu, updates are especially for optimizations of maps in the current series.

    Cards of 'Old' (say three or more back) don't really get a lot of current drivers.

    «hardware acceleration on a good number of my browsers / applications.»

    Hardware acceleration and the need to turn it off is not necessarily due to old drivers.

    I've never found out why, but some machines require it be disabled and others do not, even

    with newer drivers (including the graphics card with the latest drivers).

    I used to keep hardware acceleration enabled, but have it turned off somewhere along the line

    (don't remember why or when, but recently) and have never noticed any restraint in the execution

    browser-based applications. (with my two HD4000 and Nvidia GTX 770).

    Guess that's why I surprised to see that I had turned off, when you look at a minute there... :D

    .

  • where can I find the latest Photoshop and Bridge updated to version PC of CS6?

    where can I find the latest Photoshop and Bridge updated to version PC of CS6?

    Adobe - Photoshop: For Windows: Adobe Photoshop 13.0.1.3 updated for CS6

  • How to find the latest diagnostics for 11i patches

    How to find the latest patches of diagnostics for 11i, all documents.

    You can find the latest patch in (Note: 167000.1 - Guide of Installation of E-Business Suite Diagnostics).

    You can also check (Note: 235307.1 - E-Business Suite Diagnostics Tools FAQ and Troubleshooting Guide for version 11i and R12).

    Thank you
    Hussein

  • How to find the latest patch autoconfig

    Hello

    How do we find the latest patch autoconfig and the latest fixes quick clone,
    We have a few scripts in metalink to find the last script automatic configuration and patches quick clone.

    Thank you

    Danny,

    Please refer to:

    Note: 390666.1 - how to determine if you are on the last Autoconfig associated patches
    Note: 799735,1 - quick Clone library resources, version 11i and 12

    Kind regards
    Hussein

  • Where can I find the latest version of the software to download on my iPod Classic 160 GB end of 2009?

    Where can I find to download the latest version of the software for my iPod Classic (160GB end 2009)?

    I'm still enough of a novice at this and would like to, if possible, a detailed response. Really appreciate it.

    Thank you

    Mando

    Click here and follow the instructions. The entire process is managed within iTunes. you don't need to search for the download.

    (144457)

  • Re: Can not find the latest version of the BIOS for my Satellite A300 - 1 2

    Hello world

    I'm looking for the latest BIOS for my living room Satellite A300 - 1 g 2 (PSAGGE) I can't find any BIOS to the dl page.
    Maybe someone is able to help me.

    See you soon,.
    ezsolt

    Latest version of the BIOS, you can find on BIOS download page - http://www.toshiba.eu/innovation/download_bios.jsp

    Check it out.
    By the way: is there a reason to update the BIOS? You have problems with your machine?

  • Can not find the latest version of the BIOS for my Satellite Pro L100

    Hello everyone,

    I'm looking at the latest version of the bios for Satellite Pro L100 (PSLA1E).
    I can't find it on the Web from Toshiba site because it is a product at a reduced price.

    The BIOS download page is http://www.toshiba.eu/innovation/download_bios.jsp
    The older models, you can find if you use the option product type > Archive.

    Your Satellite Pro is in the list and latest version of BIOS is WIN 3.00.

    I don't know if there is a problem with your laptop but if everything is working properly and stabile don't change anything.

  • I can't find the latest driver ATI for Tecra A7

    Hello
    I have a problem and I hope someone could help.

    I have an ATI Radeon X 1600 in my book and I need the latest driver for it, but the driver which is located on the site of ATI don't like my computer, and he indicated that he could not install on my computer. I think that there is not supported computers laptop toshiba. And I could just found a driver what version number is 8,292 and his since 2007.
    Can someone tell me a site or something where I can find a newer driver for my computer? Or other options...

    Thank you
    Andrew

    Hello

    As you say the Tecra A7 was equipped with ATI M56P(256MB) ATI Radeon X 1600 graphics card.
    I discovered that the Satellite A100 PSAA9E and Satellite Pro A100 PSAACE were equipped with the same driver

    To verify the version of the driver that is designed for both series of books above.

    Good bye

  • Cannot find the latest firmware for the Toshiba 40TL838G

    Hello

    I am trying to download the latest firmware for the 40TL838G model, but I'm not.

    Where can I find it?

    Thank you.

    The same has been asked in this thread
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=73914

    We can receive the update only via a network update
    In which case you will not receive updates via the network, your firmware is up to date.

  • Satellite U400: Where to find the latest driver for CPU Intel CORE 2 Duo

    I think I had the latest drivers for this process, but I did something and now the drivers are back to: 2004, please LOOK AT THE SCREENSHOT that I show here and tell me what is the name of these drivers I need to download & install? Ok thank you.

    Photo: [http://s5.tinypic.com/24n2n3m.jpg]

    Made a mistake and installed OLD VERSION on the NEW version of the driver and now, if someone can please help me to find the name and the driver for this Intel CORE TM 2duo driver? ... Because my laptop started to work much more now with this 2004 the old version and now it is extremely hot.
    Help?

    Hey Buddy

    These drivers are part of the windows operating system. It is a Microsoft driver and I doubt that you have a newer version installed I think you mixed with something!

    I can say with certainty that you will find not all CPU drivers and to be honest, I never heard special drivers
    You must only ensure that a right chipset driver has been installed all that s!

  • Can not find the latest Firmware for QX10

    I got an automatic notification that there is an update of firmware for my QX! 0 a couple of days. I did not take in the details then. However when I search the site Support of Sony, it only refers to an update in dated date in 2014.

    Does anyone know the exact URL to get the lates firmware?

    Thanks in advance.

    The latest version of the firmware for the DSC-QX10 is 3.00 released 04 14, 2014.

    You can find the new firmware at: http://esupport.sony.com/US/p/model-home.pl?mdl=DSCQX10&LOC=3#/downloadTab

    Select the operating system of your computer (the update of the firmware is available to run on Mac OS x and any version of Windows XP 8.1.) and click on the Firmware.

Maybe you are looking for