Getting Started with Oracle Spatial

I am not sure if this is the appropriate forum for this question but here goes:
I have just started using Spatial, and am
trying to setup a simple within-distance query, following closely the html documentation.
I create a parks table:
CREATE TABLE parks (GID VARCHAR2(32), shape MDSYS.SDO_GEOMETRY);
and then the geometry metadata table:
INSERT INTO sdo_geom_METADATA VALUES ('parks', 'shape', MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('X', 0, 100, 0.005), MDSYS.SDO_DIM_ELEMENT('Y', 0, 100, 0.005)));
I insert some entries into my PARKS table:
INSERT INTO parks VALUES ('park1', MDSYS.SDO_GEOMETRY(1,NULL,MDSYS.SDO_POINT_TYPE(1,1,NULL),NULL, NULL));
INSERT INTO parks VALUES ('park2', MDSYS.SDO_GEOMETRY(1,NULL,MDSYS.SDO_POINT_TYPE(1,3,NULL),NULL, NULL))
and create a spatial index:
create index parks_fixed on parks(shape) indextype is mdsys.spatial_index parameters('SDO_LEVEL=8');
Finally, I do my within-distance query:
select parks.GID from TARGET parks where mdsys.sdo_within_distance(parks.shape,
MDSYS.SDO_GEOMETRY(1,NULL,MDSYS.SDO_POINT_TYPE(1,1,NULL),NULL, NULL),
'distance=2')='true';
to find points within 2 units of (1,1).
Unfortunately, I get the error:
ERROR at line 1:
ORA-29902: error in executing ODCIIndexStart() routine
ORA-13207: incorrect use of the [SDO_WITHIN_DISTANCE] operator
ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 73
ORA-06512: at line 1
So a few questions:
1: What am I doing wrong?
2: In 4.2.3 of the Oracle HTML documentation,
the example query has SELECT A.Feature_ID
FROM TARGET A . . . . . .
What is TARGET?
3: The documentation has many errors. Where can I find better documentation?
Any help on any of these matters would be greatly appreciated!
Sincerely Yours,
Hirohisa

I am not sure if this is the appropriate forum for this question but here goes:
I have just started using Spatial, and am
trying to setup a simple within-distance query, following closely the html documentation.
I create a parks table:
CREATE TABLE parks (GID VARCHAR2(32), shape MDSYS.SDO_GEOMETRY);
and then the geometry metadata table:
INSERT INTO sdo_geom_METADATA VALUES ('parks', 'shape', MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('X', 0, 100, 0.005), MDSYS.SDO_DIM_ELEMENT('Y', 0, 100, 0.005)));
I insert some entries into my PARKS table:
INSERT INTO parks VALUES ('park1', MDSYS.SDO_GEOMETRY(1,NULL,MDSYS.SDO_POINT_TYPE(1,1,NULL),NULL, NULL));
INSERT INTO parks VALUES ('park2', MDSYS.SDO_GEOMETRY(1,NULL,MDSYS.SDO_POINT_TYPE(1,3,NULL),NULL, NULL))
and create a spatial index:
create index parks_fixed on parks(shape) indextype is mdsys.spatial_index parameters('SDO_LEVEL=8');
Finally, I do my within-distance query:
select parks.GID from TARGET parks where mdsys.sdo_within_distance(parks.shape,
MDSYS.SDO_GEOMETRY(1,NULL,MDSYS.SDO_POINT_TYPE(1,1,NULL),NULL, NULL),
'distance=2')='true';
to find points within 2 units of (1,1).
Unfortunately, I get the error:
ERROR at line 1:
ORA-29902: error in executing ODCIIndexStart() routine
ORA-13207: incorrect use of the [SDO_WITHIN_DISTANCE] operator
ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 73
ORA-06512: at line 1
So a few questions:
1: What am I doing wrong?
2: In 4.2.3 of the Oracle HTML documentation,
the example query has SELECT A.Feature_ID
FROM TARGET A . . . . . .
What is TARGET?
3: The documentation has many errors. Where can I find better documentation?
Any help on any of these matters would be greatly appreciated!
Sincerely Yours,
Hirohisa

