ORA-00932 Error using 11g and the SDO_RELATE function. Works fine in 10g

Hello,
If I run this query in Oracle 11g:
SELECT M.FID, MAX(M.VERSION) AS VERSION
FROM SW_PB.A_ROADNODEINFORMATION M, SW_PB.ROADNODE N
WHERE M.REFERENCETOROADNODE = N.FID
AND M.NODEVERSION = N.VERSION
AND M.CATALOGUEID <= 477
AND MDSYS.SDO_RELATE( N.GEOM, MDSYS.SDO_GEOMETRY(2003,81989,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(120000,0,160000,40000)),'MASK=ANYINTERACT QUERYTYPE=WINDOW') = 'TRUE'
GROUP BY M.FID;
I get an error regarding the N.GEOM field. The error is as follows:
ORA-00932: inconsistent datatypes: expected - got MDSYS.SDO_ELEM_INFO_ARRAY
The same query runs fine on a 10g database with the same data. I've even truncated the N table and still get the error. I've rebuilt the index but it makes no difference and the metadata is exactly the same for this table as it is for other tables that are involved in a similar query.
It looks like a bug to me but just wondered if anyone else had come across this?
Thanks,
Peter.

Thanks for the reply. I'm really sorry but I haven't created trace files like this for a very long time and have forgotten the best way to read them. This is the start of the trace file, any help with reformatting it would be greatly appreciated.
Thanks,
Peter.
*** 2009-04-23 17:09:22.902
----- Error Stack Dump -----
*** 2009-04-23 17:09:22.917
ORA-00932: inconsistent datatypes: expected - got MDSYS.SDO_ELEM_INFO_ARRAY
----- Current SQL Statement for this session (sql_id=br02jqdwy2utk) -----
SELECT M.FID, MAX(M.VERSION) AS VERSION
FROM SW_PB.A_ROADNODEINFORMATION M, SW_PB.ROADNODE N
WHERE M.REFERENCETOROADNODE = N.FID
AND M.NODEVERSION = N.VERSION
AND M.CATALOGUEID <= 477
AND MDSYS.SDO_RELATE( N.GEOM, MDSYS.SDO_GEOMETRY(2003,81989,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(120000,0,160000,40000)),'MASK=ANYINTERACT QUERYTYPE=WINDOW') = 'TRUE'
GROUP BY M.FID
----- Call Stack Trace -----
calling call entry argument values in hex
location type point (? means dubious value)
skdstdst()+114      CALLrel  kgdsdst()+0 FB783A0 2
ksedst1()+91        CALLrel  skdstdst()+0
ksedst()+50         CALLrel  ksedst1()+0 0 1
dbkedDefDump()+298  CALLrel  ksedst()+0 0
5
ksedmp()+40         CALLrel  dbkedDefDump()+0 3 0
_dbkdaKsdActDriver(  CALLreg  00000000             3
)+841
_dbgdaExecuteAction  CALLreg  00000000             7B50420 FB79A4C
()+63
dbgdaRunAction()+3  CALLrel  dbgdaExecuteAction 7B50420 4D4C148 20C0002
02 ()+0 FB79A4C
dbgdRunActions()+4  CALLrel  dbgdaRunAction()+0 7B50420 A789E54
4
dbgdProcessEventAc  CALLrel  dbgdRunActions()+0 7B50420 A789E74
tions()+446
__VInfreq__dbgdChkE CALLrel _dbgdProcessEventAc  7B50420 120A3370 A789F64
ventKgErr()+237 tions()+0
dbkdChkEventRdbmsE  CALLrel  dbgdChkEventKgErr( 7B50420 A7C06F4 3A4
rr()+33 )+0
__PGOSF99__ksfpec() CALLrel _dbkdChkEventRdbmsE  3A4
+110 rr()+0
_dbgePostErrorKGE()  CALLreg  00000000             120A3370 3A4
+1601
dbkePostKGEkgsf() CALLrel _dbgePostErrorKGE()  120A3370 A772020 3A4
+49 +0
_kgeade()+268        CALLreg  00000000             120A3370 A772020 3A4
kgesev()+54         CALLrel  kgeade()+0
kgesec2()+18        CALLrel  kgesev()+0 120A3370 A772020 3A4 2
FB7A200
qctErr932()+217     CALLrel  kgesec2()+0 120A3370 A772020 3A4 1 1
FB7A468 1 19 FB7A218
qctErrConvertDataT  CALLrel  qctErr932()+0 995FBCC0 120A3370 F6 FB7A468
ype()+82 7B C2E85B4 995FBCC0 120A3370
FB7A468 0 0 FB7A468 0 204
qecgby()+240        CALLrel  qctErrConvertDataT 995FBCC0 120A3370 F6 0 0 7B
ype()+0 C2E85B4
qecpqbcheck()+75    CALLrel  qecgby()+0
qecdrv()+161        CALLrel  qecpqbcheck()+0 C2ECD7C 0 0 0
qecdrv()+74         CALLrel  qecdrv()+0
kkqcttcalo()+383    CALLrel  qecdrv()+0 C2EFBAC
kkqctdrvGBP()+1841  CALLrel  kkqcttcalo()+0 C2EFBAC 0 C2EFBAC 166A5D4 0 2
__VInfreq__kkqgbpTr CALLrel _kkqctdrvGBP()+0     A730DD8
avChkTran()+193
_qksqbApplyToQbcLoc  CALLreg  00000000             A730DD8 FB7A9BC
()+536
qksqbApplyToQbc()+  CALLrel  qksqbApplyToQbcLoc
67 ()+0
kkqctdrvTD()+1000   CALLrel  qksqbApplyToQbc()+ A730DD8 2EF2DA0 FB7A9BC 0
0
kkqgbpdrv()+88      CALLrel  kkqctdrvTD()+0 A754820 995FBDF4 6
kkqdrv()+1520       CALLrel  kkqgbpdrv()+0 A754820 995FBDF4
kkqctdrvIT()+698    CALLrel  kkqdrv()+0 A754820 0
apadrv()+1205       CALLrel  kkqctdrvIT()+0 A754820 995FBDF4
opitca()+1841       CALLrel  apadrv()+0 995FBDF4
__PGOSF435__kksFull CALLrel _opitca()+0          A7CC9E4 995FBDF4
TypeCheck()+15
_rpiswu2()+560       CALLreg  00000000             FB7B718
kksLoadChild()+860  CALLrel  rpiswu2()+0 AF495220 5 A77DCBB4 16
8 94591E54 5 A77DCBE0 0 FB7B670
615F44 0 FB7B718 0
kxsGetRuntimeLock(  CALLrel  kksLoadChild()+0 120A3370 AE9130D8 FB7C090
)+1421
kksfbc()+8954       CALLrel  kxsGetRuntimeLock( 120A3370 A7CC9E4 FB7C090 3 1
)+0
kkspsc0()+1882      CALLrel  kksfbc()+0 A7CC9E4 3 108 FB7D2D8 1BB 0 0
0
kksParseCursor()+1  CALLrel  kkspsc0()+0
43
opiosq0()+2028      CALLrel  kksParseCursor()+0 FB7C610
kpooprx()+273       CALLrel  opiosq0()+0 3 E FB7C734 A4
kpoal8()+729        CALLrel  kpooprx()+0 FB7F214 FB7D2D8 1BA 1 0 A4
_opiodr()+1224       CALLreg  00000000             5E 1C FB7F210
_ttcpip()+2733       CALLreg  00000000             5E 1C FB7F210 0
_opitsk()+1278       CALL???  00000000            
opiino()+1067       CALLrel  opitsk()+0 0 0
_opiodr()+1224       CALLreg  00000000             3C 4 FB7FC28
opidrv()+807        CALLrel  opiodr()+0 3C 4 FB7FC28 0
sou2o()+45          CALLrel  opidrv()+0 3C 4 FB7FC28
opimaireal()+130 CALLrel _sou2o()+0           FB7FC1C 3C 4 FB7FC28
opimai()+92         CALLrel  opimai_real()+0 2 FB7FC54
OracleThreadStart@  CALLrel  opimai()+0
4()+764
77E6482C CALLreg 00000000
00000000 CALL??? 00000000

