Does any one help for SDO_WITHIN_DISTANCE query?

I tried to use SDO_WITHIN_DISTANCE to find all records that fall in 5 mile radius from the location I searched. The results return the records of Longitude + 5 instead of 5 mile of the location.
My query was:
SELECT *
FROM BH_ORDER_T
WHERE SDO_WITHIN_DISTANCE(od_pair_geometry,mdsys.SDO_GEOMETRY(2001, 8307, mdsys.SDO_POINT_TYPE(-81.4373367,41.3875542,null), null,null),'DISTANCE=5 UNIT=MILE') = 'TRUE'
This location is SOLON City Hall, SOLON, OH
The output results are all records that od_pair_geometry column Longitude between -81 and - 84. For example:
Sandusky OH (2002,8307,Null,(1,2,1),(-75.46,41.24,-82.71,41.45))
Elyria OH (2002,8307,Null,(1,2,1),(-75.46,41.24,-82.12,41.38))
Cleveland OH (2002,8307,Null,(1,2,1),(0,0,-81.7436,41.4336))
What was wrong with my Query?
Thanks in advance

Hi,
Can you describe what are you doing.
HSQL demo environment have been startted and when you
run a job, it's closed DB?
Regards,
MAI wanna do data integration from Oracle to HSQLDB, but when connect to hsqldb, it had something wrong just like i had described.
I fixed it by using demo environment of hsqldb 1.7 instead of 1.8.0, it runs ok.
but still don't know why v1.8.0 is wrong.

