Parrallel tables with spatial operators

I have a point in polygon script that works, but in order to speed up the creation of the point table (~175M rows) I tried adding PARALLEL 4 and /*+ PARALLEL (t,4) */ Only the parallel part is new to the create point table sql.
I used CTAS to create a point table like this:
CREATE TABLE &OUT_POINT_SCHEMA..&OUT_POINT_TABLE NOLOGGING PARALLEL 4 TABLESPACE ORDERS_02
AS
SELECT /*+ PARALLEL (t,4) */
  cast(lpad(to_char(LON/1000000, '999.000000'),11) || lpad(to_char(LAT/1000000, '99.000000'),10) as varchar2(21))   ULL, 
  MDSYS.SDO_GEOMETRY(2001, 8307, MDSYS.SDO_POINT_TYPE(LON/1000000, LAT/1000000, NULL), NULL, NULL)    GEOM
FROM
  &IN_POINT_SCHEMA..&IN_POINT_TABLE
WHERE
  LON is not null
GROUP BY
  LON, LAT;The spatial index was created like this:
CREATE INDEX &OUT_POINT_TABLE._SIDX ON &OUT_POINT_TABLE (GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX PARAMETERS('TABLESPACE=ORDERS_IDX WORK_TABLESPACE=ORDERS_03 LAYER_GTYPE=POINT');In theory, should the sql still work when I use, for example SDO_INSIDE? Or are there other things that I need to take into consideration? In other words, would the fact that the spatial point table was created with a parallel option impact spatial queries. When I try to monitor the process of the point in polygon sql with a check_session script (I am not a DBA) I see 4 rows with the same sql text which I assume is due to the parallel 4 parameter and I am also seeing wait_events like async descriptor resize and wait_time -1. Sorry to be so vague but I am trying to figure out if this query has a chance of finishing or if i broke it by adding the parallel option. Any guidance or suggestions would be appreciated.
Thanks,
David

Yes, spatial operators (say SDO_INSIDE) can work in parallel queries.
If you can show us your query explain plan, it will be easier to see
how SDO_INSIDE is executed.

Similar Messages

  • ODCI error with spatial operators

    Hi group,
    I get ODCI errors with spatial operators SDO_RELATE, SDO_FILTER and SDO_WITHIN_DISTANCE (not SDO_NN) called from JDBC (Java 1.2.2).
    For example:
    SELECT A.gid FROM FeatureTable1 A, FeatureTable1 B WHERE B.gid = 3 AND SDO_RELATE(A.Geometry, B.Geometry, 'mask=ANYINTERACT querytype = WINDOW') = 'TRUE';
    Displays the error
    ORA-29902: error in executing ODCIIndexStart() routine
    Other functions such as SDO_AREA, SDO_NN work fine, though.
    Both feature tables where populated with the SDOAPI toolkit and indexed using a fixed index.
    I use a default full install of Oracle 8.1.6 on Linux RedHat 6.2.
    What's wrong? Do I need to install anything else on the server?
    Thanks for any advice.

    Hi Dan,
    There are several errors in the SampleNewToSDO.java sample. The outer polygons should be anti-clockwise, the inner polygons should be clockwise. Now that this is fixed, polygons (with or without inner polygons) do pass the validation test, but multipolygons do not.
    What's wrong with this multipolygon:
    double outerOrdArray1[] = {310, 310, 320, 310, 320, 320, 310, 320, 310, 310};
    LineString outerLineString1 = gF.createLineString(outerOrdArray1);
    double innerOrdArray1[] = {311, 311, 311, 319, 319, 319, 319, 311, 311, 311};
    LineString innerLineStrings1[] = new LineString[1];
    innerLineStrings1[0] = gF.createLineString(innerOrdArray1);
    collection[0] = gF.createPolygon((LineString)outerLineString1,
    (LineString[])innerLineStrings1);
    double outerOrdArray2[] = {410, 410, 420, 410, 420, 420, 410, 420, 410, 410};
    LineString outerLineString2 = gF.createLineString(outerOrdArray2);
    double innerOrdArray2[] = {411, 411, 411, 419, 419, 419, 419, 411, 411, 411};
    LineString innerLineStrings2[] = new LineString[1];
    innerLineStrings2[0] = gF.createLineString(innerOrdArray2);
    collection[1] = gF.createPolygon((LineString)outerLineString2,
    (LineString[])innerLineStrings2);
    geom = gF.createGeometryCollection(collection);
    Note that the sdoapi java library does not detect anything wrong with the geometry (isValid() returns true even when the order of vertices is wrong).
    Heterogenous collections are OK. Only multipolgons are wrong. To check whether the multipolygon was correctly stored in the table, I exported the table to XML using the SampleSDOtoXML.java sample. It looks good:
    <MultiPolygon>
    <Polygon name="0" srsName="0">
    <LineString name="0" srsName="0"> <CList>310.0,310.0 320.0,310.0 320.0,320.0 310.0,320.0 310.0,310.0</CList> </LineString>
    <LineString name="0" srsName="0"> <CList>311.0,311.0 311.0,319.0 319.0,319.0 319.0,311.0 311.0,311.0</CList> </LineString>
    </Polygon>
    <Polygon name="0" srsName="0">
    <LineString name="0" srsName="0"> <CList>410.0,410.0 420.0,410.0 420.0,420.0 410.0,420.0 410.0,410.0</CList> </LineString>
    <LineString name="0" srsName="0"> <CList>411.0,411.0 411.0,419.0 419.0,419.0 419.0,411.0 411.0,411.0</CList> </LineString>
    </Polygon>
    </MultiPolygon>
    So why does SDO_GEOM.VALIDATE_GEOMETRY return 13050? Is there a special vertex ordering rule for multipolygons?
    Thanks,
    Jean-Pierre
    null

  • Replicate Table with spatial columns

    I'd like to know how to
    replicate (updatable snapshot) a table
    with spatial columns.
    when i try to create a master repobject
    i've got ORA-23318 error.
    What can i do?
    null

    Hi Vincent,
    Oracle does not support replication of object in 8.1.6 or 8.1.7. I believe replication support is expected for the version after.
    Sorry,
    Dan

  • Cannot view table with spatial advisor

    I have loaded a table using SafeFME software. It did not populate SDO_GEOMETRY.SDO_SRID during the conversion from ArcInfo coverage to Oracle8i Spatial SDO_GEOMETRY.
    Since I could not view the spatial data with the spatial advisor, I ran the VALIDATE_LAYER procedure and found the error. At that point I INSERTed a value for SDO_SRID into my table, and into XXXX_SDO_GEOM_METADATA. Still cannot view the spatial data with spatial advisor. Why not?
    Platform: Sun Solaris
    Oracle8i 8.1.7
    Richard Clement

    Hi Dan:
    the Spatial Index Advisor message at the lower part of the apps' frame says 'Drew 3701 geometries' after I attempt to "Draw all geometries" (third button down on the left).
    After this, the viewport is blank. It is odd, though - it appears that the bounds are set correctly. When I add another "layer" and draw it, the viewport is referencing the correct area (the bounds for the first layer). This behavior occurs when the XXXX_SDO_GEOM_METADATA.SRID is either NULL or set to a value.
    Our MapXtreme app shows the same behavior (no display of data, no error message).
    I'll try to run the VALIDATE (layer and geometry) functions and procedures again.
    We have loaded some data with the routine using shp2sdo.exe (like in the tutorials) and those are drawing just fine. Strange.
    Richard Clement
    State of Alaska DNR

  • Error dialog when open index dialog on tables with spatial index

    Hi all,
    When I want to open in the preferences of a table with a spatial index the index dialog, then there appears the following message:
    "Index <myIndex> column GEOMETRY, datatype SDO_GEOMETRY is not a valid column type for use in a text index".
    I can only click the ok button, but I am not able to modify any of my set index.
    Does anyone else have the same problem?
    regards markus
    Version:
    Java: 1.6.0.16
    Oracle IDE: 2.1.1.64.39
    OS: Linux, Ubuntu 9.10
    Edited by: markusin on Mar 3, 2010 12:32 AM

    I have the same problem on SQLDev 2.1.1 for Windows. I hadn't this problem in 1.5.
    I must use a normal sql script to create spatial index.
    Vittorio

  • Cluster table with Spatial column

    Hi,
    I tried to create a spatial table(with one SDO_GEOMETRY column) with cluster on one attribute column. But I keep getting error ORA-03001: unimplemented feature.
    Is this mean that I can not cluster a table with SDO_GEOMETRY column?
    Thanks
    Helen

    Hi Helen,
    The parameter you mention is only for real application clusters, not for clustering columns of tables.
    As far as I can tell, when clustering columns of different tables together Oracle will try to
    store all of the data associated with those tables together on disk.
    The Oracle Spatial geometry datatype (mdsys.sdo_geometry) includes two varray types of
    length 1048576. Because these varrays can hold so much data Oracle "makes arraingements"
    to store data in these columns outside of the table in a lob segment (in reality, data is only
    stored out-of-line if there is over 4kb of data in the varray).
    Because of this (no ability to ensure the spatial data is stored with the clustering columns),
    the clustering mechnism is disabled when you have spatial data.
    I read through the doc and it is unclear - the only restriction I could find is using these columns
    as the clustering key.
    Hope this helps,
    Dan

  • How to optimize massive insert on a table with spatial index ?

    Hello,
    I need to implement a load process for saving up to 20 000 points per minutes in Oracle 10G R2.
    These points represents car locations tracked by GPS and I need to store at least all position from the past 12 hours.
    My problem is that the spatial index is very costly during insert (For the moment I do only insertion).
    My several tries for the insertion by :
    - Java and PreparedStatement.executeBatch
    - Java and generation a SQLLoader file
    - Java and insertion on view with a trigger "instead of"
    give me the same results... (not so good)
    For the moment, I work on : DROP INDEX, INSERT, CREATE INDEX phases.
    But is there a way to only DISABLE INDEX and REBUILD INDEX only for inserted rows ?
    I used the APPEND option for insertion :
    INSERT /*+ APPEND */ INTO MY_TABLE (ID, LOCATION) VALUES (?, MDSYS.SDO_GEOMETRY(2001,NULL,MDSYS.SDO_POINT_TYPE(?, ?, NULL), NULL, NULL))
    My spatial index is created with the following options :
    'sdo_indx_dims=2,layer_gtype=point'
    Is there a way to optimize these heavy load ???
    What about the PARALLEL option and how does it work ? (Not so clear for me regarding the documentation... I am not a DBA)
    Thanks in advanced

    It is possible to insert + commit 20000 points in 16 seconds.
    select * from v$version;
    BANNER                                                                         
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod               
    PL/SQL Release 10.2.0.1.0 - Production                                         
    CORE     10.2.0.1.0     Production                                                     
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production                        
    NLSRTL Version 10.2.0.1.0 - Production                                         
    drop table testpoints;
    create table testpoints
    ( point mdsys.sdo_geometry);
    delete user_sdo_geom_metadata
    where table_name = 'TESTPOINTS'
    and   column_name = 'POINT';
    insert into user_sdo_geom_metadata values
    ('TESTPOINTS'
    ,'POINT'
    ,sdo_dim_array(sdo_dim_element('X',0,1000,0.01),sdo_dim_element('Y',0,1000,0.01))
    ,null)
    create index testpoints_i on testpoints (point)
    indextype is mdsys.spatial_index parameters ('sdo_indx_dims=2,layer_gtype=point');
    insert /*+ append */ into testpoints
    select (sdo_geometry(2001,null,sdo_point_type(1+ rownum / 20, 1 + rownum / 50, null),null,null))
    from all_objects where rownum < 20001;
    Duration: 00:00:10.68 seconds
    commit;
    Duration: 00:00:04.96 seconds
    select count(*) from testpoints;
      COUNT(*)                                                                     
         20000                                                                      The insert of 20 000 rows takes 11 seconds, the commit takes 5 seconds.
    In this example there is no data traffic between the Oracle database and a client but you have 60 -16 = 44 seconds to upload your points into a temporary table. After uploading in a temporary table you can do:
    insert /*+ append */ into testpoints
    select (sdo_geometry(2001,null,sdo_point_type(x,y, null),null,null))
    from temp_table;
    commit;Your insert ..... values is slow, do some bulk processing.
    I think it can be done, my XP computer that runs my database isn't state of the art.

  • Tables with Spatial Columns sizing issues

    Oracle EE latest everything
    So I have a table of link data as in:
    describe links ;
    Name                            Null?    Type
    ID                                  NUMBER
    NETWORK_ID                             NUMBER
    BEG_NODE_ID                             NUMBER
    END_NODE_ID                             NUMBER
    GEOM                                  MDSYS.SDO_GEOMETRY
    LENGTH                              NUMBER(9,3)
    SPEED_LIMIT                             NUMBER(3)
    DETAIL_LEVEL                             NUMBER(3)
    IN_SYNCH                             NUMBER(1)
    CREATED                             DATE
    MODIFIED                             DATE
    CREATED_BY                             VARCHAR2(30)
    MODIFIED_BY                             VARCHAR2(30)
    MODSTAMP                             TIMESTAMP(6)Table is not partitioned and has at the moment about 69 million rows. ID, Network_id have your basic normal indexes on them.
    geom has a spatial index on it. So I guess my question is am I starting to push limits here for spatial index performance?
    In another thread here I read something that oracle will not use a spatial index for certain kinds of operations?
    The geometry that is recorded in each row is G_TYPE 2002 (line or curve) and as an example:
    SDO_GEOMETRY(2002, 8307, NULL,
    SDO_ELEM_INFO_ARRAY(1, 2, 1),
    SDO_ORDINATE_ARRAY(
    -97.35263,
    32.70169,
    -97.35277,
    32.70178,
    -97.35301,
    32.70185,
    -97.35319, 32.70186,
    -97.35347, 32.70184)
    )So John gave me this really great reply for how to look for a point in a bounding box using the:
    sdo_inside(geom, [create a 2003 geometry to describe a rectangle]) function. Now since this line is a series of points, can one still use the sdo_inside or would:
    sdo_anyinteract(geom,[create a 2003 geometry to describe a rectangle]) function be better?
    Thanks in advance.

    Her a little example. That I had not to build your tables and sdo_geom_metadata and spatial index, I used the SDO_GEOM.RELATE function instead of the spatial operator. The result is the same:
    --test relation line with point (second vertex of line)
    --  INSIDE
    SELECT SDO_GEOM.RELATE
    (SDO_GEOMETRY(2002, 8307, NULL,
        SDO_ELEM_INFO_ARRAY(1, 2, 1),
        SDO_ORDINATE_ARRAY(-97.35263,32.70169,-97.35277,32.70178,-97.35301,32.70185,-97.35319, 32.70186,-97.35347, 32.70184)),
      'INSIDE',
      SDO_GEOMETRY(2001, 8307, 
        SDO_POINT_TYPE(-97.35277,32.70178,0), NULL, NULL),
      0.01
    ) rel FROM dual; 
    REL                                                                            
    FALSE                                                                          
    1 row selected.
    --  TOUCH
    SELECT SDO_GEOM.RELATE
    (SDO_GEOMETRY(2002, 8307, NULL,
        SDO_ELEM_INFO_ARRAY(1, 2, 1),
        SDO_ORDINATE_ARRAY(-97.35263,32.70169,-97.35277,32.70178,-97.35301,32.70185,-97.35319, 32.70186,-97.35347, 32.70184)),
      'TOUCH',
      SDO_GEOMETRY(2001, 8307, 
        SDO_POINT_TYPE(-97.35277,32.70178,0), NULL, NULL),
      0.01
    ) rel FROM dual; 
    REL                                                                            
    FALSE                                                                          
    1 row selected.
    --  ANYINTERACT
    SELECT SDO_GEOM.RELATE
    (SDO_GEOMETRY(2002, 8307, NULL,
        SDO_ELEM_INFO_ARRAY(1, 2, 1),
        SDO_ORDINATE_ARRAY(-97.35263,32.70169,-97.35277,32.70178,-97.35301,32.70185,-97.35319, 32.70186,-97.35347, 32.70184)),
      'ANYINTERACT',
      SDO_GEOMETRY(2001, 8307, 
        SDO_POINT_TYPE(-97.35277,32.70178,0), NULL, NULL),
      0.01
    ) rel FROM dual; 
    REL                                                                            
    TRUE                                                                           
    1 row selected.You'll find the theory in the fine manua l.

  • Cannot alter partitioned table with spatial column in Oracle 11.2.0.2.0

    Hello,
    I possibly discovered a bug in Oracle 11.2.0.2.0
    This script works fine with Oracle *11.2.0.1.0*:
    create table GEO_TABLE (
    ID NUMBER(19) not null,
    PART_NAME VARCHAR2(50) not null,
    GEO_POS MDSYS.SDO_GEOMETRY,
    constraint PK_GEO_TABLE primary key (ID)
    SEGMENT CREATION IMMEDIATE partition by list ( PART_NAME ) (partition P_DEFAULT values (DEFAULT)) enable row movement;
    ALTER TABLE GEO_TABLE ADD (COLUMN2 NUMBER(8) DEFAULT 0 NOT NULL);
    With Oracle *11.2.0.2.0* (on SLES 11, 64bit) i will get this error message on the alter table statement:
    SQL-Fehler: ORA-00600: Interner Fehlercode, Argumente: [kkpoffoc], [], [], [], [], [], [], [], [], [], [], []
    00600. 00000 - "internal error code, arguments: [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s]"
    *Cause:    This is the generic internal error number for Oracle program
    exceptions.     This indicates that a process has encountered an
    exceptional condition.
    *Action:   Report as a bug - the first argument is the internal error number
    Can anyone reproduce this behaviour?
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE     11.2.0.2.0     Production
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    Edited by: user7425061 on 19.11.2010 12:04

    Metalink does not have any references for this error - please raise SR with Oracle support.

  • Performance issue when inserting into spatial indexed table with JDBC

    We have a table named 'feature' which has a "sdo_geometry" column, and we created spatial index on that column,
    CREATE TABLE feature ( id number, desc varchar, oshape sdo_gemotry)
    CREATE INDEX feature_sp_idx ON feature(oshape) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    Then we executed the following SQL to insert about 800 records into that table(We tried this by using DB visualizer and
    our Java application, both of them were using JDBC driver to connect to the oracle 11gR2 database) .
    insert into feature(id,desc,oshape) values (1001,xxx,xxxxx);
    insert into feature (id,desc,oshape) values (1002,xxx,xxxxx);
    insert into feature (id,desc,oshape) values (1800,xxx,xxxxx);
    We encoutered the same problem as this topic
    Performance of insert with spatial index
    It takes nearly 1 secs for inserting one record,compare to 50 records inserted per sec without spatial index,
    which is 50x drop in peformance when doing insertion with spatial index.
    However, when we copy and paste those insertion scripts into Oracle Client(same test and same table with spatial index), we got a totally different performance result:
    more than 50 records inserted in 1 secs, just as fast as the insertion without building spatial index.
    Is it because Oracle Client is not using JDBC? Perhaps JDBC was got something wrong when updating those spatial indexed tables.
    Edited by: 860605 on 19/09/2011 18:57
    Edited by: 860605 on 19/09/2011 18:58
    Edited by: 860605 on 19/09/2011 19:00

    Normally JDBC use auto-commit. So each insert can causes a commit.
    I don't know about Oracle Client. In sqlplus, insert is just a insert,
    and you execute "commit" to explicitly commit your changes.
    So maybe this is the reason.

  • How to realize the function like SDO_GEOM.SDO_BUFFER in Spatial Operators?

    Dear all,
    I wanted to use SDO_GEOM.SDO_BUFFER function to generate a
    buffer polygon around a geometry object while it is pretty slow
    to perform for a large spatial database. I think it better
    to use Spatial Operators for it takes advantage of spatial index.
    But within operators, there are no availble function. Can anyone
    tell me how to do it with Spatial Operators?
    Thanks a lot,
    Fan

    Fabio,
    Error 13349 indicates that the polygons intersect with themselves.
    You need to fix these errors. There are tools in MapInfo Professional 7.5 to check and automatically fix them. There are other tools commercially available which also fix geometry errors.
    If you know MapInfo I would fix these errors there.
    Ivan

  • Error while running spatial queries on a table with more than one geometry.

    Hello,
    I'm using GeoServer with Oracle Spatial database, and this is a second time I run into some problems because we use tables with more than one geometry.
    When GeoServer renders objects with more than one geometry on the map, it creates a query where it asks for objects which one of the two geometries interacts with the query window. This type of query always fails with "End of TNS data channel" error.
    We are running Oracle Standard 11.1.0.7.0.
    Here is a small script to demonstrate the error. Could anyone confirm that they also have this type of error? Or suggest a fix?
    What this script does:
    1. Create table object1 with two geometry columns, geom1, geom2.
    2. Create metadata (projected coordinate system).
    3. Insert a row.
    4. Create spacial indices on both columns.
    5. Run a SDO_RELATE query on one column. Everything is fine.
    6. Run a SDO_RELATE query on both columns. ERROR: "End of TNS data channel"
    7. Clean.
    CREATE TABLE object1
    id NUMBER PRIMARY KEY,
    geom1 SDO_GEOMETRY,
    geom2 SDO_GEOMETRY
    INSERT INTO user_sdo_geom_metadata (table_name, column_name, srid, diminfo)
    VALUES
    'OBJECT1',
    'GEOM1',
    2180,
    SDO_DIM_ARRAY
    SDO_DIM_ELEMENT('X', 400000, 700000, 0.05),
    SDO_DIM_ELEMENT('Y', 300000, 600000, 0.05)
    INSERT INTO user_sdo_geom_metadata (table_name, column_name, srid, diminfo)
    VALUES
    'OBJECT1',
    'GEOM2',
    2180,
    SDO_DIM_ARRAY
    SDO_DIM_ELEMENT('X', 400000, 700000, 0.05),
    SDO_DIM_ELEMENT('Y', 300000, 600000, 0.05)
    INSERT INTO object1 VALUES(1, SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(500000, 400000, NULL), NULL, NULL), SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(550000, 450000, NULL), NULL, NULL));
    CREATE INDEX object1_geom1_sidx ON object1(geom1) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    CREATE INDEX object1_geom2_sidx ON object1(geom2) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    SELECT *
    FROM object1
    WHERE
    SDO_RELATE("GEOM1", SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(500000, 400000, NULL), NULL, NULL), 'MASK=ANYINTERACT') = 'TRUE';
    SELECT *
    FROM object1
    WHERE
    SDO_RELATE("GEOM1", SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(500000, 400000, NULL), NULL, NULL), 'MASK=ANYINTERACT') = 'TRUE' OR
    SDO_RELATE("GEOM2", SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(500000, 400000, NULL), NULL, NULL), 'MASK=ANYINTERACT') = 'TRUE';
    DELETE FROM user_sdo_geom_metadata WHERE table_name = 'OBJECT1';
    DROP INDEX object1_geom1_sidx;
    DROP INDEX object1_geom2_sidx;
    DROP TABLE object1;
    Thanks for help.

    This error appears in GeoServer and SQLPLUS.
    I have set up a completly new database installation to test this error and everything works fine. I tried it again on the previous database but I still get the same error. I also tried to restart the database, but with no luck, the error is still there. I geuss something is wrong with the database installation.
    Anyone knows what could cause an error like this "End of TNS data channel"?

  • Spatial index creation for table with more than one geometry columns?

    I have table with more than one geometry columns.
    I'v added in user_sdo_geom_metadata table record for every column in the table.
    When I try to create spatial indexes over geometry columns in the table - i get error message:
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13203: failed to read USER_SDO_GEOM_METADATA table
    ORA-13203: failed to read USER_SDO_GEOM_METADATA table
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 8
    ORA-06512: at line 1
    What is the the solution?

    I'v got errors in my user_sdo_geom_metadata.
    The problem does not exists!

  • Bug driver 10g on Spatial tables with MapX

    I have migrated from 9i to 10g with spatial tables.
    I have the message "Error creating buffer" when I call the function SearchWithinDistance of MapX5, in VB6.
    The function works properly with database 9i or database 10g and driver 9 but gives the error with database 9i or database 10g and driver version 10. All other functions work well...
    Anyone can help ? Thanks

    Hi David,
    I had never heard of this bug before. Hopefully this info regarding a workaround will be what you need:
    This problem affects any REF or ADT ("user-defined" types) with NOT NULL.
    The workaround is to drop the NOT NULL constraint before exporting and adding it after importing.

  • Spatial index on table with object-column (and inheritance)

    Hi!
    Is it possible to create a spatial index on a table with an object-column (and inheritance) like this:
    CREATE OR REPLACE TYPE feature_type AS OBJECT (
    shape MDSYS.SDO_GEOMETRY
    ) NOT FINAL;
    CREATE OR REPLACE TYPE building_type UNDER feature_type (
    name VARCHAR2(50)
    CREATE TABLE features ( no NUMBER PRIMARY KEY, feature feature_type);
    [...] user_sdo_geom_metadata [...]
    Then
    CREATE INDEX features_idx ON features(feature.shape) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    throws:
    ORA-01418: specified index does not exist
    Curious! :)
    If I define feature_type with "NOT FINAL" option but without subtypes, I get (create index):
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01460: unimplemented or unreasonable conversion requested
    So I think besides object tables also inheritance isn't supported whith oracle spatial!?
    Thanks,
    Michael
    ps:
    We use Oracle9i Enterprise Edition Release 9.0.1.4.0 / Linux.
    Solves Oracle9i 9.2 this problems?

    Hi
    You'll need to be on 9.2 to do this....
    Dom

Maybe you are looking for

  • IPad is slow in processing Thai characters

    Hi I'm Thai and I use my iPad a lot for reading and writing. The iPad slowness has been an issue for me for so long. At first, I thought it was some apps that heavily use resources of my iPad, so I tried closing all inactive apps or restarting which

  • How to pass js variable to be used in managed bean constractor?

    Hi, I got a list of items that i present in <h:selectOneMenu on my page (the first page the user sees) the labels that are shown in the ><h:selectOneMenu are date + time , and the time itself is stored in the db in UTC without any + or - timezone off

  • Problems with Nested Styles

    I'm trying to create a nested style in In Copy CS5. What I want for it to do is to create the first few words with a certain character style then revert back to the Paragraph style setting. I have the nested style set to end with the end nested style

  • I am trying to set up weekly time restrictions to the internet

    My apologies for posting here as I know it's not a Safari issue... but I could not really find the right place for this question. What I need to do is an extension of Parental Controls.  The main difference is I want to do WEEKLY time allocation/rest

  • Many AppleTV's one home?

    There's been a lot of back and forth on the various boards comparing the value customers get from AppleTV versus just buying a Mini and directly attaching it to the TV set. I, like many, thought that way at first, and indeed pondered the purchase of