Similar Messages

  • Gmail question.  I'm getting an error message that states my username or password are incorrect.  I haven't changed anything and the gmail is working fine on the mac book.  The mail function worked yesterday on the iphone but not today - any solutions??

    Gmail question.  I'm getting an error message that states my username or password are incorrect.  I haven't changed anything and the gmail is working fine on the mac book.  The mail function worked yesterday on the iphone but not today - any solutions??

    Try Restarting / rebooting  your Mac before doing anything more drastic..
    S.

  • Hi there I have a iPhone 3G and it was with O2 but needed to go onto 3 network so someone on my local market unlocked it and the phone was working fine until I tried to update it through iTunes and it always now stops loading towards the end with an erro

    Hi there
    I ha
    Hi there I have a iPhone 3G and it was with O2 but needed to go onto 3 network so someone on my local market unlocked it and the phone was working fine until I tried to update it through iTunes and it always now stops loading towards the end with an error is there a way to get the phone working again please.

    Shame you had the iPhone hacked as  O2 usually unlock their customers iPhones happily.
    We cannot discuss your problem as it is in breach of the Ts&Cs you agreed to on registering
    However hint ....you have probably trashed it

  • I have had an iPod Touch 3rd Gen for two years and the apps have worked fine in the past. Suddenly the apps will not launch, they appear to start then just exit. Is there a reason why it is doing this?

     I have had an iPod Touch 3rd Gen for two years pretty much and the apps have worked fine. Suddenly when I go on an app it appears to launch then just exits. I tried turning the iPod off and on again, but that made all my apps behave like that. Settings and those things work fine still. Should this suddenly happen? I dont want to lose all 204 apps.

    - First try resetting the iPod. Nothing will be lost.
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Next try downloading/installing a new app
    - Restore from backup
    - Last, resore to factory defaults/new iPod.  this is last result since you will lose app data.

  • My charger just stopped working. The cord has no visible damage and the plug box works fine with other phone cords. I've had my phone

    My charger just stopped working. The cord has no visible damage and the plug box works fine with other phone cords. I've had my phone for less than four months now. Will Apple provide a new charger if theirs is faulty? I have not dropped it in water or anything. It was a normal day and I had 20% battery and I tried to charge my phone and it wouldn't charge. The charging pug box works fine with other phone USB cords so I know its something to do with the charging cord.

    Eklms wrote:
    My charger just stopped working. The cord has no visible damage and the plug box works fine with other phone cords. I've had my phone for less than four months now. Will Apple provide a new charger if theirs is faulty?
    Yes.
    Everything is included in the warranty.

  • Running Mavericks, when I try to print on my  HP LaserJet 1320tn I get the message  "Printing - The printer is in use." and nothing happens. Worked fine with Mountain Lion.

    I'm running Mavericks and when I try to print on my networked HP LaserJet 1320tn I get the message  "Printing - The printer is in use." and nothing happens. The same set up works fine's with Mountain Lion. I am uptodate. Any thoughts?

    Hi,
    Thanks, but these suggestions aren't helping.
    I have
    1. tried to print form a different add
    2. deleted and reinstaled the printer
    3. deleted and reinstall the printer drivers
    4. reset the printing system
    there's no problem with the printer or the wireless as (1) i can print using my partner's mac with mountian lion and (2) I can see the printer on my own mac (mavericks)
    Any more suggestions?
    Thanks
    Laurie

  • Will not allow me to sign into messenger or FaceTime, something about the connection but everything checks to fine and the mac book works fine for the wife?

    Will not allow me to sign into messenger or FaceTime, saying something about connection, but everything is fine and the Mac book air works fine for the wife>

    Hi Alexrichard,
    I have an article for you that will help you troubleshoot this sign in issue:
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Thanks for coming to the Apple Support Communities!
    Cheers,
    Braden

  • My Ipod Touch drained battery, I then didn't use it for a week, went to charge it and I get nothing, only a black screen.  HELP!!! It is not the cord, I tried it on other products and the usb cord works fine.  I need to charge so I can use.

    My battery drained on my Ipod Touch.  I did not end up using it for a week. Yesterday I charged it with my USB to the computer, came back the next morning and it was still dead.  I then tried charging it on my laptop....same thing.  Went through the tech support things about holding the two buttons down for system restore....nothing.  Please HELP.

    Give it time. Even plugged in the battery needs to have a certain amount of power to power the screen.
    Leave it on the charger for a couple of hours and hten see if it'll turn on.

  • I have Powersuite from Uniblue, and the other segments work fine, but DriverScanner, though it does the scan, cannot connect to Uniblue to get the updates

    Uniblue have advised checking proxy settings and firewall (plus uninstalling, reinstalling)but nothing gets it to work. Any ideas how to progress?
    I'm running Microsoft Vista 32 on an Aspire laptop 5610Z.
    I have the same proxy settings in Firefox (which I normally choose to use) and in Internet Explorer (which I find some software chooses to use behind my back!).
    The firewall I've checked up on is that in Control Pannel (Panneau de configuration since I'm using a French machine). Should I be checking on firewalls elsewhere?
    DriverScanner should be checking drivers against a list in Uniblue (I go to uniblue.com) then downloading the updates I need.
    I used to know what my computer contained and how it worked, back in the 80s, but I have to admit I am now lost!

    Someone recently noted a problem staying logged on the Huffington Post since it became connected with AOL. The workaround for that is to change your connection setting here:
    orange Firefox button (or Tools menu) > Options > Advanced > Network
    Click the "Settings" button and choose either "No Proxy" or "Use System Settings" option, and OK the change.
    Not sure whether Washington Post could be affected by that same setting.
    In reviewing your extensions, I'm puzzled that you have both DoNotTrackMe and SavvyConnect. The first one seems to aggressively block certain communications with websites (potentially affecting functionality) while the second one seems to report on your browsing habits (they better pay well is all I can say). Have you tried disabling both of those to see whether that has any effect?
    orange Firefox button (or Tools menu) > Add-ons > Extensions category

  • Hi! i recently got a macbook pro 15" retina display, and i tried to play assassin's creed 2 and other games on it, but the thing is, the keyboard keys will not respond except the trackpad, and the keyboard keys work fine outside of gaming.

    Hi! so like i said in the title, i tried to play any game like assassin's creed and minecraft, but the keyboard wont respond but the trackpad does, also i tried restarting reinstalling checking if mouse key is on or off and all that, and it still wont fix this problem.  Outside of gaming though, the keyboard works with no problem. Please help me!

    You should also ask this in the MacBook Pro forum. This is the forum for the 13” white and black plastic MacBooks that were discontinued in 2010. You should also post this question there to increase your chances of getting an answer.
    https://discussions.apple.com/community/notebooks/macbook_pro

  • New CDMA iPhone 4S, apps that require data such as Yahoo instant messenger and the weather channel, work fine with a wifi connection but do not work with 3G

    These apps just time out on 3G, but load just fine over wifi from the device.   I know the data connection is good because web pages load fine in the browser on the phone.
    Any idea how to fix this?

    What carrier are you using?

  • How to Resolve Can not Display Web part error using CQWP and a blog

    I have  a SharePoint 2010 site with a home page that has a  CQWP (content Query Web Part) tied to the most recent blog of blog site with a list of blogs.  Randomly, some clients will experience a "Unable to display
    a web part". Our client machines are set up with Roaming profiles that are PKI enabled.  Some users are always able to see the resulting blog on the home page, while other users, experience sporadic ability to see the blog ----getting a
    "Unable to display web part".  Also a client can be on one machine and get the error and then log on to another machine and not get the error. Its also seems that when a new blog is added to the blog list this is when the
    ability to see the blog on the home page may come up as an error.  Our setup is simple:   show items= list/posts, List type=Posts, Content Type Group= List Content Type, Content type=Posts,  no audience targeting, not additonal filters,
    group items by = None Descending,  #columns =1, sort items by =published -descending   Limit # display items = 1,  Gropup style = Default,  itemstyle= image on left,  yes play media links,  Fields to display = titlt
    and Description (body)
     What kind of things could cause the random behavior?  

    Hi,
    According to your description, my understanding is that the error occurred occasionally with the Content Query web part.
    I tested the same scenario in my environment, and the web part worked fine.
    I recommend to verify the things below:
    Did this issue occur with all the Content Query web part? I recommend to create a new Content Query web part to see if the issue still occurs.
    Did this issue occur with all the users who have permission to view the web part?
    Deactivate the Publish feature and then re-activate it to see if the issue still occurs.
    Check the ULS log for detailed error message.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • I cannot get on my email exchange using firefox, and it has been working until today.

    My company uses a owa.postoffice.net exchange, and we are supposed to use internet explorer, or firefox. I have a Mac, so I use firefox, and it has been working fine for the past 90 days, and today, I go to the exchange, type in my password and user name, and I am then sent to just a blank page. I talked to two other Mac user's today within my company and he is not having any trouble at all, so that tells me that is my firefox that is having these problems. I would like someone to call me about this @ 919-669-4909. I do not want to talk over email.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    *https://support.mozilla.org/kb/Cannot+log+in+to+websites

  • I spilled pop on my macbook pro, mostly on speakers and screen, however the macbook still works fine, should i contact them and ask what should i do or try to dry it off.....please help??

    Hi , i spilled sprite on my macbook pro mostly onto speakers but however, i dried it off immideately and the macbook is working fine so far. Speakers still work normal but i am worried thatere might be some problems later on. Please suggest me some good ideas to furhter mae sure that the mac is fine?

    I suggest that you take the MBP into an Apple store genius bar for a free evaluation.  There are liquid sensors inside and they should check if any have been activated.  This may give you a clue as to what you may expect regarding future reliability.
    Ciao.

  • ORA-00932 error: limitations for SDO_UTIL.FROM_WKTGEOMETRY and SDO_GEOMETRY

    Hi all,
    In my project, I use C# .net and Oracle 11g. I use ADO.NET OracleClob object in my C# code which will be passed to a procedure (procedure defined in a package) where I convert the input clob/wkt geometry into SDO_GEOMETRY using SDO_UTIL.FROM_WKTGEOMETRY and subsequently the GEOMETRY can be pushed into a table as shown below.
    PROCEDURE insert_extent(p_key_id IN NUMBER, p_extent IN CLOB) AS
    m_geom SDO_GEOMETRY;
    BEGIN
    m_geom := SDO_UTIL.FROM_WKTGEOMETRY(p_extent);
    UPDATE TEMP SET GEOM = m_geom
    WHERE IDS = p_key_id;
    COMMIT;
    END insert_extent;
    The above code is working fine for small size clob inputs, but, I have encountered ORA-00932 error when my clob/wkt geometry was more than 30MB in size.
    Can any one tell me what is the limitation of size of the clob to convert the CLOB to SDO_GEOMETRY and is there any limitaion on SDO_GEOMETRY datatype object to write the geometry into a table as well via insert/update statement.
    Also share your thoughts on how to resolve the issue.
    Please let me know if further information is required and thanks for the help in advance.
    Regards,
    Kumar

    MDSYS.SDO_ORDINATE_ARRAY in sdo_geometry can hold 1048576 numbers:
    desc MDSYS.SDO_ORDINATE_ARRAY
    MDSYS.SDO_ORDINATE_ARRAY VARRAY(1048576) OF NUMBER