Similar Messages

  • Does any one do for HSQLDB? Happened to problem.

    There is a "Connection is broken, Transfer corrupted" error when i integrated to hsqldb, any one got this problem or help ?

    Hi,
    Can you describe what are you doing.
    HSQL demo environment have been startted and when you
    run a job, it's closed DB?
    Regards,
    MAI wanna do data integration from Oracle to HSQLDB, but when connect to hsqldb, it had something wrong just like i had described.
    I fixed it by using demo environment of hsqldb 1.7 instead of 1.8.0, it runs ok.
    but still don't know why v1.8.0 is wrong.

  • Does any one help me. I tried to install Oracel 8.1.5 on RedHat Linux 7.0 and failed.

    I am running my system with RedHat Linux 7.0 and tried to install Oracle 8.1.5.
    I extracted jre required files and when i tried to start ./runIns.sh from install/linux directory it is giving me an error Unable to initalize threads: cannot find class Java/lang/Thread
    Could not create JVM
    i tried 3 times and i ended up here and i need instruction to sort out the problem as earlier as possible.pls do advice me in this.

    Vijaya zi,
    Are you still having problem..with this..let me know??
    first of all 8.1.7 , or 8.1.6. 8.1.5 neither one of these are certified to work with linux 7.0 Redhat.
    Secondly there is a work around you could try..assuming that you have set the enviroment varaible and JVM corrent..( let me know if you need help with this)
    here u go...
    There is this linux gnu lib file which oracle is looking for which was there in 6.x and not in 7.0.
    However if you have upgraded from 6.X linux to 7.0 then it will work..
    for some reason it is looking for this glibc file.
    either way the oracle message it is giving is not relavant...
    it is just not going to work...unless you find a way to implement that glibc file..
    I had link..which talk about the work around..
    RedHat 7.0 issues
    RedHat 7.0 ships with glibc 2.2. Oracle compiles with glibc 2.1. See the problem here? The good folks at valinux.com have created a compatiblitly SDK that will "fix" Redhat so you can install Oracle 8i. Go to the following link to learn more: http://ftp.valinux.com/pub/support/hjl/glibc/sdk/2.1/readme.Oracle8i -
    This is the instructions for installing the patch. Return to this document at Step 4, where they tell you to "Install Oracle 8i." http://ftp.valinux.com/pub/support/hjl/glibc/sdk/2.1/i386-glibc-2.1-linux.tar.gz -
    This is the actual SDK.
    WARNING! WARNING! WARNING!
    The procedure for RedHat 7.0 is not officially approved by Oracle. If you are putting a mchine into production, I would strongly recommend sticking with RedHat 6.2 instead (and patching the security holes in it). There are other problems with RedHat 7.0 that extend beyond Oracle. Personally, I'm waiting for 7.1 before I think hard about migrating
    hope this help...
    NOTE ---> ORACLE DOES NOT SUPPORT THIS METHOD.
    Good Luck
    Shah
    null

  • Can any one help with this query please

    I have a table something as below
    Things_t
    Things Characteristic Char Value
    Item 1 Colour Red
    Item 1 Packaging
    Item 2 Shape Square
    Item 2 Brand Spunk
    Now i want to reterive an item with none of its char values as Null. Using the query “ select distinct things from things_t where char value is Null ” will fetch the item 1 also together with item 2. i want to fetch a record from thing for which none of the char values are Null such as Item 2. Can you please help me with this query.

    Try this:
    WITH t AS
    (SELECT 1 item_id, 17436 chr_id, 14225034 chr_val_id FROM dual UNION
    SELECT 1 item_id, 39 chr_id, 14276173 chr_val_id FROM dual UNION
    SELECT 1 item_id, 17774 chr_id, NULL chr_val_id FROM dual UNION
    SELECT 1 item_id, 265 chr_id, 20502978 chr_val_id FROM dual UNION
    SELECT 1 item_id, 16978 chr_id, 797233 chr_val_id FROM dual UNION
    SELECT 1 item_id, 13092 chr_id, 5666917 chr_val_id FROM dual UNION
    SELECT 1 item_id, 15228 chr_id, 1209758 chr_val_id FROM dual UNION
    SELECT 2 item_id, 112 chr_id,  12705342 chr_val_id FROM dual UNION
    SELECT 2 item_id, 6945 chr_id, NULL chr_val_id FROM dual UNION
    SELECT 2 item_id, 70 chr_id, 12597376 chr_val_id FROM dual UNION
    SELECT 2 item_id, 16832 chr_id, NULL chr_val_id FROM dual UNION
    SELECT 2 item_id, 7886 chr_id, 9588619 chr_val_id FROM dual UNION
    SELECT 2 item_id, 6986 chr_id, 2659351 chr_val_id FROM dual UNION
    SELECT 3 item_id, 9531 chr_id, 8910943 chr_val_id FROM dual UNION
    SELECT 3 item_id, 9798 chr_id, 8717531 chr_val_id FROM dual UNION
    SELECT 3 item_id, 17446 chr_id, 12266441 chr_val_id FROM dual UNION
    SELECT 3 item_id, 4830 chr_id, 13683090 chr_val_id FROM dual UNION
    SELECT 3 item_id, 9518 chr_id, 834772 chr_val_id FROM dual UNION
    SELECT 3 item_id, 11031 chr_id, 20233753 chr_val_id FROM dual UNION
    SELECT 3 item_id, 12564 chr_id, 2282478 chr_val_id FROM dual)
    SELECT DISTINCT item_id
    FROM   t
    MINUS
    SELECT DISTINCT item_id
    FROM   t
    WHERE  chr_val_id IS NULLOr this:
    SELECT item_id
    FROM  (SELECT   item_id,
                    MIN(NVL(chr_val_id, -1)) min_chr_val_id
           FROM     t
           GROUP BY item_id)
    WHERE  min_chr_val_id != -1Edited by: lee200 on Oct 15, 2012 9:22 AM

  • Hey every one ... Does any one suggest for me a good browser for my tablet

    Hi
    I would like to have a better browser... Every browser i had tried is not good like if i wanna to upload a file i have to choose only from the gallery and nothing on the settings can change it.. I have tried dolphin browser, boat .. Etc almlst all of them but still and the built in browser every time i try to upload something it shut down by itself 
    Thanks for reading 

    I FIXED IT!
    FYI for the rest of you that might be having the same problem. DON'T USE A BELKIN ROUTER WITH AOL ON A MBP!!!!! It ***** wirelessly. or even hard connected, it won't connect. I went to best buy today, and got a refund on the belkin. I then went to J&R and got a D-Link router. And now it works perfect. I can now chat on AOL yet again, and I tried all the other web browsers I have and messengers, and warcraft 3 online via battlenet. And it works great. I want to give you guys a special thanks for taking time out to answer back to my post. FYI! Belkin wireless G routers do not connect you to AOL wirelessly on MBP's. No matter how much you mess around on them. I highly recommend a D-Link Router. They are easy to set up as long as you READ ( AND I MEAN IT!!!) read the instructions before you set anything up on it. Use the CD that it comes with, and you'll be good to go. Set it up and it works great Almost no dead zones in the house, and now I can use the MBP with all it's cababilities. Thanks people. I really appreciate it.
    P.S. I called belkin last night when i decided to get a refund on my router for today and when i talked to the tech, after puersuading him to tell me the truth. And stop BS'ing me, he broke down and admited that AOL does not work wirelessly on MBP's. So to make a long story short this time, There you go. And one last note, I'm very happy now with my d-link router. I honestly thought it would suck. Not being a brand name router or anything. But amazingly, it works like a brand name item! Again, many thanks all.
    Bruce

  • I installed Apple TV yesterday and then purchased and watched a film for the first time. Today Apple TV does not accept my pass word. I' m confused can any one help me?

    I installed Apple TV yesterday and then purchased and watched a film for the first time. Today Apple TV does not accept my pass word. I' m confused can any one help me?

    there are up to 3 different password
    there is the appleID password
    there is the wifi encryption password
    there is te shared itunes lib password

  • I am using a verizon email address and microsoft office for mac outlook program to manage my emails.   Does any one know if  the apple outlook version offers the ability to save emails as a pdf so that I can save it to my hard drive and how to access?

    I am using a verizon email address and microsoft office for mac outlook program to manage my emails.   Does any one know if  the apple outlook version offers the ability to save emails as a pdf so that I can save it to my hard drive and how to access?

    This is the Microsoft forum site that parallels what Apple has:
    Office for Mac forums
    It's not uncommon for MS employees who work with the Mac side of the business to help there. All in all a useful resource for Office:Mac

  • Have just down loaded Yosemite over Mountain Lion, Indesign CS5 does not work ( Am dependant on it) although Bridge , Light Room and Elements operate OK How do I solve this rapidly. Can any one help on this issue. Thanks

    Have just down loaded Yosemite over Mountain Lion, Indesign CS5 does not work ( Am dependant on it) although Bridge , Light Room and Elements operate OK How do I solve this rapidly. Can any one help on this issue. Thanks

    Sorry to say it, but I think you can see from Bob's response that there's no way to solve this rapidly.
    Did you take an image of your Mountain Lion install before upgrading to Yosemite? Roll back to that. If you're not in the habit of taking a snapshot of your system before performing operating system upgrades - get in that habit. If you are dependent on anything at all on hour computer, having a reliable backup method in place is essential. If you don't have a Time Capsule, or some other way to run Time Machine onto a disk that's not in your computer, go set that up yesterday.
    If you can't just remove Yosemite and roll back to Mountain Lion for whatever reason, you can partition your drive so that you can install both Yosemite and Mountain Lion on the same drive, and then boot into Mountain Lion when you need to work in CS5. Or you can take your Mountain Lion disc (I assume you have one, no?) and then use it to create a virtual machine in something like VirtualBox to run Mountain Lion from inside Yosemite.

  • Does the Apple A1096 adaptor work with the A1081 monitor? Can any one help? Thanks, Paul

    Does the Apple A1096 adaptor work with the A1081 monitor? Can any one help? Thanks, Paul

    Click on this link for the fix http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/

  • Does any one implemented solution for httpservlet request/response object in IWSDLInterceptor implemented class?

    I am trying to handle Producer not available situation in which I am using Interceptor IWSDLInterceptor in WLP 10.3.4. I am able to retrieve exception using onWSDLException but from here if I have to forward my pageURL object I need httpservlet request and response. I tried my own filter class to have its own customize request and also tried it out all other Interceptor to see if any one can handle IOException. I did manage to throw my own Customize exception but  that also did not work out as Page does not have any backing file or any supportive Controller class.
    Does any one implemented solution for httpservlet request/response object in IWSDLInterceptor implemented class? or do we have any specific documentation in regards to this? As I am not able to find much martial on IWSDLInterceptor except Java API from Oracle and article defining Two way SSL handshake Producer.
    Any kind of help is appreciated.
    Thanks
    PT

    Thanks Emmanuel for your response but render behavior is not available for IWSDLRequestContext/IWDSLResponseContext object which IWSDLInterceptor uses for implementation.
    Let me put my question in little simpler manner. May be my approach to the problem is not proper.
    Problem : Handle Producer Not available (no application exists on server) on consumer side.
    So far tried approach : Producer is not running then I am able to handle that TransportException at IInitCookieInterceptor/IHandleEventInterceptor onFault behaviour but in the case of Producer not even exists Consumer try to get WSDL fetch operation and failed with FileNotFoundException.
    To handle this exception, I used IWSDLInterceptor which is available under IWSDLInterceptor.OnWSDLException (Oracle Fusion Middleware Java API for Oracle WebLogic Portal)
    I am able to catch the exception but problem arise when application needs to forward at specific page/render portlet for this situation. For that it required request/response object but IWSDLInterceptor does not give any kind of instances to redirect request as there is no direct access to HTTPServlet request/response object.
    I tried my custom request object to use there. I tried out custom filter object of IWSDLrequestContext. nothing works.
    One approach works is to put producer WSDL file at consumer level. But in that, you need to handle different producer files for different environment. Which I don't think its a good approach.
    eAny one Let me know if my approach to the problem/scenario is wrong. Or if I am missing out any other supporting interface which also required to handle this scenario. or I am using wrong interface for this scenario.
    Thanks for your help in advance.
    PT.

  • Does any one can help me on Oracle cycles

    Hi Gurus,
    Does any one can help me getting documents of People to pay cycle or Recruit to retaire cycle Please.
    I am in need of them .
    Thanks in advance for your time and consideration.

    If you mean the Time Capsule's internal drive, click here and follow the instructions.
    If you mean an external drive used with Time Machine, install the MacDrive trial on the PC and then plug it in normally.
    (96092)

  • HT2128 Does any one know how to attach a document from your mail, while you are already in your e-mail, meaning not having to look for your file first and then open the e-mail.

    Does any one know how to attach a document from your mail, while you are already in your e-mail, meaning not having to look for your file first and then open the e-mail.

    Luis
    Good question - and one that a lot of (business) people would like solved!
    Your question prompted me to do some research, and I found this workaround posted by Scott Grossberg:
    His solution actually addresses a second problem too - how to attach a document when replying to an email message. In your case you may not need to consider the "reply" aspect - but if not right now, it'll come in useful someday!
    I've pasted it verbatim - if it works for you (it does for me) then all credit goes to Scott for solving the problem. There's just one thing I'd add to his solution: you will probably want to rename the message, as by default Goodreader gives it the Subject line: Mail with GoodReader attachments.
    THE GOODREADER OPTION
    1.  CREATE the document you want to send.
    2.  SAVE it to GoodReader (this will require you to buy and install the app).
    3.  Go to your email and OPEN the email thread to which you want to Reply and attach your file.
    4.  COMPOSE your Reply.
    5.  DOUBLE TAP the message.
    6.  TAP SELECT ALL. This will copy the entire email thread.
    7.  OPEN GOODREADER on the iPad and go to the file you want to send as part of your Reply.
    8.  At the bottom of the GoodReader screen you will see an EXPORT icon (it looks like a rectangle with an arrow pointing to the right).
    9.  TAP the Export button.
    10.  TAP EMAIL FILE. Depending on your needs, tap either SEND FILE “AS IS” or “FLATTEN ANNOTATIONS.” This will open a compose message screen with the chosen document already attached.
    11.  TAP in the body of the email screen. TAP PASTE. This will place your composed Reply and the prior email thread into the message.
    12.  ENTER the Recipients’ names in the TO: field of your message.
    13.  SEND your email Reply.
    The modified version (= when composing a new message rather than a reply):
    1 Make sure that the doc you want to attach is saved in GoodReader
    2 In the message you are composing, double tap, select all, and then copy.
    3 Open GoodReader and select the file you want to attach
    4 Select the export button at the bottom of screen
    5 Select e-mail file
    6 Position cursor in body of the email message, tap and paste. You may want to delete the "sent from GoodReader" text that precedes the attachment.
    7 Rename your message (as by default it will be Mail with GoodReader attachments)
    8 Add the recipient's address in the To field.
    Hope this helps! All thanks to Scott for this workaround.

  • Does any one have a sample code for sending email using IMAP ?

    Hi
    thank you for reading my post
    I have tried to use SMTP and because of some problems i could not use it and i must use Imap (authentication required)
    here is my SMTP code , does any one know how i can tune it to use Imap , or has a code snippet to send email using Imap ?
    thanks
    private static void postMail(String[] recipients, String subject, String message,
                             String from) throws MessagingException {
            boolean debug = false;
            class SMTPAuthenticator extends javax.mail.Authenticator
                    public PasswordAuthentication getPasswordAuthentication()
                        return new PasswordAuthentication(mail_usrname,mail_password);
            //Set the host smtp address
            Properties props = new Properties();
            FileInputStream fis;
            try {
                System.out.println("Loading property file");
                fis = new FileInputStream(new File("c:/email.properties"));
                props.load(fis);
                System.out.println("property file done");
            } catch (FileNotFoundException e) {
                System.out.println("file not found");
                e.printStackTrace();
            } catch (IOException e) {
                System.out.println("can not read properties file");
                e.printStackTrace();
            /*props.put("mail.smtp.user", mail_usrname);
    props.put("mail.smtp.host", smtpHost);
    props.put("mail.smtp.port", smtpPort);
    props.put("mail.smtp.starttls.enable","true");
    props.put("mail.smtp.socketFactory.port", smtpPort);
            // create some properties and get the default Session
            Authenticator auth = new SMTPAuthenticator();
            Session session = Session.getDefaultInstance(props, null);
            session.setDebug(debug);
            // create a message
            Message msg = new MimeMessage(session);
            // set the from and to address
            InternetAddress addressFrom = new InternetAddress(from);
            msg.setFrom(addressFrom);
            InternetAddress[] addressTo = new InternetAddress[recipients.length];
            for (int i = 0; i < recipients.length; i++) {
                addressTo[i] = new InternetAddress(recipients);
    msg.setRecipients(Message.RecipientType.TO, addressTo);
    // Setting the Subject and Content Type
    msg.setSubject(subject);
    msg.setContent(message, "text/HTML");
    System.out.println(msg.toString());
    Transport.send(msg);

    Please try this out!!!!!!!!!
    You can send emails using Outlook also. You can send email over Microsoft Exchange with this object (or another email server, using IMAP/POP).
    Sub SendMailOutlook(aTo, Subject, TextBody, aFrom)
    'Create an Outlook object
    Dim Outlook 'As New Outlook.Application
    Set Outlook = CreateObject("Outlook.Application")
    'Create e new message
    Dim Message 'As Outlook.MailItem
    Set Message = Outlook.CreateItem(olMailItem)
    With Message
    'You can display the message To debug And see state
    '.Display
    .Subject = Subject
    .Body = TextBody
    'Set destination email address
    .Recipients.Add (aTo)
    'Set sender address If specified.
    Const olOriginator = 0
    If Len(aFrom) > 0 Then .Recipients.Add(aFrom).Type = olOriginator
    'Send the message
    .Send
    End With
    End Sub

  • I am not able to register my Apple ID for iCloud and the error is "the maximum no of free accounts have been activated on this phone" can any one help me why I need to do

    I am not able to register my Apple ID for iCloud and the error is "the maximum no of free accounts have been activated on this phone" can any one help me why I need to do

    Sir, your Apple ID can be used as an iCloud account as well. They are both the same thing.
    You can learn more from --> Set up your Apple ID for iCloud and iTunes - Apple Support

  • My iphone 4 doesn´t connect thorugh Wi-Fi, apple replaced my phone for a new one and it has the same problem. I have an ipod and it doesn´t have this problem. Does any one know what to do?? Thanks

    My iphone 4 doesn´t connect through Wi-Fi, Apple replaced my phone for a new one, but the new one  has the same problem. I have an ipod third generation and it doesn´t have this problem. Having compared both working at the same time, the iphone alsways lags behind or doesn´t even connect to the internet via Wi-Fi. Does any one know what to do?? Thanks

    Have you ever checked to see if there is an update for your router? If yes, then power off router. Then on iPhone go into settings and do a reset network settings. Power router back on, and try connecting phone to router.

Maybe you are looking for

  • Logic refuses to install libraries.

    so, I recently downloaded Logic Pro X. at first, i was upset by the lack of instruments, and then i found a few of the jampacks and libraries, including choir, which i'm so happy about. I'm new to Logic, as well as making music in general, but I've a

  • Communication details in ESS

    When we see communication details in ESS under who's who option, system is displaying Building Number and Room number. From which Infotype in SAP R/3 this information is being picked up ??

  • 2 color PDF shows 4 color

    We have been using 2/c file for Indesign CS2 document (Magenta & Black). However we were able to findout, select the Output Preview menu in Acrobat and turned off Magenta and Black it shows the rest of the color. InDesign shows by using Seperation Pr

  • Cursor validation error

    Hi All, I faced this error while compilling SQL package under diff schemas: RS_STG_LOAD_ACTV_E_pb.sql is not compiled on bkodv2a(dwsa02). It gets compiled on bkodv2a(dwsa01) Getting the following error 0/0 ORA-00900: invalid SQL statement 0/0 PLS-008

  • Toast DVD unable to read on windows

    I burned a data disk with toast and had the settings on mac and PC then i put the disk into a PC and the pc is unable to recognize it, what do you think the problem is?