Cannot view table with spatial advisor
I have loaded a table using SafeFME software. It did not populate SDO_GEOMETRY.SDO_SRID during the conversion from ArcInfo coverage to Oracle8i Spatial SDO_GEOMETRY.
Since I could not view the spatial data with the spatial advisor, I ran the VALIDATE_LAYER procedure and found the error. At that point I INSERTed a value for SDO_SRID into my table, and into XXXX_SDO_GEOM_METADATA. Still cannot view the spatial data with spatial advisor. Why not?
Platform: Sun Solaris
Oracle8i 8.1.7
Richard Clement
Hi Dan:
the Spatial Index Advisor message at the lower part of the apps' frame says 'Drew 3701 geometries' after I attempt to "Draw all geometries" (third button down on the left).
After this, the viewport is blank. It is odd, though - it appears that the bounds are set correctly. When I add another "layer" and draw it, the viewport is referencing the correct area (the bounds for the first layer). This behavior occurs when the XXXX_SDO_GEOM_METADATA.SRID is either NULL or set to a value.
Our MapXtreme app shows the same behavior (no display of data, no error message).
I'll try to run the VALIDATE (layer and geometry) functions and procedures again.
We have loaded some data with the routine using shp2sdo.exe (like in the tutorials) and those are drawing just fine. Strange.
Richard Clement
State of Alaska DNR
Similar Messages
-
Business user needs to view tables with out SE16 access
Hi ,
There is a requirement where business user ( Data team) need to view some master and transactional data tables in production . But , as per our process , end users will not be given SE16 access .
Is there any solution where we can allow the end user to view tables with out SE16 access ?
Thanks in advance .
Thanks .
Dharma.Hi,
Using Function Module C160_TRANSACTION_CALL you can call any tcode which dont have access..
Create a report and call function module and pass se16 to parameter .
CALL FUNCTION 'C160_TRANSACTION_CALL' "
EXPORTING
i_tcode = 'SE16' " sy-tcode
EXCEPTIONS
ILLEGAL_INPUT = 1 "
INTERNAL_ERROR = 2 "
. " C160_TRANSACTION_CALL
now create a tcode for this report as ZSE16.,
hope this helps u.,
You can also create Data browser ( SE16 ) in report and display as ALV., using Field Symbols and RTTS.
Thanks & Regards,
Kiran -
Create View table with multiple table
I want to create View table with relation with multiple tables.
for ex
table 1
mrnno
mrnqty
table 2
mrnno
issqty
table 3
mrnno
retqty
want to create view table where i can see the sum (mrnqty), sum(issqty),sum(retqty) group by mrnno
sandyHi
CREATE OR REPLACE FORCE VIEW my_view AS
WITH t1 AS
(SELECT mrnno,
SUM(mrnqty) sum1
FROM table_1
GROUP BY mrnno),
t2 AS
(SELECT mrnno,
SUM(issqty) sum2
FROM table_2
GROUP BY mrnno),
t3AS
(SELECT mrnno,
SUM(retqty) sum3
FROM table_3
GROUP BY mrnno)
SELECT mrnno,
sum1,
sum2,
sum3
FROM t1,t2,t3
WHERE t1.mrnno = t2.mrnno
AND t1.mrnno = t3.mrnnoCheers
Ben
http://www.munkyben.wordpress.com
Don't forget to mark replies helpful or correct ;) -
Replicate Table with spatial columns
I'd like to know how to
replicate (updatable snapshot) a table
with spatial columns.
when i try to create a master repobject
i've got ORA-23318 error.
What can i do?
nullHi Vincent,
Oracle does not support replication of object in 8.1.6 or 8.1.7. I believe replication support is expected for the version after.
Sorry,
Dan -
Error dialog when open index dialog on tables with spatial index
Hi all,
When I want to open in the preferences of a table with a spatial index the index dialog, then there appears the following message:
"Index <myIndex> column GEOMETRY, datatype SDO_GEOMETRY is not a valid column type for use in a text index".
I can only click the ok button, but I am not able to modify any of my set index.
Does anyone else have the same problem?
regards markus
Version:
Java: 1.6.0.16
Oracle IDE: 2.1.1.64.39
OS: Linux, Ubuntu 9.10
Edited by: markusin on Mar 3, 2010 12:32 AMI have the same problem on SQLDev 2.1.1 for Windows. I hadn't this problem in 1.5.
I must use a normal sql script to create spatial index.
Vittorio -
Cluster table with Spatial column
Hi,
I tried to create a spatial table(with one SDO_GEOMETRY column) with cluster on one attribute column. But I keep getting error ORA-03001: unimplemented feature.
Is this mean that I can not cluster a table with SDO_GEOMETRY column?
Thanks
HelenHi Helen,
The parameter you mention is only for real application clusters, not for clustering columns of tables.
As far as I can tell, when clustering columns of different tables together Oracle will try to
store all of the data associated with those tables together on disk.
The Oracle Spatial geometry datatype (mdsys.sdo_geometry) includes two varray types of
length 1048576. Because these varrays can hold so much data Oracle "makes arraingements"
to store data in these columns outside of the table in a lob segment (in reality, data is only
stored out-of-line if there is over 4kb of data in the varray).
Because of this (no ability to ensure the spatial data is stored with the clustering columns),
the clustering mechnism is disabled when you have spatial data.
I read through the doc and it is unclear - the only restriction I could find is using these columns
as the clustering key.
Hope this helps,
Dan -
No records in Azure databrowser viewing tables with many columns.
Yesterday I encountered an issue while browsing a table created in Azure.
I created a new database in Azure and in this database I created and populated several tables, containing one very big table.
The big table has 239 columns.
I succeeded in populating this table with our in-company table-data, means by a dtsx-package. No problem this far.
When I query the table from SQL Server Management Studio, I get correct results.
However, the databrowser on the azure-site itself does not show any data for this table. That’s a little disappointing regarding the fact that there are more than 76000 records in this table. Refresh didn’t help.
When I browse smaller tables with less data-columns, I do get data in this data-browser.
Is this a known issue or do you know a solution for this issue ?
Kind regards,
Fred Silven
AEB Amsterdam
The Netherlands.Hello,
Based on your description, you want to edit data of a large table in the Management Portal of SQL database, but it is not return rows in GUI Design tab. Can you get the data when select "TOP 200 rows"?
Since there are 239 columns and 76000 rows in the table, the Portal may take a bit long time to load all data in GUI. Please try to using T-SQL statement to perform the select or update operation and specify condition in WHERE clause to load the
needed data.
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
Cannot alter partitioned table with spatial column in Oracle 11.2.0.2.0
Hello,
I possibly discovered a bug in Oracle 11.2.0.2.0
This script works fine with Oracle *11.2.0.1.0*:
create table GEO_TABLE (
ID NUMBER(19) not null,
PART_NAME VARCHAR2(50) not null,
GEO_POS MDSYS.SDO_GEOMETRY,
constraint PK_GEO_TABLE primary key (ID)
SEGMENT CREATION IMMEDIATE partition by list ( PART_NAME ) (partition P_DEFAULT values (DEFAULT)) enable row movement;
ALTER TABLE GEO_TABLE ADD (COLUMN2 NUMBER(8) DEFAULT 0 NOT NULL);
With Oracle *11.2.0.2.0* (on SLES 11, 64bit) i will get this error message on the alter table statement:
SQL-Fehler: ORA-00600: Interner Fehlercode, Argumente: [kkpoffoc], [], [], [], [], [], [], [], [], [], [], []
00600. 00000 - "internal error code, arguments: [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s]"
*Cause: This is the generic internal error number for Oracle program
exceptions. This indicates that a process has encountered an
exceptional condition.
*Action: Report as a bug - the first argument is the internal error number
Can anyone reproduce this behaviour?
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
Edited by: user7425061 on 19.11.2010 12:04Metalink does not have any references for this error - please raise SR with Oracle support.
-
How to optimize massive insert on a table with spatial index ?
Hello,
I need to implement a load process for saving up to 20 000 points per minutes in Oracle 10G R2.
These points represents car locations tracked by GPS and I need to store at least all position from the past 12 hours.
My problem is that the spatial index is very costly during insert (For the moment I do only insertion).
My several tries for the insertion by :
- Java and PreparedStatement.executeBatch
- Java and generation a SQLLoader file
- Java and insertion on view with a trigger "instead of"
give me the same results... (not so good)
For the moment, I work on : DROP INDEX, INSERT, CREATE INDEX phases.
But is there a way to only DISABLE INDEX and REBUILD INDEX only for inserted rows ?
I used the APPEND option for insertion :
INSERT /*+ APPEND */ INTO MY_TABLE (ID, LOCATION) VALUES (?, MDSYS.SDO_GEOMETRY(2001,NULL,MDSYS.SDO_POINT_TYPE(?, ?, NULL), NULL, NULL))
My spatial index is created with the following options :
'sdo_indx_dims=2,layer_gtype=point'
Is there a way to optimize these heavy load ???
What about the PARALLEL option and how does it work ? (Not so clear for me regarding the documentation... I am not a DBA)
Thanks in advancedIt is possible to insert + commit 20000 points in 16 seconds.
select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
drop table testpoints;
create table testpoints
( point mdsys.sdo_geometry);
delete user_sdo_geom_metadata
where table_name = 'TESTPOINTS'
and column_name = 'POINT';
insert into user_sdo_geom_metadata values
('TESTPOINTS'
,'POINT'
,sdo_dim_array(sdo_dim_element('X',0,1000,0.01),sdo_dim_element('Y',0,1000,0.01))
,null)
create index testpoints_i on testpoints (point)
indextype is mdsys.spatial_index parameters ('sdo_indx_dims=2,layer_gtype=point');
insert /*+ append */ into testpoints
select (sdo_geometry(2001,null,sdo_point_type(1+ rownum / 20, 1 + rownum / 50, null),null,null))
from all_objects where rownum < 20001;
Duration: 00:00:10.68 seconds
commit;
Duration: 00:00:04.96 seconds
select count(*) from testpoints;
COUNT(*)
20000 The insert of 20 000 rows takes 11 seconds, the commit takes 5 seconds.
In this example there is no data traffic between the Oracle database and a client but you have 60 -16 = 44 seconds to upload your points into a temporary table. After uploading in a temporary table you can do:
insert /*+ append */ into testpoints
select (sdo_geometry(2001,null,sdo_point_type(x,y, null),null,null))
from temp_table;
commit;Your insert ..... values is slow, do some bulk processing.
I think it can be done, my XP computer that runs my database isn't state of the art. -
Materialized view issue with spatial index and UNION all.
Hi guys,
I'm trying to build the following materialized view:
create materialized VIEW MV_ElectricalStuffs
refresh fast
AS
SELECT jb.ROWID,
jb.FID,
JB.NAME_NUMBER
FROM EL_BUS_BAR jb
UNION ALL
SELECT INC.ROWID,
INC.FID,
NULL,
INC.NAME_NUMBER
FROM EL_INTERNAL_CELL INC;
I have this error showing up:
ORA-12015: cannot create a fast refresh materialized view from a complex query
This is because the table EL_INTERNAL_CELL has a SDO_GEOMETRY column that has a spatial index, whose ddl is
CREATE INDEX EL_INTERNAL_CELL_S ON EL_INTERNAL_CELL (GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX
PARAMETERS('SDO_INDX_DIMS=2 TABLESPACE=USERS LAYER_GTYPE=COLLECTION');
When I remove the spatial index from EL_INTERNAL_CELL column GEOM, Oracle is very happy and creates the view.
Is there a mean however to keep the spatial index in the materialized view?I've managed to drop the spatial index prior to create the materialized view and it is ok. After the materialized view creation, I've recreated the spatial index on the table and all ran smooth. Hope nothing will go bad in the future because of this trick on spatial index..
-
Database Adapter: cannot access table with complex record type as columns
Hi all,
I cannot perform any operations on a table that has columns with complex record type.
I have created a table to store purchase order details.
Sample script:
CREATE type XX_CUST_INFO_TYP as object
ssn VARCHAR2(20),
rating NUMBER(15)
CREATE type XX_ITEM_TYP as object
item_name VARCHAR2(20),
unit_price NUMBER(15),
quantity NUMBER(15)
CREATE table XX_PORDER (cust XX_CUST_INFO_TYP, porder XX_ITEM_TYP);
When i try to access the table X_PORDER in jdev through a database Adapter, i receive the error as
"some tables contains columns that are not recognized by the database adpter"
1.) so in this case, how to include such tables that have complex types?
Also, check out this scenario also..
1. add a table through a database adapter
2. drop the table in backend
3. i can still see the table and its structure in the database adapter wizard even after restarting Jdeveloper.. How is it possible?
These are some really interesting scenarios to experiment. Please suggest your ideas on this..
Thanks All!Hi Hem,
for a select you could select against a view. And for inserts you could create a stored procedure. They support complex types since 10.1.2. Complex types support in tables/views was added for 11 (next major release).
You might be able to use PureSQL as a workaround too, i.e.
insert into XX_PORDER values (XX_CUST_INFO_TYP(?,?), XX_ITEM_TYP(?, ?, ?))
As for your other problem, in 10.1.2/10.1.3 the DBAdapter wizard sits on top of the Jdev Offline Tables and TopLink Mapping Workbench components. When you remove a table in the wizard it won't delete the Offline DB component. It was added by the wizard, but afterwards it is public to the entire Jdev project. You must remove it from Jdev yourself. This has been improved for the next major release too, no artifacts from underlying components are created.
To remove it select:
Offline DB Objects -> <schema> -> <table> and try File.. Erase From Disk.
Thanks
Steve -
Tables with Spatial Columns sizing issues
Oracle EE latest everything
So I have a table of link data as in:
describe links ;
Name Null? Type
ID NUMBER
NETWORK_ID NUMBER
BEG_NODE_ID NUMBER
END_NODE_ID NUMBER
GEOM MDSYS.SDO_GEOMETRY
LENGTH NUMBER(9,3)
SPEED_LIMIT NUMBER(3)
DETAIL_LEVEL NUMBER(3)
IN_SYNCH NUMBER(1)
CREATED DATE
MODIFIED DATE
CREATED_BY VARCHAR2(30)
MODIFIED_BY VARCHAR2(30)
MODSTAMP TIMESTAMP(6)Table is not partitioned and has at the moment about 69 million rows. ID, Network_id have your basic normal indexes on them.
geom has a spatial index on it. So I guess my question is am I starting to push limits here for spatial index performance?
In another thread here I read something that oracle will not use a spatial index for certain kinds of operations?
The geometry that is recorded in each row is G_TYPE 2002 (line or curve) and as an example:
SDO_GEOMETRY(2002, 8307, NULL,
SDO_ELEM_INFO_ARRAY(1, 2, 1),
SDO_ORDINATE_ARRAY(
-97.35263,
32.70169,
-97.35277,
32.70178,
-97.35301,
32.70185,
-97.35319, 32.70186,
-97.35347, 32.70184)
)So John gave me this really great reply for how to look for a point in a bounding box using the:
sdo_inside(geom, [create a 2003 geometry to describe a rectangle]) function. Now since this line is a series of points, can one still use the sdo_inside or would:
sdo_anyinteract(geom,[create a 2003 geometry to describe a rectangle]) function be better?
Thanks in advance.Her a little example. That I had not to build your tables and sdo_geom_metadata and spatial index, I used the SDO_GEOM.RELATE function instead of the spatial operator. The result is the same:
--test relation line with point (second vertex of line)
-- INSIDE
SELECT SDO_GEOM.RELATE
(SDO_GEOMETRY(2002, 8307, NULL,
SDO_ELEM_INFO_ARRAY(1, 2, 1),
SDO_ORDINATE_ARRAY(-97.35263,32.70169,-97.35277,32.70178,-97.35301,32.70185,-97.35319, 32.70186,-97.35347, 32.70184)),
'INSIDE',
SDO_GEOMETRY(2001, 8307,
SDO_POINT_TYPE(-97.35277,32.70178,0), NULL, NULL),
0.01
) rel FROM dual;
REL
FALSE
1 row selected.
-- TOUCH
SELECT SDO_GEOM.RELATE
(SDO_GEOMETRY(2002, 8307, NULL,
SDO_ELEM_INFO_ARRAY(1, 2, 1),
SDO_ORDINATE_ARRAY(-97.35263,32.70169,-97.35277,32.70178,-97.35301,32.70185,-97.35319, 32.70186,-97.35347, 32.70184)),
'TOUCH',
SDO_GEOMETRY(2001, 8307,
SDO_POINT_TYPE(-97.35277,32.70178,0), NULL, NULL),
0.01
) rel FROM dual;
REL
FALSE
1 row selected.
-- ANYINTERACT
SELECT SDO_GEOM.RELATE
(SDO_GEOMETRY(2002, 8307, NULL,
SDO_ELEM_INFO_ARRAY(1, 2, 1),
SDO_ORDINATE_ARRAY(-97.35263,32.70169,-97.35277,32.70178,-97.35301,32.70185,-97.35319, 32.70186,-97.35347, 32.70184)),
'ANYINTERACT',
SDO_GEOMETRY(2001, 8307,
SDO_POINT_TYPE(-97.35277,32.70178,0), NULL, NULL),
0.01
) rel FROM dual;
REL
TRUE
1 row selected.You'll find the theory in the fine manua l. -
Parrallel tables with spatial operators
I have a point in polygon script that works, but in order to speed up the creation of the point table (~175M rows) I tried adding PARALLEL 4 and /*+ PARALLEL (t,4) */ Only the parallel part is new to the create point table sql.
I used CTAS to create a point table like this:
CREATE TABLE &OUT_POINT_SCHEMA..&OUT_POINT_TABLE NOLOGGING PARALLEL 4 TABLESPACE ORDERS_02
AS
SELECT /*+ PARALLEL (t,4) */
cast(lpad(to_char(LON/1000000, '999.000000'),11) || lpad(to_char(LAT/1000000, '99.000000'),10) as varchar2(21)) ULL,
MDSYS.SDO_GEOMETRY(2001, 8307, MDSYS.SDO_POINT_TYPE(LON/1000000, LAT/1000000, NULL), NULL, NULL) GEOM
FROM
&IN_POINT_SCHEMA..&IN_POINT_TABLE
WHERE
LON is not null
GROUP BY
LON, LAT;The spatial index was created like this:
CREATE INDEX &OUT_POINT_TABLE._SIDX ON &OUT_POINT_TABLE (GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX PARAMETERS('TABLESPACE=ORDERS_IDX WORK_TABLESPACE=ORDERS_03 LAYER_GTYPE=POINT');In theory, should the sql still work when I use, for example SDO_INSIDE? Or are there other things that I need to take into consideration? In other words, would the fact that the spatial point table was created with a parallel option impact spatial queries. When I try to monitor the process of the point in polygon sql with a check_session script (I am not a DBA) I see 4 rows with the same sql text which I assume is due to the parallel 4 parameter and I am also seeing wait_events like async descriptor resize and wait_time -1. Sorry to be so vague but I am trying to figure out if this query has a chance of finishing or if i broke it by adding the parallel option. Any guidance or suggestions would be appreciated.
Thanks,
DavidYes, spatial operators (say SDO_INSIDE) can work in parallel queries.
If you can show us your query explain plan, it will be easier to see
how SDO_INSIDE is executed. -
Cannot Drop table with lower case name
Hi,
One of my developer created a table through application in oracle 10g R2,
when I list tables
select * from tab;
the table name is shown in lower case or Initcap.
I cannot drop or manipulate that table.
How can I drop that table(s)?
Thanks & Regards,
Fahimuse the same case what your table has used and put double quotes on both sides for example if your table is lower case use like:
DROP TABLE "your_table";HTH
Ghulam Mustafa Butt -
Cannot edit Table with TableModel
Hallo !
If I add a table, I can edit the cells with a doubleclick,
but if I bind the table to a TableModel it is not possible to edit the cells.
Why ?
Please help me. Thx. WolfgangThe default TableMode isCellEditable (int row, int column)
returns false. You need to extend this to return true if any of the cells are editable.
Maybe you are looking for
-
How come my Nikon D610 can not open photoshop CS6 raw files
any one know,i just bough a New Nikon D610 digitalcamera, i am upload in to Photoshop CS6 raw file, but can not open,why?
-
how can i remove the bar (where i search for websites) when i full screen
-
Since mid-2009, I started losing whole blocks of data that was lopped off in blocks covering time periods. In Mozilla and Thunderbird. At the same time, I got huge files with little green icons. These icons can be moved to floppies, but cannot be ope
-
QuickTime 7.1.3 uses 100% CPU on Windows XP
Hello, I installed and registered QuickTime Pro 7.1.3.100 on Windows XP Pro SP2, version 2002. Whenever I start QuickTime, the CPU usage jumps to 100% (all 100% used by QuickTime). I tried QuickTime 7.0.3.50 as well, same result... The reason that I
-
HELP! Connecting Elec. Guitar to Mac/GarageBand
Trying to get my elec. guitar to work with GarageBand. Everything seems to be connected and set right, but no sound. I am using an M-Audio FireWire Solo interface. Have GB preferences set: Output to Built-In Output, Input set to FireWire Solo Analog