ORA-22950 when selecting geometry and using union
Any query where results are UNIONed where an sdo_geometry is in the selection list (such as the one below) gives me "ORA-22950 cannot ORDER objects without MAP or ORDER method".
select p.point_id id, p.geom from point p
union
select l.line_id id, l.geom from line l
Perhaps it's possible to define a map or order method for sdo_geometry (or perhaps not), but I don't want to order by geometry.
I'm running this within SQL Plus (either 8.1.5.0.0 or 8.1.6.0.0 will do it)
and am connecting to
"Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
With the Partitioning option
JServer Release 8.1.6.0.0 - Production"
I tried adding an order by clause to order by id, to no effect.
Any ideas?
Hi Ben,
The use of the union operator tells Oracle only to return a unique set of rows, hence a sort is done (in this case attempted, since there is no geometry sorting routine).
If you choose union all, then no sort will be attempted.
Hope this helps,
dan
Similar Messages
-
ORA-22337 when select geometry within external procedure
Hi all
I want to make a C external procedure. This external procedure need to select a set of geometries (MDSYS.SDO_GEOMETRY) from a table in database.
How can I do that?
Well, I've tried to use callback functions, but I realized that some important OCI object functions don't work on callbacks (like object pinning).
So, I've tried to make a new connection from the external procedure. I can do that, but, when I make the object pinning (yes, I did map the SDO_GEOMETRY object to a C struct), I get the error ORA-22337 (the type of accessed object has been evolved)
How can I handle this?Hi Ben,
The use of the union operator tells Oracle only to return a unique set of rows, hence a sort is done (in this case attempted, since there is no geometry sorting routine).
If you choose union all, then no sort will be attempted.
Hope this helps,
dan -
How do I erase my hard drive? My initial operating system was Snow Leopard but I have upgraded to Mavericks OS. My Snow Leopard install disk ejects when I try and use it.
Do a backup, preferable 2 separate ones on 2 drives. Boot to the Recovery Volume (command - R on a restart or hold down the option/alt key during a restart and select Recovery Volume). Run Disk Utility Verify/Repair and Repair Permissions until you get no errors. Reformat the drive using Disk Utility/Erase Mac OS Extended (Journaled), then click the Option button and select GUID. Then re-install the OS.
OS X Recovery
OS X Recovery (2)
When you reboot, use Setup Assistant to restore your data. -
ORA-01410 when selecting data via ROWID
hi there,
after update on 11.2.0.2 we are getting the following error in our application when selecting a record using the comparison via the ROWID:
select s.rowid , S.VRZNG_ENHT_TITEL from vws_vrzng_enht_haupt_sys s where s.rowid='AAASN0AAFAAACBUAAB';
-- => ORA-01410 (it doesn't matter which other column additionally to the rowid will be chosen)
performing the same select but using the * for all data
select s.rowid , s.* from vws_vrzng_enht_haupt_sys s where s.rowid='AAASN0AAFAAACBUAAB';
-- => one row will be received.
that is very strange to me.
Using the former release 10.2.0.4 everything was fine without receiving such an error.
Also the dirty workaround with setting the optimizer_features_enable to 10.2.0.4 will work....
Has anyone faced this error, too? Any help will be higly appreciated.
thanks StefanPlan causing the ORA-01410:
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 72 | 1 (0)| 00:00:01 |
| 1 | NESTED LOOPS | | 1 | 72 | 1 (0)| 00:00:01 |
| 2 | NESTED LOOPS | | 1 | 57 | 1 (0)| 00:00:01 |
| 3 | TABLE ACCESS BY USER ROWID| TBS_VRZNG_ENHT | 1 | 54 | 1 (0)| 00:00:01 |
|* 4 | INDEX UNIQUE SCAN | CPK_GSFT_OBJ | 22 | 66 | 0 (0)| 00:00:01 |
|* 5 | INDEX UNIQUE SCAN | CUK_GOBH_GO2_ID | 17 | 255 | 0 (0)| 00:00:01 |
Predicate Information (identified by operation id):
4 - access("G"."GSFT_OBJ_ID"="VRZNG_ENHT_ID")
5 - access("GOBH"."GSFT_OBJ_2_ID"="G"."GSFT_OBJ_ID")Plan using the DUAL subquery:
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 39 | 4 (0)| 00:00:01 |
| 1 | NESTED LOOPS | | 1 | 39 | 2 (0)| 00:00:01 |
| 2 | NESTED LOOPS | | 1 | 18 | 1 (0)| 00:00:01 |
|* 3 | TABLE ACCESS BY USER ROWID| TBS_GSFT_OBJ_BZHNG_HRCH | 1 | 15 | 1 (0)| 00:00:01 |
| 4 | FAST DUAL | | 1 | | 2 (0)| 00:00:01 |
|* 5 | INDEX UNIQUE SCAN | CPK_GSFT_OBJ | 1 | 3 | 0 (0)| 00:00:01 |
| 6 | TABLE ACCESS BY INDEX ROWID| TBS_VRZNG_ENHT | 1 | 21 | 1 (0)| 00:00:01 |
|* 7 | INDEX UNIQUE SCAN | CPK_VRZNG_ENHT | 1 | | 0 (0)| 00:00:01 |
Predicate Information (identified by operation id):
3 - access(CHARTOROWID( (SELECT 'AAASN0AAFAAACBUAAB' FROM "SYS"."DUAL" "DUAL")))
5 - access("GOBH"."GSFT_OBJ_2_ID"="G"."GSFT_OBJ_ID")
7 - access("G"."GSFT_OBJ_ID"="VRZNG_ENHT_ID")Have you spotted the difference yourself? One execution plan applies the ROWID to a different table than the other one. You might have hit a bug here, potentially caused by a transformation applied by the optimizer.
Can you show us the execution plan that worked in 10.2.0.4?
Would it be possible to share the definition of the view "vws_vrzng_enht_haupt_sys"?
Hope this helps,
Randolf -
Everytime i go on Itunes it tells me i have to restore my ipod but everytime i do, it just tells me to do it again? When i try and use my ipod it just has a connect to itunes sign and nothing else, it wont work at all?
I updated itunes and everything but nothings working and i just can't figure it out?
Everytime i restore the stupid thing, it never pops up in my itunes again like its supposed to!Loop
Maybe:
Restore loop (being prompted to restore again after a restore successfully completes)
Troubleshoot your USB connection. If the issue persists, out-of-date or incorrectly configured third-party security software may be causing this issue. Please follow Troubleshooting security software issues. .
Next try placing in DFU mode and then restoring.
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
Then try restoring on another computer.
Last, make an appointment at the Genius Bar of an Apple store.
Apple Retail Store - Genius Bar -
My Ipod touch 4.2 will say it is connected to the wi fi but when I try and use it with an app it says it is not connected to the internet
- Do other devices successfully connect to the network?
- Did the iPod successfully connect to this network before?
- Does the iPod successfully connect to other networks?
Try:
- A reset. Nothing is lost
Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Power off and then back on your router
- Reset network settings: Settings>General>Reset>Reset Network Settings
-iOS: Troubleshooting Wi-Fi networks and connections -
When I try and use the Kindle app on my touch it keeps telling me to register the kindle. I register it using the account and password I used to get the app but it tells me there is no customer found for the email address and password. help
No, it is asking you to register with your Amazon user id and password. Your Apple ID won't work.
-
I would like to buy my boyfriend the iphone 5. He has an upgrade - but can I purchase it for Christmas now and get money back when he activates and uses his upgrade?
Or purchase an Apple Gift Card for him to use to get a phone at Apple after Christmas. He gets the card as the Christmas gift and can go get the phone himself. It would cost you the same amount of money.
-
When I talk to Siri she can't hear me and when I try and use my mic on the keyboard it doesn't work. What do I do?
Siri seems to not be working for many people right now. The only thing you can do is wait.
-
Hi,
I want to compare two tables for differences using MINUS, but this does an implicit ORDER BY. So I get the error:
ORA-22950: cannot ORDER objects without MAP or ORDER method
Does anyone know how to get round this ? Convering to CLOB (col1.getclobval()) also doesn't work:
CREATE TABLE dunc1 (col1 XMLTYPE);
CREATE TABLE dunc2 (col1 XMLTYPE);
SELECT col1 FROM dunc1
MINUS
SELECT col1 FROM dunc2;
TIA, DuncanHi
I get the same error (ORA-22950: cannot ORDER objects without MAP or ORDER method) when I try to fetch values from individual nodes in xmltype column from 2 tables with a union.
select tbl1.xmlcol.extract('//abc/ns1:def','xmlns:ns1="http://xy.z.org/"').getStringVal() col1,
tbl1.xmlcol.extract('//abc/ns1:ghi/text()','xmlns:ns1="http://abc.def.org/"') as col2
from table1 tbl1
union
select tbl2.xmlcol.extract('//xyz/ns1:def','xmlns:ns1="http://xy.z.org/"').getStringVal() col1,
tbl2.xmlcol.extract('//xyz/ns1:ghi/text()','xmlns:ns1="http://abc.def.org/"') as col2
from table2 tbl2;
What am I doing wrong here?
Thx! -
ORA-00001 When I try and create an interactive query/report
Interactive report in APEX 3.2
I have a query like this that does a country lookup
based on the physical address and the mailing address.
The query executes fine through SQL plus but when I try and create
an interactive report I get
ORA-00001: unique constraint (APEX_030200.WWV_FLOW_WORKSHEET_COLUMNS_UK2) violated
Here's the query
select "TAX_VENDORS"."VENDOR_ID" as "VENDOR_ID",
"TAX_VENDORS"."VENDOR_NAME" as "VENDOR_NAME",
"TAX_COUNTRY"."ABBREVIATION" as "ABBREVIATION",
"TAX_COUNTRY_1"."ABBREVIATION" as "ABBREVIATION"
from "TAX_COUNTRY" "TAX_COUNTRY_1",
"TAX_COUNTRY" "TAX_COUNTRY",
"TAX_VENDORS" "TAX_VENDORS"
where "TAX_VENDORS"."PHYSICAL_COUNTRY"="TAX_COUNTRY"."TAX_COUNTRY_ID"
and "TAX_VENDORS"."MAILING_COUNTRY"="TAX_COUNTRY_1"."TAX_COUNTRY_ID"
I've narrowed it down to the double lookup if you will of the country for the
mail/physical address.
Is this not allowed? Is there a work around?Thanks Tony
A closer look at the constraint reveals this - so maybe it's seeing the TAX_COUNTRY_ID twice I would guess where the alias is not accounted for.
CONSTRAINT "WWV_FLOW_WORKSHEET_COLUMNS_UK2" UNIQUE ("WORKSHEET_ID", "DB_COLUMN_NAME")
Your query yielded me the same result
select TV.VENDOR_ID as VENDOR_ID,
TV.VENDOR_NAME as VENDOR_NAME,
TC.ABBREVIATION as ABBREVIATION,
TC_1.ABBREVIATION as ABBREVIATION
from TAX_VENDORS TV
JOIN TAX_COUNTRY TC ON (TV.PHYSICAL_COUNTRY = TC.TAX_COUNTRY_ID)
JOIN TAX_COUNTRY TC_1 ON (TV.MAILING_COUNTRY=TC_1.TAX_COUNTRY_ID) -
Why does the program crash repeatedly when I try and use Sound Cloud
When I try an use Firefox and upload to Sound Cloud I get this error message repeatedly. This is the error message
Description:
A problem caused this program to stop interacting with Windows.
Problem signature:
Problem Event Name: AppHangB1
Application Name: firefox.exe
Application Version: 26.0.0.5087
Application Timestamp: 52a0d273
Hang Signature: 2480
Hang Type: 0
OS Version: 6.1.7600.2.0.0.768.3
Locale ID: 4105
Additional Hang Signature 1: 24807c2c6ae5950716c093e6ea3101ec
Additional Hang Signature 2: d24f
Additional Hang Signature 3: d24f0b50d76295bae82bda3603c82ab7
Additional Hang Signature 4: 2480
Additional Hang Signature 5: 24807c2c6ae5950716c093e6ea3101ec
Additional Hang Signature 6: d24f
Additional Hang Signature 7: d24f0b50d76295bae82bda3603c82ab7Does the problem occur at the point that you expect a dialog to open to select files, or during the upload process, etc.?
You might already have tried these things, but just in case:
(1) To rule out one of your extensions as the culprit, can you reproduce the problem in Firefox's Safe Mode? That's a standard diagnostic tool to bypass interference by extensions (and some custom settings). More info: [[Troubleshoot Firefox issues using Safe Mode]].
You can restart Firefox in Safe Mode using
Help > Restart with Add-ons Disabled ''(Flash and other plugins still run)''
In the dialog, click "Start in Safe Mode" (''not'' Reset)
Any difference?
(2) If Firefox lags on multiple sites (not responding, slow scripts), try disabling the protected mode feature of the Flash Player plugin. The following pages provide information on how to disable the feature.
* Adobe support article under the heading "Last Resort": [http://forums.adobe.com/message/4468493#TemporaryWorkaround Adobe Forums: How do I troubleshoot Flash Player's protected mode for Firefox?]
* Manual steps: https://support.mozilla.org/questions/968190?page=5#answer-509209
* Batch file to automate the manual steps: https://support.mozilla.org/questions/982093#answer-518078
That takes effect after Flash is completely unloaded; you might need to exit and restart Firefox. -
I have reset my password however when I try to use the App Store it says the password is incorrect. Do I have to set up an account in iTunes with a credit card in order to use the App Store? I did not have to do this in he past. Thanks
Try This...
Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
Reset ( No Data will be Lost )
Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
Wait for the Apple logo to Appear...
Usually takes about 15 - 20 Seconds... ( But can take Longer...)
Release the Buttons...
Note:
Anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID
Apple ID FAQs > http://support.apple.com/kb/HT5622 -
ORA-01446 when selecting ROWID from View with Union
I have a View that uses a Union to select from 3 tables. I would like the View to return the ROWID for the record that is returned so that I can update it in my form. The View compiles fine but when I select from the View I get ORA-01446 error.
Example of my view:
SELECT ROWID, col_a, col_b, col_c
FROM tab_a
UNION ALL
SELECT ROWID, col_a, col_b, col_c
FROM tab_b
UNION ALL
SELECT ROWID, col_a, col_b, col_c
FROM tab_c
I need the ROWID because my tables do not contain UNIQUE/PRIMARY key constraints. In my form I want to update the view with an underlying INSTEAD OF database trigger.
Any suggestions?I think it will work if you give the column an alias (ie a name after the first rowid) and select that instead.
You will probably also need another column in your view indicating which table the row came from if you want to update it. -
How can I get my default email to work on my iPad? Gmail in my browser is fine, but I can't send anything if I am not in gmail. Why is my mail icon not working?
You probably messed up the password/ server set up. Delete the account from the pad, and re enter it. Pay real close attention to the password entry. Upper lower case etc. if they ask you for an optional name a second time, fill it in. G mail works fine on mine.
Maybe you are looking for
-
IC CRM 7.0: Obtain confirmed partners in external programs
Hello, we're using the IC in CRM 7.0. After searching for partners, you can confirm the partners to be taken for all further actions. Is there a way to access the currently confirmed partners from "outside", e.g. in a BADI that is called during the c
-
Every time I wake up my iMac from "Sleep Mode" 3 or more hours, it makes some weird clicking sound while trying to prompt me with the window to enter my password. Can this be fixed easily or is my computer just getting old?
-
Forms and reports server issue
Hai iam new to oracle applications.i was asked to solve this issue . i get the error when i start the oracle applications.i get the error in the forms,report and apache webserver. the file parameter.config could not be located or read. for that the s
-
How to set Legislation rule for Enhanced Retro
how to set Legislation rule for Enhanced Retro How can i setup Enhanced Retro for Global HR International. Iam implementing HR/Payroll on latest 12i. I am using HR International. when i execute the following query , there is no records select * from
-
Safari can't establish secure connection in parental controls managed user account
Hi, Safari can't establish any secure connection in parental controls managed user account. Normal web sites open OK, but secure connections, like Gmail which requires https doesn't work. This is what I get instead: Safari can't open the page "https: