Problem when using the SDO operations

Hi all

I am trying to run spatial SQL queries and I came up with a problem: if I enter the following query, the space operation (in this case SDO_INSIDE) is perfectly executed and the data is returned:
SELECT SUM(fact.quant) as SUM_quant, instalacao.name as Name
FROM fact, instalacao, layer_region, emissao
WHERE fact.instalacao_id = instalacao.instalacao_id AND fact.emissao_id = emissao.emissao_id AND SDO_INSIDE (instalacao.glocal, layer_region.geom)='TRUE' 
GROUP BY instalacao.instalacao_id, instalacao.name
ORDER BY instalacao.instalacao_id
However, if I have introduced another GROUP OF element, like this (where "emissao" has no spatial information and is not used in the space operation):
SELECT SUM(fact.quant) as SUM_quant, instalacao.name as Name
FROM fact, instalacao, layer_region, emissao
WHERE fact.instalacao_id = instalacao.instalacao_id AND fact.emissao_id = emissao.emissao_id AND SDO_INSIDE (instalacao.glocal, layer_region.geom)='TRUE' 
GROUP BY instalacao.instalacao_id, instalacao.name, emissao.poluente
ORDER BY instalacao.instalacao_id
the database apparently 'stuck' in a loop, and when I cancel I get the following error:
ORA-13268: error obtaining dimension from USER_SDO_GEOM_METADATA
ORA-06512: at "MDSYS.MD", line 1723
ORA-06512: at "MDSYS.MDERR", line 8
...
I do not understand what I am doing wrong because the table 'emissao' is not used in any space operation.

Any ideas please?

Thanks in advance,
~ Ruben

One of them could probably work, let me know how it goes:

1)
SELECT / * + NO_MERGE (v) * / SUM (fact.quant) as SUM_quant, v.name as name
In fact, emissao,.
(SELECT / * + (l i) LEADING, USE_NL (l i) INDEX (i instalacao_glocal_idx) * /)
i.Name, i.instalacao_id
OF l layer_region, instalacao I
WHERE (i.glocal, l.geom) SDO_INSIDE = 'TRUE') v
WHERE fact.instalacao_id = v.instalacao_id
AND fact.emissao_id = emissao.emissao_id
GROUP BY v.instalacao_id, v.name, emissao.poluente
ORDER BY v.instalacao_id

2)
SELECT / * + LEADING(e f l) USE_NL (l i) INDEX (i instalacao_glocal_idx) * / SUM (f.quant) as SUM_quant, i.name as name
In fact e emissao f, layer_region l, instalacao I
WHERE f.instalacao_id = i.instalacao_id
AND f.emissao_id = e.emissao_id
AND SDO_INSIDE (i.glocal, l.geom) = 'TRUE'
GROUP OF i.instalacao_id, i.name, e.poluente
ORDER BY i.instalacao_id

Published by: sravada on July 6, 2009 08:49

Tags: Database

