Location of spatial tables and warehouse tables - recommendations
Hi all,
I have a question from a customer who's asking what the recommendation is of storage of the spatial tables and the warehouse tables.
Should they reside on the same database for best performance or doesn't it matter where the spatial tables are located.
Is there any official recommednation from Oracle on this?
Best regards,
Hakan
Hello Mohan ,
Table TOBJ store the authorization data in R/3 System .
For further info refer thread :
What does TOBJ table contain??
Regards ,
Santosh
Similar Messages
-
Spatial tables in Data warehouse database or separate?
Hi all,
I have a question from a customer who's asking what the recommendation is of storage of the spatial tables and the warehouse tables.
Should they reside on the same database for best performance or doesn't it matter where the spatial tables are located.
Is there any official recommednation from Oracle on this?
Best regards,
HakanHi Hakan,
it's not easy to give a quick answer here.
a) you want to compare warehouse tables with spatial tables
To answer this very well you should define what is a warehouse table and what is a spatial table. In this forum you will get for spatial tables the definition "A spatial table is a table with one or more columns of type SDO_GEOMETRY". How do you define a spatial table and how do you define a warehouse table?
b) you ask for performance
Performance is not depending only on table type. Performance is depending on a lot of steps. For example on the work which has to be done to answer the question, can data read from buffer cache or must they be read from physical devices, execution plan .....
I don't know if there is a official statement from Oracle which is usefull to answer your query.
Can you ask a little bit particular please?
In my experience there it is not adviseable to store tables in different databases (instances) when I have to query it together. If you split the tables in different instances, the execution has much more overhead because you have to talk to 2 instances and it will very hard for the optimizer to find the best execution plan.
Regards
U. Martin -
I have some spatial tables in 10g. I can use 'select query' on non spatial attributes but if try
select * or
select geom then my SQL plus gives error ::
Program Error - sqlplusw.exe has generated errors and will be closed by Windows. You will need to restart the program. An error log is being created.
<Cancel>
But I am able to use isqlplus without any errors.
Earlier SQL plus used to work fine. I don't understand what happened to it in between.
How can I bring my SQL plus working again.I created a copy for a spatial table using.
create table copy as select * from original, and it was successful .
Other than that I haven't done anything other than select queries. -
Spatial Tables and Remote Queries
Hi Experts,
Can anyone explain me when and where to use Spatial Tables and Remote Queries with some examples.
Thanks in advance.Hi,
there are some nice demos from Andrejus:
http://andrejusb.blogspot.com/search/label/Spatial
Hope it helps,
Friedhold -
Access attributes for a non spatial table from mapViewer JavaScript API
I have a non spatial table that contains bridge attributes that are identified by a unique bridge number. There is a spatial table containing the bridge location and bridge no. I have tried to add both tables as a JDBC theme but there is no attribute data:
var baseQuery="select b.obj, b.bridge_no, b.travel_direction_code, cway_code "+
", m.design_load_code DESIGN_LOAD "+
" from bridge b LEFT OUTER JOIN BRIDGE_MISCELLANEOUS m on b.id= m.bridge_id where b.road_no ='" + roadNo+"'";
var theme = '<themes><theme name="JDBC_THEME_BRIDGE" >' +
'<jdbc_query ' +
'datasource="wms" '+
'jdbc_srid="28355" ' +
'spatial_column="obj" '+
'asis="true" ' +
'render_style="M.BRIDGE_BW">' + baseQuery +
'</jdbc_query></theme></themes>' ;
bridgeTheme = new MVThemeBasedFOI('bridgeTheme1',theme);
This displays the bridges ok but there is no attribute data it seems like the query only returns the spatial object. Is there another way to access the attributes?add the hidden_info tag to the theme def as in:
var theme = "<theme name='JDBC_THEME' fetch_size='200'>" +
"<jdbc_query spatial_column='geom' jdbc_srid='8307' " +
"render_style='m.star' datasource='mvdemo'>select geom, id, name from test_points" +
"<hidden_info>"+
" <field column=\"NAME\" name=\"My name\"/>"+
" <field column=\"ID\" />"+
"</hidden_info>"+
"</jdbc_query></theme>" ; -
Error while updating spatial table
Hi,
When i try to update a spatial table with the following syntax i get the below error,
UPDATE tab1 SET MP = 1, AT = 3,
RDATE = TO_DATE('30:04:2001:16:04:08', 'DD:MM:YYYY:HH24:MI:SS'),
ODATE = TO_DATE('30:12:1899:00:00:00', 'DD:MM:YYYY:HH24:MI:SS'),
REP = 1
WHERE ID = 7
ERROR at line 1:
ORA-29877: failed in the execution of the ODCIINDEXUPDATE routine
ORA-00600: internal error code, arguments: [kcbgtcr_1], [], [], [], [], [],
Any idea why is this happening??
Thanks
Shiva
nullHi Dan,
we are using oracle 8.1.6.3 on Solaris 8.
Table description is as follows.
ID NOT NULL NUMBER(10)
ROUTE_NUMBER NOT NULL VARCHAR2(255)
MP NUMBER(8,3)
GEOM MDSYS.SDO_GEOMETRY
AT NUMBER(10)
RDATE DATE
CDATE DATE
ODATE DATE
REPORT NUMBER(10)
CLEAR NUMBER(10)
OFFER NUMBER(10)
X NUMBER(8,6)
Y NUMBER(8,6)
This table has a valid entry in the user_sdo_geom_metadata table. And the spatial index is valid.
Thanks
Shiva -
How to perform DML Operations on Spatial Table Using ADF
Hi
I have an urgent requirement. I have a table with Spatial column. I have generated Business components based on Spatial Table.
Now I have to perform Create,Read,Update and Delete operations using ADF Business Components on Spatial Table.
I have written custom create(),read(),update() and delete() methods in my Application Module and i have to implement those methods.
Can any one help me out how to acheive above four functionalities using ADF Business Components.
Thanks in AdvanceHI,
see this example.
u can do like this.
DATA: BEGIN OF seats OCCURS 0,
carrid TYPE sflight-carrid,
connid TYPE sflight-connid,
seatsocc TYPE sflight-seatsocc,
END OF seats.
DATA seats_tab LIKE HASHED TABLE OF seats
WITH UNIQUE KEY carrid connid with header line.
SELECT carrid connid seatsocc
FROM sflight
INTO table seats.
loop at seats.
COLLECT seats INTO seats_tab.
endloop.
LOOP AT seats_tab.
write:/ seats_tab-carrid,seats_tab-connid,seats_tab-seatsocc.
ENDLOOP.
rgds,
bharat. -
Creating spatial index on spatial table
Hi there. Just a quick query on creating spatial indexes on spatial tables. I have a table called System_Sessions which has the following four fields and types:
USER_ID NUMBER(10)
SESSION_ID NUMBER(10)
SESSION_BOUNDARY MDSYS.SDO_GEOMETRY (polygon)
START_POINT MDSYS.SDO_GEOMETRY (point)
I am inserting one row per user session into this table. I also need to retrieve the session ids of previous sessions involving a particular user based on the session's start point. The query i am running is an sdo_within_distance query which looks as follows:
Select session_id from joeweaker.system_sessions where user_id = 1003 and SDO_WITHIN_DISTANCE(start_point,
(MDSYS.SDO_GEOMETRY(2001, 8265, MDSYS.SDO_POINT_TYPE
(-105.0,40.0, NULL),NULL, NULL)), 'DISTANCE = 10000')='TRUE';
However I encounter the following error whenever I attempt to execute this query:
ORA-13226: interface not supported without a spatial index
ORA-06512: at "MDSYS.MD", line 1723
ORA-06512: at "MDSYS.MDERR", line 8
ORA-06512: at "MDSYS.SDO_3GL", line 255
I know I haven't built the spatial index on the table so I was hoping that somebody might show me how to do this. Thnaks a lot, JoeThnaks a lot Dan for the prompt reply. I have done as you advised and everything appears to be fine. However I have a second table called Session_Interest_Areas which appears as follows:
USER_ID----NUMBER(10)
SESSION_ID----NUMBER(10)
AREA_ID----NUMBER(10)
AREA_BOUNDARY----MDSYS.SDO_GEOMETRY
I inserted the necessary detail into the user_sdo_geom_metadata table and then attempted to create the index as follows (exactly the same format as my other spatial tables:
create index session_interest_areas_idx on
session_interest_areas (area_boundary)
indextype is mdsys.spatial_index;
When I execute this query I get the following stream of error messages:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-13249: internal error in Spatial index: [mdidxrbd]
ORA-13249: Error in Spatial index: index build failed
ORA-13249: Error in spatial index: [mdrcrtxfergm]
ORA-13249: Error in spatial index: [mdpridxtxfergm]
ORA-13200: internal error [ROWID:AAAHocAAJAAAAC8AAA] in spatial indexing.
ORA-13206: internal error [] while creating the spatial index
ORA-13373: Element of type Extent is not supported for Geodetic data
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_9I", line 7
ORA-06512: at line 1
Why does this give me an error when the same approach worked fine for my other spatial tables? Is it something to do with the SRID? Also the index appears to have been created so I presume it has been created incorrectly. Thanks for your time, Joe -
How to locate the repository table relevant to my custom report. ?
Hi
I have to develop custom user report in SAP GTS.
User wants custom report with product, classification and tariff details.
Please tell me, How do I locate the relevant table and field from the the GTS SAP repository ?
BTW, Where do I go from here and do some more research and understand the GTS schema or repository database understand the different tables and its purpose and also its relation, etc.
Any pointers ?
Your help is much appreciated. Many thanks in advance.
-sivahi,
open ur transaction and in menu goto system status and find program name.
then in se37 open GET_TABLES func module.give program name and execute.
u will get all tables related to that transaction.use the tables which have ur required fields. -
Does CDC work on spatial tables?
I'm trying to prototype using change data capture on some spatial tables. I'm able to create the cdc tables and subsribe, etc. with no errors. But when I go to try and update a record in my spatial table I keep getting the following errors:
ERROR at line 1:
ORA-31495: error in synchronous change table on "FULL"."GEONAME_FEATURE"
ORA-01733: virtual column not allowed here
My non-spatial tables that I set up the same way work fine for updates and inserts.
The spatial CDC table and the base spatial table look the same. Is there something about Spatial that prohibits it from being used with change data capture?This might be related to bug 3561140 - we are working with the appropriate folks in Oracle to try to resolve it. If you can post your view definition then we can try to ensure this is fixed at the same time (a small test case would be appreciated).
-
Bug driver 10g on Spatial tables with MapX
I have migrated from 9i to 10g with spatial tables.
I have the message "Error creating buffer" when I call the function SearchWithinDistance of MapX5, in VB6.
The function works properly with database 9i or database 10g and driver 9 but gives the error with database 9i or database 10g and driver version 10. All other functions work well...
Anyone can help ? ThanksHi David,
I had never heard of this bug before. Hopefully this info regarding a workaround will be what you need:
This problem affects any REF or ADT ("user-defined" types) with NOT NULL.
The workaround is to drop the NOT NULL constraint before exporting and adding it after importing. -
Network location for external table's file
Hi,
I am trying to import data from a csv file in oracle 10g database. I can successfully upload data from a csv file located on server itself using external table. But when I redefine directory object on a folder on network location, it doesn't work. Is that a limitation with external tables to access data from a file on network location.
Any clarifications and suggestions would be highly appreciated.
Thanks,
AniketHi Nicolas,
I created a directory object pointing to a folder on a system(Other than Oracle 10g server) in the network. This folder is shared and can be accessed from the Oracle 10g server. When I create an external table with the default directory as the shared folder it couldn't read the csv file from that folder ( Shared folder on another system).
But when I redefined the directory object on a local folder which was on Oracle 10g server, it could read from csv file in the local folder using external table.
My understanding is using external tables, one can only read files that are on the local machine i.e. Oracle 10g server and not on a different system.
Please correct me if i am wrong. Any further suggestions would be highly appreciated.
Regads,
Aniket -
i want to clone spatial tables from database 11g r2 to another one ?
i exported tables of my user using toad
export ---> export utility wizard ---> export tables--> select all tables from my User
and i imported it into my new User in new DB
but the styles, themes, base map & tile layer not found when i opened mapbuilder
also the view "USER_SDO_THEMES" is empty
i tried to export all database from my old machine and import it into my new machine by toad export ---> export utility wizard ---> export this DataBase
but i couldn't import it into my new machine as the oracle home was changed at new machine
I need urgent help
any help in resolving this would be greatly appreciated.
thanks.MapViewer related questions are best posted on the MapViewer forum:
MapViewer
Have a look at this blog for an answer to your question:
http://oracle-maps.blogspot.com/2009/04/how-to-exportimport-themes-styles-maps.html -
What is the easiest, most foolproof way of unloading (exporting) spatial tables?
The goal is to export the table, indices and any other related and required objects so this can be imported into a completely different instance of Oracle.Thanks for the reply, Dan.
We have hired a contractor to work on an editing application for us, so we needed to send them our tables. They claimed that they needed an export of the MDSYS schema, which we have discovered cannot be exported. I did not think they needed an export of MDSYS, and this information verifies this claim.
R Clement
Alaska Department of Natural Resources
To view a very fast Internet Map Service based on Oracle Spatial, see:
http://mapper.landrecords.info -
Can someone tell me how I can create shape files from spatial tables. I see a lot of examples for the reverse, but not for create shape files from spatial tables. The federal government has requested this, so I'm kind of stuck. Thanks.
Hi Tomek,
I am new to Oracle spatial and ESRI. I have read conversion to and from ESRI shape file. What I need to do is to convert Oracle spatial coordinate to ESRI coordinate and output ESRI coordinate to external third party software.
I have registered ESRI to Oracle as below:
INSERT INTO SDO_COORD_REF_SYSTEM
SRID, COORD_REF_SYS_NAME, COORD_REF_SYS_KIND,
COORD_SYS_ID, DATUM_ID, GEOG_CRS_DATUM_ID,
SOURCE_GEOG_SRID, PROJECTION_CONV_ID, CMPD_HORIZ_SRID,
CMPD_VERT_SRID, INFORMATION_SOURCE,
DATA_SOURCE, IS_LEGACY,
LEGACY_CODE,
LEGACY_WKTEXT,
LEGACY_CS_BOUNDS,
IS_VALID,
SUPPORTS_SDO_GEOMETRY
VALUES
1000000, 'USGS Albers Conical Equal Area NAD83', 'PROJECTED',
4400, NULL, 10076,
2000006 , NULL, NULL,
NULL, 'USGS',
NULL, 'TRUE',
NULL,
'PROJCS["Equal-Area Projection (United States)",
GEOGCS[ "NAD 83", DATUM ["NAD 83",
SPHEROID ["GRS 80",6378137,298.2572221010002]],
PRIMEM ["Greenwich",0], UNIT["Decimal degree",0.0174532925199433]],
PROJECTION ["Albers Conical Equal Area"],
PARAMETER ["Standard_Parallel_1",29.5],
PARAMETER ["Standard_Parallel_2",45.5], PARAMETER ["Latitude_of_Origin",23],
PARAMETER ["Central_Meridian",-96], UNIT ["Meter",1]]',
NULL,
'TRUE',
'TRUE'
I ran the following:
select MDSYS.SDO_CS.TRANSFORM(
MDSYS.SDO_GEOMETRY(2001,
82473,
MDSYS.SDO_POINT_TYPE(2510416,
2413881,NULL
NULL,NULL
1000000
) from dual
The output is:
(-14497847,5126972)
Is the output in valid ESRI coordinate?
How do you do the conversion otherwise?
Please advise,
Thanks,
Regards,
Michael
Maybe you are looking for
-
How do i synch my pdf/books to my Itunes library. I was able to synch my ipod touch app purchases by transferring them but can't figure out how to do my pdfs. Also why is my ipod picture greyed out-the one that lets my move the icons around. I am af
-
Dear friends, please furnish the following details How to find out 1. purchase orders not closed (i.e remaining open) even after delivery and the payments for same is made? 2.po for which there is no RFQ 3.Po for which there is no PR 4.expected da
-
Convert virtually any CAD file into a PDF document .
Can Acrobat X Pro Convert virtually any CAD file into a PDF document using templates? Earlier Acrobat 9 Pro Extended used to be ?
-
Analysis of Active Availability Control
Hi PS gurus, I'd like to know what is the meaning of the columns in the Availability Control Analysis report (accessible via Extras --> Availability Control --> Analysis in CJ30 or Cj32) NWA 4054504 0020
-
Can anyone help with a Parallels/WinXP/printer problem?
I have a MacBook running Parallels and Windows XP. I'm trying to install the software/drivers for an HP 6210 all-in-one printer. When I run the setup program, it extracts itself, zips through its four listed steps, etc.--and then just disappears. Not