Gml in oracle

Hello, i'm looking for information about use of gml in oracle database. I wonder if is it possible to story gml data in db? and as a result of query get gml file?
greetings
Bart

HELLO;
1\but where can i find the XDK shiped with 9.2.0.1 ,i do can see some xdk directories in E:\oracle\ora92\xdk,but from my Winodws Start->programe->oracle_oraHome92,i can't find any entrance to XDK,should i install any components?
xdk_java_9_2_0_6_0 from ORACLE.com
can it work well with my oracle92.0.1?
2\another question:
I had installed my oracle92 DB successfully few days before ,and use Easloader upload some spatial data into it and it worked well.
but today when i try to open OEM,the OracleOraHome90ManagementServer can't be started ,when i open the OEM configuration assistant to see the material db,it ocur "ORA-12547£ºTNS£ºlost connection";Do you know why and how should i do?
Thanks a lot!!!

Similar Messages

  • Java Spatial API documentation Oracle 9.2

    Where can I find the documentation for the Oracle 9.2 Spatial Java API?

    I have written a Java stored proc for converting GML to sdo_geometry in Oracle 10:
        oracle.spatial.util.GML gml = new oracle.spatial.util.GML();
        oracle.spatial.geometry.JGeometry geometry = gml.fromNodeToGeometry(node); Now I want to do the same in Oracle 9 but I can't even find any documentation. Is it possible to use Java types like JGeometry in Oracle 9 in a Java stored proc?

  • Route engine

    Hi
    Oracle Spatial Route engine document introduces that in Route Request DTD, it is possible to write a route request that <Start Location> as below:
    <start_location>
    <input_location id="1">
    <Point>
    <coordinates>
    -122, 37
    </coordinates>
    </Point>
    </input_location>
    </start_location>
    But when i press submit button, it has errors:
    <?xml version="1.0" encoding="UTF-8" ?>
    <generic_error>java.lang.NoClassDefFoundError: oracle/spatial/util/GML at oracle.spatial.geocoder.common.XMLHelper4Geocoder.fillGCAddrFromPointElement(XMLHelper4Geocoder.java:259) at oracle.spatial.geocoder.common.XMLHelper4Geocoder.createGCAddrFromLocationNode(XMLHelper4Geocoder.java:333) at oracle.spatial.router.server.XMLHelper4Router.extractInputLocation(XMLHelper4Router.java:276) at oracle.spatial.router.server.XMLHelper4Router.extractLocation(XMLHelper4Router.java:255) at oracle.spatial.router.server.XMLHelper4Router.convert(XMLHelper4Router.java:207) at oracle.spatial.router.server.RouteServerServlet.processRouteRequest(RouteServerServlet.java:448) at oracle.spatial.router.server.RouteServerServlet.takeXMLRequestAndReturnResponse(RouteServerServlet.java:411) at oracle.spatial.router.server.RouteServerServlet.doPost(RouteServerServlet.java:272) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Unknown Source)</generic_error> [b]
    Can you help me to solve the errors
    Thanh a lot
    hai_va

    iva Ravada,
    Thanks your reply.
    (i) If I give a address instead of a point, route request works correctly
    (ii) I followed your instruction create spatial indexes on all the tables
    used by the geocoder (in Oracle sample data, it is gc_road_segment_us table) and write the request to work with point as below:
    <?xml version="1.0" standalone="yes"?>
    <route_request id="8"
    route_preference="shortest"
    road_preference="highway"
    return_driving_directions="true"
    distance_unit="meter"
    time_unit="second"
    return_route_geometry="true"
    xmlns:gml="http://www.opengis.net/gml">
    <start_location>
    <input_location id="1">
    <gml:Point>
    <gml:coordinates> -122.39382,37.79518</gml:coordinates>
    </gml:Point>
    </input_location>
    </start_location>
    <end_location>
    <input_location id="2">
    <gml:Point>
    <gml:coordinates> -122.40472,37.74164 </gml:coordinates>
    </gml:Point>
    </input_location>
    </end_location>
    </route_request>
    Coordinates of points are coordinates of addresses from (i)
    But have errors
    <?xml version="1.0" encoding="UTF-8" ?>
    <RouteServerException>[RSE-0206: Unexpected output format from Geocoder!!!]</RouteServerException>
    How can I use request to work with point?
    Thanks once again
    hai_va

  • Route Engine Problem, Please help

    Hi
    Oracle Spatial Route engine document introduces that in Route Request DTD, it is possible to write a route request that <Start Location> as below:
    <start_location>
    <input_location id="1">
    <Point>
    <coordinates>
    -122, 37
    </coordinates>
    </Point>
    </input_location>
    </start_location>
    But when i press submit button, it has errors:
    <?xml version="1.0" encoding="UTF-8" ?>
    <generic_error>java.lang.NoClassDefFoundError: oracle/spatial/util/GML at oracle.spatial.geocoder.common.XMLHelper4Geocoder.fillGCAddrFromPointElement(XMLHelper4Geocoder.java:259) at oracle.spatial.geocoder.common.XMLHelper4Geocoder.createGCAddrFromLocationNode(XMLHelper4Geocoder.java:333) at oracle.spatial.router.server.XMLHelper4Router.extractInputLocation(XMLHelper4Router.java:276) at oracle.spatial.router.server.XMLHelper4Router.extractLocation(XMLHelper4Router.java:255) at oracle.spatial.router.server.XMLHelper4Router.convert(XMLHelper4Router.java:207) at oracle.spatial.router.server.RouteServerServlet.processRouteRequest(RouteServerServlet.java:448) at oracle.spatial.router.server.RouteServerServlet.takeXMLRequestAndReturnResponse(RouteServerServlet.java:411) at oracle.spatial.router.server.RouteServerServlet.doPost(RouteServerServlet.java:272) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Unknown Source)</generic_error>
    Can you help me to solve the errors
    Thanh a lot
    hai_va

    iva Ravada,
    Thanks your reply.
    (i) If I give a address instead of a point, route request works correctly
    (ii) I followed your instruction create spatial indexes on all the tables
    used by the geocoder (in Oracle sample data, it is gc_road_segment_us table) and write the request to work with point as below:
    <?xml version="1.0" standalone="yes"?>
    <route_request id="8"
    route_preference="shortest"
    road_preference="highway"
    return_driving_directions="true"
    distance_unit="meter"
    time_unit="second"
    return_route_geometry="true"
    xmlns:gml="http://www.opengis.net/gml">
    <start_location>
    <input_location id="1">
    <gml:Point>
    <gml:coordinates> -122.39382,37.79518</gml:coordinates>
    </gml:Point>
    </input_location>
    </start_location>
    <end_location>
    <input_location id="2">
    <gml:Point>
    <gml:coordinates> -122.40472,37.74164 </gml:coordinates>
    </gml:Point>
    </input_location>
    </end_location>
    </route_request>
    Coordinates of points are coordinates of addresses from (i)
    But have errors
    <?xml version="1.0" encoding="UTF-8" ?>
    <RouteServerException>[RSE-0206: Unexpected output format from Geocoder!!!]</RouteServerException>
    How can I use request to work with point?
    Thanks once again
    hai_va

  • Loading into oralce

    hi friends.
    i have a requirement to load gml file  into oralce . i.e i have a file with extension *.gml(3.2)* . can any give me solution to load gml into oracle.
    thanks in advance

    Hi user13340372,
    You do not mention your database version so that makes your question complicated to answer.
    Well at the moment officially Oracle Spatial does not support GML 3.2. They only support GML 3.1 on 11g and GML 2.0 on 10g. So if you are using 10g you would need to write your own XML parser for GML 3.2 but you would need to directly parse them as CLOBs as the 10g XMLTYPE does not allow an XML payload greater than 64K. You'd be okay if all your data was points or if you could somehow guarantee that the vectors always fit under 64K. In general 10g is kind of a no go for GML 3.x in my opinion.
    If you are using 11g things are much better. In terms of the geometries themselves I have not found any difference from 3.1 to 3.2 beyond the change in namespace and the addition of the gml:id tag.
    See Oracle Spatial and support for GML 3.2.1?
    So you should be able to read your GML 3.2 into SDO_GEOMETRY fairly easily with SDO_UTIL.TO_GML311GEOMETRY. But please note that you cannot just throw your GML file at this utility and expect SDO_GEOMETRY to magically pop out. Rather you need to sift through your GML yourself isolating the geometry parts, capturing any needed attribute values and then input the geometry tags alone into the utility. Here is another forum post that might help
    Re: Convert KML to SDO_GEOMETRY
    Cheers and Happy New Year,
    Paul

  • Oracle 10g function to convert GML 3.1.1 to SDO_GEOMETRY

    In Oracle 11g there is a function available to convert GML 3.1.1 to SDO_GEOMETRY (SDO_UTIL.FROM_GML311GEOMETRY)
    However I need to support this in Oracle 10g that does not contain this function.
    Does anybody have this function for me in Java or PL/SQL?
    The Java classes GML, GML2, GML3 and GML 3g do not support GML 3.1.1 (with <patches>)
    Thanks for any help!
    Ron

    Hi Ron,
    I would second John's advice to go Simon's Java route as probably the best way to go if you are truly trapped on 10g. Note that were you to consider going the PLSQL route, the 10g XMLTYPE has a limitation of 64K for the payload of any XML tag. This means any GML linestring or polygon with more than 64K of coordinate data would not be possible to store or manipulate as XMLTYPE.
    ORA-31167: 64k size limit for XML node
    This makes using XMLTYPE tools to work with GML a bit of a bust on 10g. Moving to 11g is definitely something you want to consider if GML is in your requirements. Also, as a GML user please consider putting in an enhancement request to Oracle Spatial to support GML 3.2 and 3.3 (feel free to piggy back on 9788193).
    Oracle Spatial and support for GML 3.2.1?
    The 3.3 spec is due out any day now. The existing 11g reader/writer almost works with the new specs if they just added a few tweaks for gml:id and the namespace.
    Cheers,
    Paul

  • The problem of query in oracle xml db

    hello everybody!
    I create a table of xmltype,and insert data in it. But I query data ,the problem comes up.
    the xml instance is :
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- File: cambridge.xml -->
    <CityModel xmlns="http://www.opengis.net/examples" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/examples city.xsd">
         <gml:name>Cambridge</gml:name>
         <gml:boundedBy>
              <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
                   <gml:coord>
                        <gml:X>0.0</gml:X>
                        <gml:Y>0.0</gml:Y>
                   </gml:coord>
                   <gml:coord>
                        <gml:X>100.0</gml:X>
                        <gml:Y>100.0</gml:Y>
                   </gml:coord>
              </gml:Box>
         </gml:boundedBy>
         <cityMember>
              <River>
                   <gml:description>The river that runs through Cambridge.</gml:description>
                   <gml:name>Cam</gml:name>
                   <gml:centerLineOf>
                        <gml:LineString srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
                             <gml:coord>
                                  <gml:X>0</gml:X>
                                  <gml:Y>50</gml:Y>
                             </gml:coord>
                             <gml:coord>
                                  <gml:X>70</gml:X>
                                  <gml:Y>60</gml:Y>
                             </gml:coord>
                             <gml:coord>
                                  <gml:X>100</gml:X>
                                  <gml:Y>50</gml:Y>
                             </gml:coord>
                        </gml:LineString>
                   </gml:centerLineOf>
              </River>
         </cityMember>
         <cityMember>
              <Road>
                   <gml:name>M11</gml:name>
                   <linearGeometry>
                        <gml:LineString srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
                             <gml:coord>
                                  <gml:X>0</gml:X>
                                  <gml:Y>5.0</gml:Y>
                             </gml:coord>
                             <gml:coord>
                                  <gml:X>20.6</gml:X>
                                  <gml:Y>10.7</gml:Y>
                             </gml:coord>
                             <gml:coord>
                                  <gml:X>80.5</gml:X>
                                  <gml:Y>60.9</gml:Y>
                             </gml:coord>
                        </gml:LineString>
                   </linearGeometry>
                   <classification>motorway</classification>
                   <number>11</number>
              </Road>
         </cityMember>
         <cityMember xlink:type="simple" xlink:title="Trinity Lane" xlink:href="http://www.foo.net/cgi-bin/wfs?FeatureID=C10239" gml:remoteSchema="city.xsd#xpointer(//complexType[@name='RoadType'])"/>
         <!-- a mountain doesn't belong here! Uncomment this cityMember and see
    the parser complain!
    <cityMember>
    <Mountain>
    <gml:description>World's highest mountain is in Nepal!</gml:description>
    <gml:name>Everest</gml:name>
    <elevation>8850</elevation>
    </Mountain>
    </cityMember>
    -->
         <dateCreated>2000-11</dateCreated>
    </CityModel>
    I query it:
    set long 50000
    SELECT extract(value(X),
    '/CityModel/gml:boundedBy/gml:Box/gml:coord')
    FROM city X;
    ERROR:
    ORA-31011: XML 语法分析失败
    ORA-19202: XML 处理
    LPX-00601: Invalid token in: '/CityModel/gml:boundedBy/gml:Box/gml:coord' 时出错
    未选定行
    when query it again:
    set long 50000
    SELECT extract(value(X),
    '/CityModel/boundedBy/Box/coord')
    FROM city X; (it has no namespace)
    EXTRACT(VALUE(X),'/CITYMODEL/BOUNDEDBY/BOX/COORD')
    has no result.
    thank you very much!

    <?xml version="1.0" encoding="UTF-8"?>
    <!-- File: cambridge.xml -->
    <CityModel xmlns="http://www.opengis.net/examples" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance">
    <gml:name>Cambridge</gml:name>
    <gml:boundedBy>
    <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
    <gml:coord>
    <gml:X>0.0</gml:X>
    <gml:Y>0.0</gml:Y>
    </gml:coord>
    <gml:coord>
    <gml:X>100.0</gml:X>
    <gml:Y>100.0</gml:Y>
    </gml:coord>
    </gml:Box>
    </gml:boundedBy>
    <cityMember>
    <River>
    <gml:description>The river that runs through Cambridge.</gml:description>
    <gml:name>Cam</gml:name>
    <gml:centerLineOf>
    <gml:LineString srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
    <gml:coord>
    <gml:X>0</gml:X>
    <gml:Y>50</gml:Y>
    </gml:coord>
    <gml:coord>
    <gml:X>70</gml:X>
    <gml:Y>60</gml:Y>
    </gml:coord>
    <gml:coord>
    <gml:X>100</gml:X>
    <gml:Y>50</gml:Y>
    </gml:coord>
    </gml:LineString>
    </gml:centerLineOf>
    </River>
    </cityMember>
    <cityMember>
    <Road>
    <gml:name>M11</gml:name>
    <linearGeometry>
    <gml:LineString srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
    <gml:coord>
    <gml:X>0</gml:X>
    <gml:Y>5.0</gml:Y>
    </gml:coord>
    <gml:coord>
    <gml:X>20.6</gml:X>
    <gml:Y>10.7</gml:Y>
    </gml:coord>
    <gml:coord>
    <gml:X>80.5</gml:X>
    <gml:Y>60.9</gml:Y>
    </gml:coord>
    </gml:LineString>
    </linearGeometry>
    <classification>motorway</classification>
    <number>11</number>
    </Road>
    </cityMember>
    <cityMember xlink:type="simple" xlink:title="Trinity Lane" xlink:href="http://www.foo.net/cgi-bin/wfs?FeatureID=C10239" gml:remoteSchema="city.xsd#xpointer(//complexType[@name='RoadType'])"/>
    <!-- a mountain doesn't belong here! Uncomment this cityMember and see
    the parser complain!
    <cityMember>
    <Mountain>
    <gml:description>World's highest mountain is in Nepal!</gml:description>
    <gml:name>Everest</gml:name>
    <elevation>8850</elevation>
    </Mountain>
    </cityMember>
    -->
    <dateCreated>2000-11</dateCreated>
    </CityModel>
    SQL>create table city of xmltype;
    then insert the data into the table
    and query:
    set long 50000
    SELECT extract(value(X),
    '/CityModel/boundedBy/Box/coord')
    FROM city X; (it has no namespace)
    EXTRACT(VALUE(X),'/CITYMODEL/BOUNDEDBY/BOX/COORD')
    and I query it again:
    set long 50000
    SELECT extract(value(X),
    '/CityModel/gml:boundedBy/gml:Box/gml:coord')
    FROM city X;
    ERROR:
    ORA-31011: XML 语法分析失败
    ORA-19202: XML 处理
    LPX-00601: Invalid token in: '/CityModel/gml:boundedBy/gml:Box/gml:coord' 时出错
    未选定行
    ma oracle is 10g
    thank you very much!
    Message was edited by:
    user508129

  • Oracle Spatial functionality with WFS

    Hi all
    My first post here so be gentle on me ;-)
    This may be an obvious question but here goes ...
    When using a WFS client can you access the full SDO_... SQL functions within Oracle Spatial? I've had a read of the WFS spec and it is all a bit vague on how the queries get passed through to the data store.
    Also with the WFS locking, is this done at the web server level? If so how would that impact on any direct access to the database? A bit dangerous??
    Appreciate any advice on WFS implemtations with a 9i back end. I want to retain the full native Oracle functionality and still deploy via WFS ... a pipe dream??
    Thanks
    Richard

    Thanks for your response Andreas
    Sorry, perhaps I wasn't clear, I realise the WFS client will never directly access the data source, that it is the WFS server that makes the request to the data store, not the client, but can the call be passed through to Oracle as native SQL?
    I think I found the answer in the OGC Filter Encoding Imp Spec where it desribes in great detail the optional filter component of a WFS request. It desribes the CQL filter operators that include some spatial operators. These could, I understand, be translated from CGL and Feature based schema to SQL (in GML?) and relational based schema.
    While I don't think at first glance that the spatial operators in CQL match all the Oracle SDO_ functions they probably go far enough for most normal users.
    Am I on the right track?
    Does anyone know of any work that has been done in this filter translation to SQL and if it has been implemented successfully anywhere.
    I think the locks would still pose a problem, but that's for another day :-)
    Thanks
    Richard

  • Oracle spatial datasets

    Are there any sites from where i can get spatial data that can be downloaded to Oracle Spatial. I am doing project on spatial datawarehousing, so need some real data on climatic conditions for some span of time. I have searched a lot on google but can not find a good one. May be you can help me
    thanks

    All you can do is find sites that have shapefiles or GML for download
    and then use the appropriate loader to put into Oracle.
    There are NO sites that I know of that make data available in Oracle exporter format.
    S.

  • Bug in SDO_UTIL.TO_GML311_GEOMETRY with gml:Point?

    Hi folks,
    Looking at creating GML 3.1.1 from an SDO point and noticed that the results are not validating against the schema. From the official 3.1.1 schema at
    http://schemas.opengis.net/gml/3.1.1/base/geometryBasic0d1d.xsd
    you cannot have anything under gml:Point but gml:pos or gml:coordinates (or gml:coord but deprecated)
    However when I run the Oracle function on 11gR2 I get gml:posList instead.
    SELECT TO_CHAR(SDO_UTIL.TO_GML311GEOMETRY(
    SDO_GEOMETRY(2001, 8265, SDO_POINT_TYPE(-81.7121, 29.1844,NULL),NULL,NULL)
    )) FROM dualreturns
    <gml:Point srsName="SDO:8265" xmlns:gml="http://www.opengis.net/gml">
       <gml:posList srsDimension="2">-81.7121 29.1844 </gml:posList>
    </gml:Point> Is this just a simple bug or am I missing something? Seems odd that something so fundamental as generating a point could have a bug. I checked and the newer GML 3.2.1 specification is the same as this would not validate against it either.
    Cheers,
    Paul

    Hi folks,
    I completely forgot about this issue but recently noticed it was not fixed in the 11.2.0.2 update nor the October 2010 PSU.
    So I submitted it officially to Oracle Support as Bug 10411414.
    Cheers,
    Paul

  • Acquiring Oracle Spatial Data through WFS

    Hi,
    I have been researching for awhile and am slightly confused.
    I have Oracle Spatial 11g with geometry data and would like to be able to retrieve that data through a WFS to serve to a viewing application.
    Here's where I am confused:
    1) Spatial has a WFS service which needs to be configured. If I were configure that, would I be able to access the data through URL getFeature commands? The documentation I see for them has the getFeature requests in the form of XML files so I am not sure if I can do that. Also it seems like the service is returning .log files but I think I would want GML...
    If this is the option I should take, the tutorial to setup OC4J and the Web Services are for a Linux machine (http://www.oracle.com/technology/obe/11gr1_db/datamgmt/spatialws/spatialws.htm) -- Is there one for Windows 64bit?
    2) Do I need another "application layer" to enable this URL support? I know MapServer can use URL requests.. can I just run this against the data in my DB and forget about the Oracle WFS?
    3) MapViewer seems to work with WFS Themes and handle requests through Java and SQL.. is this another option?
    I am basically confused as to where everything sits and what I should be focusing on to get my Spatial data out of the DB through a WFS. Any assistance on this matter would be greatly appreciated!
    Thanks!

    Any help debugging this issue would be greatly appreciated:
    As per the documentation:
    http://localhost:8888/SpatialWS-SpatialWS-context-root/wfsservlet?request=GetCapabilities&service=wfs&version=1.0.0
    :this get request should return the capabilities info however I receive this error message instead in the browser:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ogc:ServiceExceptionReport version="1.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc http://localhost:8888/examples/servlets/xsds/OGC-exception.xsd" xmlns:ogc="http://www.opengis.net/ogc">
    <ogc:ServiceException code="WFS-1042">Exception during processing request</ogc:ServiceException>
    </ogc:ServiceExceptionReport>
    The sytem out from the oc4j container provides this error message:
    10/04/27 15:47:38 [oracle.spatial.ws.WSProperties, Tue Apr 27 15:47:38 MDT 2010,
    INFO] No subject specified in request.
    10/04/27 15:47:38 [oracle.spatial.ws.WSProperties, Tue Apr 27 15:47:38 MDT 2010,
    ERROR] Oracle Spatial WS Server could not set up configuration parameters: jav
    a.lang.RuntimeException: No subject specified in request.
    10/04/27 15:47:38 [oracle.spatial.ws.servlet.WFSServlet, Tue Apr 27 15:47:38 MDT
    2010, FATAL] java.lang.RuntimeException: java.lang.RuntimeException: No subject
    specified in request.
    at oracle.spatial.ws.WSProperties.getProperties(WSProperties.java:705)
    at oracle.spatial.ws.servlet.WFSServlet.doGet(WFSServlet.java:108)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:734)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:391)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequ
    estHandler.java:908)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:458)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpReque
    stHandler.java:226)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:127)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:116)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSo
    cketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(Server
    SocketAcceptHandler.java:234)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocket
    AcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(
    ServerSocketAcceptHandler.java:879)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.RuntimeException: No subject specified in request.
    at oracle.spatial.ws.WSProperties.getUser(WSProperties.java:574)
    at oracle.spatial.ws.WSProperties.getProperties(WSProperties.java:695)
    ... 16 more

  • Oracle error: java.sql.sqlrecoverableException: Closed Connection

    need help on this closed connection
    getting oracle error: java.sql.sqlrecoverableException: Closed Connection when running a java application using tomcat api to oracle 11g database EE 11.2.0.3.0 on windows 2008 R2
    The process is reading data from an Oracle database using user_sdo_geom_metadata , memory allocated to DB is 5GB, java pool size 1G allocated , below is the code which gets data from Oracle
    <NamedDataSourceDefinition:NamedDataSourceDefinition xmlns:NamedDataSourceDefinition="http://www.mapinfo.com/mxp" xmlns="http://www.mapinfo.com/mxp" xmlns:gml="http://www.opengis.net/gml"xmlns:ns2="http://www.mapinfo.com/midev/service/common/v1" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://www.mapinfo.com/midev/service/namedresource/v1"version="MXP_WorkSpace_1_5"> 
    <ConnectionSet/> 
    <DataSourceDefinitionSet> 
    <DBDataSourceDefinition id="TXLANDMARKS"> 
    <DataSourceName>txlandmarks</DataSourceName> 
    <ConnectionMember> 
    <InlineDBConnection dbType="oracle"> 
    <JDBCDriverParameters> 
    <JDBCUrl>jdbc:oracle:thin:@NOIORAENT2K8-64:1521:FMETEST</JDBCUrl> 
    <DriverPropertySet> 
    <Property name="user" value="NOIDADATADEV"/> 
    <Property name="password" value="mndata"/>
    </DriverPropertySet>
    </JDBCDriverParameters>
    </InlineDBConnection>
    </ConnectionMember>
    <DBTable owner="NOIDADATADEV" useQuotes="true">TXLANDMARKS</DBTable>
    </DBDataSourceDefinition>
    </DataSourceDefinitionSet>
    <DataSourceRef ref="TXLANDMARKS"/>
    </NamedDataSourceDefinition:NamedDataSourceDefinition>
    Both the machines can ping to each other successfully, no firewall exists between them, these are connection setting been used in pooling-datasource-factory.properties
    poolingDataSourceFactoryClass=com.mapinfo.midev.dbms.jdbc.TomcatDataSourceFactory
    # what follows are properties specific to com.mapinfo.midev.dbms.jdbc.TomcatDataSourceFactory
    # defaultAutoCommit - the default auto commit state of the connection. if
    # not set the assumes the driver default
    # defaultAutoCommit =
    # (int) The maximum number of active connections that can be allocated from # this pool at the same time. The default value is 20
    maxActive = 10
    # (int) The maximum number of connections that should be kept in the pool at # all times. Default value is maxActive. Idle connections are checked # periodically (if enabled) and connections that been idle for longer than
    # minEvictableIdleTimeMillis will be released.
    maxIdle = 10
    # (int) The minimum number of established connections that should be kept in  the pool at all times. The connection pool can shrink below this number if # validation queries fail. Default value is 10
    minIdle = 5
    # (int)The initial number of connections that are created when the pool is # started. Default value is 10
    initialSize = 5
    # (int) The maximum number of milliseconds that the pool will wait (when # there are no available connections) for a connection to be returned before # throwing an exception. Default value is 30000 (30 seconds)
    # maxWaitMillis = 30000
    # (int) The number of milliseconds to sleep between runs of the idle # connection validation/cleaner thread. This value should not be set under 1
    # second. It dictates how often we check for idle, abandoned connections,
    # and how often we validate idle connections. The default value is 5000
    # (5 seconds).
    # timeBetweenEvictionRunsMillis = 5000
    # (int) The minimum amount of time an object may sit idle in the pool before
    # it is eligible for eviction. The default value is 60000 (60 seconds).
    # minEvictableIdleTimeMillis = 60000
    # (boolean) Flag to remove abandoned connections if they exceed the
    # removeAbandonedTimout. If set to true a connection is considered abandoned
    # and eligible for removal if it has been in use longer than the
    # removeAbandonedTimeout Setting this to true can recover db connections
    # from applications that fail to close a connection. See also
    # logAbandoned The default value is false.
    # removeAbandoned = false
    # (int) Timeout in seconds before an abandoned(in use) connection can be
    # removed. The default value is 60 (60 seconds). The value should be set to
    # the longest running query your applications might have.
    # removeAbandonedTimeout = 60
    # (boolean) Flag to log stack traces for application code which abandoned a
    # Connection. Logging of abandoned Connections adds overhead for every
    # Connection borrow because a stack trace has to be generated. The default
    # value is false.
    # logAbandoned = false
    # (long) Time in milliseconds to keep this connection. When a connection is
    # returned to the pool, the pool will check to see if the now
    # - time-when-connected > maxAge has been reached, and if so, it closes the
    # connection rather than returning it to the pool. The default value is 0,
    # which implies that connections will be left open and no age check will be
    # done upon returning the connection to the pool.
    # maxAgeMillis = 0

    Hi,
    I understand that you have raised a SR for this issue which is being worked upon by our team.
    Additionally, please note that the "Closed connection" error typically happens because a timeout parameter of some sort timed out the connection. This could be a parameter specified in your datasource, in your application code, or network (such as a firewall).
    You may also want to -
    1.  check your database to be sure it is not timing out connections.
    2.  Make sure your network is running efficiently and that it can provide fast connections,
    3. Check your Java Virtual Machine (JVM) Code Cache For Oracle Enterprise Data Quality for any memory related issues
    Thanks,
    Shwet

  • Import a shape file to oracle spatial format within an oracle pl/sql proced

    hi,
    My task is to import an esri sde shape file to oracle sdo format within pl/sql procedure.
    i am using oracle 10g, arcgis 9 and arcsdo, geometry type is line, please anyone could help how can i achieve this task, would be very thankful
    Best Regards,

    There are no "in database" tools around that do this AFAIK. Most/all tools are external to the database and have to be invoked externally.
    If you created an external "batch file" that did the right processing, you would still have to work out how to execute this batch file from within Oracle. AFAIK the standard method is to use create custom code that uses DBMS_PIPE to communicate with the operating system to execute the batch file. DBAs hate this approach and it does require programming.
    The other method could be to write a trivial piece of Java that when passed the full path to the batch file executes the file. You would then load the compiled Java class into the Oracle JVM and then create a simple PL/SQL wrapper around it. I can't do it at the moment, but can come back with the code and instructions later on in the week.
    <SHAMELESS PLUG>
    As an aside (it seems appropriate to mention this now), I have been developing tools that do run inside the Oracle JVM an can export Oracle data (including sdo_geometry) to a number of formats:
    * xSV (ie comma separated, tab separated, any other single character)
    * Excel Spreadsheet
    * ESRI Shapefile (including the writing of the PRJ file using a user supplied PRJ string and also I write a MapInfo TAB file to "wrap" the shapefile).
    When exporting to xSV or Excel Spreadsheet one can chose to encode the SDO_GEOMETRY data as GML or WKT.
    (I am working on a KML exporter as well.)
    However, note that these tools EXPORT data and do not IMPORT data.
    The tools, currently are running in production at a customer site (tabbed shapefile export option) and work well. Export jobs are defined and given to the Oracle JOB or SCHEDULER and correctly run at the appropriate time writing the data to an operating system directory defined internally (with appropriate permissions) as an Oracle Directory object.
    I am now considering selling the exporter tool and am looking for testers. (The pricing of these tools will be exceedingly low.)
    </SHAMELESS PLUG>
    Now, while I hadn't planned to write any importer for a shapefile for my Exporter, I might consider it if you get stuck and can't find a satisfactory tool.
    regards
    Simon

  • Extended WKT notation in Oracle Spatial

    Hi,
    I have a AutoCAD spatial filter condition as follows,
    GEOM ENVELOPEINTERSECTS GeomFromText('POLYGON XYZ ((-60 45 0, 40 15 0, 30 15 0, -60 48 0, -60 33 0))').
    When I try to get the geometry in Oracle Spatial as below,
    Select SDO_UTIL.from_WKTGEOMETRY('POLYGON XYZ ((-60 45 0, 40 15 0, 30 15 0, -60 48 0, -60 33 0))') from dual;
    I am getting an error as "[Error] Execution (2: 8): ORA-29532: Java call terminated by uncaught Java exception: java.sql.SQLException: oracle.spatial.util.GeometryExceptionWithContext: java.lang.RuntimeException: Opening parentheses missing -3
         at oracle.spatial.util.WKT$WKTInputStream.readStartList(WKT.java:223)
         at oracle.spatial.util.WKBasis.readStartList(WKBasis.java:1542)
         at oracle.spatial.util.WKBasis.toJGeometry_WKB_POLYGON(WKBasis.java)
         at oracle.spatial.util.WKBasis.toJGeometry(WKBasis.java:1077)
         at oracle.spatial.util.WKBasis.toJGeometry(WKBasis.java:1033)
         at oracle.spatial.util.WKBasis.toSTRUCT(WKBasis.java:148)
         at oracle.spatial.util.Adapters.wktToSTRUCT2(Adapters.java:208)
         at oracle.spatial.util.Adapters.wktToSTRUCT(Adapters.java:198)
         at oracle.spatial.util.Adapters.wktToSTRUCT(Adapters.java:188)
    ORA-06512: at "MDSYS.SDO_UTIL", line 187"
    Validating the geometry gives null,
    SQL> Select SDO_UTIL.validate_WKTGEOMETRY('POLYGON XYZ ((-60 45 0, 40 15 0, 30 15 0, -60 48 0, -60 3
    3 0))') from dual;
    SDO_UTIL.VALIDATE_WKTGEOMETRY('POLYGONXYZ((-60450,40150,30150,-60480,-60330))')
    null null
    What am I doing wrong here? Also what is the equivalent sdo_util funtion for ENVELOPEINTERSECTS?
    Thanks.
    Ananda

    Hi folks,
    We talked in the past that a lot of this confusion could be mitigated if the Oracle documentation just stated clearly what version of the OGC specification the WKT functions support. Been a bit of talk on the forum recently on various OGC support issues and it strikes me as being kind of unproductive since nothing has changed in terms of OGC support since... I guess since the GML 3.1.1 functions were released with 11gR1. Is that correct? And before that? So the situation could be termed as being "very stable". :)
    Oracle Spatial WKT functionality (as of 11.2.0.3) pretty simply only supports the Simple Features 1.1 specification. End of story. Be nice if it said so here:
    http://docs.oracle.com/cd/E11882_01/appdev.112/e11830/sdo_util.htm#SPATL1234
    I'll try this weekend to submit an enhancement request for that as I don't think anyone else has.
    Meanwhile most of us either use Simon's JTS solution or long ago coded our own readers/writers in PLSQL.
    I've been trying to think of ways we could somehow inspire more forum users to submit SRs on the issues they bring up here. I am as lazy as the next person on the matter. Maybe some kind of point rewards for putting in SRs? I am not looking for folks to just knee-jerk submit SRs to every posting, but clearly there are some communities of interest (GML users for example) that could document their collective concerns through metalink.
    Cheers,
    Paul

  • Is it a good idea to use oracle database to process the geometry data?

    I am working on a map related project. Here are the stops I need to do.
    1. load geometry information from a table with spatial filter and other conditions (where clause)
    2. get the points from the geometry column (sdo_geometry)
    3. transform the coordinates
    4. encoding the coordinates
    5. output
    We have a third party applicaiton that can do both #2 and #3. However the process is slow. Some quick tests show that all the steps from #1 to #4 can be done within oracle and the speed is faster. My concern is if it is a good approach to use oracle, a database server, to do all the data processing that can be done and normally shoudl be done on a web server.
    Any adivce please?
    (BTW, we use oracle 10g on windows 2008R2 64bit, and we may upgrate to 11g in about a year.)

    Hi Simon,
    Thanks for your help.
    Yes all the steps can be done within the database side (Oracle). However I could do the same (extracting the coordinates from the sdo_geometry column, transforming the coordinates and encoding the coordinates) in .net code (web server side) by making use of the new verison of the odp.net. So I have to make a decision now to choose which approach to go, relying on Oracle server to do all the data processing or .net code. I am pretty sure Oracle can process a single request fairly quick, but if tens or even more concurrent requests for the process, I have concerns over the performance or reliability of the database server, especially the server is (a kind of ) beyond of our control (in control of the midware, IS and network team). Somebody said database is just a database and for data storing and retrieving, but may not for processing the data.
    Here is more information regarding what we are doing. We use Google Map API to disply parcels. Each time the map is loaded, panned, zoomed, or refreshed (and so on), we need to query the database with spatial filter and some other criteria. The result will be tens or up to handreds of parcels containing hundreds to thousands of coordinates that are extracted from the parcel table that has a sdo_geometry column. We are expecting tens to hundreds of these requests every minute.
    Now I am trying to chain every step together and do some tests using both appoachs in order to see which way is more effient and promising. I am guessing there won't be too much difference in terms of the performance for some simple testing unless I run some load testing, or if somebody like you guys can help me out.
    1. load geometry information from a table with spatial filter and other conditions (where clause)
    Regarding the issues you asked:
    ====================================
    I assume you mean something like: Yes
    CREATE TABLE load_table AS SELECT ID, GEOM FROM base_table where SDO_INSIDE(....) = 'TRUE';
    2. get the points from the geometry column (sdo_geometry)
    I assume you mean something like: Yes
    SELECT ID, v.x, v.y FROM load_table l, TABLE(sdo_util.getVertices(l.geom)) t;
    (See last comment about data.)
    The problem is that we need a lot more information on what it is that you want to do in steps 3 - 5.
    3. Transform the coordinates.
    What sort of transformation? Rotation, Shift, Scale, Coordinate rounding? Transform from UTM to LatLng
    4. Encoding the coordinates
    What do you mean by this? Write them out as WKT/KML/GML? Google map encoded polylines
    5. Output
    Again, output to what, where? A new table? A shapefile? A text file? JSONP formatted data
    Also, if you can provide a single sdo_geometry object + data and some example SQL it would help as well.
    Here is an example where I take a geometry, rotate it (cf 3. Transform), extract vertices (2. get points), encode it (4. Encoding), and then output to screen (5. Output).
    WITH myGeom As (
    SELECT 1 as id,
    MDSYS.SDO_GEOMETRY(2006, NULL, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1,5,2,1), MDSYS.SDO_ORDINATE_ARRAY(355600.52, 5407396.19, 361365.32, 5408106.36, 356488.27, 5409242.37, 357437.46, 5406457.67)) as geom
    FROM DUAL
    SELECT g.id || ',' || t.x || ',' || t.y as csv
    FROM myGeom g,
    TABLE (sdo_util.getVertices(
    GEOM.Rotate(p_geometry => g.geom,
    p_tolerance => 0.005,
    p_rotatePt => MDSYS.SDO_Point_Type(357437.46,5406457.67,NULL),
    p_rotation => 45 ))) t;
    -- Results
    CSV
    1,355474.91,5405822.39
    1,359049.08,5410400.89
    1,354797.2,5407755.57
    1,357437.46,5406457.67
    Now show us what it is you want to do!!
    Edited by: James Dong on May 31, 2012 11:41 AM

