Data Modeler - cannot create a spatial index

Good day, colleagues!

I have a version 584 of the Modeler of Dala.

Here is her quote Guide of Modeler of Oracle SQL Developer data:

"Properties of spatial definition 3.82.
...
Benchmark ID: Value Oracle Spatial SRID. ...
+ Create Spatial Index: Determines if a spatial index is created. +
Name of the spatial Index: name of the spatial index.
..."

I have a SDO_GEOMETRY column in my table and want to create the spatial index.

The problem is that there is no option "Create Spatial Index" in my space definition properties window. There is only 'The Spatial Index name' option. When I am creating the spatial index manually, I can't, because the option 'Space' for index creation is not active. I checked the table option 'Save as space Table', but it also did not help.

So, I have no way to create a spatial index. How can I do?

Hello usamytch,

create spatial index is confusing. We will improve it in future releases. Here are the steps:
(1) creation of index - no need to add columns
(2) create the spatial column definition ('space properties' in the dialog table)
(3) in the definition of the spatial column, you can select the size of the spatial column, coordinate ID system, and you can select one of the existing indexes to be used as a space.
(4) after this index appear as space and you can define the spatial properties in the index dialog box
(5) you must check 'Save as space Table' in order to get meta-space data generated by DDL

There are additional space properties, that you can set in the physical model.

Philippe

Tags: Database