Similar Questions

  • problem when using the touchsmart 610 system recovery

    Hello..
    I have HP Touchsmart 610, I wanted to use a system recovery, but there was a problem with the system recovery, so I press F11 to run the system recovery, but he wasn't working, he was white with a massage "windows is not started, a recent hardware or software changes just to be originally, to solve the problem. :
    1. Enter your windows installation disc
    2.
    3.

    file: \boot\CD

    status: 0xc888888f
    "info: an error occurred trying to read the boot configuration data.

    What must I do to solve this problem at least to save to condition before I preconfigure F11?

    Thank you before

    Hello bayccot,

    What's the screen that comes on the computer when you turn it on now? You may need to use CDs to recover the operating system if it will not progress past that screen and the recovery of F11 does not work.

  • I use Photoshop CC and I have problems to use the scanning feature PLC culture and the strraigten.  Other printing features work within the progrram, but no connection when I use don't automate.

    Am I missing a configuration of PLC to allow me to crop and scan several photos?

    With the help of 8.1 with canon MX340 wireless and final version of Photoshop CC.

    Help.

    [email protected]

    VIC

    I plugged a usb cable and I was able to use the WIA import feature and

    the menu of the controller,

    He gave me the opportunity to select the printer and scan using the automaton

    function.

    When I removed the cable, it would not recognize the printer scanner in the

    Wireless mode.

    I tried to restart the system, no luck.

    In fact, when the cable is removed, the function to automate is

    "grayed out" which would explain why it cannot find the scanner.

    Any ideas?

    VIC Ouellette

    K1CGI... QRZ?

    In a message dated 12/09/2015 11:41:18 eastern standard time,

    [email protected] wrote:

    You talked

    by [email protected]

    (https://forums.adobe.com/people/[email protected]?et=notification.mention//forums.adobe.com/people/ [email protected]? and = notification.mention) in Re: I use Photoshop CC and I

    problems to use the scanning feature strraigten and the cultures of the automaton. Another impression

    features work within the progrram, but no connection when I use don't automate.

    in Adobe Community - view [email protected]of reference for you

    (https://forums.adobe.com/message/8274458?et=notification.mention#8274458)

  • problem using the ternary operator in el?

    Hi all
    I m using the ternary operator in el in entering text in the property value as

    value = "#{bindings." FirstName.inputValue eq 'amit '? Amit: links. LastName.inputValue}.

    Can you all please let me of this. Not able to find out where I m making mistake.

    Thanks in advance.

    Hello

    You can try the below el

    value="#{bindings.FirstName.inputValue eq 'amit' ? bindings.FirstName.inputValue : bindings.LastName.inputValue }"
    

    ~ Abhijit

  • Problem when using Ajax in the APEX.

    Hi all

    I use this function in my application to overcome the & & problem... This is the query

    DECLARE
    l_counter NUMBER;
    l_o_name VARCHAR2 (2000);
    BEGIN
    FOR rec IN (SELECT distinct FASS. ESCAPE_SC (atct_attr_type), FASS. B ESCAPE_SC (atct_attr_type)
    OF t_new
    WHERE atct_atcl_code =: F41_ATCL_ATT_TYPE_REP_CODE)

    LOOP
    -HTP.prn ("< option value ="' | rec.b |) '">' || Rec.a | ("< / option >");
    dbms_output.put_line (' < option value = "" | ") Rec.b | '">' || Rec.a | ("< / option >");
    end loop;
    END;

    It works very well with any questions...
    But I want to show atct_attr_type at the top of case...
    The use of uppercase letters in the above query...

    Thank you
    David...

    What is the problem with using the UPPER function

    HTF. ESCAPE_SC (UPPER (atct_attr_type))

    in the Query(for loop inline cursor) SQL

  • Want to download 10 W but not able to do that, during installation, a problem arises and the previous operating system is restored.

    My laptop is preinstalled with Windows 7 Home Basic.  At the free launch Windows 10 I downloaded the same and after 2 months, the hard drive crashed.  The repair shop trying to fix formatting, but could not revive.  This is why I bought a new hard drive and repair charge shot Windows 7 Ultimate edition.

    Now, I want to download 10 W but not able to do that, during installation, a problem arises and the previous operating system has been restored.  When I posted the question about how to solve this problem, I was told to try the download by way of USB/ISO file.

    Now my question is that

    one) can I reload Windows 7 Home basic as I have the product key?

    (b) I can then download Windows 10 according to the normal procedure?

    I'm not tech savvy, afraid to download files in USB and then load into the laptop, so this question.

    Concerning

    S Subramanian

    Original title: Windows 7 Home basic

    You can directly download Windows 10. Windows 7 complete edition currently installed is not genuine.

    When you upgraded from a previous version of Windows, what happened is that (your PC) hardware will get a digital right, a unique signature of the computer which is stored on the Microsoft Activation servers. The real Windows 7 or Windows 8 license you were using previously will be exchanged with a key to the diagnosis.

    Whenever you need to reinstall Windows 10 on this machine, go just to reinstall Windows 10. It automatically reactivates.

    Therefore, there is no need to know or get a product key, if you must reinstall Windows 10, you can use your Windows 7 or Windows 8 product key or use the reset function in Windows 10.

    Step 1: How to download official Windows 10 ISO files

    Step 2: how: perform a clean installation of Windows 10

  • Excel crashing, freezing when using the spreadsheet

    Original title: Excel 2013 file size.

    Hello. I'm having a problem with Excel crashing, freezing when using the spreadsheet. I work on a PC with WINDOWS 7 SP1 64-bit, through a server that is running Microsoft SERVER 2013, WINDOWS 7 PRO 64 BIT SP1. We use 5 PC via all current server running the same version of operating system that use the spreadsheet and in most is used only by 3 PCs anywhere, anytime, even if EXCEL is not on the server, it is running locally on the PC.

    My guy TI tell me the spreadsheet while working on too big to 2 k! They keep asking us to reduce the size and to separate the workbook to solve the problem. Personally I don't believe a Word, we do not use formulas etc just cells with digital text and the alphabet.

    Now last year on the advice of our computer SCIENCE company, we have been advised to upgrade our server and our PC because terminals that they were getting their limit of operation which I accepted. These have been updates middle of last year.

    On this basis, I believe that society COMPUTER trying to throw dust on my eyes as I do not think that they provided the wrong material and are unwilling to admit it.

    Counsel on the question worksheet would be great I need to come back with some kind of evidence in support of my way of thinking.

    I hope that makes sense, I know a little but not professional!

    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)
    *
  • Satellite A200 - IE7 windows 'restore down' when using the Tracker pad

    Hi, I recently bought a Satellite A200 - 1VO and when using the laptop without a windows mouse explore 'restore down' at random.

    I found a thread on the site of the Internet USER who said that if his past not with a mouse, it may need tracker drivers up-to-date.
    You can also consider its under warranty.
    Any ideas anyone?

    Hello

    It s a bit confused what you´ve writes down. What do you mean exactly, where´s the problem and what you want to tell us when writing:

    > and when using the laptop without a windows mouse explore 'restore down' at random.
    >
    > I found a thread on the site of the Internet USER who said that if his past not with a mouse, it may need tracker drivers up-to-date.

    Whereas it should be, where´s now the problem?

    Please give clear and understandable feedback, then I and other users you could point to the solution.

    THX

  • Single line vertical when using the ADF to Scan or copy on HP Officejet Pro 8600

    Printer HP Officejet Pro 8600 Premium (CN577A)

    OS: MS 7 64-bit

    When you use the ADF for my printer HP CN577A Officejet Pro 8600 Premium, I get a single vertical line on the document which is produced. This occurs when copying or scanning, both black and white and in color. If I scan or copy using the glass, I do not get the vertical line.

    I already tried troubleshooting.  I unplugged the printer, left without electricity for several minutes; that didn't fix the problem.  Then, I cleaned the rollers and glass; I always get the vertical line, but only when using the ADF.

    My firmware version is up to date (CLP1CN1150CR).

    What should I check next?

    The only difference between the ADF and scanning flat, from a point of view of the scanner is there on the glass, it happens.  I suggest you get a bright flashlight and examine the corresponsing area hence is the line, it's almost certainly a spot on the strip of thin glass which is being just in the right place.

    I've seen some people suggest that put a flashlight almost parallel to the Strip, it shines from the bottom can highlight the area problem.

  • Windows media player has encountered a problem when downloading the file. for additional assistance, click web help.

    Original title: unable to audio stream.

    Unable to audio stream, "windows media player has encountered a problem when downloading the file.  for further assistance, click web help' web help does not work, clicking web help does nothing (no response from program... a lot of negative response from me) stuck with the big pass... vista 64 bit... a lemon from the getgo... problem after problem...

    Hi Joseph,

    What is the file format of the file you are trying to download?

    This problem normally occurs when the Media player could not play the file downloaded or not supported.

    Method 1:

    Step 1: Here is the list of the formats supported by Windows Media player file:

    Information on the types of media files that supports Windows Media Player:

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

    Note: See if the file format is in this list, if it is not there, you may need a third-party codec that can read the file.

    Step 2: For more information about codecs, see article given:

    Codecs: Frequently asked questions:

    http://Windows.Microsoft.com/en-us/Windows-Vista/codecs-frequently-asked-questions

    Warning: using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Method 2:

    I also suggest you to run the Windows media player Fixit:

    Solve the problems of Windows Media Player video and other media or library

    http://support.Microsoft.com/mats/windows_media_player_diagnostic

    Hope this information helps.

  • Error message indicating the r300 display driver stopped responding when using the full screen.

    Original title: driver atikmdag error message when using the full screen.

    Error message indicating the display driver r300 unresponsive, but has recovered, usually when enter full screen mode.

    Hi Peterrichardson,

    1. when exactly you get this message?

    2. what player do you use?

    3. you remember to make changes to the computer before this problem?

    Method 1:

    You can try to reduce the hardware acceleration and check.

    a. click the Start button, Control Panel.

    b. now, select appearance and personalization, and under display, select adjust screen resolution.

    c. now, select adjust the resolution.

    d. click Advanced settings.

    e. now, click the Troubleshooting tab, and select the change settings button.

    f. in the Security dialog box, click on continue.

    g. move the hardware acceleration slider to the third notch.

    h. click OK and restart Windows.

     

    Method 2: Update your display driver

    Updated a hardware driver that is not working properly

    Hope this information is useful.

  • OfficeJet pro 8600 print a single vertical black line when using the charger

    OfficeJet pro 8600 print a single vertical black line when using the charger

    Hi @realestatejeann,

    I see that you have found one black vertical line when using the ADF. With a few steps, we should be able to solve this problem.

    Make sure that the printer is connected directly to a wall outlet. (do not use a hub or a surge protector) This ensures that the printer is full on and can help this situation.

    Here is a document for the cleaning of the glass Strip and the underside of the scanner cover.

    Vertical stripes, lines or streaks on Copies, faxes or scans.

    If you need help, let me know.

    Good day!
    Thank you.

  • "Windows Media Player has encountered a problem when burning the file to disk"?

    "I ENCOUNTERD CE WHEN BURNING YEAR MP3 AUDIO CD AND NOW I wanted TO KNOW WHY IT WON'T WORK THAT IS THE CODE POPPING up" Windows Media Player has encountered a problem when burning the file to disk ' WHAT CAN BE THE PROBLEM

    Hello MactabardX,

    I try and remove Windows Media Player and then reinstall it.
    Uninstalling and reinstalling Windows Media Player:
    Step 1.
    Uninstalling Windows Media Player:
    1. go to start and in the search type "Turn Windows willing or not.
    2. click on "Turn Windows features on or off".
    3. search for multimedia and uncheck the brand in the face of Windows Media Player.
    4 restart the computer
     
    Step 2.
    Reinstall Windows Media Player:
    1. go to start and in the search type "Turn Windows willing or not.
    2. click on "Turn Windows features on or off".
    3. find the multimedia functions and place a check mark in front of the Windows Media Player.
    4 restart the computer.

    If you encounter problems with Windows Media Player, try to use the Troubleshoot utility to see if that fixes the problem.

    Open the troubleshooting Windows Media Player settings Troubleshooter by clicking the Start button, then Control Panel. In the search box, type troubleshooting, and then click Troubleshooting. Click View all, and then click the Windows Media Player settings.

    If the size of the .wmv files is too large, it can cause Windows Media Player to stop working.

    I try and remove videos from Windows Media Player library and test to see if the size of the files could be a problem.

    If please reply back and let us know if these steps helps.

    Thank you

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Problem when using bb-ant-tools to create a multi-module application

    I am trying to redesign an application prototype into something more adapted to our needs. The prototype was built with the first version of the Eclipse plugin, but I've converted successfully to the current version.

    I have same configuration Ant with bb-ant-tools for it and have successfully build the application and the executable running on the real device.

    But this prototype had code to put them all in a single module, even the source to a third party library with support for managing messages JSON ('J2ME JSON").

    We need to build several slightly different applications from the same code base (differing mainly in aspects of the customer specific look and wording etc.).

    So I want to divide the code into several distinct modules, each providing it is build own artifacts and have a top-level project for each variant you want to produce.

    So at the beginning I want to have these three modules:

    • J2ME-json - the third party lib
    • Code base - the largest part of the source code and default localization resources
    • my-app - the main class, icon resources (and in the future some property files and resources specific to the customer location)

    I have Ant generate files for each module, which compiles and signs packages resulting - seems ok so far, no problem when executing the task of sigtool. The build for 'j2me-json' file and 'code base' defines the product as a type = "library".

    The build for "my-app" file collects the artifacts to build (* .jar, * .cod, etc.) and copy them to a local directory "dependencies", where they will be extracted for the compilation of the actual application. After compiling and signing all are copied to a deployment directory.

    Deploy the application on the device via the 'Desktop Manager' but when I run it on the device I get the error message:

    Error at startup MyAppId: Module ' code$ 2dbase ' attempts to access a secure API.

    The strange thing is, that the "Tool of Signature" window shows demand of signature of all modules during the phase of signature of the request, not only for the request form itself as the error message suggests. And I even sign the modules separately because of this message - but it does not help...

    So, what's wrong here?

    Here is the definition of the actual target of the relevant elements:

                                                                                          
    
                        
    
                                                                                                                                
    

    The *.alx file that looks like this:

             My App Name      1.2.1.35               MyAppId.codj2me-json.codcode-base.cod         
    

    I'd appreciate any help with this problem! Thanks in advance...

    Horst Weber.

    Found!

    My mistake was that I thought that I can mix attribute and property file inclusion statements in the task of jdp bb-ant-tools. My actual task for libraries looked like this:

    
    

    Obviously, the author didn't want to handle the ambiguity when someone sets the same property as an attribute, and in the file. So you should use either one or the other: If you use properties files, then declare all your properties here.

    So this message "Module attempts to access an API secured." seems to be very misleading: it disappered after correction of the generation of files and I now have a common application.

  • When I want to burn a CD in Windows Media Player, it shows "Windows Media Player has encountered a problem when burning the file to disk". What's wrong? How to fix?

    When I want to burn a CD in Windows Media Player, it shows "Windows Media Player has encountered a problem when burning the file to disk".    What's wrong? How to fix?

    I tried several times to remove the selection to burn and create a new a new but it keep "Windows Media Player has encountered a problem when burning the file to delivery" appears what should I do?   What problem is it?

    Hello

    1. what file format you are trying to burn?

    2. have you made changes on the computer recently?

    3. What is the security software installed on the computer?

    If it's something you downloaded, it may be copy protected by DRM, in which case you may not burn it to a CD or DVD.

    Here are a few things to try:

    1. make sure that the disc is clean.

    2. try a different brand of blank discs.

    3. stop all other programs that are running.

    4. make sure that the hard drive does not use disk compression.

    I suggest that you follow these steps and check if they help to solve the problem.

    Method 1:

    Try to use the Troubleshoot utility to see if that solves the problem.

    a. open the troubleshooting Windows Media Player settings Troubleshooter by clicking the Start button, then Control Panel.

    (b) in the search box, type "convenience store" and then click Troubleshooting.

    c. click on show all and then click the Windows Media Player settings.

    Method 2:

    Select a recording speed (write) more slow for the CD burner.

    Change settings for burning a CD or DVD in Windows Media Player

    http://Windows.Microsoft.com/en-us/Windows7/change-settings-for-burning-a-CD-or-DVD-in-Windows-Media-Player

    Method 3:

    If you have any third-party burning software, I suggest you temporarily Uninstall it and then try to burn the disc using Windows Media Player.

    Note: Reinstall the software after the trial.

    Method 4:

    Temporarily disable all programs that could activate themselves, while burning is in progress, such as screensavers or anti-virus programs.

    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-Firewall-on-or-off
    http://Windows.Microsoft.com/en-us/Windows7/disable-antivirus-software

    Note: Run the computer without antivirus software or firewall is a potential threat to the computer; Be sure to activate security software after completing the troubleshooting steps and after identifying the problem.

    I hope this helps.

Maybe you are looking for