Maybe you are looking for

  • Samsung un46c6500 LED TV and Mac Mini

    So I recently purchased a new Mac mini and have hooked it up to my samsung un46c6500 via HDMI cable. We have been seeing major issues with this setup, most of the time the screen is very dark. Im not sure if its the TV or the Mac mini that is doing t

  • Report containing bar chart

    I am new to charts in crystal reports. In my database i am having 200 students. In that i have one coloumn which is containing the ranks of student (1,2,3,..). In the report , i need to display, 1) X-axis ->ranks should be dispalyed (1,2,3,4,5) 2) Y-

  • Calling a user defined function in a select statement

    PLS-00231: function 'F_GET_PROJECT_ID' may not be used in SQL I am caling a user defined function 'F_GET_PROJECT_ID' in a select statement and getting the above error . Can any one help me to resolve it. I can not replace the function with a local va

  • Results of exceptions using CKF differ depending on whether CKF is hidden

    I have created a calculated key figure and included it as the criteria for an exception. When the CKF is visible the exception is correct, however when it's set to 'Always Hide' (with the exception set to calculate before local calculation) the excep

  • 6210 navigator

    Major help required for this phone. This morning I went to check if I had any messages.NONE! but I now cant use the top 2 buttons on the front of the phone.I also cant use the middle button.I cant get into to check my messages.I can however press the