Similar Questions

  • Cannot create the spatial index

    It's a little bit of the puzzle for me this one, I made this little time on different system and I do not understand why it's here

    Oracle 11.1.0.7 Windows 64-bit

    We have simple following table:

    CREATE TABLE DASHBOARD. DSGEOEXCEPTION
    (
    GEOIDE NUMBER NOT NULL,
    ZORDER INTEGER DEFAULT 0 NOT NULL.
    HOUSENO VARCHAR2 (100),
    STREET VARCHAR2 (100),
    VARCHAR2 (100) SUBURBAN,.
    CITY VARCHAR2 (100),
    COUNTY OF VARCHAR2 (100),
    DESCRIPTION VARCHAR2 (200),
    MDSYS FORM. SDO_GEOMETRY
    )
    LOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    NOMONITORING;

    ALTER TABLE DASH. (ADD) DSGEOEXCEPTION
    CONSTRAINT DSGEOEXCEPTION_PK
    KEY ELEMENTARY SCHOOL
    (GEOIDE)) ;



    Insert values (user_sdo_geom_metadata)
    "DASHBOARD. DSGEOEXCEPTION',.
    "FORM."
    MDSYS. () SDO_DIM_ARRAY
    MDSYS. SDO_DIM_ELEMENT ('LONGITUDE',-180, 180, 0.00005),
    MDSYS. SDO_DIM_ELEMENT ('LATITUDE',-90, 90, 0.00005)
    ),
    8307);

    until then, everything is good.

    I run the two sql suite to ensure that everything is fine

    Select * from USER_SDO_GEOM_METADATA;
    Dashboard. DSGEOEXCEPTION, shape, ((LONGITUDE,-180, 180, 5E-5), (LATITUDE, -90, 90, 5th-5),), 8307
    select * from mdsys.sdo_geom_metadata_table
    DASHBOARD, dashboard. DSGEOEXCEPTION, shape, ((LONGITUDE,-180, 180, 5E-5), (LATITUDE, -90, 90, 5th-5),), 8307
    select * from ALL_SDO_GEOM_METADATA;


    first 2 return one row as planned last returns nothing

    creating the index

    CREATE INDEXES DASH. DSGEOEXCEPTION_SIDX ON DASHBOARD. DSGEOEXCEPTION
    (FORM)
    INDEXTYPE IS MDSYS. SPATIAL_INDEX
    NOPARALLEL;

    or

    CREATE INDEXES DASH. DSGEOEXCEPTION_SIDX ON DASHBOARD. DSGEOEXCEPTION
    (FORM)
    INDEXTYPE IS MDSYS. SPATIAL_INDEX;


    fails with the error:

    ORA-29855: an error has occurred in the execution of routine ODCIINDEXCREATE
    ORA-13203: cannot read the notice USER_SDO_GEOM_METADATA
    ORA-13203: cannot read the notice USER_SDO_GEOM_METADATA
    ORA-06512: at the 'MDSYS. SDO_INDEX_METHOD_10I', line 10



    According to one of the posts, I run this

    ALTER session set current_schema = MDSYS;
    @$ORACLE_HOME/md/admin/prvtgmd.plb

    but no difference I can always create index


    Any suggestions?

    Please, try the following:

    Insert values (user_sdo_geom_metadata)
    "DSGEOEXCEPTION,"
    "FORM."
    MDSYS. () SDO_DIM_ARRAY
    MDSYS. SDO_DIM_ELEMENT ('LONGITUDE',-180, 180, 0.00005),
    MDSYS. SDO_DIM_ELEMENT ('LATITUDE',-90, 90, 0.00005)
    ),
    8307);

  • How to find duplicate keys found when error ORA-01452: cannot CREATE a UNIQUE INDEX.

    Hi gurus,

    I fall for this stupid error

    "cannot CREATE a UNIQUE INDEX; duplicate keys found.


    It is that the Unique Index key is composed of multiple columns

    CREATE A UNIQUE KEY001AUTORISATIONS_APPORT ON TFT_AUTORISATIONS_APPORT INDEX

    (AUT_APPORTEUR, AUT_AGENCE, AUT_PRODUIT, AUT_OPTION, AUT_TARIF, AUT_DATE_AUTORISATION)

    TABLESPACE KEYS_TFT NOPARALLEL NOLOGGING

    Now,.

    My question is, how to find duplicates keys blocking Index creation?

    Thanks if you can help

    Run this query to display the list of the duplicates already existing.

    Select AUT_APPORTEUR, AUT_AGENCE, AUT_PRODUIT, AUT_OPTION, AUT_TARIF, AUT_DATE_AUTORISATION, count (1) as cnt

    of TFT_AUTORISATIONS_APPORT

    Group

    AUT_APPORTEUR, AUT_AGENCE, AUT_PRODUIT, AUT_OPTION, AUT_TARIF, AUT_DATE_AUTORISATION

    view count (1) > 1

    Concerning

    NJ

  • Error creating the Spatial Index for SRID 8307 on newly hardened database

    Oracle 11g Rel2, Windows 2003 platform

    Help, please...

    Meeting with error message:
    ERROR on line 1:
    ORA-29855: an error has occurred in the execution of routine ODCIINDEXCREATE
    ORA-13249: internal error in the Spatial index: [mdidxrbd]
    ORA-13249: geodetic initialization error turn
    ORA-13249: SRID 8307 does not exist in the table MDSYS.CS_SRS
    ORA-29400: data cartridge error
    ORA-04063: package body 'MDSYS. SDO_CS"contains errors
    ORA-06512: at the 'MDSYS. SDO_INDEX_METHOD_10I', line 10

    After running the command

    INSERT INTO USER_SDO_GEOM_METADATA VALUES
    ("PointGeometry",
    "pointGeom,"
    MDSYS.sdo_dim_array (mdsys.sdo_dim_element ('Longitude',-180, 180, 1),
    mdsys.sdo_dim_element('Latitude',-90,90,1)),
    8307
    );

    CREATE the INDEX IDX_POINTGEOMETRY on PointGeometry (pointGeom) indextype is mdsys.spatial_index parameters('LAYER_GTYPE=POINT');

    When I ask mdsys.sdo_cs I see that there are actually SRID 8307. This index was created in this schema without problem. The problem only arises once the hardened customer database and we tried to recreate the schema (and index).

    Probably not coincidentally, I also get error:
    ORA-29855: an error has occurred in the execution of routine ODCIINDEXCREATE
    ORA-04063: package body "CTXSYS. DRIXMD' has errors
    ORA-06508: PL/SQL: called program unit is not found: 'CTXSYS. DRIXMD ".
    ORA-06512: at "CTXSYS. DRUE", line 145
    ORA-06512: at "CTXSYS. TEXTINDEXMETHODS', line 366
    ORA-04063: package body "CTXSYS. DRIXMD' has errors
    ORA-06508: PL/SQL: called program unit is not found: 'CTXSYS. DRIXMD ".

    When attempting to create and index Oracle Text context.

    Your help is greatly appreciated.

    Then, that's the problem.

    MDSYS user now has not run, and select privileges on the dbms_lob package.

    You must grant privileges on this package in MDSYS.

    Note that you can run into other issues of privilege package like this, so you must correct all by the granting of the
    required privileges for MDSYS.

    Siva

  • SQL Developer, Data Modeler, cannot print

    I can't print any logic or relationship patterns of the Data Modeler.
    I'm currently running SQL Developer 3.0.04 on a Windows 7 PC and my printer works fine.
    When I run the print menu, it shows the number of pages that must be printed OK, I invoke the impression, but blank pages are printed.
    The sequence of menu that I used is:
    File Data-> shape-> print-> print.
    Any suggestions would be helpful, please advise.

    You can look here Re: problem with printing of relational diagram

    Philippe

  • Cannot create a bitmap index

    Hello
    I want to create an index of bitmap on one of the columns in a table. I did request and it failed.
    SQL> CREATE BITMAP INDEX TRANS_N_BITMAPIDX_VEH_PLATFORM ON TRANSACTION_NEW(VEH_PLATFORM) LOCAL;
    
    Error starting at line 2 in command:
    CREATE BITMAP INDEX TRANS_N_BITMAPIDX_VEH_PLATFORM ON TRANSACTION_NEW(VEH_PLATFORM) LOCAL
    Error at Command Line:2 Column:70
    Error report:
    SQL Error: ORA-01408: such column list already indexed
    01408. 00000 -  "such column list already indexed"
    *Cause:    
    *Action:
    I found there is a NORMAL index combined with VEH_PLATFORM column called "IDX$ $_30AA00021. He followed columns

    • VEH_PLATFORM
    • VEH_MODEL
    • MODL_YR_NBR
    • VEH_MAKE
    • TXN_PROCS_DT

    But I was able to create bitmap index on columns VEH_MODEL, MODL_YR_NBR, and VEH_MAKE without any error.

    Why does error for the VEH_PLATFORM column?

    Kind regards
    Sam

    So the error message was true. You had already indexed this column

    INDEX_OWNER                    INDEX_NAME                     COLUMN_NAME                    COLUMN_POSITION
    ------------------------------ ------------------------------ ------------------------------ ---------------
    VISUAL                         TXN_INDX_PLATFORM1             VEH_PLATFORM                              1
    

    You cannot have two indexes exact same list of columns

    BTW, it's a whole lot of indexes on a table.

    Concerning
    Peter

  • How to create Spatial indexes in SQL Developer Data Modeler 4

    Hello

    What is the procedure to create a Spatial index in SDDM v4? I found myself at an impasse because of the following problems:

    (1) retro-engineering rate the spatial index, then I need to add them manually.

    (2) adding an index does not allow me to check the 'spatial', and does not allow me to add the sdo_geometry column in the index definition.

    (3) for the registration of the spatial properties for a table, I can not choose the name of the Spatial Index.

    I came across an old post (Data Modeler - cannot create a spatial index), but this post is no longer valid because SDDM V4 does not allow me to create an index without columns (definition of the incomplete index).

    Help is appreciated,

    Kind regards

    Richard.

    Hi Richard,

    Thanks for your update.  I'm scared, I was assuming you were using the stand alone rather than SQL Developer Data Modeler.

    I tried using SQL Developer 4.1.0.18.37 (ai2) using a thin connection and got the ClassCastException you have found.

    But when I used ai2 autonomous, maker of data using the same login details 'Advanced', it worked OK and imported from the spatial index.

    (I'm puzzled as to why these two seem to behave differently, as this is the version ai2 data integrated with SQL Developer ai2 maker).

    I then plugged and reverse engineering the same tables (yet) in a new model.

    Funny is that there is no error in the external journal this time, but the spatial properties are still not retroconcues correctly.

    Is it possible that you have not set the option to import the spatial properties?  I expect that the spatial properties would be imported or that the error should be registered.

    SQL Developer ai2 imported properly the spatial properties and the spatial index, when I used a basic connection and specified host, port, and SID or Service name.

    Another issue: SQL Developer relies on a certain JDK / JDBC library?

    Any Java JDK 1.8 should be good.

    David

  • Cannot create spatial indexes in Oracle 11 g

    Hi all!
    I'm using Oracle 11 g 2 on Windows 2008 (64bitxR2). When I get errors when I create Spatial Index oracle11g2, but it works well with Oracle 10 g. I don't know what I did wrong, or do I need a fix for Oracle Spatial 11 g 2?
    Can you help me? Thanks for any help!


    ORA-29858: an error has occurred in the execution of the routine ODCIINDEXALTER
    ORA-29400: data cartridge error
    ORA-01403: no data found
    ORA-13249: internal error in the Spatial index: [mdidxrbd]
    ORA-13249: error in the Spatial index: index build failed
    ORA-13249: error in the spatial index: [mdrcrtxfergm]
    ORA-13249: error in the spatial index: [mdpridxtxfergm]
    ORA-13200: internal error [ROWID:AAAUmYAAIAAAJuFAAB] in space indexering.
    ORA-13206: [] internal error creating the spatial index
    ORA-13033: invalid data in the SDO_ELEM_INFO_ARRAY in the SDO_GEOMETRY object
    ORA-06512: vid 'MDSYS. SDO_INDEX_METHOD_10I', line 313

    DELETE FROM mdsys.sdo_coord_ref_system WHERE srid = 50632625;
    DELETE FROM mdsys.sdo_coord_op_param_vals WHERE coord_op_id = 50632625;
    DELETE FROM mdsys.sdo_coord_ops WHERE coord_op_id = 50632625;

    -COORD_OP_METHOD_ID = 9807: Transverse Mercator
    INSERT MDSYS. () SDO_COORD_OPS
    COORD_OP_ID, COORD_OP_NAME, COORD_OP_TYPE, COORD_OP_METHOD_ID.
    INFORMATION_SOURCE, DATA_SOURCE,
    SHOW_OPERATION, IS_LEGACY, IS_IMPLEMENTED_REVERSE, IS_IMPLEMENTED_FORWARD, REVERSE_OP)
    values)
    50632625, ' ST_74_0_GON_65: op-1 ', 'CONVERSION', 9807,.
    "Digpro AB, [email protected],"Digpro AB. "
    1, 'FALSE', 1, 1, 1);

    -Setting for the latitude of origin (0)
    INSERT MDSYS. () SDO_COORD_OP_PARAM_VALS
    COORD_OP_ID, COORD_OP_METHOD_ID, PARAMETER_ID, PARAMETER_VALUE, PARAM_VALUE_FILE_REF, UOM_ID)
    VALUES (50632625, 9807, 8801 0.000000, 9102, NULL);

    -Setting for east central meridian 18 ° 03' 28,044 "
    INSERT MDSYS. () SDO_COORD_OP_PARAM_VALS
    COORD_OP_ID, COORD_OP_METHOD_ID, PARAMETER_ID, PARAMETER_VALUE, PARAM_VALUE_FILE_REF, UOM_ID)
    VALUES (50632625, 9807, 8802, 18.05779, NULL, 9102);

    -Setting for the scale factor
    INSERT MDSYS. () SDO_COORD_OP_PARAM_VALS
    COORD_OP_ID, COORD_OP_METHOD_ID, PARAMETER_ID, PARAMETER_VALUE, PARAM_VALUE_FILE_REF, UOM_ID)
    VALUES (50632625, 9807, 8805, 0.99999425, NULL, 9201);

    -Setting for abscissa
    INSERT MDSYS. () SDO_COORD_OP_PARAM_VALS
    COORD_OP_ID, COORD_OP_METHOD_ID, PARAMETER_ID, PARAMETER_VALUE, PARAM_VALUE_FILE_REF, UOM_ID)
    VALUES (50632625, 9807, 8806, 100178.1808, NULL, 9001);

    -Setting for fictitious ordinate
    INSERT MDSYS. () SDO_COORD_OP_PARAM_VALS
    COORD_OP_ID, COORD_OP_METHOD_ID, PARAMETER_ID, PARAMETER_VALUE, PARAM_VALUE_FILE_REF, UOM_ID)
    VALUES (50632625, 9807, 8807,-6500614.7836, NULL, 9001);

    -Adds the system projected on top the geodetic system in rt90_dp_geosystem_102.sql
    -COORD_SYS_ID = 4400: CS Cartesian Axes. 2D: abscissa, ordinate (E, N). Directions: East, North. Unit of measure: m.
    -GEOG_CRS_DATUM_ID = 4619: SWEREF99
    INSERT MDSYS. () SDO_COORD_REF_SYSTEM
    SRID, COORD_REF_SYS_NAME, COORD_REF_SYS_KIND, COORD_SYS_ID.
    DATUM_ID, GEOG_CRS_DATUM_ID, SOURCE_GEOG_SRID, PROJECTION_CONV_ID.
    CMPD_HORIZ_SRID, CMPD_VERT_SRID, INFORMATION_SOURCE,
    DATA_SOURCE, IS_LEGACY, LEGACY_CODE, LEGACY_WKTEXT, LEGACY_CS_BOUNDS,
    IS_VALID, SUPPORTS_SDO_GEOMETRY)
    VALUES)
    50632625,'ST_74_0_GON_65:-1 ', 'PROJECTION', 4400,.
    NULL, 6619, 4619, 50632625,.
    NULL, NULL, 'Digpro AB, [email protected],
    'Digpro AB', 'FALSE', NULL, NULL, NULL,
    "TRUE", "TRUE");

    sqlplus kranskom/password
    -Update the metadata for the KRANSKOM schema
    Insert values (user_sdo_geom_metadata)
    "BOUCHIHAB", "SHAPE", HE SAID.
    () mdsys.sdo_dim_array
    MDSYS.sdo_dim_element ('Y',-100000, 200000, 0.0005).
    MDSYS.sdo_dim_element ('X',-100000, 200000, 0.0005),
    MDSYS.sdo_dim_element ('Z', -1000, 1000, 0.0005)
    ), 50632625
    );

    -Display content in column form (in the table GRAG)
    Insert into GRAG (SHAPE) values (MDSYS. SDO_GEOMETRY (3003,50632625, 'null', MDSYS. SDO_ELEM_INFO_ARRAY (1,5,1,1,2,1), MDSYS. SDO_ORDINATE_ARRAY(276.2339,-179.7433,0,276.2498,-179.7361,0,276.2668,-179.7324,0,276.2842,-179.7325,0,276.6235,-179.7691,0,276.793,-179.7731,0,276.8055,-179.772,0,276.8174,-179.7682,0,276.8281,-179.7619,0,277.073,-179.5793,0,277.2068,-179.4543,0,277.2122,-179.4481,0,277.2162,-179.4408,0,277.2186,-179.4329,0,277.2192,-179.4247,0,277.2159,-179.3107,0,277.3184,-178.9335,0,277.3252,-178.6913,0,277.3265,-178.5765,0,277.3258,-178.5683,0,277.3237,-178.5604,0,277.3201,-178.5531,0,277.3152,-178.5465,0,277.3092,-178.541,0,277.3023,-178.5366,0,277.2947,-178.5337,0,277.2867,-178.5321,0,277.1778,-178.5219,0,277.1731,-178.5219,0,277.1683,-178.5227,0,277.1637,-178.5244,0,277.1595,-178.5268,0,277.1558,-178.5299,0,277.1527,-178.5336,0,277.1503,-178.5378,0,277.1486,-178.5424,0,277.1478,-178.5471,0,277.1478 ,-178.5519,0,277.1536,-178.6151,0,277.1537,-178.6198,0,277.1529,-178.6244,0,277.1515,-178.6289,0,277.0012,-178.9885,0,276.9919,-179.0066,0,276.9797,-179.023,0,276.9651,-179.0373,0,276.2832,-179.6059,0,276.2804,-179.6079,0,276.2773,-179.6093,0,276.274,-179.6101,0,276.2706,-179.6103,0,276.2673,-179.61,0,276.264,-179.609,0,276.2609,-179.6075,0,276.2582,-179.6054,0,276.2559,-179.6029,0,276.2541,-179.6001,0,276.2528,-179.5969,0,276.252,-179.5935,0,276.2476,-179.5581,0,276.247,-179.5555,0,276.2459,-179.5529,0,276.2444,-179.5506,0,276.2425,-179.5485,0,276.2402,-179.5469,0,276.2377,-179.5456,0,276.235,-179.5449,0,276.2322,-179.5446,0,276.2294,-179.5449,0,276.2267,-179.5456,0,276.2242,-179.5468,0,276.2219,-179.5485,0,276.22,-179.5505,0,276.0132,-179.8127,0,276.0105,-179.8169,0,276.0086,- 179.8215,0,276.0076,-179.8263,0,276.0074,-179.8312,0,276.0082,-179.8361,0,276.0099,-179.8408,0,276.0124,-179.845,0,276.0157,-179.8488,0,276.0196,-179.8518,0,276.0239,-179.8541,0,276.0287,-179.8556,0,276.0336,-179.8562,0,276.0385,-179.8558,0,276.0433,-179.8546,0,276.0478,-179.8525,0,276.2339,-179.7433,0)));

    If the 2D, the value of 2002 data. otherwise assign 3002.

    Siva

  • Problem in creating Spatial indexes

    Hello

    I am creating the Spatial index on my service. In vain.

    I created the function:

    create or replace
    FUNCTION VRAT_GEOMETRII (NUMBER obj_id)
    MDSYS RETURN. SDO_GEOMETRY
    DETERMINISTIC
    as
    MDSYS test1. SDO_GEOMETRY;
    Mt VARCHAR2 (32767).
    BEGIN
    MT: =' SELECT SDO_PC_PKG. () TO_GEOMETRY
    points,
    num_points,
    3) from pc_blktab2 WHERE obj_id =' | OBJ_ID;
    EXECUTE IMMEDIATE Mt INTO test1;
    Test1 RETURN;
    END;

    Updated metadata to update:
    INSERT INTO user_sdo_geom_metadata)
    TABLE_NAME,
    COLUMN_NAME,
    DIMINFO,
    SRID)
    VALUES)
    "PC_BLKTAB2,"
    ' st_mkara. VRAT_GEOMETRII (obj_id)',
    () SDO_DIM_ARRAY
    SDO_DIM_ELEMENT ('X', 930000000,1200000000, 10),
    SDO_DIM_ELEMENT('Y',420000000,930000000,10),
    SDO_DIM_ELEMENT ('Z', 0,1600000, 10)
    ),
    NULL - SRID VALUE
    );

    and I want to create the spatial index:

    CREATE INDEX test_blok3_idx
    ON PC_BLKTAB2 (VRAT_GEOMETRII (obj_id))
    INDEXTYPE IS MDSYS. SPATIAL_INDEX;

    but these errors:

    Error report:
    SQL error: ORA-29855: error when executing routine ODCIINDEXCREATE
    ORA-13249: internal error in the Spatial index: [mdidxrbd]
    ORA-13249: error in the Spatial index: index build failed
    ORA-13249: error in the spatial index: [mdrcrtxfergm]
    ORA-13249: error in the spatial index: [mdpridxtxfergm]
    ORA-29400: data cartridge error
    ORA-01422: exact fetch returns more than number of lines
    ORA-06512: at "ST_MKARA. VRAT_GEOMETRII', line 12
    ORA-06512: at the 'MDSYS. SDO_INDEX_METHOD_10I', line 10
    29855 00000 - "an error occurred in the execution of routine ODCIINDEXCREATE.
    * Cause: Cannot run the ODCIIndexCreate routine.
    * Action: Check if the routine was coded correctly.

    Thanks for help

    Kirin

    This looks like a problem in your function.
    Make sure that you run this function successfully for each obj_id.
    Looks for some obj_id SQL inside your function is a failure (returns more than one line).

    Siva

  • run immideate Create spatial index

    I can't create a spatial index in the package when using
    run immideate

    declare

    l_res varchar2 (500);
    Start
    l_res: = ' CREATE INDEXES INDXSDO1_elements
    (GEOMETRY)
    INDEXTYPE IS MDSYS. SPATIAL_INDEX';

    immediately run l_res;
    end;

    I get an exception:

    ORA-29855: an error has occurred in the execution of routine ODCIINDEXCREATE
    ORA-13249: internal error in the Spatial index: [mdidxrbd]
    ORA-13249: error in the Spatial index: index build failed
    ORA-13249: error in R-tree: [mdrcrtscrt]
    ORA-13231: unable to create the index table [$MDRT_FC41] creating R-tree
    ORA-13249: Stmt-run failure: CREATE TABLE 'GMT_TECH '. MDRT_FC41$ (NUMBER, NUMBER OF NODE_LEVEL, BLOB INFO NODE_ID) LOB (INFO) STORE (CACHE) AS NOLOGGING PCTFREE 2
    ORA-29400: data cartridge error
    ORA-01031: insufficient privileges
    ORA-06512: at the 'MDSYS. SDO_INDEX_METHOD_10I', line 10
    ORA-06512: at "GMT_TECH. REBUILDINDEX", line 66
    ORA-06512: at line 3 level

    Why does this happen?
    I can create indexes without immediate execution

    CREATE the INDEX INDXSDO1_elements
    (GEOMETRY)
    INDEXTYPE IS MDSYS. SPATIAL_INDEX


    Thank you!

    Have you granted 'create table' and "create sequence" for the user? To do this explicitly rather than by a role.

  • Problem of spatial Index

    I got an error while im trying to create a Spatial index on a table, ORA-29855 ODCIINDEXCREATE, error ORA-1324 in Index space: index build failed; ORA-06512 in MDSYS. SDO_INDEX_METHOD_10I: Cause cannot run the ODCIIndexCreate routine. Action: Check if the routine was coded correctly.

    I insert in the MDSYS. SDO_GEOM_METADATA_TABLE these data:

    INSERT INTO 'MDSYS. "" SDO_GEOM_METADATA_TABLE "(SDO_OWNER, SDO_TABLE_NAME, SDO_COLUMN_NAME, SDO_DIMINFO, SDO_SRID) VALUES ('MIGRA',"ESPACIAL","GEOM", SDO_DIM_ARRAY(MDSYS.) SDO_DIM_ELEMENT ('X', 200000, 1000000, 5-8), MDSYS. SDO_DIM_ELEMENT('Y',700000,1200000,5E-8), MDSYS. (SDO_DIM_ELEMENT('Z',0,0,5E-8)), 26717);

    Validate with GeoRapto geometries in the "SPACE" table, I got some of them have problems, so I erase all records from the table and try to create the index again and has the same result "impossible to perform with success the routine ODCIIndexCreate.". I didn't add any other information related to this table. If you have an idea of what could be the problem, you can give me a hint on what do I do to fix this? Thanks in advance.

    Published by: user11136667 on 07/31/2009 07:38

    The SRID you use is based on the EPSG model which we left supporting 10.2.0.3.
    You cannot use it in 10.1.2 release.

    Siva

  • How to rebuild a spatial index partition that is marked 'INPROGRS '.

    I'm on 12.1.0.1 Enterprise Edition.

    I have a very large table of sdo_geometry objects that I divided it into several partitions.  I have create a spatial index on this table as UNUSABLE and then rebuild the partitions across a few different sessions.

    In total, the construction of index takes a few days.  Last week during the construction of the index, the database crashed completely.  This left me with most of the scores with a USER_IND_PARTITIONS. USABLE STATUS, some with UNUSABLE and a couple with INPROGRS.

    I can rebuild the UNUSABLE partitions as usual, but when I try to build a INPROGRS partition I get:

    ERROR at line 1:
    ORA-29952: cannot issue DDL on a domain index partition marked as LOADING
    

    The mistake is understandable, given that the index partition was INPROGRS when the database crashed.  The question is how to recover from it.  The doco says:

    Expect that the index partition operation complete question GOLD FORCE INDEX DROP to remove question OR index an ALTER TABLE DROP PARTITION to delete the partition.

    None of these options are good for me.  I don't want to let down the entire index as most of it is built.  It doesn't seem to be an option to recover a partition of index construction which is blocked at INPROGRS.


    Support Doc ID 557600.1 addresses this issue says in the context of the Oracle text index.  Sa dit :

    Sometimes, if CREATE INDEX or ALTER INDEX fails, an index can be left with the status of LOADING or INPROGRS and let the context index in an unusable state.

    Any attempt to retrieve using SUMMARY INDEX is blocked. The only recourse is to drop and re-create the index.

    In this case, use CTX_ADM. MARK_FAILED to force LOADING failure index status so that you can retrieve the index with the INDEX of CURRICULUM VITAE.

    If the suggestion is to use CTX_ADM. MARK_FAILED ( http://docs.oracle.com/database/121/CCREF/cadmpkg.htm#CCREF0500 ). 

    There is a similar option for spatial indexes?

    Thank you

    John

    Hi John,.

    Have you tried mdsys.reset_inprog_index (owner IN varchar2, varchar2 IN index_name)?

    This procedure will erase INPROGRS and to FAIL if index or index partition is INPROGRS.

    Thank you

    Ying

  • spatial index and normal index

    Hi space specialists,.

    I have a question for spatial index performance and how Oracle manages queries that have a space and regular condition combined. We are on the Oracle 10 g Enterprise Edition Release 10.2.0.4.0 database

    Take a query like this one (not a real query but based on the type of query that is generated by ArcGIS):

    Select objectid

    attribute

    geometry

    table

    where mdsys.sdo_filter (geometry, mdsys.sdo_geometry (: gtype1,: srid1, null,: elem_info1,: ordinates1), 'querytype = window') = 'TRUE '.

    and attribute = value

    In our scenario, we have a lot of rows in the table (2 million), but we have only a few lines (2000) where attribute = value.

    It seems that there is a scenario where the performance is really bad. It takes 5 seconds for the query to return the results and you're just too slow for our needs. There is a spatial index on a geometry and a normal index on the field for the attribute. The plan of the explain command shows that both the spatial index and the index of the attribute are used.

    Of course, we can break to the top of the table in separate tables by object type. This would make the index space datamodel much more efficient, but at the expense of our current simple, abstract.

    Do you have suggestions on how we can improve performance without too much impact on our datamodel? Oracle for example has an option where you can create a spatial index on a subset of the data in a table?

    Thank you!

    Rob

    Do not know whether or not the following works for your case:

    use the column range-key attribute to create a partitioned table Beach and then create a local spatial index.

  • Error in the spatial index

    Hello world

    I created a spatial index on a table, but I get the error message:

    ORA-13033: sdo_geometry sdo_elem_info_array data not available

    How can I write a SQL command to delete these unavailable records?

    Hello

    you will find an example with a similar error. Simply, you can validate spatial data, to find the invalid records:

    DROP   TABLE sdo_test;
    
    CREATE TABLE sdo_test (
      nr      NUMBER,
      GEOM     MDSYS.SDO_GEOMETRY);
    
    COMMIT;
    
    --correct
    INSERT INTO sdo_test VALUES (1,
      SDO_GEOMETRY(3302, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1),
        SDO_ORDINATE_ARRAY(-87.899771, 42.000853, 0, -87.899109, 42.000847, 54.8504622)));
    
    --correct
    INSERT INTO sdo_test VALUES (2,
      SDO_GEOMETRY(3302, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1),
        SDO_ORDINATE_ARRAY(-87.917489, 41.992077, 0, -87.917063, 41.99174, 51.4503307)));
    
    --empty SDO_ELEM_INFO_ARRAY
    INSERT INTO sdo_test VALUES (3,
      SDO_GEOMETRY(3302, 8307, NULL,  SDO_ELEM_INFO_ARRAY(),
        SDO_ORDINATE_ARRAY(-87.925704, 41.965994, 0, -87.925705, 41.965445, 60.9789892)));
    
    DELETE FROM USER_SDO_GEOM_METADATA
      WHERE TABLE_NAME = 'SDO_TEST' AND COLUMN_NAME = 'GEOM' ;
    
    INSERT INTO USER_SDO_GEOM_METADATA (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
      VALUES ('SDO_TEST', 'GEOM',
        MDSYS.SDO_DIM_ARRAY
          (MDSYS.SDO_DIM_ELEMENT('X', -87.925705, -87.8991090, 0.001),
           MDSYS.SDO_DIM_ELEMENT('Y',  41.965445,  41.9654450, 0.001),
           MDSYS.SDO_DIM_ELEMENT('M',    0.00000,  60.9789892, 0.001)
         ),8307);
    
    --DROP   INDEX sdo_test_geom_spix;
    
    --ORA ERROR 13033
    CREATE INDEX sdo_test_geom_spix
              ON sdo_test(geom)
       INDEXTYPE IS MDSYS.SPATIAL_INDEX
    PARAMETERS('sdo_indx_dims=2');
    
    --find the invalid record
    SELECT nr, SDO_GEOM.VALIDATE_GEOMETRY(geom,0.001) val
      FROM sdo_test; 
    
    nr     val
    -----------------------
    1    TRUE
    2    TRUE
    3    13033
    

    Oops - where is the preview in the new design?

    Found while waiting for the syntax highlighting (-> switch to the Advanced Editor, paste your code, mark it, click on the > button (insert), select syntax highlighting, choose style... >)

  • Oracle Spatial Index on a column NOT NULL

    I'm using the Oracle 11 g with data space init.

    I have a SDO_GEOM column in a table that has NULL values for some records. I have to run spatial query based on this column so the need of a spatial index on it. Is it possible to create a Spatial Index on a column SDO_GEOM even if some of them have the NULL value and results of spatial query?


    Thank you
    Alan

    Published by: user3883362 on 29 April 2013 05:59

    Alan,

    Is it possible to create a Spatial Index on a column SDO_GEOM even if some of them are NULL

    Yes.

    SQL> CREATE TABLE test (ID NUMBER PRIMARY KEY, geom MDSYS.SDO_GEOMETRY);
    
    Table created.
    
    -- "insert a row with non-NULL geometry"
    SQL> INSERT INTO test VALUES (1, SDO_GEOMETRY('POINT (6000000 2100000)', 40986));
    
    1 row created.
    
    -- "insert a row with NULL geometry"
    SQL> INSERT INTO test VALUES (2, NULL);
    
    1 row created.
    
    SQL> CREATE INDEX test_spx ON test (geom) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    
    Index created.
    

    .. .and getting results of spatial query

    Yes, assuming that your data is valid.

    -- "Creates a 10' buffer around the point we previsouly inserted then applies SDO_INSIDE"
    SQL> SELECT ID, SDO_INSIDE(geom, SDO_GEOM.SDO_BUFFER(geom, 10, 1)) FROM test;
    1 TRUE --"our point geometry"
    2 FALSE --"our NULL"
    
    2 rows selected.
    

    If you encounter problems here, I think you can use the functions that are choking in NULL values, for example, the conversion of NULL in WKT geometry.

    How do you access data (sqlplus, application, custom, etc.)? What is the query, and we see a few examples of data?

    Kind regards
    Noel

Maybe you are looking for

  • When started grab memory until that well over 1 GB, then hangs without displaying the window

    because the window was not shown, that I can't do anything like turn off Add-ons; It all started when I joined a large mail message although it is perhaps not related.

  • Files and iTunes

    Everytime I open iTunes it won' play what either because she insists, he does not know the location of the file on the track, I want to play, but when I watch the news. on the track, it has the path of the saved file. HOW CAN THIS BE? WHAT IS SOMETHI

  • Cannot open Microsoft Word Starter on my Satellite C660

    Hello I'm good with computers, so any help at all would be much appreciated!I have a Toshiba C660 and use Microsoft Word Starter since my documents which have come on the laptop.Today I went to open one of my existing documents and got a message sayi

  • HP ENVY 15-j007cl: AMD Radeon HD 8650 G update for HP ENVY 15-j007cl

    For a few years now, I've owned an HP ENVY 15-j007cl (not the touchscreen version). For most all my purposes, the laptop works very well. This includes almost all the PC games that I am committed to.  This laptop has a processor AMD A10 - 5750M 2.50

  • 8E5E03FA

    I get this error code when I go to install 21 updates on my computer windows Vista laptop.  Not a single update is installed.