Similar Messages

  • Developerday  VM Ora-12505 Getting Started with Oracle SQL Developer 3.0

    Just downloaded the VM , Started the tutorial Getting Started with Oracle SQL Developer 3.0
    As mentioned in tutorial , I was trying to make a new connection and I am getting following error
    Ora - 12505 : TNS Listener doesn't currently know of SID
    I gave SID as orcl, and seems to be working OK, can I use orcl for this tutorial
    Edited by: OrcArgusDev on Apr 13, 2012 9:01 AM
    Edited by: OrcArgusDev on Apr 13, 2012 9:11 AM

    Thanks, I'll survive. Just my luck, the first item I try to anon. debug didn't work! :)
    thanks, hopefully this problem will be few and far between

  • Get Started with Oracle 9i

    I am requesting information on Getting Started with Oracle 9i. Like the information, you have on your website for Get Started with 10g.

    You may find the Oracle by Example module on Oracle9i Database helpful:
    http://www.oracle.com/technology/obe/obe9ir2/index.html
    Regards, OTN

  • Starting with Oracle Spatial

    Hi, in few weeks I will have to start a new project in wich I will work with Oracle Spatial. I will like to know a good book, or any online resource to learn about this new world for me...
    Thanks a lot for your help...!!!

    Decide what version of Oracle you'll be using, then start here for documentation:
    http://www.oracle.com/technology/documentation/spatial.html
    Also Pro Oracle Spatial is essential reading:
    http://www.amazon.com/Pro-Oracle-Spatial-Euro-Beinat/dp/1590593839

  • Getting started with oracle and jdbc

    i have downloaded ojdbc14.zip from oracle.com
    it's documentation only tells you about the api and the packages and nothing about how to configure it.
    how do i get started? where do i unzip those files and what to do next?
    please help

    "The Old oracle.jdbc.driver Package Will Go Away Soon
    If you still have existing applications that use the
    old oracle.jdbc.driver
    package, now is the time to convert your code."
    And who is so foolish as to use concrete types
    instead of java.sql and javax.sql interfaces or embed
    driver class names in their code? Well, anybody who's more interested in optimal performance than being generic, and willing to put up with the headaches of that, such as providers of high-performance OR mapping tools or someone tuning a very heavily used bit. Or anybody working in a committed Oracle-only shop. It's not a one-size-fits-all world...
    Again, Oracle is evolving the standard. No, the standard is Sun's java.sql interface.Yea, Sun evolved Java, and Oracle is recommending the use of Datasources to keep step with that evolution...
    This still
    works, but Oracle is shifting away from <sid> and
    using <service name> instead. The alternate syntax
    for the URL is:
    String url=jdbc:oracle:thin:@<host>:<port>/<database>
    This has been true for as long as Oracle has had a
    thin, type IV JDBC driver. The URL syntax hasn't
    changed.
    Yes it has and Oracle says it has, here:
    http://download-west.oracle.com/docs/cd/B14117_01/java.101/b10979/urls.htm#BEIJFHHB
    Wherein it is written, in Section 3.2.1 of the Oracle� Database JDBC Developer's Guide and Reference, the sesction on the several supported URL formats for Oracle 10.1
    Notes:
    * Oracle Service IDs are no longer supported at 10g Release 1 (10.1).
    They go on to list three URL styles supported:
    Oracle Net connection descriptor - like an entry in tnsnames.ora (ick!)
    Thin-style service name - the most common, what was quoted above.
    LDAP syntax - for having an LDAP service resolve the database for you
    However, in the old 8.1.7 JDBC documentation, here:
    http://download-east.oracle.com/docs/cd/A87860_01/doc/java.817/a83724/basic1.htm#1006213
    Oracle lists support for:
    Net8 connection descriptor - Net8 is the old name for Oracle Net
    Thin-style sid name - what was quoted in the post to which I first responded.
    Thin-style sid name syntax has a colon between the port and the sid; thin-style service name syntax has a forward slash between the port and the service name. SIDs and service names are not the same thing, although they serve the same purpose in a URL (connecting you to the right instance) and often have the same value. However, a SID for a database is set at DB creation time, is unique to the DB, and cannot be changed easily. Multiple service names can be configured for a database, and they can easily be changed (if you're the DBA). Oracle is providing an additional leval of abstraction by moving to service names, to support additional features and choices. While many installations don't need all that and have in essence ignored the distinction bewteen SID and service name, some multi-database projects can benefit from it.
    >
    StuDerby, I think you should look into this a bit
    more. Your advice is far from optimal, IMO.
    Yeah, I could've taken the time to write a more generic, newbie friendly repsonse; instead, I lifted directly from the Oracle documentation that was cited earlier since newbies seem to have an aversion to reading documentation.

  • Getting started with Oracle 11g express edition

    I am currently in a college class doin SQL. I have downloaded oracle 11g express edition. I'm trying to get started and when I try to create a new connection it takes me to a screen where I have to sign in. When I use my oracle sign in and pass word it tells me it doesn't recognize it. No I know it works because I can sign in on the web site. But it won't connect me or allow me to make a new connection. I really don't understand what is going on. I can seriously use some help. Something that will take me step by step on what I need to do. I have to create a data base and I'm not sure how to do it.
    Thank You
    Carl Gavin

    Hello Carl,
    Something that will take me step by step on what I need to do.Sounds like what you are searching for is the [url http://docs.oracle.com/cd/E17781_01/admin.112/e18585/toc.htm]Getting Started Guide.
    If you need some advanced knowlege, there would be the "2 Day DBA Guide", which, among other topics, contains a section on [url http://docs.oracle.com/cd/E17781_01/server.112/e18804/connecting.htm#CEGIFAHF]Connecting to the Database. I think you'll find all necessary information (background and step by step description) you need.
    -Udo

  • General questions on how to get started with Oracle OEPE and databases

    My company has a server in the cloud, written using Ruby on Rails. The server is designed to work with a browser, so it communicates via standard HTTP.
    The server has an SQL database.
    The server sends and receives HTTP requests from clients, which are then used to either update the database or retrieve information from the database.
    The database can be edited from a separate admin dashboard.
    I have recently rewritten our client software as a native android app. The new app makes calls to the server that look like browser calls. I have used Eclipse to develop the Android app.
    Sounds pretty standard so far, right? :-)
    I now want to replace the Ruby on Rails server with a new Java server that I will write. I want to use Eclipse to develop the new server. During development, I want to be able to have the new Android app communicate with the development server software that will reside on my desktop.
    So I was thinking that Oracle's tools might be perfect for me, if only I knew which tools to use. There are lot to choose from. :-)
    I believe that all I need is OEPE and a database. I would like to keep it pretty simple. I don't want to learn 20 new tools. It will be enough effort to become proficient in OEPE and a database.
    I looked at "Oracle Database Tools >> Connecting to an Oracle database" in the help files for OEPE 12.1.1. I tried going through the help files for Database connections, but I got to a "New Connection Profile" form that asks me for a SID, a user name, a password, etc. I don't have any of those. I tried to enter some data in the forms and ping the database, but I could not get any results from the ping. So my first question is: Do I have to sign up for an Oracle database in the cloud or is there a database contained within the OEPE software that I just installed. I will have to do the former anyway when I eventually deploy my new server software, so maybe the right thing to do is sign up for the "database in the cloud" service now, and use it during development.
    The other question I have is about getting a simple application client and server application sample. I found a "hello world" example at http://docs.oracle.com/cd/E13224_01/wlw/docs103/guide/webapplications/workshopJSP/tutorialJSP/TutorialJSPMakeJSP.html, but that is for WLS 10.3 and it doesn't seem to match the 12.1.1 software very well.
    So does anybody know where I can find a simple client and server sample program for WLS 12.1.1?
    If I can get these two questions answered, I can start making some progress.
    Thanks in advance to anybody who can help me navigate this minefield.
    Jim

    I wanted to add some information to my previous posting.
    1. The server I will develop will communicate ONLY with Android and iOS native apps, so the interface will not be HTML or XML. The information sent by the server to the client will be JSON. The information sent by the client to the server will be HTTP parameters, usually in the form of URL-encoded form data. This is not a browser-to-server server interface, so JSP is probably not appropriate for the server. The communication protocol will be HTTP.
    2. I don't need anything fancy on the server side. The server will simply be a Java program that emits JSON responses to the client and receives URL-encoded form data from the client. The server program will also make database queries and update the database.
    3. I don't understand how my native Android app will be able to communicate with my development server code running on my desktop. I want that communication to be over the internet, but my desktop does not have a static IP address, so I don't see how the app will be able to address the development server software on my desktop PC. I don't want to deploy the server software into the cloud every time I start a debug run, but I don't see any other way for my app to be able to address the server code over the Internet.
    If anybody has any ideas, I would appreciate hearing them.

  • Getting started with oracle 10g

    hi everyone,i m trying to store n retrieve images thru JDBC to Oracle interMedia[i i m new to this...can anyone help in this by guiding how to make connectivity n other stuffs required..                                                                                                                                                                                                                                                                                                                                                                                                                                       

    I've not used any of the InterMedia packages; I would guess that they're just more-or-less straight-forward stored procedure calls.
    Oracle has lot of information on-line:
    JDBC samples, many of which are complete working programs
    http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/index.html
    JDBC Developers Guide and Reference
    http://download-east.oracle.com/docs/cd/B19306_01/java.102/b14355/toc.htm
    Some other JDBC links and the driver compatability chart...
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/index.html
    Also, you can download the JavaDocs for Oracle's extenstions to JDBC from the same place the drivers are available:
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
    If you don't want/need to use Intermedia, the JDBC examples include storage and retriaval of an image as a BLOB, in the LOB example.

  • Bad link Getting Started with Oracle AS Portal 10g

    The bottom next button will stay on the same page instead of advancing to the next page.
    http://www.oracle.com/technology/products/iportal/getstart/a_port05.htm
    -Henry Liao

    The next page goes back to page port5. Is this done for a good reason?
    http://www.oracle.com/technology/products/iportal/getstart/a_port06.htm
    -Henry Liao

  • Need schema files for tutorial in getting started with soasuite11gR1

    Hi
    I just started working on Getting started with Oracle SOA suite11gR1 book.
    I dont have schema files required for tutorial.
    Can an provide me the schema files.
    creditchecck.xsd
    fulfillment.xsd
    internalorder.xsd
    OrderBookingDiscount.xsd
    po.xsd

    This link: http://download.oracle.com/technology/products/soa/soasuite/books/SOA11g_GettingStarted.zip contains the good files
    Edited by: 851325 on 11 avr. 2011 05:04

  • Getting started with WebLogic Portal 11g

    Please can someone provide links to get started with Oracle WebLogic Portal 11g.

    There is no such thing as Weblogic Portal 11g. The latest release of WebLogic Portal is 10.3.2.
    Here is a link to the documentation page. Please review the Getting Started and Tutorials documents.
    http://download.oracle.com/docs/cd/E15919_01/index.htm
    Edited by: Brad Posner on Dec 9, 2010 2:15 PM

  • Starting with oracle Reports

    Hi
    I am working on sql server reporting services with oracle 10g DB.I would like to learn oracle reports.I have just got it installed in my vista PC
    Ps guide me with links/docs so that i can get started with oracle reports.
    at the outset i would like to know the bleow
    can i use a procedure returning a refcursor to run a report?
    if so how?
    Regards,

    Hello,
    You'll find many doc, examples, demos ... on OTN :
    http://www.oracle.com/technology/products/reports/index.html
    http://www.oracle.com/technology/documentation/reports.html
    http://www.oracle.com/technology/products/reports/htdocs/search.html?cat=ALP&col=ALC&submit=Search
    For the Ref Cursors :
    Oracle® Reports Building Reports
    10g Release 2 (10.1.2)
    B13895-01
    40 Building a Paper Report with REF CURSORs
    Regards

  • JDevloper and Getting Started with BPM 11g

    I have the latest version of Jdevloper 11.1.1.5, and I am not finding the BPM Application,
    as outlined in the Book Getting Started with Oracle BPM Suite 11gR1? The settings for the 'role" are just not there?
    Must I run Jdevloper 11.1.2.1? which then complains about the maintenance level.
    Can anyone comment on why, this feature would not be in 11.1.1.5 ?
    Edited by: user2738980 on Dec 7, 2011 9:35 PM
    Edited by: user2738980 on Dec 7, 2011 9:40 PM

    I attempted this option early on, an once again the BPM option was not in the update list, I install Spring, the tomcat ext... but there was no BPM ext. you do have a point here, is there a separate update center?
    I'm assuming that it would / should be in the default centers for the tool?
    Edited by: user2738980 on Dec 9, 2011 6:56 PM

  • Tips and advices on how to get started with coherence

    Hi,
    I am getting started with Oracle Coherence (for Java), but the start isn't so smooth:
    I don't find the documentation so useful for a really beginner user (even the getting started guide...It has a lot of information but doesn't really get you started in my opinion ... :) ).
    Can someone point me to some tutorial/doc that can help me ?
    Thanks in advance.
    Edited by: e.gherardini on 10-mar-2010 2.28

    Thank you.
    In fact I am reading also this:
    http://wiki.tangosol.com/display/COH35UG/Recommended+Reading
    and it seems really helpful.

  • Get started with Spatial

    Does anyone know how do I get started using the Spatial? We have Oracle8i server installed. Do I need to download any thing? Are there any samples I could look at?
    null

    If you have a typical enterprise edition install then you have spatial installed.
    To make sure, you can do a:
    select * from user_sdo_geom_metadata;
    You should get no rows back, but the view should be there for all users if spatial has been installed.
    For samples you could download the 8.1.7 tutorial from technet and look at the exercises.
    null

Maybe you are looking for

  • Problem closing an ActiveX created with the bridge and used in a scada.

    Hi all, I cretaed an ActiveX (using the bridge) to be used in a scada software. I inserted the activex in a panel and it opens and work properly when the panel is open. The problem is that when I close the panel, the scada doesnt free the memory. Is

  • No data in my bw system - need help!

    hi i am new in sap BW and i m trying to set up a bw system that loads cubes from a sap source system for a hospital basically what has happened up to now is i ve activated all the is-h infosources in my sap system and through rsa3 there i ve seen tha

  • FM or include that triggers Workflow in sap SRM 5.0.

    Hi All, Can anyone tell me the FM, for triggering a workflow in SAP SRM 5.0. I mean the name of the program or Include or an FM which finally triggers workflow while saving? Thanks, Edited by: Manoj Singh on Oct 6, 2011 6:51 PM

  • [SOLVED] Write access and owner of /srv/http

    I installed the Apache HTTP server as stated on the LAMP page of the Arch Wiki. The Wiki says that the installation creates a http user and group automatically. When I ls -l in /srv, it shows that the permissions of the http folder are drwxrwxr-x roo

  • I have a problem with a table not resizing correctly in some browsers

    Hi, I am using the fluid grid layout in DW. I have created a table to hold some images and text. I have the table set to 100% instead of a fixed width. The table and images resize correctly at my smartphone breakpoint in DW and Crome. They do not res