Geometry Tables on MapBuilder show only 5 tables of 25 tables with sdo
Hi,
I have 25 tables with sdo column and data in my database. But I can only see 5 tables under directory Geometry Tables on MapBuilder. Why can other tables not be displayed? Any idea???
Thank you
Yes, manually! Assuming your data is long/lat srid 8311:
INSERT INTO USER_SDO_GEOM_METADATA (
table_Name, column_name, srid, diminfo
) values (
'MISSING_TABLE1','GEOM',8311,MDSYS.SDO_DIM_ARRAY(
MDSYS.SDO_DIM_ELEMENT('X',-180,180,0.005),
MDSYS.SDO_DIM_ELEMENT('Y',-90,90,0.005))
);<shameless_plug ignore_level="HIGH" contact_email="simon at spatialdbadvisor dot com">
On my website (http://www.spatialdbadvisor.com/file_download/18) there are some free downloadable pl/sql tools. In these tools there is a package called TOOLS which has a procedure as follows:
Procedure MetadataAnalyzer( p_table_regex IN VARCHAR2 := '*',
p_fixed_srid IN NUMBER := -9999,
p_fixed_diminfo IN MDSYS.SDO_DIM_ARRAY := NULL,
p_spindex_tablespace IN VARCHAR2 := NULL,
p_spindex_work_tablespace IN VARCHAR2 := NULL,
p_pin_non_leaf IN BOOLEAN := FALSE,
p_stats_percent IN PLS_INTEGER := 100,
p_min_projected_tolerance IN NUMBER := 0.00005 );Which you would execute from sqlplus as follows (assume the package is installed in the CODESYS schema):
SQL> execute codesys.TOOLS.MetadataAnalyzer;It will discover your tables with sdo_geometry columns and try and construct user_sdo_geom_metadata entries for them via querying user_tab_columns. It will also build spatial indexes and ensure database statistics are gathered.
Try it and see if it works for you. If you have problems, just email me for help.
</shameless plug>
regards
Simon
Similar Messages
-
EA3 export table with SDO types
Hi!
I've tried export table from user (not mdsys) with mdsys.sdo_geometry column (build 1.5.0.53.04, tools export wizard, all checks except storage).
got in log:
SEVERE 40 0 oracle.dbtools.db.DBUtil
ORA-31603: объект "SDO_ELEM_INFO_ARRAY" с типом TYPE не найден в схеме "MDSYS" ORA-06512: на "SYS.DBMS_SYS_ERROR", line 105 ORA-06512: на "SYS.DBMS_METADATA", line 2805 ORA-06512: на "SYS.DBMS_METADATA", line 4333 ORA-06512: на line 1
SEVERE 41 641 oracle.dbtools.db.DBUtil ORA-31603: объект "SDO_GEOMETRY" с типом TYPE не найден в схеме "MDSYS" ORA-06512: на "SYS.DBMS_SYS_ERROR", line 105 ORA-06512: на "SYS.DBMS_METADATA", line 2805 ORA-06512: на "SYS.DBMS_METADATA", line 4333 ORA-06512: на line 1
SEVERE 42 94 oracle.dbtools.db.DBUtil ORA-31603: объект "SDO_ORDINATE_ARRAY" с типом TYPE не найден в схеме "MDSYS" ORA-06512: на "SYS.DBMS_SYS_ERROR", line 105 ORA-06512: на "SYS.DBMS_METADATA", line 2805 ORA-06512: на "SYS.DBMS_METADATA", line 4333 ORA-06512: на line 1
SEVERE 43 3093 oracle.dbtools.raptor.ddl.DDLGenerator getDDL - null
In SQL script i've got some strange result (see bold):
-- File created - среда-Апрель-09-2008
DROP TABLE "TEST" cascade constraints;
DROP SEQUENCE "MDRS_C0A4$";
-- DDL for Sequence MDRS_C0A4$
CREATE SEQUENCE "MDRS_C0A4$" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 101 CACHE 100 ORDER NOCYCLE ;
-- DDL for Type SDO_ELEM_INFO_ARRAY
-- Unable to Render DDL with DBMS_METADATA using internal generator.
CREATE TYPE SDO_ELEM_INFO_ARRAY
AS VARRAY (1048576) of NUMBER
GRANT EXECUTE ON "SDO_ELEM_INFO_ARRAY" TO PUBLIC WITH GRANT OPTION;
GRANT EXECUTE ON "SDO_ELEM_INFO_ARRAY" TO PUBLIC WITH GRANT OPTION;
-- DDL for Type SDO_GEOMETRY
-- Unable to Render DDL with DBMS_METADATA using internal generator.
CREATE TYPE MDSYS.SDO_GEOMETRY;
CREATE TYPE SDO_GEOMETRY AS OBJECT
( SDO_GTYPE NUMBER,
SDO_SRID NUMBER,
SDO_POINT SDO_POINT_TYPE,
SDO_ELEM_INFO SDO_ELEM_INFO_ARRAY,
SDO_ORDINATES SDO_ORDINATE_ARRAY,
MEMBER FUNCTION GET_GTYPE RETURN NUMBER DETERMINISTIC,
MEMBER FUNCTION GET_DIMS RETURN NUMBER DETERMINISTIC,
MEMBER FUNCTION GET_LRS_DIM RETURN NUMBER DETERMINISTIC,
MEMBER FUNCTION GET_WKB RETURN BLOB DETERMINISTIC,
MEMBER FUNCTION GET_WKT RETURN CLOB DETERMINISTIC,
MEMBER FUNCTION ST_CoordDim RETURN SMALLINT DETERMINISTIC,
MEMBER FUNCTION ST_IsValid RETURN INTEGER DETERMINISTIC,
CONSTRUCTOR FUNCTION SDO_GEOMETRY(wkt IN CLOB, asrid IN INTEGER DEFAULT NULL)
RETURN SELF AS RESULT,
CONSTRUCTOR FUNCTION SDO_GEOMETRY(wkt IN VARCHAR2, asrid IN INTEGER DEFAULT NULL)
RETURN SELF AS RESULT,
CONSTRUCTOR FUNCTION SDO_GEOMETRY(wkb IN BLOB, asrid IN INTEGER DEFAULT NULL)
RETURN SELF AS RESULT
GRANT EXECUTE ON "SDO_GEOMETRY" TO PUBLIC WITH GRANT OPTION;
GRANT EXECUTE ON "SDO_GEOMETRY" TO PUBLIC WITH GRANT OPTION;
-- DDL for Type SDO_ORDINATE_ARRAY
-- Unable to Render DDL with DBMS_METADATA using internal generator.
CREATE TYPE SDO_ORDINATE_ARRAY
AS VARRAY(1048576) OF NUMBER
GRANT EXECUTE ON "SDO_ORDINATE_ARRAY" TO PUBLIC WITH GRANT OPTION;
GRANT EXECUTE ON "SDO_ORDINATE_ARRAY" TO PUBLIC WITH GRANT OPTION;
-- DDL for Table TEST
CREATE TABLE "TEST"
( "NUM" NUMBER,
"GEOLOC" "SDO_GEOMETRY"
-- Constraints for Table TEST
ALTER TABLE "TEST" MODIFY ("NUM" NOT NULL ENABLE);
ALTER TABLE "TEST" ADD PRIMARY KEY ("NUM") ENABLE;
-- DDL for Index TEST_SX
CREATE INDEX "TEST_SX" ON "TEST" ("GEOLOC")
INDEXTYPE IS "MDSYS"."SPATIAL_INDEX" PARAMETERS ('SDO_INDX_DIMS=2 LAYER_GTYPE="COLLECTION"');
-- DDL for Index SYS_C004552
CREATE UNIQUE INDEX "SYS_C004552" ON "TEST" ("NUM")
Why it create all grant twice?
Why it try to recreate type SDO_GEOMETRY twice - once in MDSYS schema second in users schema?
Why it recreate types SDO_ELEM_INFO_ARRAY and SDO_ORDINATE_ARRAY only once in user schema?Why it create all grant twice?
Why it try to recreate type SDO_GEOMETRY twice - once in MDSYS schema second in users schema?
Why it recreate types SDO_ELEM_INFO_ARRAY and SDO_ORDINATE_ARRAY only once in user schema?
All of these seem to be an issue with the older internal ddl generator. While I will log a bug on this we do not actually own the code so I am not able to fix it. The easiest way to make this work correctly would be to fix your DBMS_METADATA to work for those other user objects...
Try granting your export user SELECT_CATALOG_ROLE.
Although I'm not sure why you are including the dependencies for that table as you know it's going to just get you the MDSYS objects, try unchecking the "Automatically Include Dependent Objects" option on the first page of wizzard. -
ACE Implementation - Want to show only opportunities which are associated
Hi,
I have read the article by Boris Dingenouts - The concept and implementation of CRM-ACE I am able to understand the concept but dont know how to use this concept for my requirement.
My requirement is to show only those opportuinties which are associated with the accounts which are associate with the logged in user.
What will be the Object here - whether I have to treat opportunity or Account as the object. What I have write in GET_OBJECTS_BY_FILTER.
GET_ACTORS_FROM_USER will remain the same as article.
GET_ACTORS_FROM_OBJECTS what code I have to write.
Regards,
JayaHi Jaya,
1) I think you should treat account as an object and in Objects by Filter, you will select all objects as per you requirement.
2) All objects selected above would pass into Actors from objects and then you select actors as per your requirement for these objects. The actors determined as per logic would be then mapped with the corresponding objects in tables.
I hope this answers.
Amar. -
How do you show only one caller's video display wi...
How do you show only one caller's video output with four people sharing a video call? i.e. the call originator wants to show a DVD video on a TV screen and the other callers want to view the video on full screen not just one fourth of their screen.
Thought I'd try this just in case they are stripping out attachments.
Gary Grow
6457 Audubon Sq Dr N
Mobile, AL 36695
Email: [email protected]
Cell: (251) 422-8817
The American Creed by William Tyler Paige
I believe in the United States of America as a government of the people, by the people, for the people; whose just powers are derived from the consent of the governed, a democracy in a republic, a sovereign Nation of many sovereign States; a perfect union, one and inseparable; established upon those principles of freedom, equality, justice and humanity for which American patriots sacrificed their lives and fortunes. I therefore believe it is my duty to my country to love it, to support its Constitution, to obey its laws, to respect its flag, and to defend it against all enemies. -
It is annoying to download an app that subsequently states it is only for iPhone 4 or OS x.x.x
Is there some way of filtering content or content search to show only those items that are compatible with whatever hardware/firmware I happen to be using?
Interestingly in the Apple drop down list of Products the earliest iPhone shown is 3G !! Have they disowned all models they sold before that variant? I have an iPhone 2G. Works well, does what it says on the tin, have no reason/need to throw away and buy another. Yet they manage to provide firmware updates (now 3.1.3) for a product that is not listed!!!And some more info I just found...
I found a web article that confirms that it is possible to clean ("sanitize" or "scrub") the files manually on Mac. It even provides a link that (I am assuming) details how to do it.
Unfortunately, the link doesn't work for me. Does the link work for anybody else?
Here's the article: http://lawyerist.com/remove-metadata-with-batch-software/
Scroll down to the 3rd section "How to remove metadata?" to see the link that I'm referring to. -
Table header row to show only on even pages
Within a table I have made few of the rows as header row. Is there any way I can make this header row to show only on even pages..I tried doing this at the beginning of each header row <?if:(fo:page-number) mod 2=0?>..but its' not showing me anything..
Thanks that helped..But I am having another problem. I want to call different templates in the even header section... based on the page number...for example..for
page 2 of 2, I want to call template1 in the even page,
page 2 of X, I want to call templete2 in the even page,
Can you please help..? -
SelectOneChoice Lov in Table readOnly show only ID when export to Excel
Hi, I put a af:selectOneChoice readOnly Lov in a table to bring the DESCRIPTION of the ID in a foreig key relation, it do it well in the browser, but when I want to export to EXCEL it show only the ID of the related table.
How can I fix it to show the DESCRIPCION in the exported excel?
Tx in advanceIf I make it in this way, I gonna have two columns one just for the description and other for the combo, maybe in the future I need to make it editable/readonly and thats the reason I only need the combo, but when I want to export to excel it show the id.
The error(maybe not) is because the ADF's programmer who make the excel command go for the iterator and not for the table's gui. -
Enable hide/show only for selected rows for table in table
I have an advanced table with a detail table connected by a view link. This adds a "Details" column of Hide/Show links on the left of the table to expand the inner-table for each row of the outer-table. The goal is to have the hide/show in the outer table, only when there is data for the outer row in the detail region.
Normally, hide/show appears for all rows in the outer table.
Thanks!In the processRequest method of the controller execute the query of the Outer table region and check is there any row or not.
If yes then do nothing else hide the bean i.e. hide/show bean. You need to do PPR for this.
Thanks
--Anil -
DHCP table shows only 3 of 4 clients?
Wireless N Gigabit Router WRT310N - Although there are 4 DHCP pc's and 1 fixed-IP printer connected to the router, the DHCP Table only lists 3 IP's, 192.168.1.100, *.102 and *.109. The fourth shows its IP in a CMD window, with "ipconfig" as *.103. It connects to the internet and the network printer just fine.
Why doesn't the fourth show in the DHCP client table?
Thanx.Tried your suggestion at an administrator command prompt and they both appeared to run successfully. But no change in the DHCP Client table after refresh and revisit. The PC is fully networked with the same IP.
What should I look for in the output for "ipconfig /displaydns"? I see a Time To Live of 86400. ??
I'm a sr. software engineer and sit in bug fix meetings at least weekly. The network guys at work don't have an answer. I agree with a previous post that this looks very much like a firmware bug. So my interest is not just academic. This may be an isolated bug, totally benign, or it may be a sign that some other feature/function is not working correctly. Only Cisco knows. ??
Thanx all. -
Only one row show in table with tablepopin
Hi,
I've a table with a tablecolum with a tablepopintogglecell, and a tablepopin.
I want that only one row show (when i press the togglelink if there is other row open, automatically close that row)Hi,
you should implement the on toggle event,
you will have the importing context_element, so you know which one is triggered,
form your node, get_elements().
loop over the table where ne to context_element, clear the popin attribute,
grtz,
Koen -
Show Only First N Rows in SAP Design Studio Chart/Table
Hi,
Is it possible to show only first N rows of data in SAP Design Studio Charts/Cross Tab ?
Eg
Bex Query Output
Here If I mention First 2 rows, my chart looks like below
If I mention First 4 rows, my chart looks like below
Thanks
AnilHi Mustafa,
Thanks for your reply.
Actually our requirement is, we have one Bex Query where we are using Ranking Function.
We have 15 customers, and we need to know the ranking based on some calculations.
Whenever we execute the query with different time periods, the ranking of Customers will vary, for example if I execute query for year 2014, customer 1 can be Rank 1, If I execute for year 2013, Customer 7 can be Rank 1.
From this Query I need to show only Top 5 Customers in Cross Tab/Chart.
We tried to put condition on CY Ranking in Bex to show only Top 5, but the result was giving some diff customers and also for all Time periods we are getting same Customers In Top 5.
To overcome this, we thought instead of putting condition on Bex side, we are trying to pick only first 5 rows from Bex Query and show them in Chart/Cross Tab, something like we will map only first 5 rows in Xcelcius.
We would like to know is there any functionality in Design Studio to show only first 5 rows of data.
Regards,
Anil -
Error while running spatial queries on a table with more than one geometry.
Hello,
I'm using GeoServer with Oracle Spatial database, and this is a second time I run into some problems because we use tables with more than one geometry.
When GeoServer renders objects with more than one geometry on the map, it creates a query where it asks for objects which one of the two geometries interacts with the query window. This type of query always fails with "End of TNS data channel" error.
We are running Oracle Standard 11.1.0.7.0.
Here is a small script to demonstrate the error. Could anyone confirm that they also have this type of error? Or suggest a fix?
What this script does:
1. Create table object1 with two geometry columns, geom1, geom2.
2. Create metadata (projected coordinate system).
3. Insert a row.
4. Create spacial indices on both columns.
5. Run a SDO_RELATE query on one column. Everything is fine.
6. Run a SDO_RELATE query on both columns. ERROR: "End of TNS data channel"
7. Clean.
CREATE TABLE object1
id NUMBER PRIMARY KEY,
geom1 SDO_GEOMETRY,
geom2 SDO_GEOMETRY
INSERT INTO user_sdo_geom_metadata (table_name, column_name, srid, diminfo)
VALUES
'OBJECT1',
'GEOM1',
2180,
SDO_DIM_ARRAY
SDO_DIM_ELEMENT('X', 400000, 700000, 0.05),
SDO_DIM_ELEMENT('Y', 300000, 600000, 0.05)
INSERT INTO user_sdo_geom_metadata (table_name, column_name, srid, diminfo)
VALUES
'OBJECT1',
'GEOM2',
2180,
SDO_DIM_ARRAY
SDO_DIM_ELEMENT('X', 400000, 700000, 0.05),
SDO_DIM_ELEMENT('Y', 300000, 600000, 0.05)
INSERT INTO object1 VALUES(1, SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(500000, 400000, NULL), NULL, NULL), SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(550000, 450000, NULL), NULL, NULL));
CREATE INDEX object1_geom1_sidx ON object1(geom1) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
CREATE INDEX object1_geom2_sidx ON object1(geom2) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
SELECT *
FROM object1
WHERE
SDO_RELATE("GEOM1", SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(500000, 400000, NULL), NULL, NULL), 'MASK=ANYINTERACT') = 'TRUE';
SELECT *
FROM object1
WHERE
SDO_RELATE("GEOM1", SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(500000, 400000, NULL), NULL, NULL), 'MASK=ANYINTERACT') = 'TRUE' OR
SDO_RELATE("GEOM2", SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(500000, 400000, NULL), NULL, NULL), 'MASK=ANYINTERACT') = 'TRUE';
DELETE FROM user_sdo_geom_metadata WHERE table_name = 'OBJECT1';
DROP INDEX object1_geom1_sidx;
DROP INDEX object1_geom2_sidx;
DROP TABLE object1;
Thanks for help.This error appears in GeoServer and SQLPLUS.
I have set up a completly new database installation to test this error and everything works fine. I tried it again on the previous database but I still get the same error. I also tried to restart the database, but with no luck, the error is still there. I geuss something is wrong with the database installation.
Anyone knows what could cause an error like this "End of TNS data channel"? -
Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the records?
Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.The Oracle documentation has a good overview of the options available
Generating XML Data from the Database
Without knowing your version, I just picked 11.2, so you made need to look for that chapter in the documentation for your version to find applicable information.
You can also find some information in XML DB FAQ -
Spatial index creation for table with more than one geometry columns?
I have table with more than one geometry columns.
I'v added in user_sdo_geom_metadata table record for every column in the table.
When I try to create spatial indexes over geometry columns in the table - i get error message:
ERROR at line 1:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-13203: failed to read USER_SDO_GEOM_METADATA table
ORA-13203: failed to read USER_SDO_GEOM_METADATA table
ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 8
ORA-06512: at line 1
What is the the solution?I'v got errors in my user_sdo_geom_metadata.
The problem does not exists! -
Error while trying to search in advanced table with hide/show region
Hi
I have search region and a results table with a hide.show in it.I did a search initially and got the results.I clicked on the hide/show region to see the details.
I put another search criteria in the search region and tried to do a search.
I am getting the following error
The search cannot be executed because the table has pending changes that would be lost...
Can anybody help me on this please....
Message was edited by:
user580745Any setter/getter method being used on hide/show action? How are you enabling the details? Is there a transient column in your VO?
--Shiv
Maybe you are looking for
-
This new Family Sharing idea is great on the surface, but without some management tools to fix problems its worthless. Case in point - somehow, when my wife and I upgraded our iPads to 8.0.2, I decided to become the organizer, since my Apple ID is th
-
Hello, I've got a peticular problem on a peticular configuration... At home, on wifi, I use my iPad to write iMessages on the large screened-keyboard. iMessages are sent back to both my iPad, but to my iPhone too (that I've always on my pocket so use
-
Locking problem in Forms Builder 6i, Oracle 9i
It appears that forms builder is issuing exclusive locks on referenced DB objects during and after compilation. This causes problems when trying to issue DDL statements against these objects while builder is connected. Is this the proper lock mode or
-
Database Design - Multiple Customer Tables
Scenario: - Let's say there are various customer "types" - Each one has a set of attributes which is only applicable to that customer type. - You have a table for orders that is for all customers - Want to treat it as one customer table for reports,
-
Hello all. I am currently in Russia with my iPhone 4 (I'll be here till June), but I lost my AT&T microsim and, unfortunately had to perform a restore on my iPhone. I can't activate it while I'm here or at least I don't know how. They sell microsims