Spatial Join on Topology feature layers

I would like to be able to do a "spatial join" on topolgy feature layers. With sdo_geometry layers a spatial join finds ALL specified spatial interactions between complete layers. I would like to know if this is possible using topology feature layers, or if this functionality may be coming in the future along with (hopefully) sdo_topo_nn, sdo_topo_nn_distance, and sdo_topo_within_distance....?
Alden

Hi,
updating millions of records could lock your resource and other users may have trouble connecting or reading data.
In some cases, variable table is your friend, insert the data you needed to a variable table before issuing the update.
with that, you may need to have (nolock) on each table. eg. 
[LegislativeMapData2014].[dbo].[CONGRESS_2014] (nolock)
Regards,
gioVhan
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Similar Messages

  • Spatially Querying a Topology

    Hi,
    Whats the best way to perform a Spatial Query on a
    Topology table ?
    The query below fails with a:
    ORA-13226: interface not supported without a spatial index error.
    SELECT SDO_TOPO_GEOMETRY.GET_GEOMETRY(FEATURE)
    FROM SCOTT.COUNTIES_TOPO
    WHERE SDO_FILTER(
    SDO_TOPO_GEOMETRY.GET_GEOMETRY(FEATURE),
    SDO_CS.VIEWPORT_TRANSFORM(
         MDSYS.SDO_GEOMETRY( 2003, 8307, NULL, MDSYS.SDO_ELEM_INFO_ARRAY( 1,1003,3 ),
         MDSYS.SDO_ORDINATE_ARRAY( -73.728203, 44.985874, -69.728203, 48.985874 ) ) , 8307
    ) , 'mask=anyinteract querytype=window') = 'TRUE'
    Would it be better to use the Java TopoMap API, to load
    the Window I am interested in and get the ID's of the
    Nodes, Edge's and Face's in that area, then put them into
    a SDO_TOPO_GEOMETRY.GET_GEOMETRY query ?
    Cheers,
    Ro

    Hi Ro,
    Check out the end of lesson 17!
    A few notes:
    You don't need viewport_transform in Oracle 10g Spatial.
    You don't need mdsys for the constructors in Oracle 10g Spatial.
    Use SDO_FILTER or SDO_ANYINTERACT with feature layers a topology (not SDO_FILTER with mask=anyinteract).
    Here are rewritten versions of your query (one with sdo_filter, one with sdo_anyinteract)
    SELECT SDO_TOPO_GEOMETRY.GET_GEOMETRY(FEATURE)
    FROM COUNTIES_TOPO
    WHERE SDO_ANYINTERACT(FEATURE,
    SDO_GEOMETRY( 2003, 8307, NULL,
    SDO_ELEM_INFO_ARRAY( 1,1003,3 ),
    SDO_ORDINATE_ARRAY( -73.728203, 44.985874, -69.728203, 48.985874 ))) = 'TRUE';
    or if you only want sdo_filter:
    SELECT SDO_TOPO_GEOMETRY.GET_GEOMETRY(FEATURE)
    FROM COUNTIES_TOPO
    WHERE SDO_FILTER(FEATURE,
    SDO_GEOMETRY( 2003, 8307, NULL,
    SDO_ELEM_INFO_ARRAY( 1,1003,3 ),
    SDO_ORDINATE_ARRAY( -73.728203, 44.985874, -69.728203, 48.985874 ))) = 'TRUE';
    It was great meeting you the week before last - it's always nice to meet the people who post to this forum. I've been told I seem taller here than in person!
    Dan

  • Spatial join view

    Good afternoon,
    I am new on oracle spatial and I have to do a simple spatial join view. So from two table name and a operation I have to create a view that makes a join of type "operation" between two table.
    For example, in a high level language:
    create or replace view VIEW_NAME as select * from table1,table2 where operation(table1.geom,table2.geom).
    Where "operation" could be intersect, touch, overlaps,contains, disjoint...and so on...
    I can't find a complete example for my problem.
    Thanks for all your help, it is very important.
    Best regards
    Anna Zanetti

    ok..thank you very much.
    But If I want to make one of the following operation (BBOX,Beyond,Contains,Crosses,Disjoint,
    Equals,Intersects,Overlaps,Touches,Within), what kind of mask have I to use?
    I understand that this are the possibile mask:
    TOUCH, OVERLAPBDYDISJOINT, OVERLAPBDYINTERSECT, EQUAL, INSIDE, COVEREDBY, CONTAINS, COVERS, ANYINTERACT, ON
    I think that there is not a perfect matching, in fact I think that ANYINTERACT is different from intersects!!!
    I am wrong?
    Is there any table of matching between operations???
    Thank a lot
    Best regards
    Anna Zanetti

  • Significant performance change in spatial join

    Hi,
    I have 2 spatial tables in Oracle 10g: one (PT_SOURCE) has a point column with over a half million records and another (TRJ_TMP_BUF) has a polygon column with 2 records. 2 spatial R-tree indexes were built on the 2 table respectively. I tried a spatial join to see how many points fall into one polygon. The SQL statement is:
    SELECT a.id, d.name FROM pt_source a, trj_tmp_buf b, TABLE (SDO_JOIN('PT_SOURCE', 'SHAPE', 'TRJ_TMP_BUF', 'SHAPE', 'mask=ANYINTERACT')) c, pollution_source d WHERE c.rowid1 = a.rowid AND c.rowid2 = b.rowid and d.id=a.id
    The first a couple of run of the query took about 2 and a half hours to complete. 2 days after I tried the same query again. It only took about 2 minutes to complete! I'm pretty sure that the workload of the server was in the same level as in the first run. I'm wondering if there is something going on with the spatial indexes that may cause such significant improvement.
    BTW, I imported the same data set into another server that is configured similarly and runs another instance of Oracle 10g. All the spatial indexes were built. This time the same query took about 2 hours to complete. Does any body have any explanation about this? Thanks in advance.

    Hi, Dan,
    I'm sorry that I made a mistake in the file names. The second trace file is for the database that is faster.
    I set a less file size for the second trace file. That might be why its space was limited. I ran the query again and set the file size to 5 MB (the same as for the first trace file). The newly generated trace file for the faster database is as following:
    TKPROF: Release 10.1.0.3.0 - Production on Tue May 10 22:50:51 2005
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Trace file: airpltn_ora_19874_gis23Test2.trc
    Sort options: default
    count = number of times OCI procedure was executed
    cpu = cpu time in seconds executing
    elapsed = elapsed time in seconds executing
    disk = number of physical reads of buffers from disk
    query = number of buffers gotten for consistent read
    current = number of buffers gotten in current mode (usually for update)
    rows = number of rows processed by the fetch or execute call
    alter session set sql_trace=true
    call count cpu elapsed disk query current rows
    Parse 0 0.00 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 0 0.00 0.00 0 0 0 0
    total 1 0.00 0.00 0 0 0 0
    Misses in library cache during parse: 0
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 58 (APPDEV)
    select t.ts#,t.file#,t.block#,nvl(t.bobj#,0),nvl(t.tab#,0),t.intcols,
    nvl(t.clucols,0),t.audit$,t.flags,t.pctfree$,t.pctused$,t.initrans,
    t.maxtrans,t.rowcnt,t.blkcnt,t.empcnt,t.avgspc,t.chncnt,t.avgrln,
    t.analyzetime,t.samplesize,t.cols,t.property,nvl(t.degree,1),
    nvl(t.instances,1),t.avgspc_flb,t.flbcnt,t.kernelcols,nvl(t.trigflag, 0),
    nvl(t.spare1,0),nvl(t.spare2,0),t.spare4,t.spare6,ts.cachedblk,ts.cachehit,
    ts.logicalread
    from
    tab$ t, tab_stats$ ts where t.obj#= :1 and t.obj# = ts.obj# (+)
    call count cpu elapsed disk query current rows
    Parse 10 0.00 0.00 0 0 0 0
    Execute 20 0.01 0.00 0 0 0 0
    Fetch 20 0.02 0.00 0 82 0 20
    total 50 0.03 0.01 0 82 0 20
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 2)
    Rows Row Source Operation
    3 NESTED LOOPS OUTER (cr=12 pr=0 pw=0 time=1001 us)
    3 TABLE ACCESS CLUSTER OBJ#(4) (cr=9 pr=0 pw=0 time=728 us)
    3 INDEX UNIQUE SCAN OBJ#(3) (cr=6 pr=0 pw=0 time=334 us)(object id 3)
    0 TABLE ACCESS BY INDEX ROWID OBJ#(671) (cr=3 pr=0 pw=0 time=198 us)
    0 INDEX RANGE SCAN OBJ#(672) (cr=3 pr=0 pw=0 time=160 us)(object id 672)
    select i.obj#,i.ts#,i.file#,i.block#,i.intcols,i.type#,i.flags,i.property,
    i.pctfree$,i.initrans,i.maxtrans,i.blevel,i.leafcnt,i.distkey,i.lblkkey,
    i.dblkkey,i.clufac,i.cols,i.analyzetime,i.samplesize,i.dataobj#,
    nvl(i.degree,1),nvl(i.instances,1),i.rowcnt,mod(i.pctthres$,256),
    i.indmethod#,i.trunccnt,nvl(c.unicols,0),nvl(c.deferrable#+c.valid#,0),
    nvl(i.spare1,i.intcols),i.spare4,i.spare2,i.spare6,decode(i.pctthres$,null,
    null,mod(trunc(i.pctthres$/256),256)),ist.cachedblk,ist.cachehit,
    ist.logicalread
    from
    ind$ i, ind_stats$ ist, (select enabled, min(cols) unicols,
    min(to_number(bitand(defer,1))) deferrable#,min(to_number(bitand(defer,4)))
    valid# from cdef$ where obj#=:1 and enabled > 1 group by enabled) c where
    i.obj#=c.enabled(+) and i.obj# = ist.obj#(+) and i.bo#=:1
    call count cpu elapsed disk query current rows
    Parse 10 0.00 0.00 0 0 0 0
    Execute 23 0.01 0.00 0 0 0 0
    Fetch 58 0.04 0.03 0 189 0 35
    total 91 0.05 0.04 0 189 0 35
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 2)
    Rows Row Source Operation
    7 HASH JOIN OUTER (cr=30 pr=0 pw=0 time=5363 us)
    7 NESTED LOOPS OUTER (cr=21 pr=0 pw=0 time=1211 us)
    7 TABLE ACCESS CLUSTER OBJ#(19) (cr=16 pr=0 pw=0 time=834 us)
    3 INDEX UNIQUE SCAN OBJ#(3) (cr=6 pr=0 pw=0 time=302 us)(object id 3)
    0 TABLE ACCESS BY INDEX ROWID OBJ#(673) (cr=5 pr=0 pw=0 time=252 us)
    0 INDEX UNIQUE SCAN OBJ#(674) (cr=5 pr=0 pw=0 time=170 us)(object id 674)
    1 VIEW (cr=9 pr=0 pw=0 time=1563 us)
    1 SORT GROUP BY (cr=9 pr=0 pw=0 time=1522 us)
    1 TABLE ACCESS CLUSTER OBJ#(31) (cr=9 pr=0 pw=0 time=775 us)
    3 INDEX UNIQUE SCAN OBJ#(30) (cr=6 pr=0 pw=0 time=339 us)(object id 30)
    select name,intcol#,segcol#,type#,length,nvl(precision#,0),decode(type#,2,
    nvl(scale,-127/*MAXSB1MINAL*/),178,scale,179,scale,180,scale,181,scale,182,
    scale,183,scale,231,scale,0),null$,fixedstorage,nvl(deflength,0),default$,
    rowid,col#,property, nvl(charsetid,0),nvl(charsetform,0),spare1,spare2,
    nvl(spare3,0)
    from
    col$ where obj#=:1 order by intcol#
    call count cpu elapsed disk query current rows
    Parse 13 0.00 0.00 0 0 0 0
    Execute 30 0.01 0.00 0 0 0 0
    Fetch 432 0.01 0.02 0 93 0 402
    total 475 0.02 0.03 0 93 0 402
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 2)
    Rows Row Source Operation
    25 SORT ORDER BY (cr=9 pr=0 pw=0 time=1334 us)
    25 TABLE ACCESS CLUSTER OBJ#(21) (cr=9 pr=0 pw=0 time=704 us)
    3 INDEX UNIQUE SCAN OBJ#(3) (cr=6 pr=0 pw=0 time=283 us)(object id 3)
    select type#,blocks,extents,minexts,maxexts,extsize,extpct,user#,iniexts,
    NVL(lists,65535),NVL(groups,65535),cachehint,hwmincr, NVL(spare1,0),
    NVL(scanhint,0)
    from
    seg$ where ts#=:1 and file#=:2 and block#=:3
    call count cpu elapsed disk query current rows
    Parse 8 0.00 0.00 0 0 0 0
    Execute 8 0.00 0.00 0 0 0 0
    Fetch 8 0.00 0.00 0 24 0 8
    total 24 0.00 0.00 0 24 0 8
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    0 TABLE ACCESS CLUSTER SEG$ (cr=0 pr=0 pw=0 time=0 us)
    0 INDEX UNIQUE SCAN I_FILE#_BLOCK# (cr=0 pr=0 pw=0 time=0 us)(object id 9)
    select owner#,name,namespace,remoteowner,linkname,p_timestamp,p_obj#,
    nvl(property,0),subname,d_attrs
    from
    dependency$ d, obj$ o where d_obj#=:1 and p_obj#=obj#(+) order by order#
    call count cpu elapsed disk query current rows
    Parse 42 0.00 0.01 0 0 0 0
    Execute 42 0.01 0.01 0 0 0 0
    Fetch 197 0.06 0.02 0 487 0 155
    total 281 0.07 0.05 0 487 0 155
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    4 SORT ORDER BY (cr=13 pr=0 pw=0 time=806 us)
    4 NESTED LOOPS OUTER (cr=13 pr=0 pw=0 time=729 us)
    4 TABLE ACCESS BY INDEX ROWID DEPENDENCY$ (cr=3 pr=0 pw=0 time=267 us)
    4 INDEX RANGE SCAN I_DEPENDENCY1 (cr=2 pr=0 pw=0 time=160 us)(object id 120)
    4 TABLE ACCESS BY INDEX ROWID OBJ$ (cr=10 pr=0 pw=0 time=313 us)
    4 INDEX UNIQUE SCAN I_OBJ1 (cr=6 pr=0 pw=0 time=171 us)(object id 36)
    select order#,columns,types
    from
    access$ where d_obj#=:1
    call count cpu elapsed disk query current rows
    Parse 42 0.00 0.01 0 0 0 0
    Execute 42 0.02 0.00 0 0 0 0
    Fetch 123 0.03 0.00 0 246 0 81
    total 207 0.05 0.02 0 246 0 81
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    3 TABLE ACCESS BY INDEX ROWID ACCESS$ (cr=8 pr=0 pw=0 time=220 us)
    3 INDEX RANGE SCAN I_ACCESS1 (cr=5 pr=0 pw=0 time=232 us)(object id 122)
    select col#, grantee#, privilege#,max(mod(nvl(option$,0),2))
    from
    objauth$ where obj#=:1 and col# is not null group by privilege#, col#,
    grantee# order by col#, grantee#
    call count cpu elapsed disk query current rows
    Parse 12 0.00 0.00 0 0 0 0
    Execute 16 0.01 0.00 0 0 0 0
    Fetch 16 0.00 0.00 0 32 0 0
    total 44 0.01 0.00 0 32 0 0
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    0 SORT GROUP BY (cr=2 pr=0 pw=0 time=257 us)
    0 TABLE ACCESS BY INDEX ROWID OBJ#(85) (cr=2 pr=0 pw=0 time=156 us)
    0 INDEX RANGE SCAN OBJ#(102) (cr=2 pr=0 pw=0 time=136 us)(object id 102)
    select grantee#,privilege#,nvl(col#,0),max(mod(nvl(option$,0),2))
    from
    objauth$ where obj#=:1 group by grantee#,privilege#,nvl(col#,0) order by
    grantee#
    call count cpu elapsed disk query current rows
    Parse 12 0.00 0.00 0 0 0 0
    Execute 36 0.01 0.00 0 0 0 0
    Fetch 66 0.02 0.01 0 107 0 30
    total 114 0.03 0.02 0 107 0 30
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    0 SORT GROUP BY (cr=2 pr=0 pw=0 time=213 us)
    0 TABLE ACCESS BY INDEX ROWID OBJ#(85) (cr=2 pr=0 pw=0 time=119 us)
    0 INDEX RANGE SCAN OBJ#(102) (cr=2 pr=0 pw=0 time=102 us)(object id 102)
    select col#,intcol#,toid,version#,packed,intcols,intcol#s,flags, synobj#,
    nvl(typidcol#, 0)
    from
    coltype$ where obj#=:1 order by intcol# desc
    call count cpu elapsed disk query current rows
    Parse 11 0.01 0.01 0 0 0 0
    Execute 14 0.03 0.02 0 0 0 0
    Fetch 32 0.00 0.00 0 45 0 18
    total 57 0.04 0.03 0 45 0 18
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    3 SORT ORDER BY (cr=3 pr=0 pw=0 time=362 us)
    3 TABLE ACCESS CLUSTER OBJ#(281) (cr=3 pr=0 pw=0 time=188 us)
    1 INDEX UNIQUE SCAN OBJ#(3) (cr=2 pr=0 pw=0 time=101 us)(object id 3)
    select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, timestamp#,
    sample_size, minimum, maximum, distcnt, lowval, hival, density, col#,
    spare1, spare2, avgcln
    from
    hist_head$ where obj#=:1 and intcol#=:2
    call count cpu elapsed disk query current rows
    Parse 7 0.00 0.00 0 0 0 0
    Execute 99 0.02 0.01 0 0 0 0
    Fetch 99 0.04 0.01 0 291 0 91
    total 205 0.06 0.03 0 291 0 91
    Misses in library cache during parse: 0
    Optimizer mode: RULE
    Parsing user id: SYS (recursive depth: 2)
    Rows Row Source Operation
    13 TABLE ACCESS BY INDEX ROWID OBJ#(214) (cr=39 pr=0 pw=0 time=2198 us)
    13 INDEX RANGE SCAN OBJ#(216) (cr=26 pr=0 pw=0 time=1368 us)(object id 216)
    select /*+ rule */ bucket, endpoint, col#, epvalue
    from
    histgrm$ where obj#=:1 and intcol#=:2 and row#=:3 order by bucket
    call count cpu elapsed disk query current rows
    Parse 4 0.00 0.00 0 0 0 0
    Execute 27 0.00 0.00 0 0 0 0
    Fetch 27 0.01 0.01 0 81 0 432
    total 58 0.01 0.01 0 81 0 432
    Misses in library cache during parse: 0
    Optimizer mode: RULE
    Parsing user id: SYS (recursive depth: 2)
    Rows Row Source Operation
    161 SORT ORDER BY (cr=30 pr=0 pw=0 time=3997 us)
    161 TABLE ACCESS CLUSTER OBJ#(212) (cr=30 pr=0 pw=0 time=2430 us)
    10 INDEX UNIQUE SCAN OBJ#(211) (cr=20 pr=0 pw=0 time=701 us)(object id 211)
    select intcol#, toid, version#, intcols, intcol#s, flags, synobj#
    from
    subcoltype$ where obj#=:1 order by intcol# asc
    call count cpu elapsed disk query current rows
    Parse 11 0.01 0.00 0 0 0 0
    Execute 14 0.01 0.00 0 0 0 0
    Fetch 14 0.01 0.00 0 45 0 0
    total 39 0.03 0.00 0 45 0 0
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    0 SORT ORDER BY (cr=3 pr=0 pw=0 time=254 us)
    0 TABLE ACCESS CLUSTER OBJ#(284) (cr=3 pr=0 pw=0 time=177 us)
    1 INDEX UNIQUE SCAN OBJ#(3) (cr=2 pr=0 pw=0 time=91 us)(object id 3)
    select col#,intcol#,ntab#
    from
    ntab$ where obj#=:1 order by intcol# asc
    call count cpu elapsed disk query current rows
    Parse 11 0.00 0.00 0 0 0 0
    Execute 14 0.00 0.00 0 0 0 0
    Fetch 14 0.00 0.00 0 14 0 0
    total 39 0.00 0.00 0 14 0 0
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    0 TABLE ACCESS BY INDEX ROWID OBJ#(351) (cr=1 pr=0 pw=0 time=144 us)
    0 INDEX RANGE SCAN OBJ#(353) (cr=1 pr=0 pw=0 time=124 us)(object id 353)
    select l.col#, l.intcol#, l.lobj#, l.ind#, l.ts#, l.file#, l.block#, l.chunk,
    l.pctversion$, l.flags, l.property, l.retention, l.freepools
    from
    lob$ l where l.obj# = :1 order by l.intcol# asc
    call count cpu elapsed disk query current rows
    Parse 14 0.00 0.00 0 0 0 0
    Execute 14 0.00 0.00 0 0 0 0
    Fetch 24 0.00 0.00 0 45 0 10
    total 52 0.00 0.01 0 45 0 10
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    2 SORT ORDER BY (cr=3 pr=0 pw=0 time=318 us)
    2 TABLE ACCESS CLUSTER LOB$ (cr=3 pr=0 pw=0 time=168 us)
    1 INDEX UNIQUE SCAN I_OBJ# (cr=2 pr=0 pw=0 time=95 us)(object id 3)
    select o.owner#,o.name,o.namespace,o.remoteowner,o.linkname,o.subname,
    o.dataobj#,o.flags
    from
    obj$ o where o.obj#=:1
    call count cpu elapsed disk query current rows
    Parse 7 0.00 0.00 0 0 0 0
    Execute 27 0.00 0.00 0 0 0 0
    Fetch 27 0.00 0.00 0 81 0 27
    total 61 0.00 0.01 0 81 0 27
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 2)
    Rows Row Source Operation
    2 TABLE ACCESS BY INDEX ROWID OBJ#(18) (cr=6 pr=0 pw=0 time=313 us)
    2 INDEX UNIQUE SCAN OBJ#(36) (cr=4 pr=0 pw=0 time=189 us)(object id 36)
    select col#,intcol#,reftyp,stabid,expctoid
    from
    refcon$ where obj#=:1 order by intcol# asc
    call count cpu elapsed disk query current rows
    Parse 11 0.00 0.00 0 0 0 0
    Execute 14 0.00 0.00 0 0 0 0
    Fetch 14 0.00 0.00 0 14 0 0
    total 39 0.00 0.00 0 14 0 0
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    0 TABLE ACCESS BY INDEX ROWID OBJ#(361) (cr=1 pr=0 pw=0 time=158 us)
    0 INDEX RANGE SCAN OBJ#(363) (cr=1 pr=0 pw=0 time=133 us)(object id 363)
    select col#,intcol#,charsetid,charsetform
    from
    col$ where obj#=:1 order by intcol# asc
    call count cpu elapsed disk query current rows
    Parse 11 0.01 0.00 0 0 0 0
    Execute 14 0.00 0.00 0 0 0 0
    Fetch 372 0.00 0.00 0 45 0 358
    total 397 0.01 0.01 0 45 0 358
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    9 SORT ORDER BY (cr=3 pr=0 pw=0 time=338 us)
    9 TABLE ACCESS CLUSTER OBJ#(21) (cr=3 pr=0 pw=0 time=219 us)
    1 INDEX UNIQUE SCAN OBJ#(3) (cr=2 pr=0 pw=0 time=93 us)(object id 3)
    select intcol#,type,flags,lobcol,objcol,extracol,schemaoid, elemnum
    from
    opqtype$ where obj# = :1 order by intcol# asc
    call count cpu elapsed disk query current rows
    Parse 11 0.00 0.00 0 0 0 0
    Execute 14 0.00 0.00 0 0 0 0
    Fetch 14 0.00 0.00 0 14 0 0
    total 39 0.00 0.00 0 14 0 0
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    0 TABLE ACCESS BY INDEX ROWID OBJ#(364) (cr=1 pr=0 pw=0 time=145 us)
    0 INDEX RANGE SCAN OBJ#(365) (cr=1 pr=0 pw=0 time=127 us)(object id 365)
    select pos#,intcol#,col#,spare1,bo#,spare2
    from
    icol$ where obj#=:1
    call count cpu elapsed disk query current rows
    Parse 11 0.01 0.00 0 0 0 0
    Execute 35 0.00 0.00 0 0 0 0
    Fetch 75 0.00 0.00 0 150 0 40
    total 121 0.01 0.01 0 150 0 40
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    3 TABLE ACCESS BY INDEX ROWID OBJ#(20) (cr=20 pr=0 pw=0 time=942 us)
    3 INDEX RANGE SCAN OBJ#(40) (cr=17 pr=0 pw=0 time=732 us)(object id 40)
    select metadata
    from
    kopm$ where name='DB_FDO'
    call count cpu elapsed disk query current rows
    Parse 1 0.01 0.01 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 1 0.00 0.00 0 2 0 1
    total 3 0.01 0.01 0 2 0 1
    Misses in library cache during parse: 1
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    1 TABLE ACCESS BY INDEX ROWID KOPM$ (cr=2 pr=0 pw=0 time=140 us)
    1 INDEX UNIQUE SCAN I_KOPM1 (cr=1 pr=0 pw=0 time=83 us)(object id 350)
    select obj#,type#,ctime,mtime,stime,status,dataobj#,flags,oid$, spare1,
    spare2
    from
    obj$ where owner#=:1 and name=:2 and namespace=:3 and remoteowner is null
    and linkname is null and subname is null
    call count cpu elapsed disk query current rows
    Parse 9 0.00 0.00 0 0 0 0
    Execute 34 0.00 0.00 0 0 0 0
    Fetch 34 0.00 0.00 0 94 0 26
    total 77 0.00 0.01 0 94 0 26
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    1 TABLE ACCESS BY INDEX ROWID OBJ#(18) (cr=5 pr=0 pw=0 time=403 us)
    1 INDEX RANGE SCAN OBJ#(37) (cr=4 pr=0 pw=0 time=293 us)(object id 37)
    select node,owner,name
    from
    syn$ where obj#=:1
    call count cpu elapsed disk query current rows
    Parse 8 0.00 0.00 0 0 0 0
    Execute 10 0.00 0.00 0 0 0 0
    Fetch 10 0.00 0.00 0 30 0 10
    total 28 0.00 0.00 0 30 0 10
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    1 TABLE ACCESS BY INDEX ROWID OBJ#(61) (cr=3 pr=0 pw=0 time=164 us)
    1 INDEX UNIQUE SCAN OBJ#(100) (cr=2 pr=0 pw=0 time=97 us)(object id 100)
    select /*+ index(idl_sb4$ i_idl_sb41) +*/ piece#,length,piece
    from
    idl_sb4$ where obj#=:1 and part=:2 and version=:3 order by piece#
    call count cpu elapsed disk query current rows
    Parse 30 0.00 0.00 0 0 0 0
    Execute 30 0.01 0.00 0 0 0 0
    Fetch 82 0.01 0.00 0 216 0 52
    total 142 0.02 0.02 0 216 0 52
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    2 TABLE ACCESS BY INDEX ROWID IDL_SB4$ (cr=6 pr=0 pw=0 time=226 us)
    2 INDEX RANGE SCAN I_IDL_SB41 (cr=4 pr=0 pw=0 time=181 us)(object id 116)
    select /*+ index(idl_ub1$ i_idl_ub11) +*/ piece#,length,piece
    from
    idl_ub1$ where obj#=:1 and part=:2 and version=:3 order by piece#
    call count cpu elapsed disk query current rows
    Parse 30 0.01 0.00 0 0 0 0
    Execute 30 0.02 0.00 0 0 0 0
    Fetch 58 0.01 0.00 0 149 0 30
    total 118 0.04 0.02 0 149 0 30
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    1 TABLE ACCESS BY INDEX ROWID IDL_UB1$ (cr=4 pr=0 pw=0 time=222 us)
    1 INDEX RANGE SCAN I_IDL_UB11 (cr=3 pr=0 pw=0 time=164 us)(object id 113)
    select /*+ index(idl_char$ i_idl_char1) +*/ piece#,length,piece
    from
    idl_char$ where obj#=:1 and part=:2 and version=:3 order by piece#
    call count cpu elapsed disk query current rows
    Parse 30 0.00 0.00 0 0 0 0
    Execute 30 0.00 0.00 0 0 0 0
    Fetch 55 0.01 0.00 0 135 0 25
    total 115 0.01 0.01 0 135 0 25
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    1 TABLE ACCESS BY INDEX ROWID IDL_CHAR$ (cr=4 pr=0 pw=0 time=233 us)
    1 INDEX RANGE SCAN I_IDL_CHAR1 (cr=3 pr=0 pw=0 time=168 us)(object id 114)
    select /*+ index(idl_ub2$ i_idl_ub21) +*/ piece#,length,piece
    from
    idl_ub2$ where obj#=:1 and part=:2 and version=:3 order by piece#
    call count cpu elapsed disk query current rows
    Parse 30 0.02 0.00 0 0 0 0
    Execute 30 0.02 0.00 0 0 0 0
    Fetch 56 0.00 0.00 0 190 0 51
    total 116 0.04 0.02 0 190 0 51
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    0 TABLE ACCESS BY INDEX ROWID IDL_UB2$ (cr=0 pr=0 pw=0 time=0 us)
    0 INDEX RANGE SCAN I_IDL_UB21 (cr=0 pr=0 pw=0 time=0 us)(object id 115)
    select audit$,properties
    from
    type_misc$ where obj#=:1
    call count cpu elapsed disk query current rows
    Parse 16 0.01 0.01 0 0 0 0
    Execute 16 0.01 0.00 0 0 0 0
    Fetch 16 0.00 0.00 0 48 0 16
    total 48 0.02 0.03 0 48 0 16
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    0 TABLE ACCESS CLUSTER TYPE_MISC$ (cr=0 pr=0 pw=0 time=0 us)
    0 INDEX UNIQUE SCAN I_OBJ# (cr=0 pr=0 pw=0 time=0 us)(object id 3)
    select source
    from
    source$ where obj#=:1 order by line
    call count cpu elapsed disk query current rows
    Parse 4 0.01 0.00 0 0 0 0
    Execute 4 0.02 0.01 0 0 0 0
    Fetch 4 0.00 0.00 0 16 0 30
    total 12 0.03 0.02 0 16 0 30
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    2 TABLE ACCESS BY INDEX ROWID SOURCE$ (cr=4 pr=0 pw=0 time=244 us)
    2 INDEX RANGE SCAN I_SOURCE1 (cr=3 pr=0 pw=0 time=161 us)(object id 112)
    select obj#
    from
    oid$ where user#=:1 and oid$=:2
    call count cpu elapsed disk query current rows
    Parse 2 0.01 0.01 0 0 0 0
    Execute 6 0.02 0.02 0 0 0 0
    Fetch 6 0.00 0.00 0 18 0 6
    total 14 0.03 0.03 0 18 0 6
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    1 TABLE ACCESS BY INDEX ROWID OBJ#(291) (cr=3 pr=0 pw=0 time=165 us)
    1 INDEX UNIQUE SCAN OBJ#(292) (cr=2 pr=0 pw=0 time=105 us)(object id 292)
    select con#,obj#,rcon#,enabled,nvl(defer,0)
    from
    cdef$ where robj#=:1
    call count cpu elapsed disk query current rows
    Parse 6 0.00 0.00 0 0 0 0
    Execute 10 0.00 0.00 0 0 0 0
    Fetch 11 0.01 0.00 0 12 0 1
    total 27 0.01 0.00 0 12 0 1
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    select con#,type#,condlength,intcols,robj#,rcon#,match#,refact,nvl(enabled,0),
    rowid,cols,nvl(defer,0),mtime,nvl(spare1,0)
    from
    cdef$ where obj#=:1
    call count cpu elapsed disk query current rows
    Parse 6 0.00 0.00 0 0 0 0
    Execute 10 0.00 0.00 0 0 0 0
    Fetch 35 0.00 0.00 0 51 0 25
    total 51 0.00 0.00 0 51 0 25
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    select intcol#,nvl(pos#,0),col#,nvl(spare1,0)
    from
    ccol$ where con#=:1
    call count cpu elapsed disk query current rows
    Parse 4 0.00 0.00 0 0 0 0
    Execute 25 0.00 0.00 0 0 0 0
    Fetch 52 0.01 0.00 0 104 0 27
    total 81 0.01 0.00 0 104 0 27
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    select u.name, o.name, a.interface_version#
    from
    association$ a, user$ u, obj$ o where a.obj# = :1
    and a.property = :2
    and a.statstype# = o.obj# and
    u.user# = o.owner#
    call count cpu elapsed disk query current rows
    Parse 6 0.02 0.01 0 0 0 0
    Execute 6 0.02 0.01 0 0 0 0
    Fetch 6 0.00 0.00 0 38 0 4
    total 18 0.04 0.02 0 38 0 4
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    0 NESTED LOOPS (cr=3 pr=0 pw=0 time=300 us)
    0 NESTED LOOPS (cr=3 pr=0 pw=0 time=288 us)
    0 TABLE ACCESS FULL ASSOCIATION$ (cr=3 pr=0 pw=0 time=280 us)
    0 TABLE ACCESS BY INDEX ROWID OBJ$ (cr=0 pr=0 pw=0 time=0 us)
    0 INDEX UNIQUE SCAN I_OBJ1 (cr=0 pr=0 pw=0 time=0 us)(object id 36)
    0 TABLE ACCESS CLUSTER USER$ (cr=0 pr=0 pw=0 time=0 us)
    0 INDEX UNIQUE SCAN I_USER# (cr=0 pr=0 pw=0 time=0 us)(object id 11)
    select count(*)
    FROM
    pt_source a, trj_tmp_buf b, TABLE (SDO_JOIN('PT_SOURCE', 'SHAPE',
    'TRJ_TMP_BUF', 'SHAPE', 'mask=ANYINTERACT')) c, pollution_source d WHERE
    c.rowid1 = a.rowid AND c.rowid2 = b.rowid and d.id=a.id
    call count cpu elapsed disk query current rows
    Parse 1 0.25 0.21 0 165 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.25 0.21 0 165 0 0
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 58 (APPDEV)
    Rows Execution Plan
    0 SELECT STATEMENT MODE: ALL_ROWS
    0 SORT (AGGREGATE)
    0 HASH JOIN
    0 INDEX MODE: ANALYZED (FAST FULL SCAN) OF 'SYS_C005072'
    (INDEX (UNIQUE))
    0 NESTED LOOPS
    0 HASH JOIN
    0 INDEX MODE: ANALYZED (FULL SCAN) OF 'SYS_C005098'
    (INDEX (UNIQUE))
    0 COLLECTION ITERATOR (PICKLER FETCH) OF 'SDO_JOIN'
    0 TABLE ACCESS MODE: ANALYZED (BY USER ROWID) OF
    'PT_SOURCE' (TABLE)
    SELECT USER
    FROM
    DUAL
    call count cpu elapsed disk query current rows
    Parse 2 0.01 0.00 0 0 0 0
    Execute 2 0.00 0.00 0 0 0 0
    Fetch 2 0.00 0.00 0 0 0 2
    total 6 0.01 0.00 0 0 0 2
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 58 (APPDEV) (recursive depth: 1)
    Rows Execution Plan
    0 SELECT STATEMENT MODE: ALL_ROWS
    0 FAST DUAL
    SELECT INSTR(:B1 , '.')
    FROM
    DUAL
    call count cpu elapsed disk query current rows
    Parse 2 0.02 0.01 0 0 0 0
    Execute 2 0.00 0.00 0 0 0 0
    Fetch 2 0.00 0.00 0 0 0 2
    total 6 0.02 0.01 0 0 0 2
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 58 (APPDEV) (recursive depth: 1)
    Rows Execution Plan
    0 SELECT STATEMENT MODE: ALL_ROWS
    0 FAST DUAL
    select cols,audit$,textlength,intcols,property,flags,rowid
    from
    view$ where obj#=:1
    call count cpu elapsed disk query current rows
    Parse 7 0.00 0.00 0 0 0 0
    Execute 7 0.00 0.00 0 0 0 0
    Fetch 7 0.00 0.00 0 21 0 7
    total 21 0.00 0.01 0 21 0 7
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 2)
    Rows Row Source Operation
    1 TABLE ACCESS BY INDEX ROWID OBJ#(62) (cr=3 pr=0 pw=0 time=168 us)
    1 INDEX UNIQUE SCAN OBJ#(98) (cr=2 pr=0 pw=0 time=106 us)(object id 98)
    select text
    from
    view$ where rowid=:1
    call count cpu elapsed disk query current rows
    Parse 12 0.04 0.01 0 0 0 0
    Execute 12 0.01 0.00 0 0 0 0
    Fetch 12 0.00 0.00 0 24 0 12
    total 36 0.05 0.02 0 24 0 12
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 2)
    Rows Row Source Operation
    0 TABLE ACCESS BY USER ROWID VIEW$ (cr=0 pr=0 pw=0 time=0 us)
    SELECT index_owner, index_name
    from
    all_ind_columns WHERE table_name = 'PT_SOURCE' and column_name = 'SHAPE'
    and table_owner = 'APPDEV'
    call count cpu elapsed disk query current rows
    Parse 1 0.17 0.17 0 3 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 1 0.00 0.00 0 43 0 1
    total 3 0.17 0.17 0 46 0 1
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 58 (APPDEV) (recursive depth: 1)
    error during execute of EXPLAIN PLAN statement
    ORA-01039: insufficient privileges on underlying objects of the view
    parse error offset: 100
    SELECT index_owner, index_name
    from
    all_ind_columns WHERE table_name = 'TRJ_TMP_BUF' and column_name = 'SHAPE'
    and table_owner = 'APPDEV'
    call count cpu elapsed disk query current rows
    Parse 1 0.15 0.14 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 1 0.00 0.00 0 38 0 1
    total 3 0.15 0.14 0 38 0 1
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 58 (APPDEV) (recursive depth: 1)
    error during execute of EXPLAIN PLAN statement
    ORA-01039: insufficient privileges on underlying objects of the view
    parse error offset: 100
    SELECT sdo_rtree_height
    from
    all_sdo_index_metadata WHERE sdo_index_name = 'PT_SPATIAL_IDX' and
    sdo_index_owner = 'APPDEV'
    call count cpu elapsed disk query current rows
    Parse 1 0.22 0.19 0 51 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 1 0.00 0.00 0 24 0 1
    total 3 0.22 0.19 0 75 0 1
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 58 (APPDEV) (recursive depth: 1)
    error during execute of EXPLAIN PLAN statement
    ORA-01039: insufficient privileges on underlying objects of the view
    parse error offset: 93
    SELECT sdo_rtree_height
    from
    all_sdo_index_metadata WHERE sdo_index_name = 'TRJ_TMP_BUF_SPT_IDX' and
    sdo_index_owner = 'APPDEV'
    call count cpu elapsed disk query current rows
    Parse 1 0.09 0.08 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 1 0.00 0.00 0 24 0 1
    total 3 0.09 0.08 0 24 0 1
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 58 (APPDEV) (recursive depth: 1)
    error during execute of EXPLAIN PLAN statement
    ORA-01039: insufficient privileges on underlying objects of the view
    parse error offset: 93
    select numbind, nextbindnum, property
    from
    operator$ where obj#=:1
    call count cpu elapsed disk query current rows
    Parse 2 0.01 0.00 0 0 0 0
    Execute 2 0.02 0.01 0 0 0 0
    Fetch 2 0.00 0.00 0 4 0 2
    total 6 0.03 0.02 0 4 0 2
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 2)
    Rows Row Source Operation
    1 TABLE ACCESS BY INDEX ROWID OPERATOR$ (cr=2 pr=0 pw=0 time=138 us)
    1 INDEX UNIQUE SCAN OPER1 (cr=1 pr=0 pw=0 time=81 us)(object id 369)
    select bind#, functionname, property, returnschema, returntype, impschema,
    imptype
    from
    opbinding$ where obj# = :1
    call count cpu elapsed disk query current rows
    Parse 2 0.01 0.01 0 21 0 0
    Execute 2 0.03 0.01 0 0 0 0
    Fetch 4 0.00 0.00 0 6 0 2
    total 8 0.04 0.02 0 27 0 2
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 2)
    Rows Row Source Operation
    1 TABLE ACCESS BY INDEX ROWID OPBINDING$ (cr=3 pr=0 pw=0 time=198 us)
    1 INDEX RANGE SCAN OPBIND1 (cr=2 pr=0 pw=0 time=196 us)(object id 371)
    select position, type
    from
    oparg$ where obj#=:1 and bind#=:2 order by position
    call count cpu elapsed disk query current rows
    Parse 2 0.01 0.01 0 0 0 0
    Execute 2 0.02 0.01 0 0 0 0
    Fetch 8 0.00 0.00 0 4 0 6
    total 12 0.03 0.03 0 4 0 6
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 2)
    Rows Row Source Operation
    3 SORT ORDER BY (cr=2 pr=0 pw=0 time=343 us)
    3 TABLE ACCESS BY INDEX ROWID OPARG$ (cr=2 pr=0 pw=0 time=215 us)
    3 INDEX RANGE SCAN OPARG1 (cr=1 pr=0 pw=0 time=127 us)(object id 375)
    select obj#,implobj#,property, interface_version#
    from
    indtypes$ where obj#=:1
    call count cpu elapsed disk query current rows
    Parse 1 0.01 0.00 0 0 0 0
    Execute 1 0.01 0.00 0 0 0 0
    Fetch 1 0.00 0.00 0 3 0 1
    total 3 0.02 0.01 0 3 0 1
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 2)
    Rows Row Source Operation
    1 TABLE ACCESS FULL OBJ#(376) (cr=3 pr=0 pw=0 time=242 us)
    select obj#,oper#,bind#,property,filt_nam,filt_sch, filt_typ
    from
    indop$ where obj#=:1
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 49 0.00 0.00 0 51 0 48
    total 51 0.00 0.01 0 51 0 48
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 2)
    Rows Row Source Operation
    48 TABLE ACCESS FULL OBJ#(377) (cr=51 pr=0 pw=0 time=239 us)
    declare
    rstr varchar2(4000);
    begin
    :1 := "MDSYS"."SDO_INDEX_METHOD_10I".ODCIINDEXREWRITE(SYS.ODCIINDEXINFO('APPDEV', 'TRJ_TMP_BUF_SPT_IDX',
    SYS.ODCICOLINFOLIST(SYS.ODCICOLINFO('APPDEV', 'TRJ_TMP_BUF', '"SHAPE"', 'SDO_GEOMETRY', 'MDSYS', NULL)),
    NULL, 0, 0),
    SYS.ODCIINDEXINFO('APPDEV', 'PT_SPATIAL_IDX',
    SYS.ODCICOLINFOLIST(SYS.ODCICOLINFO('APPDEV', 'PT_SOURCE', '"SHAPE"', 'SDO_GEOMETRY', 'MDSYS', NULL)),
    NULL, 0, 0),
    'B', 'A', SYS.ODCIPREDINFO('MDSYS', 'SDO_RELATE', NULL, 13), SYS.ODCIQUERYINFO(2, NULL),
    'TRUE', 'TRUE', 'querytype=window mask=ANYINTERACT', rstr, SYS.ODCIENV(0, 0, 0, 24));
    :2 := rstr;
    end;
    call count cpu elapsed disk query current rows
    Parse 1 0.01 0.00 0 0 0 0
    Execute 1 0.14 0.18 0 360 0 1
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.15 0.19 0 360 0 1
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 36 (MDSYS) (recursive depth: 2)
    select audit$
    from
    library$ where obj#=:1
    call count cpu elapsed disk query current rows
    Parse 1 0.01 0.00 0 0 0 0
    Execute 1 0.02 0.01 0 0 0 0
    Fetch 1 0.00 0.00 0 3 0 1
    total 3 0.03 0.02 0 3 0 1
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 3)
    Rows Row Source Operation
    1 TABLE ACCESS CLUSTER LIBRARY$ (cr=3 pr=0 pw=0 time=202 us)
    1 INDEX UNIQUE SCAN I_OBJ# (cr=2 pr=0 pw=0 time=73 us)(object id 3)
    SELECT sdo_diminfo, nvl(sdo_srid,-1)
    FROM
    SDO_GEOM_METADATA_TABLE WHERE SDO_OWNER = 'APPDEV' AND SDO_TABLE_NAME =
    UPPER('TRJ_TMP_BUF') AND '"'||SDO_COLUMN_NAME||'"' = '"SHAPE"'
    call count cpu elapsed disk query current rows
    Parse 1 0.04 0.05 0 6 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 1 0.00 0.00 0 2 0 1
    total 3 0.04 0.05 0 8 0 1
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 36 (MDSYS) (recursive depth: 3)
    Rows Row Source Operation
    0 TABLE ACCESS BY INDEX ROWID SDO_GEOM_METADATA_TABLE (cr=0 pr=0 pw=0 time=0 us)
    0 INDEX RANGE SCAN SDO_GEOM_IDX (cr=0 pr=0 pw=0 time=0 us)(object id 41168)
    error during execute of EXPLAIN PLAN statement
    ORA-00942: table or view does not exist
    parse error offset: 107
    SELECT sdo_diminfo, nvl(sdo_srid,-1)
    FROM
    SDO_GEOM_METADATA_TABLE WHERE SDO_OWNER = 'APPDEV' AND SDO_TABLE_NAME =
    UPPER('PT_SOURCE') AND '"'||SDO_COLUMN_NAME||'"' = '"SHAPE"'
    call count cpu elapsed disk query current rows
    Parse 1 0.03 0.03 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 1 0.00 0.00 0 2 0 1
    total 3 0.03 0.03 0 2 0 1
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 36 (MDSYS) (recursive depth: 3)
    Rows Row Source Operation
    0 TABLE ACCESS BY INDEX ROWID SDO_GEOM_METADATA_TABLE (cr=0 pr=0 pw=0 time=0 us)
    0 INDEX RANGE SCAN SDO_GEOM_IDX (cr=0 pr=0 pw=0 time=0 us)(object id 41168)
    error during execute of EXPLAIN PLAN statement
    ORA-00942: table or view does not exist
    parse error offset: 107
    SELECT nvl(sdo_level,0), nvl(sdo_numtiles,0), nvl(sdo_maxlevel, 0),
    sdo_index_table, sdo_index_primary, sdo_index_type, nvl(sdo_rtree_height, 0)
    , nvl(sdo_rtree_num_nodes, 0), nvl(sdo_rtree_dimensionality, 0),
    nvl(sdo_rtree_fanout, 0), nvl(sdo_rtree_root, 'EMPTY'),
    nvl(sdo_rtree_seq_name, 'DEFAULT'), sdo_index_partition,
    nvl(sdo_partitioned, 0), nvl(sdo_layer_gtype, 'DEFAULT'),
    nvl(sdo_index_dims, 0), nvl(sdo_rtree_pctfree, 10), nvl(sdo_rtree_quality,
    0), nvl(sdo_index_version, 0), nvl(sdo_tablespace, 'DEFAULT'),
    nvl(sdo_index_geodetic, 'FALSE'), sdo_index_status
    FROM
    sdo_index_metadata_table WHERE sdo_index_owner = 'APPDEV' and sdo_index_name
    = 'TRJ_TMP_BUF_SPT_IDX' ORDER BY SDO_INDEX_PRIMARY
    call count cpu elapsed disk query current rows
    Parse 1 0.04 0.03 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 2 0.00 0.00 0 2 0 1
    total 4 0.04 0.03 0 2 0 1
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 36 (MDSYS) (recursive depth: 3)
    Rows Row Source Operation
    1 SORT ORDER BY (cr=2 pr=0 pw=0 time=366 us)
    1 TABLE ACCESS BY INDEX ROWID SDO_INDEX_METADATA_TABLE (cr=2 pr=0 pw=0 time=216 us)
    1 INDEX RANGE SCAN SDO_IDX_MDATA_IDX (cr=1 pr=0 pw=0 time=136 us)(object id 49332)
    error during execute of EXPLAIN PLAN statement
    ORA-00942: table or view does not exist
    parse error offset: 639
    SELECT nvl(sdo_level,0), nvl(sdo_numtiles,0), nvl(sdo_maxlevel, 0),
    sdo_index_table, sdo_index_primary, sdo_index_type, nvl(sdo_rtree_height, 0)
    , nvl(sdo_rtree_num_nodes, 0), nvl(sdo_rtree_dimensionality, 0),
    nvl(sdo_rtree_fanout, 0), nvl(sdo_rtree_root, 'EMPTY'),
    nvl(sdo_rtree_seq_name, 'DEFAULT'), sdo_index_partition,
    nvl(sdo_partitioned, 0), nvl(sdo_layer_gtype, 'DEFAULT'),
    nvl(sdo_index_dims, 0), nvl(sdo_rtree_pctfree, 10), nvl(sdo_rtree_quality,
    0), nvl(sdo_index_version, 0), nvl(sdo_tablespace, 'DEFAULT'),
    nvl(sdo_index_geodetic, 'FALSE'), sdo_index_status
    FROM
    sdo_index_metadata_table WHERE sdo_index_owner = 'APPDEV' and sdo_index_name
    = 'PT_SPATIAL_IDX' ORDER BY SDO_INDEX_PRIMARY
    call count cpu elapsed disk query current rows
    Parse 1 0.03 0.02 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 2 0.00 0.00 0 2 0 1
    total 4 0.03 0.02 0 2 0 1
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 36 (MDSYS) (recursive depth: 3)
    Rows Row Source Operation
    1 SORT ORDER BY (cr=2 pr=0 pw=0 time=388 us)
    1 TABLE ACCESS BY INDEX ROWID SDO_INDEX_METADATA_TABLE (cr=2 pr=0 pw=0 time=236 us)
    1 INDEX RANGE SCAN SDO_IDX_MDATA_IDX (cr=1 pr=0 pw=0 time=138 us)(object id 49332)
    error during execute of EXPLAIN PLAN statement
    ORA-00942: table or view does not exist
    parse error offset: 639
    declare
    cost sys.ODCICost := sys.ODCICost(NULL, NULL, NULL, NULL);
    obj0 "MDSYS"."SDO_GEOMETRY" := "MDSYS"."SDO_GEOMETRY"(NULL, NULL, NULL, NULL, NULL);
    obj1 "MDSYS"."SDO_GEOMETRY" := "MDSYS"."SDO_GEOMETRY"(NULL, NULL, NULL, NULL, NULL);
    begin
    :1 := "MDSYS"."SDO_STATISTICS".ODCIStatsFunctionCost(
    sys.ODCIFuncInfo('MDSYS',
    'SDO_3GL',
    'RELATE',
    2),
    cost,
    sys.ODCIARGDESCLIST(sys.ODCIARGDESC(2, 'TRJ_TMP_BUF', 'APPDEV', '"SHAPE"', NULL, NULL, NULL), sys.ODCIARGDESC(2, 'PT_SOURCE', 'APPDEV', '"SHAPE"', NULL, NULL, NULL), sys.ODCIARGDESC(3, NULL, NULL, NULL, NULL, NULL, NULL))
    , obj0, obj1, :5,
    sys.ODCIENV(:6,:7,:8,:9));
    if cost.CPUCost IS NULL then
    :2 := -1;
    else
    :2 := cost.CPUCost;
    end if;
    if cost.IOCost IS NULL then
    :3 := -1;
    else
    :3 := cost.IOCost;
    end if;
    if cost.NetworkCost IS NULL then
    :4 := -1;
    else
    :4 := cost.NetworkCost;
    end if;
    exception
    when others then
    raise;
    end;
    call count cpu elapsed disk query current rows
    Parse 2 0.01 0.00 0 0 0 0
    Execute 2 0.09 0.10 0 228 0 2
    Fetch 0 0.00 0.00 0 0 0 0
    total 4 0.10 0.11 0 228 0 2
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 58 (APPDEV) (recursive depth: 2)
    declare
    sel number;
    obj0 "MDSYS"."SDO_GEOMETRY" := "MDSYS"."SDO_GEOMETRY"(NULL, NULL, NULL, NULL, NULL);
    obj1 "MDSYS"."SDO_GEOMETRY" := "MDSYS"."SDO_GEOMETRY"(NULL, NULL, NULL, NULL, NULL);
    begin
    :1 := "MDSYS"."SDO_STATISTICS".ODCIStatsSelectivity(
    sys.ODCIPREDINFO('MDSYS',
    'SDO_3GL',
    'RELATE',
    173),
    sel,
    sys.ODCIARGDESCLIST(sys.ODCIARGDESC(3, NULL, NULL, NULL, NULL, NULL, NULL), sys.ODCIARGDESC(3, NULL, NULL, NULL, NULL, NULL, NULL), sys.ODCIARGDESC(2, 'TRJ_TMP_BUF', 'APPDEV', '"SHAPE"', NULL, NULL, NULL), sys.ODCIARGDESC(2, 'PT_SOURCE', 'APPDEV', '"SHAPE"', NULL, NULL, NULL), sys.ODCIARGDESC(3, NULL, NULL, NULL, NULL, NULL, NULL)),
    :3,
    :4
    , obj0, obj1, :5,
    sys.ODCIENV(:6,:7,:8,:9));
    if sel IS NULL then
    :2 := -1;
    else
    :2 := sel;
    end if;
    exception
    when others then
    raise;
    end;
    call count cpu elapsed disk query current rows
    Parse 1 0.01 0.01 0 0 0 0
    Execute 1 0.06 0.05 0 180 0 1
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.07 0.06 0 180 0 1
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 58 (APPDEV) (recursive depth: 2)
    select a.default_cpu_cost, a.default_io_cost
    from
    association$ a where a.obj# = :1
    and a.property = :2
    call count cpu elapsed disk query current rows
    Parse 1 0.01 0.00 0 0 0 0
    Execute 1 0.01 0.01 0 0 0 0
    Fetch 1 0.00 0.00 0 3 0 0
    total 3 0.02 0.02 0 3 0 0
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 2)
    Rows Row Source Operation
    0 TABLE ACCESS FULL ASSOCIATION$ (cr=3 pr=0 pw=0 time=208 us)
    declare
    cost sys.ODCICost := sys.ODCICost(NULL, NULL, NULL, NULL);
    obj1 "MDSYS"."SDO_GEOMETRY" := "MDSYS"."SDO_GEOMETRY"(NULL, NULL, NULL, NULL, NULL);
    obj2 "MDSYS"."SDO_GEOMETRY" := "MDSYS"."SDO_GEOMETRY"(NULL, NULL, NULL, NULL, NULL);
    begin
    :1 := "MDSYS"."SDO_STATISTICS".ODCIStatsIndexCost(
    sys.ODCIINDEXINFO('APPDEV',
    'TRJ_TMP_BUF_SPT_IDX',
    sys.ODCICOLINFOLIST(sys.ODCICOLINFO('APPDEV', 'TRJ_TMP_BUF', '"SHAPE"', 'SDO_GEOMETRY', 'MDSYS', NULL)),
    NULL,
    0,
    0),
    1.00000000,
    cost,
    sys.ODCIQUERYINFO(2,
    NULL),
    sys.ODCIPREDINFO('MDSYS',
    'SDO_RTREE_RELATE',
    NULL,
    141),
    sys.ODCIARGDESCLIST(sys.ODCIARGDESC(3, NULL, NULL, NULL, NULL, NULL, NULL), sys.ODCIARGDESC(3, NULL, NULL, NULL, NULL, NULL, NULL), sys.ODCIARGDESC(2, 'TRJ_TMP_BUF', 'APPDEV', '"SHAPE"', NULL, NULL, NULL), sys.ODCIARGDESC(2, 'PT_SOURCE', 'APPDEV', '"SHAPE"', NULL, NULL, NULL), sys.ODCIARGDESC(3, NULL, NULL, NULL, NULL, NULL, NULL)),
    :6,
    :7
    , obj2, :8,
    sys.ODCIENV(:9,:10,:11,:12));
    if cost.CPUCost IS NULL then
    :2 := -1;
    else
    :2 := cost.CPUCost;
    end if;
    if cost.IOCost IS NULL then
    :3 := -1;
    else
    :3 := cost.IOCost;
    end if;
    if cost.NetworkCost IS NULL then
    :4 := -1;
    else
    :4 := cost.NetworkCost;
    end if;
    :5 := cost.IndexCostInfo;
    exception
    when others then
    raise;
    end;
    call count cpu elapsed disk query current rows
    Parse 1 0.01 0.01 0 0 0 0
    Execute 0 0.00 0.00 0 0 0 0
    Fetch 0 0.00 0.00 0 0 0 0
    total 1 0.01 0.01 0 0 0 0
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 58 (APPDEV) (recursive depth: 2)
    SELECT /*+ MERGE USE_NL(b) */ a.rowid, b.rowid
    from
    PT_SOURCE a, TRJ_TMP_BUF b WHERE sdo_relate(b.SHAPE, a.SHAPE, 'querytype=
    window mask=ANYINTERACT')= 'TRUE'
    call count cpu elapsed disk query current rows
    Parse 1 0.30 0.30 0 894 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.30 0.30 0 894 0 0
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 58 (APPDEV) (recursive depth: 1)
    Rows Execution Plan
    0 SELECT STATEMENT MODE: ALL_ROWS
    0 NESTED LOOPS
    0 TABLE ACCESS MODE: ANALYZED (FULL) OF 'TRJ_TMP_BUF' (TABLE)
    0 TABLE ACCESS MODE: ANALYZED (FULL) OF 'PT_SOURCE' (TABLE)
    SELECT DIMINFO
    FROM
    ALL_SDO_GEOM_METADATA WHERE OWNER = 'APPDEV' AND TABLE_NAME = 'TRJ_TMP_BUF'
    AND COLUMN_NAME = 'SHAPE'
    call count cpu elapsed disk query current rows
    Parse 1 0.50 0.51 0 9 0 0
    Execute 1960 1.79 1.62 0 0 0 0
    Fetch 1960 8.38 8.13 0 43120 0 1960
    total 3921 10.67 10.27 0 43129 0 1960
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 58 (APPDEV) (recursive depth: 2)
    error during execute of EXPLAIN PLAN statement
    ORA-01039: insufficient privileges on underlying objects of the view
    parse error offset: 84
    SELECT signature, nhash, sqlarea_hash, last_used, inuse_features, flags,
    modified, incarnation
    FROM
    sql$ WHERE signature = :1
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.01 0.02 0 0 0 0
    Fetch 1 0.00 0.00 0 2 0 1
    total 3 0.01 0.02 0 2 0 1
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 3)
    Rows Row Source Operation
    1 TABLE ACCESS BY INDEX ROWID SQL$ (cr=2 pr=0 pw=0 time=162 us)
    1 INDEX UNIQUE SCAN I_SQL$SIGNATURE (cr=1 pr=0 pw=0 time=104 us)(object id 453)
    SELECT category
    FROM
    sqlprof$ WHERE signature = :1
    call count cpu e

  • Spatial Join

    Hi,
    I am new to Oracle Spatial.
    I am having two different version of TeleAtlas road network data. I am not seeing any common id between these two map data. I would like to copy two columns from old data to the new data based on geometry.
    any help on this.

    If you are trying to add two new columns from the old table to the new table, you might have to do some kind of join on these two tables.
    One way to do this is to come up with a mapping table from new IDs to old IDs.
    This can be done by joining the geometry with sdo_equal operator (11.2 19 Spatial Operator in http://download.oracle.com/docs/cd/E11882_01/appdev.112/e11830/sdo_operat.htm) or if you have other unique keys (like name, most likely will be more efficient than spatial join).
    Once the mapping table is created, you can update the new table with two columns from the old table with your old table and the mapping table:
    Since you have a fairly large table (~30M rows) with indexes, a better/efficient approach is to create a new table instead of updating the current new table.
    Then rename it and create necessary indexes on it.
    jack

  • Delegate specific domain user to do add/remove hardware&software, join to domain feature only.

    Dear team;
    I want to Delegate specific domain user to do two things add/remove hardware/software, join to domain feature only without give him Local admin
    Best regards
    LAshkham

    Hi,
    Please understand that if you want make some specific domain users add/remove hardware/software on domain computers, you should grant these users the local admin right. We could grant the local
    admin right using Restricted Groups Policy Settings or Local Users and Groups GPP setting. For details, please refer to the following articles.
    Restricted Groups Policy Settings
    http://technet.microsoft.com/en-us/library/cc756802(v=ws.10).aspx
    How to use Group Policy Preferences to Secure Local Administrator Groups
    http://www.grouppolicy.biz/2010/01/how-to-use-group-policy-preferences-to-secure-local-administrator-groups/
    You also mentioned that you want to delegate the
    Join a computer to a domain task to these specific users. Regarding the request, we could delegate the task via Delegation of Control Wizard. For details, please refer to the following article.
    Delegation of Control Wizard
    http://technet.microsoft.com/en-us/library/dd145344.aspx
    Hope this helps.
    Best Regards,
    Andy Qi
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Andy Qi
    TechNet Community Support

  • Tuning Large Spatial Join in Oracle 9i

    I have a large (million+ rows) table of line segments (2 point lines) and I want to generate a table of all intersections. I have created the geometry column and populated the values and indexed it with a spatial index.
    I even looked in the metadata to get the index table name (not same name as index itself)and computed statistics on the spatial index table.
    1. Was this really necessary?
    I do a join on the table as follows:
    Select a.LineID, b.LineID from Lines a, Lines b
    where
    mdsys.sdo_relate(a.LineSegment, b.LineSegment,
    'mask=anyinteract querytype=JOIN
    idxtab2=Line_SPATIAL_IDX') = 'TRUE';
    Everything I try results in nested full table scans.
    I have tried index table name in place of index name.
    2. Which should I really use?
    3. QueryType=Join is rarely used but this is what I need, right?
    4. Does the optimizer/explain plan accurately represent spatial operations?
    5. SDO_Join is not available in 9i and Oracle10 is not an option for me, so any idea's how to do this efficently, or at least any methods to optimize the SQL?
    I removed the Insert command and SDO_Intersection function so that I could tune the Select.
    (I know i will need to filter each lines intersection with itself, but I am not even to that point yet, this runs for days).
    Thanks,

    I have the horsepower to do a full scan once and I was hoping that the spatial index would be of some use to avoid nested scans (a million scans of a million rows).
    Anyone have insight on why SDO_RELATE would not use the spatial index? Index type make a difference?
    It is Geodetic data, so I used the tree index, maybe tiling would be better sdo_relate join?
    I am watching from Enterprise Console session screen. Does this show an accurate plan on SQL that uses Spatial Operators?
    Also since I am joining a table to itself, on the same column no less, is this outside the capability of sdo_relate? It won't let me put a 2nd spatial index on that column. Should it? Am I doing it wrong?
    Any help is appreciated. Thanks.

  • ORA-03232 Error on Spatial Join

    I am trying to run the following query. The tablesnames are pretty self explanitory.
    SELECT c.cnty,COUNTY(a.id)
    FROM county c,addr_points a
    WHERE SDO_RELATE(a.geoloc,c.geoloc,
    'mask = ANYINTERACT
    querytype = JOIN') = TRUE
    GROUP BY c.cnty;
    and am getting
    ORA-03232: unable to allocate an extent of 14 blocks from tablespace 2
    There is no such tablespace in our database, so we assumed it ment filename, which points to our rollback segments. These seem to be plenty large. We also not getting any alert logs that reflect this error. The docs on the error say to increase the default NEXT value on the tablespace, which we did. The current value is 5mb which is much larger than 14 blocks (block size is 8k).
    Any suggestions?
    Thanks
    null

    We got this to work, but we did it
    with a querytype=WINDOW instead of a JOIN.
    SELECT /*+ ORDERED */ c.cnty,COUNTY(a.id)
    FROM county c,
    addr_points a
    WHERE SDO_RELATE(a.geoloc,c.geoloc,
    'mask = ANYINTERACT querytype = WINDOW
    LAYER_GTYPE=POINT') = 'TRUE'
    GROUP BY c.cnty;
    ** A FEW NOTES **
    The ordered by hint is very important
    if you have more than one window
    getting passed into the second parameter
    of RELATE.
    Also when you use the ORDERED hint, it is
    important to make the table the windows
    are coming from listed first in the
    FROM clause.
    *** We are still looking into why
    the group by did not work with
    querytype = JOIN
    Will post something soon.
    Thanks.
    Dan
    null

  • Illustrator CS3 crashes if join lines on different layers

    Sent in a crash report earlier, but didn't realize the source of the error at the time -- which was that the two lines I was attempting to join were located in separate sublayers. Illustrator did not give me an error message when I attempted to join the lines, instead the lines I had joined simply vanished. If I then hit command Z to undo, the file would crash. This behavior was repeatable multiple times.
    I realize this is a bug in an older version of the software, but having this info in the forums may be of use for people still running CS3, and, if this bug has not yet been corrected in more recent versions of the software, then I hope the tech folks will take notice.

    Peter, Steve -
      That's interesting - and I was sure I'd isolated the source of the problem. I'm working in the mac OS (snow leopard) and CS3 suite is the Design Premium version. I had 3 sublayers in my layer, and each of those sublayers had about 20 paths in them. The behavior occurred repeatedly when I tried to join 2 lines that were in different sublayers (one of the endpoints was created by clipping a section out of an oval on one of the sublayers). I thought it was not a random behavior, b/c I reproduced it 4 or 5 times in a row, with 2 different pairs of lines. Yet I was able to join lines on any sublayer with no problem, and when I pulled all the lines out of the sublayers, I was able to join the two sets of lines that had previously been causing the crash without any difficulty. So I'm not sure why your tests did not reproduce the problem -- or why I had the problem in the first place.
    Thanks,
    Suzi

  • Spatial Web Services - Web Feature Service Installation

    Where can I find the wsclient.jar for setting Up the Client for Spatial Web Services? Is this file part of the Oracle Database 11g R2?

    in /Oraclehome/md/demo/ws/client
    you need install the examples.

  • Spatial join like UNION in ArcToolbox

    I loaded two polygon-shapefiles in Oracle Spatial. Now I'd like to make a spatial overlay on these two sets of geometries, which has to work like the UNION-analysis in ArcToolbox. This means that the result of the overlay must keep all the separate geometries, not just one geometry (like SDO_UNION). For each resulting polygon I want to know the ID from the original polygons.
    How can I do this?
    I was thinking of a combination of the SDO_INTERSECTION and the SDO_XOR functions, but do these functions also work for sets of geometries, or just for a pair of geometries?
    Thanks,
    Anja

    ok, now i understand. your query may work. the where is searching the intersecting geometries each to another. that looks good. your intersection/difference is searching the result out of your where.
    I see, you want to have the b geometry that is not covered by a and vice versa and also the union geometrie of both as new geometrie?
    i think your way is ok.
    i tried following - your idea has brought me to another implementation i_'Ve forgot for 2 months :(
    -- Create table
    drop table POLYTABLE1
    drop table POLYTABLE2
    create table POLYTABLE1
    ID NUMBER(12),
    GEOMETRY MDSYS.SDO_GEOMETRY
    create table POLYTABLE2
    ID NUMBER(12),
    GEOMETRY MDSYS.SDO_GEOMETRY
    INSERT INTO POLYTABLE1 (ID,GEOMETRY) VALUES(1,
    MDSYS.SDO_GEOMETRY(
    2003
    ,NULL
    ,NULL
    ,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1)
    ,MDSYS.SDO_ORDINATE_ARRAY(1,1,3,1,3,2,2,1,1,1)
    INSERT INTO POLYTABLE2 (ID,GEOMETRY) VALUES(2,
    MDSYS.SDO_GEOMETRY(
    2003
    ,NULL
    ,NULL
    ,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1)
    ,MDSYS.SDO_ORDINATE_ARRAY(2,1,4,1,4,2,2,2,2,1)
    insert into user_sdo_geom_metadata values ('POLYTABLE1','GEOMETRY',
    MDSYS.SDO_DIM_ARRAY(
    MDSYS.SDO_DIM_ELEMENT('X',0,10,0.05)
    ,MDSYS.SDO_DIM_ELEMENT('Y',0,10,0.05)
    ,NULL)
    insert into user_sdo_geom_metadata values ('POLYTABLE2','GEOMETRY',
    MDSYS.SDO_DIM_ARRAY(
    MDSYS.SDO_DIM_ELEMENT('X',0,10,0.05)
    ,MDSYS.SDO_DIM_ELEMENT('Y',0,10,0.05)
    ,NULL)
    create index i_geo_ptab1 on POLYTABLE1 (geometry) indextype is MDSYS.SPATIAL_INDEX
    create index i_geo_ptab2 on POLYTABLE2 (geometry) indextype is MDSYS.SPATIAL_INDEX
    SELECT a.id, b.id, SDO_GEOM.SDO_INTERSECTION(a.geometry, b.geometry, 0.05) intsxn_geom
    FROM polytable1 b, polytable2 a
    WHERE SDO_RELATE(a.geometry, b.geometry, 'mask=anyinteract')='TRUE'
    UNION ALL
    SELECT a.id, b.id, SDO_GEOM.SDO_DIFFERENCE(b.geometry, a.geometry, 0.05) intsxn_geom
    FROM polytable2 b, polytable1 a
    WHERE SDO_RELATE(a.geometry, b.geometry, 'mask=anyinteract')='TRUE'
    UNION ALL
    SELECT a.id, b.id, SDO_GEOM.SDO_DIFFERENCE(a.geometry, b.geometry, 0.05) intsxn_geom
    FROM polytable2 b, polytable1 a
    WHERE SDO_RELATE(a.geometry, b.geometry, 'mask=anyinteract')='TRUE'
    the results are very interesting... i think: FALSE!! I am using a Oracle Database 10g Enterprise Edition Release 10.1.0.4.0...
    can u compare with my reults?
    SQL> SELECT a.id, b.id, SDO_GEOM.SDO_INTERSECTION(a.geometry, b.geometry, 0.05) intsxn_geom
    2 FROM polytable1 b, polytable2 a
    3 WHERE SDO_RELATE(a.geometry, b.geometry, 'mask=anyinteract')='TRUE'
    4 UNION ALL
    5 SELECT a.id, b.id, SDO_GEOM.SDO_DIFFERENCE(b.geometry, a.geometry, 0.05) intsxn_geom
    6 FROM polytable2 b, polytable1 a
    7 WHERE SDO_RELATE(a.geometry, b.geometry, 'mask=anyinteract')='TRUE'
    8 UNION ALL
    9 SELECT a.id, b.id, SDO_GEOM.SDO_DIFFERENCE(a.geometry, b.geometry, 0.05) intsxn_geom
    10 FROM polytable2 b, polytable1 a
    11 WHERE SDO_RELATE(a.geometry, b.geometry, 'mask=anyinteract')='TRUE';
    2 1 SDO_GEOMETRY(2003, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1), SDO_ORDINATE_ARRAY(2, 1, 3, 1, 3, 2, 2, 1))
    1 2 SDO_GEOMETRY(2007, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1, 11, 1003, 1), SDO_ORDINATE_ARRAY(3, 1, 4, 1, 4, 2, 3, 2, 3, 1, 2, 2, 2, 1, 3, 2, 2, 2))
    1 2
    ! this also doesn't work correct with difference set to 1 (in metadata and geoemetry)!
    Message was edited by:
    Andreas Brodkorb

  • Topology Built from Spatial Geometries

    Hello, I am trying creating topology from example:
    CREATE TABLE city_streets6_geom ( -- City streets/roads
    name VARCHAR2(30) PRIMARY KEY,
    geometry SDO_GEOMETRY);
    CREATE TABLE traffic_signs6_geom ( -- Traffic signs
    name VARCHAR2(30) PRIMARY KEY,
    geometry SDO_GEOMETRY);
    CREATE TABLE land_parcels6_geom ( -- Land parcels
    name VARCHAR2(30) PRIMARY KEY,
    geometry SDO_GEOMETRY);
    INSERT INTO user_sdo_geom_metadata
    (TABLE_NAME,
    COLUMN_NAME,
    DIMINFO,
    SRID)
    VALUES (
    'city_streets6_GEOM',
    'GEOMETRY',
    SDO_DIM_ARRAY(
    SDO_DIM_ELEMENT('X', 0, 65, 0.005),
    SDO_DIM_ELEMENT('Y', 0, 45, 0.005)
    NULL -- SRID
    INSERT INTO user_sdo_geom_metadata
    (TABLE_NAME,
    COLUMN_NAME,
    DIMINFO,
    SRID)
    VALUES (
    'traffic_signs6_GEOM',
    'GEOMETRY',
    SDO_DIM_ARRAY(
    SDO_DIM_ELEMENT('X', 0, 65, 0.005),
    SDO_DIM_ELEMENT('Y', 0, 45, 0.005)
    NULL -- SRID
    INSERT INTO user_sdo_geom_metadata
    (TABLE_NAME,
    COLUMN_NAME,
    DIMINFO,
    SRID)
    VALUES (
    'land_parcels6_GEOM',
    'GEOMETRY',
    SDO_DIM_ARRAY(
    SDO_DIM_ELEMENT('X', 0, 65, 0.005),
    SDO_DIM_ELEMENT('Y', 0, 45, 0.005)
    NULL -- SRID
    -- Load these tables (names and geometries for city streets/roads,
    -- traffic signs, and land parcels).
    -- Insert data into city street line geometries.
    -- R1
    INSERT INTO city_streets6_geom VALUES('R1',
    SDO_GEOMETRY(2002, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1),
    SDO_ORDINATE_ARRAY(9,14, 21,14, 35,14, 47,14)));
    -- R2
    INSERT INTO city_streets6_geom VALUES('R2',
    SDO_GEOMETRY(2002, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1),
    SDO_ORDINATE_ARRAY(36,38, 38,35, 41,34, 42,33, 45,32, 47,28, 50,28, 52,32,
    57,33, 57,36, 59,39, 61,38, 62,41, 47,42, 45,40, 41,40)));
    -- R3
    INSERT INTO city_streets6_geom VALUES('R3',
    SDO_GEOMETRY(2002, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1),
    SDO_ORDINATE_ARRAY(9,35, 13,35)));
    -- R4
    INSERT INTO city_streets6_geom VALUES('R4',
    SDO_GEOMETRY(2002, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1),
    SDO_ORDINATE_ARRAY(25,30, 25,35)));
    -- Insert data into traffic sign point geometries.
    -- S1
    INSERT INTO traffic_signs6_geom VALUES('S1',
    SDO_GEOMETRY(2001, NULL, SDO_POINT_TYPE(21,14,NULL), NULL, NULL));
    -- S2
    INSERT INTO traffic_signs6_geom VALUES('S2',
    SDO_GEOMETRY(2001, NULL, SDO_POINT_TYPE(35,14,NULL), NULL, NULL));
    -- S3
    INSERT INTO traffic_signs6_geom VALUES('S3',
    SDO_GEOMETRY(2001, NULL, SDO_POINT_TYPE(57,33,NULL), NULL, NULL));
    -- S4
    INSERT INTO traffic_signs6_geom VALUES('S4',
    SDO_GEOMETRY(2001, NULL, SDO_POINT_TYPE(20,37,NULL), NULL, NULL));
    -- Insert data into land parcel polygon geometries.
    -- P1
    INSERT INTO land_parcels6_geom VALUES('P1',
    SDO_GEOMETRY(2003, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1),
    SDO_ORDINATE_ARRAY(9,6, 21,6, 21,14, 21,22, 9,22, 9,14, 9,6)));
    -- P2
    INSERT INTO land_parcels6_geom VALUES('P2',
    SDO_GEOMETRY(2003, NULL, NULL, SDO_ELEM_INFO_ARRAY(1,1003,1),
    SDO_ORDINATE_ARRAY(21,6, 35,6, 35,14, 35,22, 21,22, 21,14, 21,6)));
    -- P3
    INSERT INTO land_parcels6_geom VALUES('P3',
    SDO_GEOMETRY(2003, NULL, NULL, SDO_ELEM_INFO_ARRAY(1,1003,1),
    SDO_ORDINATE_ARRAY(35,6, 47,6, 47,14, 47,22, 35,22, 35,14, 35,6)));
    -- P4
    INSERT INTO land_parcels6_geom VALUES('P4',
    SDO_GEOMETRY(2003, NULL, NULL, SDO_ELEM_INFO_ARRAY(1,1003,1),
    SDO_ORDINATE_ARRAY(17,30, 31,30, 31,40, 17,40, 17,30)));
    -- P5 (polygon with a hole; exterior ring and one interior ring)
    INSERT INTO land_parcels6_geom VALUES('P5',
    SDO_GEOMETRY(2003, NULL, NULL, SDO_ELEM_INFO_ARRAY(1,1003,1, 11,2003,1),
    SDO_ORDINATE_ARRAY(3,30, 16,30, 16,38, 3,38, 3,30, 4,31, 4,34, 7,34, 7,31, 4,31)));
    -- Validate the layers.
    create table val_results (sdo_rowid ROWID, result VARCHAR2(2000));
    call SDO_GEOM.VALIDATE_LAYER_WITH_CONTEXT('city_streets6_GEOM','GEOMETRY','VAL_RESULTS');
    SELECT * from val_results;
    truncate table val_results;
    call SDO_GEOM.VALIDATE_LAYER_WITH_CONTEXT('traffic_signs6_GEOM','GEOMETRY','VAL_RESULTS');
    SELECT * from val_results;
    truncate table val_results;
    call SDO_GEOM.VALIDATE_LAYER_WITH_CONTEXT('land_parcels6_GEOM','GEOMETRY','VAL_RESULTS');
    SELECT * from val_results;
    drop table val_results;
    -- Create the spatial indexes.
    CREATE INDEX city_streets6_geom_idx ON city_streets6_geom(geometry)
    INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    CREATE INDEX traffic_signs6_geom_idx ON traffic_signs6_geom(geometry)
    INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    CREATE INDEX land_parcels6_geom_idx ON land_parcels6_geom(geometry)
    INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    -- Start the main steps for using the topology data model with a
    -- topology built from Spatial geometry data.
    -- 1. Create the topology. (Null SRID in this example.)
    EXECUTE SDO_TOPO.CREATE_TOPOLOGY('CITY_DATA6', 0.00005);
    -- 2. Insert the universe face (F0). (id = -1, not 0)
    INSERT INTO CITY_DATA6_FACE$ values (
    -1, NULL, SDO_LIST_TYPE(), SDO_LIST_TYPE(), NULL);
    COMMIT;
    -- 3. Create feature tables.
    CREATE TABLE city_streets6 ( -- City streets/roads
    feature_name VARCHAR2(30) PRIMARY KEY,
    feature SDO_TOPO_GEOMETRY);
    CREATE TABLE traffic_signs6 ( -- Traffic signs
    feature_name VARCHAR2(30) PRIMARY KEY,
    feature SDO_TOPO_GEOMETRY);
    CREATE TABLE land_parcels6 ( -- Land parcels
    feature_name VARCHAR2(30) PRIMARY KEY,
    feature SDO_TOPO_GEOMETRY);
    -- 4. Associate feature tables with the topology.
    -- Add the three topology geometry layers to the CITY_DATA6 topology.
    -- Any order is OK.
    EXECUTE SDO_TOPO.ADD_TOPO_GEOMETRY_LAYER('CITY_DATA6', 'city_streets6', 'FEATURE','LINE');
    EXECUTE SDO_TOPO.ADD_TOPO_GEOMETRY_LAYER('CITY_DATA6', 'traffic_signs6','FEATURE', 'POINT');
    EXECUTE SDO_TOPO.ADD_TOPO_GEOMETRY_LAYER('CITY_DATA6', 'land_parcels6','FEATURE', 'POLYGON');
    -- As a result, Spatial generates a unique TG_LAYER_ID for each layer in
    -- the topology metadata (USER/ALL_SDO_TOPO_METADATA).
    -- 5. Create a TopoMap object and load the whole topology into cache for updating.
    EXECUTE SDO_TOPO_MAP.CREATE_TOPO_MAP('CITY_DATA6', 'CITY_DATA6_TOPOMAP');
    EXECUTE SDO_TOPO_MAP.LOAD_TOPO_MAP('CITY_DATA6_TOPOMAP', 'true');
    -- 6. Load feature tables, inserting data from the spatial tables and
    -- using SDO_TOPO_MAP.CREATE_FEATURE.
    BEGIN
    FOR street_rec IN (SELECT name, geometry FROM city_streets6_geom) LOOP
    INSERT INTO city_streets6 VALUES(street_rec.name,
    SDO_TOPO_MAP.CREATE_FEATURE('CITY_DATA6', 'city_streets6', 'FEATURE',
    street_rec.geometry));
    END LOOP;
    FOR sign_rec IN (SELECT name, geometry FROM traffic_signs6_geom) LOOP
    INSERT INTO traffic_signs6 VALUES(sign_rec.name,
    SDO_TOPO_MAP.CREATE_FEATURE('CITY_DATA6', 'traffic_signs6', 'FEATURE',
    sign_rec.geometry));
    END LOOP;
    FOR parcel_rec IN (SELECT name, geometry FROM land_parcels6_geom) LOOP
    INSERT INTO land_parcels6 VALUES(parcel_rec.name,
    SDO_TOPO_MAP.CREATE_FEATURE('CITY_DATA6', 'land_parcels6', 'FEATURE',
    parcel_rec.geometry));
    END LOOP;
    END;
    But process failed in sixth step with error:
    Error report:
    ORA-29532: java.lang.NumberFormatException: Infinite or NaN
    ORA-06512: line 3
    29532. 00000 - "Java call terminated by uncaught Java exception: %s"
    *Cause:    A Java exception or error was signaled and could not be
    resolved by the Java code.
    *Action:   Modify Java code, if this behavior is not intended.
    What should i do with this problem?
    Thanks

    thank you for reply.
    i can try to network topology.
    but i have more than one layer. for example lands, waters, etc.
    actually i need left face, right face, start node, end node etc. (topology info) information for my application.
    my question is on going...
    thanks for interest again

  • Oracle Spatial 10g

    Hello all
    I would like to know if is it possible to install the 10g Spatial functionality in a previous version of the database (8.1.7).
    We want to work with Oracle Spatial + ArcSDE (with versioning and Spatial as Geometry Storage) + ArcGIS-ArcIMS, but the editing software will be AutoCAD.
    We will get from the database those elements whe want to edit and put it then in AutoCAD layers . To limit the traffic, we only need the geographic primitives (points and arc, but no polygons), but as we are editing polygons, we need a process that rebuild topology. I think that the new Oracle Spatial 10 g topological functionalities could help us (so we can insert arcs in a table and get the polygons they are building, and dangle arcs).
    I suppose it will not be possible to edit directly to the geodatabase feature class if it is versioned (so all the changes will appear as consolidated), but, is it possible (and of course, easy) to rebuild via SQL an ArcSDE version?
    And finally:
    Can (and how) we use Oracle WorkSpace Manager whit ArcSDE??? , and only with AutoCAD? Any experience? I´m thinking about spatial index and mdsys metadata table. Must be these tables registered as "versioned" with Oracle WorkSpace Manager to work with spatial data?
    Thank you for all
    Jesús de Diego

    Hello all again
    First of all, thank you for your quick reply.
    I can explain a bit more what we wanna do:
    we're in a multi-platform environ. We've ArcGIS users, AutoCAD users and a ArcSDE DB. We don't want AutoCAD users to migrate to ArcEditor, but they need to edit corporative (DB) data, and, in the other hand, there will be others editors using ArcEditor capabilities, so it is possible we will need versioned (ArcSDE) data.
    I think we can edit an ArcSDE version vía AutoCAD:
    1º Data storage will be Oracle Spatial.
    2º A new version over the default will be created.
    3º When an AutoCAD editor request spatial data, we can, vía SQL, get the sdo_geometry (here is when i need to rebuild a complete version....)
    4º We load these spatial data into diferents layer in a dwg (in we can get only the geographic primitives, this will be faster)
    5º CAD users edit the information and when they finish, load arc and points (lables) into 2 temporal tables, when arcCatalog can rebild polygon topology ....
    6º Once polygons have been rebuilded, can be sended to AutoCAD again so Oracle Spatial SQL queries can be used in AutoCAD against the DB.
    7º Finally, could we insert the new records into A and D tables?, and how? using simply SQL (again we need to rebuild a version....)
    I'm all ears.......
    Thank you again
    Jesús de Diego

  • Oracle 10g Release 2 Spatial

    Hi,
    I couldn't move these questions from another post, so I deleted them and put them here:
    Re: Migrating SDO_GEOMETRY to 10g TOPOLOGY
    Posted By: [email protected] on Dec 3, 2004 11:08:52 AM
    Hi, is there somewhere a roadmap (with dates) or/and a list of new spatial features in future releases of the oracle database
    Rolf
    Re: Migrating SDO_GEOMETRY to 10g TOPOLOGY
    Posted By: ronan.crowley on Jan 20, 2005 8:40:07 AM
    I agree, a roadmap with attached release dates and
    feature listings would be an excellent resource.
    Ronan

    Oracle isn't allowed to provide futures information in advance of product announcements, except under non-disclosure agreements.
    Oracle 10g Release 2 has been announced, so here is some high-level information about Spatial Features included in it:
    EPSG Coordinate System Support
    New parameters to sdo_filter, sdo_relate, and sdo_within_distance to only return data above or below a certain size with respect to the screen size(to prevent a large amount of data from rendering on a single pixel on the display, for instance)
    New indexing parameter to define how Spatial/Locator internally batches index updates at commit time to allow faster index processing during inserts, updates, and deletes.
    New utility function to automatically try to fix invalid geometries
    First shipping release of the spatial routing engine
    In GeoRaster:
    Compression (JPEG and DEFLATE)
    Cross-schema usage
    Requirements for raster data table uniqueness, and procedures to help maintain uniqueness
    Enhancements to GeoRaster Viewer
    In Topology:
    Add geometry interfaces for points, lines, and polygons
    Create feature interface (first full release)
    Load topo map procedure
    remove obsolete nodes
    Find the features this feature is created from in a hierarchy
    Can build feature layers in a hiercharchy either from previous layer or from primitives
    Simplified export/import
    Network Data Model
    Bidirected links
    cost columns based on function (dynamic costing)
    Also, numerous bug fixes across the board, and some other minor changes/additions

  • Sdo_topo_map.create feature

    Dear Sir,
    when i run this pl/sql code its giving me error
    SQL> DECLARE
    2 CURSOR c1 IS SELECT name, geom FROM parcels;
    3 topo_geom SDO_TOPO_GEOMETRY;
    4 BEGIN
    5
    6 FOR r IN c1 LOOP
    7 topo_geom := SDO_TOPO_MAP.CREATE_FEATURE('SAMPLE_TOPO',
    8 'PARCELS_T_TOPO',
    9 'FEATURE',
    10 r.geom);
    11
    12 -- Associate topological primitives with features
    13 INSERT INTO parcels_t_topo (name, feature)
    14 VALUES ( r.name, topo_geom);
    15
    16 --SDO_TOPO_MAP.commit_TOPO_MAP;
    17 --sdo_topo_map.drop_topo_map('my_sample_map_cache');     
    18 END LOOP;
    19 END;
    20 /
    DECLARE
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    oracle.spatial.topo.TopoDataException: unsupported or invalid element
    interpretation found
    ORA-06512: at "MDSYS.SDO_TOPO_MAP", line 404
    ORA-06512: at line 7
    please look at my complete follwoing code
    -- Deregister feature layers, if they were registered.
    -- Unioned_counties is a feature layer we will create in the next code example.
    EXECUTE SDO_TOPO.DELETE_TOPO_GEOMETRY_LAYER ('SAMPLE_TOPO', 'PARCELS_T_TOPO', 'FEATURE');
    -- Drop the topology if it exists, then create the topology
    EXECUTE SDO_TOPO.DROP_TOPOLOGY ('SAMPLE_TOPO');
    EXECUTE SDO_TOPO.CREATE_TOPOLOGY ('SAMPLE_TOPO', 0.05, 8265);
    --PREVIOUS SRID WAS 8307
    -- Insert the universal face for an empty topology
    INSERT INTO sample_topo_face$ (face_id,
    boundary_edge_id,
    island_edge_id_list,
    island_node_id_list,
    mbr_geometry)
    VALUES (-1, NULL, SDO_LIST_TYPE(), SDO_LIST_TYPE(), NULL);
    -- Create an Oracle table with a feature layer.
    -- Each feature will represent a county.
    DROP TABLE parcels_t_topo;
    CREATE TABLE parcels_t_topo (id number,
    name VARCHAR2(30),
    feature SDO_TOPO_GEOMETRY);
    -- Register feature layer with topology
    EXECUTE SDO_TOPO.ADD_TOPO_GEOMETRY_LAYER('SAMPLE_TOPO', 'PARCELS_T_TOPO', 'FEATURE', 'POLYGON');
    -- Create updatable TOPO_MAP object and load the whole topology in cache.
    -- Since we just created the topology, the cache will be empty.
    EXECUTE SDO_TOPO_MAP.DROP_TOPO_MAP('my_sample_map_cache');
    EXECUTE SDO_TOPO_MAP.CREATE_TOPO_MAP('sample_topo', 'my_sample_map_cache');
    EXECUTE SDO_TOPO_MAP.LOAD_TOPO_MAP('my_sample_map_cache', 'true');
    DECLARE
    CURSOR c1 IS SELECT name, geom FROM parcels;
    topo_geom SDO_TOPO_GEOMETRY;
    BEGIN
    FOR r IN c1 LOOP
    topo_geom := SDO_TOPO_MAP.CREATE_FEATURE('SAMPLE_TOPO',
    'PARCELS_T_TOPO',
    'FEATURE',
    r.geom);
    -- Associate topological primitives with features
    INSERT INTO parcels_t_topo (name, feature)
    VALUES ( r.name, topo_geom);
    --SDO_TOPO_MAP.commit_TOPO_MAP;
    --sdo_topo_map.drop_topo_map('my_sample_map_cache');     
    END LOOP;
    END;
    please some one help me in this
    Thanks
    Kabeer

    Hi siva,
    i found error that my table contains all shapes as "optimized" rectangles and it looks like create feature function does not support optimized rectangle.
    i fixed using sdo_intersection
    Thanks
    Kabeer

Maybe you are looking for

  • My Imac has black and white vertical lines

    Riddle me this Apple... A few months ago, my 2008 Aluminium 24inch Imac locked up and exhibited space invader style pixels all over the screen. After rebooting, it was fine for a while and then it would freeze again and I'd get the same Atari style p

  • Printhead Problem Error

    Hello, I have an HP 8500 a909g all in one or 8500ag im not sure but it has a touch screen on it and when I turn it on I get the error message the following printhead has a problem Black/Yellow (k/Y)  I tried power resets, pulled the printhead out cle

  • Application error occurred during request processing webdynpro

    Hi all,       I have developed one sample web dynpro application( welcome). when was deploying the welcome application on the j2ee engine using NWDS. It is giving the fallowing error i.e. 500 Internal Server Error Application error occurred during re

  • Stuck on landscape printing...

    Hi - I'm a relative newcomer to Mac (but a very happy one) - for some reason I'm defaulting to landscape printing for all of my printers and can't find where to change it - can anyone help please

  • Get the modified date of the files uploaded

    What data dictionary do i query at the backend to find the date of modification of the files uploaded in all the folers created by all the users and all the mount points. And to find out what users are currenty loged in? Plz help me with this query