With the help of / * + DRIVING_SITE (XYZ) * / Hint effectively.

Hi all

I need to debug the script gives error ORA-01652: unable to extend temp segment.

Script runs in the server Oracle 8i (like FIRST_ROWS optimizer mode) and the script uses dblink to get the result of the Oracle Server 9i remote (optimizer mode as a CHOICE), as shown below.

Select doc_page@tre---tre page_num, ascii_page_num, report_num, billing_status is 93910724 lines
less
Select page_num, ascii_page_num, report_num, doc_page billing_status; -tre2 = 81576482 lines

Execution plan is:
Execution plan
----------------------------------------------------------
0 SELECT STATEMENT Optimizer = FIRST_ROWS (cost = 3538847 Card = 170
190840 byte = 2771076960)

1 0 LESS
2 1 (SINGLE) SORT (cost = 2307176 Card = 91098360 bytes = 18219672
00)

3 2 remote CONTROL * (cost = 1058996 Card = 91098360 bytes = 1821967200) BE
4 1 (SINGLE) SORT (cost = 1231671 Card = 79092480 bytes = 94910976
0)

5 4 TABLE ACCESS (FULL) OF "DOC_PAGE" (cost = 418913 Card = 79
092480 bytes = 949109760)
3 SERIAL_FROM_REMOTE SELECT 'REPORT_NUM', 'PAGE_NUM', 'BILLING_STAT '.
"US", "ASCII_PAGE_NUM" TO "DOC_PAGE".


Now, if I use / * + DRIVING_SITE (XYZ) * / tip below is the implementation plan:

Execution plan
----------------------------------------------------------
0 SELECT STATEMENT Optimizer (DISTANCE) = CHOOSE (cost = car 3304797
d = 91098360 bytes = 2224486800)

1 0 LESS
2 1 (SINGLE) SORT (cost = 2073126 Card = 91098360 bytes = 12753770
40)

PARTITION 2 ROW 3 (ALL)
4 3 TABLE ACCESS (FULL) OF "DOC_PAGE" (cost = card 1058997 BE
is 91098360 bytes is 1275377040)

5 1 (SINGLE) SORT (cost = 1231671 Card = 79092480 bytes = 94910976
0)

6 5 remote CONTROL * (cost = 418913 Card = 79092480 bytes = 949109760)!


6 SERIAL_FROM_REMOTE SELECT 'REPORT_NUM', 'PAGE_NUM', 'BILLING_STAT '.
"US", "ASCII_PAGE_NUM" TO "DOC_PAGE".



So now I can't run and test to see whether you tip will be faster and will not give the error ORA-01652.

Can someone please suggest using above execution plan and indicate whether or not it's going to be fast please...?

-Yasser

YasserRACDBA wrote:
My last request...

Could you please restore solutions alternatives using NOT IN or NOT EXISTS or any other.

Yasser,

Since you are the one who is supposed to do the job, what have you tried so far? It might be a good opportunity to improve your SQL skills.

See my proposal above using the join. Given that you are in fact looking for lines that exist in the copy local and remote table, but that have different attributes, I would use the approach of the join, or EXISTS.

Note that the IS NULL / IS NOT NULL predicates are only necessary if these attributes can be NULL. If they are mandatory, the comparison of inequality is sufficient.

-- Join
select
          r.report_num
        , r.page_num
        , r.ascii_page_num
        , r.billing_status
from
          doc_page@tre r
        , doc_page l
where
         l.report_num = r.report_num
and      l.page_num   = r.page_num
and      (
             (l.ascii_page_num != r.ascii_page_num)
          or (l.billing_status != r.billing_status)
          or (l.ascii_page_num is not null and r.ascii_page_num is null)
          or (l.ascii_page_num is null and r.ascii_page_num is not null)
         )
;

-- EXISTS
select
          r.report_num
        , r.page_num
        , r.ascii_page_num
        , r.billing_status
from
          doc_page@tre r
where
         exists
         (
         select
                  null
         from
                  doc_page l
         where
                  l.report_num = r.report_num
         and      l.page_num   = r.page_num
         and      (
                      (l.ascii_page_num != r.ascii_page_num)
                   or (l.billing_status != r.billing_status)
                   or (l.ascii_page_num is not null and r.ascii_page_num is null)
                   or (l.ascii_page_num is null and r.ascii_page_num is not null)
                  )
         )
;

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/

Tags: Database