Maybe you are looking for

  • Blank Row in ALV Grid Display

    In ALV Display I want to have a <u>BLANK row</u> everytime the value of 'Cross Company Code Document Number' (BVORG) changes. Is there a way to use the Sort Option of "REUSE_ALV_GRID_DISPLAY" to do this? Or is the only possible way is by modifying th

  • PDF distribution to include documents that have been linked

    Hi, we have some large PDF documents (for medical device regulation), in which we have hyperlinks to documents stored on our server (e.g. test reports).  Is there a way to enable us to distribute this PDF portfolio AND INCLUDES the documents referred

  • Links

    not sure if this question should be here or at Indesign. I created a document with Indesign, exported it to PDF. From within Acrobat, I created Links for the title of contents pages; when I click a title, I go to the appropriate page. It works great.

  • Com.apple.kerberos.kdc certificate

    The com.apple.kerberos.kdc certificate is a self signed root certificate(atleast it claims to be so) and is from a non trusted source. Should i keep it? Also, there is(was) another certificate that i accidentally deleted that too claims to be related

  • Objheap.cp​p

    I have a VI that was generated in Labview 5 under WFWG 3.11. I cannot open it in windows 98; some of the sub VI's open but the main program gives the following error: Failure: "objheap.cpp", line 480. Any clues. I'm currently using version 6.1. Thank