Similar Questions

  • With the help of Mocha in After Effects to make masks for the classification in Speedgrade

    I just discovered that there is a plugin that comes with AfterEffects CC called "Mocha", it's a track quite powerful tool of creation. And... it can be used to create masks which SpeedGrade can then rank, even masks of caterpillars that currently Sg may be uneven with.

    If I understand correctly the basic procedure is to create an adjustment in PrPro layer, then create a new computer with one more in Ae, create and apply a Mocha "form", including any order tracking, then going back to PrPro and through her link Direct to the Sg, and then we can rank a mask of sections of key that will work as expected. I am that noting on the forum just as something for the people, and of course... any that with all the experience in the use of masks in Mocha is MORE than welcome jump in and ' splain us!

    Neil

    Well, of course, it's a... little more complicated than that. You cannot use the freebie Mocha plugin, you must buy the stand-alone for $95 or more, then use it to make a shape... and learn how to use this program as well. So... some extra expenses, some additional necessary training, but... then we can get the caterpillars & complex masks which can be classified in Sg.

    Neil

  • With the help of Photoshop CC on my MacBook Pro (bought a few months ago)... The question I have is that under the filter options, when you select made... There is no option use lighting effects... any suggestions

    With the help of Photoshop CC on my MacBook Pro (bought a few months ago)... The question I have is that under the filter options, when you select made... There is no option use lighting effects... any suggestions?

    Hello

    Please make sure that you work in 8 bits/channel and RGB mode. (Under Image > Mode > Select RGB and 8-bit per channel) lightning effects only works in this mode.

    Also in preferences > Performance > "Use Graphics Processor" must be checked.

    ~ Assani

  • With the help of old gear series noon on El Capitan

    I have a Vox Tonelab SE effects audio Board (around 2004), there the old serial midi on the back ports. I hung with the help of a USB MIDI interface cable. While the USB Midi interface to the show in Audio / Midi set upward and also in the profile system for USB port it does not detect the Vox Tonelab so no communication lunch.

    There is a POWERPC application called ToneLabSE SoundEditor which I downloaded and installed in the hope he would install a driver but I guess that this obviously doesn't work on INTEL in any case. Using Wine I can run the PC version, but still no communication via midi.

    Someone at - it ideas, would like to get this Panel communicating effects via MIDI.

    Thank you

    Solved! Using the WINE app I've run the version of the PC of ToneLab SE editor application. So pretty unintuitively by changing the serial midi to USB, SERIAL interface cables that went to the and out on the Tonelab SE. Now of the Se ToneLab editor I can write banks of programs to hardware Tonelab, but unable to empty the banks since the material Tonelab to software. My main desire was to use Expression pedals on the Tonelab as Midi Ableton controllers and some of the switches to the control of the Looper stomp. Now I can do it all. Hooray!

  • With the help of VISA Write in parallel loops (multithreading)

    Hello

    I got the idea to set up four parallel loops on a quad core with four EHR via serial port independently. I use the PXI-8430/8 and I was told that an independent operation of ports is possible.

    What I did was simply to put in place four parallel for loops consisting only of a single entry VISA. With the help of the Tools > profile > find parallelizable loops, they gave me the following warning

    This loop For may or may not be safe to parallelize. Warning (s):
    -A node in the loop For can have side effects.

    This means, that the pilot VISA screws are not suitable for multithreading? With the help of LV2010

    Thanks for your comments!

    See you soon

    Oli

    Here's some good reading on paralleled for loops.

    Regarding the caveat, it's just that - a warning. If you write commands on a device and orders must be received in the order then you cannot parallelize the loop. If the order does not matter then go ahead. But in the case of VISA wrote that a parallelized loop going not buy you anything. They are intended for operations of calculation intnesive.

    Just stick to four loops.

  • My AirPort Extreme end not implemented with the help of AirPort Utility

    Bought a used AirPort Extreme (Genesis 4) of a person who showed me that he worked at home. When I try to set up as a Wireless extender to my last existing AirPort Extreme, he will not carry out synchronization upward with AirPort Utility. It appears as a new extreme, but get a message 'unexpected error' before or after the name. Have you tried to reset the two while it is powered and turning the as explained in the help.

    When I try to set up as a Wireless extender...

    Gen 4 airport will connect to your existing AirPort Extreme wireless... or... it will connect using wired Ethernet wired, Permanent?

    .. .it will not accomplish the synchronization upward with AirPort Utility.

    Which version of AirPort Utility?  If it's on your Mac... and you don't know what version you have...

    Open AirPort Utility

    Click the AirPort Utility menu in the upper left corner of the screen

    Click on about AirPort Utility

    Report on the version number you see here

    You have an iPhone or a handy iPad that could be used to implement the 4th Gen airport if the problems continue with the help of your Mac?

  • With the help of iPhone 6 s. try to copy the text message with a tap double and get a bubble with icons. How can I copy the message to paste in another?

    Try to copy a text to paste in another. When I double tap, as I always have, all I get is a bubble with icons on it. With the help of OS 10.0.2.

    maryml wrote:

    Try to copy a text to paste in another. When I double tap, as I always have, all I get is a bubble with icons on it. With the help of OS 10.0.2.

    Press and hold on the text and wait for the copy/more pop up.

  • With the help of Club running on the Nike watch +.

    Hello

    This is something I have tried to work for a while and have not yet been able to find an answer. At the moment I use Nike + management club on my iPhone to follow the tracks that I find that gps is better than just using the application of the workout on my watch. However, something that really bothers me is that I start the race on my phone, but I can't then view my stats while running without having to press on and tap the watch and wait for the application to load, very irritating to race. I want to be able to lift my wrist and live stats are there to watch me, not listening and not get my phone out of my pocket. Surely this is something that can make the original watch?

    As a separate issue with the new app, Nike +, it does not recognize the songs I downloaded on my phone of Apple music in my playlists, then I have to play the separatelay of music through the application of music as opposed to go with Nike +? The ides on how to fix or is this a known problem with the latest Nike + app?

    Hello

    You may find it useful to consult the support resources of Nike and/or contact Nike for assistance with the help of their application:

    More information:

    https://iTunes.Apple.com/us/app/Nike+-run-Club/id387771637?Mt=8

  • With the help of Yosemite, I like Photos app in general; have big Aperture library, although I use rarely opening Tools. Advantages, disadvantages and pitfalls related to the migration of Photos?

    With the help of Yosemite, I like Photos app in general; have big Aperture library, although I use rarely opening Tools. Advantages, disadvantages and pitfalls related to the migration of Photos?

    Opening was a pro the Pro amateur-oriented or serious app, usually shooting Raw, probably on a digital SLR.

    If that's you then pictures will miss a lot for you.

    If this isn't the case, then opening was probably overkill for your needs.

    If you like the pictures then this is the way to go.

  • Thunderbird will only connect if stop then reopened. (With the help of Mac 10.9.4)

    With the help of Mac 10.9.4
    If I open Thunderbird, I can connect to my e-mail address and download the messages. If I select "Get Mail" once again, Thunderbird crashes and fails to connect to my emails. If I then close Thunderbird and re-open it, I'm able to immediately connect to my mail.

    It seems to have sorted itself after a few days. (Fingers crossed). Until today it worked properly. Will keep an eye on things for the next week and the report does so again.

  • Install OSX 10.11.4 I do cleaning but R command will not work. With the help of USB keyboard so not wifi issues to to worry. Help?

    Install OSX 10.11.4 I do cleaning but R command will not work. With the help of USB keyboard so not wifi issues to to worry. Help?

    Would you like to share why you must do a clean install?

    You can try the recovery of the internet (which will work if your older model has been updated to enable of): hold command + Option + R until you see a progress bar (take a while). It will connect you to the Apple servers. When you see the utility window, choose disk utility to erase your disk and when you're done, choose to reinstall OS X.

    Computers that can be upgraded to use OS X Internet Recovery - Apple Support

    PS: Correction: I think not yours can be updated; in this case, you will need the original installation disks to wipe the drive and reinstall.

  • ow change titles & dates of lots of pictures (like in iPhoto?) With the help of Mac 'Pages' on, 2008 aluminium MacBook running OSX El Capitan 10.11.4

    How to change titles & dates of lots of pictures (like in iPhoto?) With the help of Mac 'Pages' on, 2008 aluminium MacBook running OSX El Capitan 10.11.4

    With the help of Mac 'Pages '.

    A typing mistake?

    If it is and you mean Photos Date of Mac are modified by selecting the photos using the Image menu == > adjust the time and date of order and changes made to the metadata such as keywords, location, etc. are made by selecting the photos and find the info and registering metadata in the Info window

    These are detailed in the help topics of pictures - a good place to look for help on the Photos

    View and add information about the photos

    You can view and add information about your photos. For example, you can see the date and time a photo was taken, the information about the camera that took the photo and badges that indicate the status of the photo. You can assign titles and captions to photos, add or change the location of the photos and change the date and time for them information. You can select multiple photos in an instant and add or change information about them all at once.

    Open pictures for me

    View and add information about the photos

    To view or change information for the photos, you select one or more photos, and then open the information window.

    • Open the Info window: Double-click a photo to view it, and then click the Info button in the toolbar or press on command I.
    • Add or change information: Change the following.
      • Title: Enter a name in the title field.
      • Description: In the Description field, type a caption.
      • Favorite: Click the Favorites button to mark the photo as a favorite. Click the button again to deselect.
      • Keywords: Enter the keywords in the keywords field. When you type, Photos suggest keywords that you have used before. Press enter when you have finished a keyword. To remove a keyword, select it and press DELETE.
      • Faces: Click on and type a name to identify a face. Click on several times, and then drag the identifier of the face different faces to identify many faces in a photo.
      • Location: Enter a location in the location field. When you type, Photos suggest places you can choose. To change a location, you can search a different location or change the location by dragging a PIN on the map. To remove location information, delete it or choose Image > location, then choose Remove location or back to the original location. You cannot assign a location if your computer is not connected to the Internet.

    Show titles, other metadata and badges

    Change the date and time of photo

    You can change the date and time associated with a picture. You can do this if you are traveling to a location in another time zone, and your camera affect your dates photos and periods that are correct for your House, but not the place you visited.

    1. Select the photos you want to edit.
    2. Choose Image > adjust Date and time.
    3. Enter the date and time you want in the modified field.
    4. Click a time zone on the map, if necessary.
    5. Click on adjust.
  • get a dotted line around .swf files in my flash site now. This is new from Firefox 3. With the help of 4 on a MacBookPro. tried the fix "style no outline. does not work. any help?

    Question
    get a dotted line around .swf files in my flash site now. This is new from Firefox 3. With the help of 4 on a MacBookPro. tried the fix "style no outline. does not work. any help?

    Ah, quite understand now that I added to my doc html

    < style type = "text/css" >
    {body
    background-color: #FFF;
    }
    "'object {outline: none ;}"} '

    < / style >

  • With the help of 5s with ios 9.2.1. Call ringtone but screen does not show the answer since mode. Could not receive call and not able to see the contact call. This may be due to whatsapp.

    With the help of 5s with ios 9.2.1. Call ringtone but screen does not show the answer since mode. Could not receive call and not able to see the contact call. This may be due to whatsapp bug. Please specify.

    bjmrao wrote:

    With the help of 5s with ios 9.2.1. Call ringtone but screen does not show the answer since mode. Could not receive call and not able to see the contact call. This may be due to whatsapp bug. Please specify.

    Please ask Whatapps since you use their app.

  • With the help of MS PRO Duo into the slot of the Satellite A200 MDMC

    I have a problem when inserting a Memory Stick PRO Duo SanDisk (512 MB) card with the help of Memory Stick Duo adapter in the card of my Satellite A200 - 1 M 8 (PSAE6) on Windows Vista Edition Home Premium.
    The device includes the insertion of the card (Windows notifies with the sound and the icon in the notification area).
    But then the computer window starts flashing and I can't open the disk of the card. OS always says insert the card in the card slot opening.

    I found the following statement in the manual of the laptop (Chapter 8 - optional devices):
    Memory Stick Duo/PRO Duo and Memory Stick adapter are not compatible with the multiple digital media card slot. :(

    But before that, I found this thread in the forum:
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?MessageID=101843𘷓
    The guy said that he has been successful and his position has been marked as the answer!

    Anyone know how to use MS PRO Duo in the locations of memory A-200?
    Thanks in advance.

    I put t believe that!
    First the user manual it says:
    -Memory Stick * PRO Duo *.
    -Memory Stick * Duo *.

    cards or adapters are not compatible with the multiple digital media card slot.
    In this case you cannot use the possibilities mentioned above!
    See the list given by Juan28 in the other thread.

    What you can do is to use the * Memory Stick * or * cards Memory Stick Pro *.
    I don't know but maybe the cards Memory Stick or Memory Stick Pro m is available for the Memory Stick Duo or Memory Stick Duo PRO working but to be honest I don t think so.

Maybe you are looking for

  • Problem with the Conexant HDAudio after installing x 86 Vista SP1

    I didn't want to start a new thread, but it seems that my problem is quite unique.When the first x 86 Vista install my speakers/headphones worked great. After Vista SP1 installed, my speakers/headphones went silent, but the pilot was still there and

  • Recovery of Toshiba Express Media Player

    I replaced my 100 GB HDD (Toshiba made, which included Toshiba Express Media Player by default factory) with 320 GB of HDD (Toshiba). I want to install Toshiba EMP. When I boot from the recovery EMP disc has received this message:Recovery is not supp

  • HP PAVILION 17-F061NB: for games cooling pad?

    Right then, the story made short: I recently (a few months), bought a HP Pavilion 17-F061NB computer laptop computer laptop, which I use mainly for games. It has a processor AMD A10, with 12 GB of ram, and and AMD Radeon R7 M260 dedicated graphics ca

  • The upgrade from Windows Vista to Windows 7 with the Installation of Vista disk

    I remember, before disconnecting my wireless internet, using Windows Vista (I have Vista on my laptop) and given the opportunity to upgrade to Windows 7.  I had my internet is turned off and turn it back on and I tried this again, and now all I have

  • SX 20 with Cisco Call Manager

    Dear team, If I add the SX20 with Cisco Call Manager, do I need to install the software cmterm - s52010tc6_2_1.cop.sgn the SX20. If this isn't the case, then what I have to do, I can see only administrator external field in my SX20, where I gave my c