Quantcast
Channel: Forums - Geodatabase & ArcSDE
Viewing all 1588 articles
Browse latest View live

Setting Default Date ??

$
0
0
I am currently working on a feature class that is associated with 4 subtypes. The "date" field is required to maintain a default value of 1/1/9999. I assigned this default value for each one of the subtypes through the feature class properties dialogue box, yet when I export the XML workspace and then import it back into an empty GDB, the assigned default date value seems to disappear from the "date" field.

- Is this the correct procedure when setting a default date for data that has subtypes?

- Is there a different method that would enable the schema to retain the default value ?

How to change default storage type SDE 10.1 on SQLServer 2008 R2?

$
0
0
I have to change a default storage type of SDE 10.1 on SQLServer 2008 R2.
1. How can I do it?
2. Is it enough to update ONLY ONE row (field config_string)(GEOMETRY->SDEBINARY) in dbo.SDE_dbtune table (where keyword='DEFAULTS' and parameter_name='GEOMETRY_STORAGE')?

Any ideas would be appreciated.

Strange behaviour with ST_INTERSECTS

$
0
0
Dear all,

I am experiencing a strange behaviour with ST_INTERSECTS.
The environment is as follow:
ArcSDE 10.1 SP 1 on Oracle 11.2.0.3 64-bit
Red Hat server

ST_LIBRARIES is correctly deployed and configured.

When I run the following query I got an error:

Code:

SQL*Plus: Release 11.2.0.3.0 Production on Thu Feb 6 09:51:59 2014

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SELECT
    IBOW.SEAGRASS_RL13.OBJECTID,
    IBOW.SEAGRASS_RL13.RLSTATUS
FROM
    IBOW.SEAGRASS_RL13,
    IBOW.ITALYF2_REV1_AU
WHERE
    SDE.ST_INTERSECTS (IBOW.ITALYF2_REV1_AU.SHAPE, IBOW.SEAGRASS_RL13.SHAPE) = 1;

SELECT
*
ERROR at line 1:
ORA-28579: network error during callback from external procedure agent
ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 100
ORA-06512: at "SDE.ST_RELATION_OPERATORS", line 340


Running the query on a small subset of features works:

Code:

SELECT
    IBOW.SEAGRASS_RL13.OBJECTID,
    IBOW.SEAGRASS_RL13.RLSTATUS
FROM
    IBOW.SEAGRASS_RL13,
    IBOW.ITALYF2_REV1_AU
WHERE
    SDE.ST_INTERSECTS (IBOW.ITALYF2_REV1_AU.SHAPE, IBOW.SEAGRASS_RL13.SHAPE) = 1
    AND IBOW.SEAGRASS_RL13.OBJECTID IN (27);

  OBJECTID  RLSTATUS
------------------------------------------------------------------------------------------
        27      LC

My guess is that probably the external process run out of memory when pperforming the intersect on many features. Is there a way to check for the error in the external process?

Thanks in advance for any hint.

Kind Regards,

Stefano

No non SDE-Tables in ArcXXXXX visible

$
0
0
Hey,

since the Update from 9.3.X to 10.1 the ArcCatalog or ArcMap doesnt show up non SDE-Tables. In the DBMS all tables are visible and selectable.

SDE 10.1
OS Win 2K8 R2
SQL-Server 2K8 R2

Any suggestions?

Maps Connection to database is getting lost after an hour of inactivity.

$
0
0
Hi All,

Can anyone please help me here with the issue i am facing i.e. when logged in with inventory and maps connection the maps connection as well as the inventory connection is getting lost after an hour of inactivity resulting in Network I/O error.

when i check the log it says that the connection exited with status 0.

Can anyone please help?

Is standardizing on Geodatabase XML a good idea ?

$
0
0
We are working with a government agency client who needs to interchange infrastructure datasets (internally and with other agencies) stored in local and enterprise geodatabases and also with other external systems and are considering standardizing on ESRI’s Geodatabase XML. Our client, however, has expressed a concern about the risk of adopting an industry standard that might either go away, no longer be supported, or will become obsolete too soon.

• Is there a better alternative for geodatabase content interchange than Geodatabase XML today that we should consider?
• Are further developments related to Geodatabase XML ongoing and/or planned, or will it be superseded by a better way to exchange GIS datasets some time soon?
• Is it presently actively supported?
• Will it be supported for the foreseeable future?

Thank you,

Dave Lanter

New SDE Relationship

$
0
0
Hi,

The group that administers our SDE recently created a table for us, that is related to two feature classes...WaterService and SaniService. Now, only the people who have permissions to view the related table can view the feature classes.

The administrators are telling us that the only way everyone can see WaterService and SaniService is to allow everyone to also view the related table.

Is that right??

How to direct publish to specific Schema in SQL Server

$
0
0
Hi,
Is it possible using Active Directory authentication to steer published tables to a schema other than the schema of the AD account that is doing the publishing? What we've seen so far is that it only works when a schema with the AD account name exists and it will place the tables in that schema. Can these objects be "moved" to another schema and have the GIS metadata updated to reflect the new schema?

thanks for the time.

Bad performance and error execution of ST_Geometry fuctions

$
0
0
Hi,

I am experimenting some performance problems and error executions when I use ST_GEOMETRY functions in SQL and
I wanted to know how many features from my parcel layer intersect a required municipality. The parcel feature class is versioned and there are several versions created in our database. Using sql I wrote the following statement...

SELECT count(*)
FROM GISADMIN.parcelario08 p,GISADMIN.municipios m
WHERE sde.st_intersects (p.shape,m.shape) = 1
AND m.municipios='VILLALBA'
order by p.num_catastro;

this returns 7434 records in about just a few seconds. Using “select by location” in ArcMap, the application returned 7436 selected features. Both queries were done relatively at the same time. I ran "exec sde.version_util.set_current_version('SDE.DEFAULT');" just in case in my latest tries, but still the same results. I figured out I was referencing the business table and not the corresponding versioned view so I modified the query to…


SELECT count(*)
FROM GISADMIN.parcelario08_evw p,GISADMIN.municipios m
WHERE sde.st_intersects (p.shape,m.shape) = 1
AND m.municipios='VILLALBA'
order by p.num_catastro;

Problem is I’m not able to confirm the results because querying the versioned view takes a lot of time and after several minutes I receive the error message…

“Error starting at line 3 in command:
SELECT count(*)
FROM GISADMIN.parcelario08_evw p,GISADMIN.municipios m
WHERE sde.st_intersects (p.shape,m.shape) = 1
AND m.municipios='VILLALBA'
order by p.num_catastro
Error report:
SQL Error: ORA-20011: Error generating shape. (SHAPE1)
ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 100
ORA-06512: at "SDE.ST_RELATION_OPERATORS", line 340”

Another test was ran using another layer (non versioned) instead of the parcels fc and the performance is very bad (at the time this document is being edited, the oracle session is going for 30 minutes indicating the wait event “External Procedure call”). I like using sql functionality to generate reports quickly and used to copy data to Postgis (no ESRI software) just to have this ability. In postgis the latter statement took just 2 seconds. The gdb is compress and maintain daily. After about 2 hours, I received the following errors…

“ORA-29903: error in executing ODCIIndexFetch() routine
ORA-28576: lost RPC connection to external procedure agent
ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 933
ORA-06512: at "SDE.SPX_UTIL", line 3954
ORA-06512: at "SDE.SPX_UTIL", line 3832
ORA-06512: at "SDE.ST_DOMAIN_METHODS", line 882
29903. 00000 - "error in executing ODCIIndexFetch() routine"
*Cause: The execution of ODCIIndexFetch routine caused an error.
*Action: Examine the error messages produced by the indextype code and
take appropriate action.”

I found some bugs but in my oracle version are solve
http://support.esri.com/zh-cn/knowle...s/detail/38823
http://support.esri.com/en/knowledge...s/detail/32187
http://www.palladiumconsulting.com/b...part-zero.html

Any one has any idea why is it? some recommendations?

Thanks for your help!

Diego Llamas

Managing of FILE Geodatabase - basics

$
0
0
Hi,

First off all I’m not programmer so it’s difficult for me to explain my tasks.

I’ve done my first customization for ArcGIS Desktop in VB.NET and now I need to connect variables (non-spatial) with a desktop database. My friend helped me and designed for me a structure of the database for my app (attachment) and also he set relations and tables in FILE Geodatabase.

Now I need to create functions to manage this FILE GDB for my ArcGIS customization. I don’t know where to start so I’m asking you for a little help. I will need to copy values from the GDB and save them into the GDB or delete whole tables or create new ones.

Do you think is it a good idea to work with FILE GDB or are there any other better options? Do you know about any samples/snippets that can help me at the beginning?

I know this are really basic questions but I'm a newbie :) so thanks for any help,

Stan

Attachment 31270



Attachment 31271
Attached Thumbnails
Click image for larger version

Name:	verze1.jpg‎
Views:	N/A
Size:	67.7 KB
ID:	31270   Click image for larger version

Name:	Výstřižek.PNG‎
Views:	N/A
Size:	11.9 KB
ID:	31271  

Fixing a corrupted SDE caused by a Unit Separator

$
0
0
Hi

I have a Feature Class in a SQL Server SDE (2008 R2, 10.1) with an invisible character (Unit Separator) in it's name.
HTML Code:

layername
layer␟name

I can't rename or delete the Feature Class using ArcCatalog.

In SDE_layers it appears twice, one for the name with the invisible character and one without. Both have different value in layer_id column.

Thanks
HW

Document Storage

$
0
0
Hello, I am curious how to store documents (pictures of equipment and pdf manuals) in the database. I have started using the attachment function for storing images, but my IT is saying that putting tens of thousands of images into the database would compromise its stability. So, I began storing the images in a networked folder and then creating a link field in the attribute table. This has worked with some layers (like easement documents) that only have one linked document. However, some pieces of equipment have numerous pictures and documents. I find it cumbersome to have many fields that contain links.

How any of you used the attachment method with lots of documents? How has this affected the geodatabase? If you use the links method, have you found a way to create the links easier or with less hassle?

I am using ArcGis 10.2 for both the server and desktop. I believe we are using SQL 2013 for the database. If you need additional information, please let me know and I will try to answer.

Thanks

Will

Connecting to personal geodatabase in catalog

$
0
0
Greetings,
I am trying to connect to a personal geodatabase I created in Catalog. When I navigate to the location of the geodatabase, it doesn't appear in the folder connection window. It doesn't seem to recognize the personal geodatabase I created.
Any ideas?
Thanks

Different ArcGIS Versions of Attachments?

$
0
0
The problem I'm having is that one of our users can't see attachments on a feature class that definitely has attachments.

The attachments were enabled using a 10.1 geodatabase and attached using the ArcGIS Online Collector App. My machine is running 10.1 and I can see the attachments perfectly. I can also see the attachments in the ArcGIS Online maps we have created. However, when I pull up the exact same data using a machine with 10.0 on it, I can't see any attachments. I can even navigate to the feature class using ArcCatalog 10.0 and see the _ATTACHREL relate and _ATTACH table.

Can you really not view v10.1 attachments in a v10.0 environment or is there some kind of setting I'm overlooking?!?

Thanks,
Kevin

Database vs. Geodatabase performance in 10.2.1

$
0
0
Hello all,

We have several desktop ArcGIS users that will read Geodata stored in SQL Server 2012, mostly vector features.
What would give them a better performance? Storing the data in an Enterprise Geodatabase or using a regular database with the Geometry Spatial Type?
The users will not be editing the data.

mxdperfstat for SQL Server with the default instance name

$
0
0
Hi

First time I'm trying to use the mxdperfstat on a non-named instance.
Normally I would specify ..... -host <myhost> -instance <myinstance> .... and it works perfectly.
However, specifying only the host ..... -host <myhost> ...... (without the instance name) wouldn't work.


According to this :https://stackoverflow.com/questions/...named-instance
Specifying MSSQLSERVER as the instance name wouldn't work, and in fact it doesn't.

Has anybody used mxdperfstat with a default instance name?

ArcSDE Oracle feature class - change column from non-nullable to nullable

$
0
0
I used TOAD to change a feature class column from non-nullable to nullable. And I added a trigger to populate a default value. ArcCatalog still shows the column as non-nullable. So does the ArcGIS Server Services Directory for a feature service published on this layer. And they seem unaware of the trigger - So I still can't insert features with a null value for this column.

Secret sauce, anyone?

Question about spatial views in ArcGIS 10.1

$
0
0
Hello,

We have an enterprise geodatabase in SQL server which was created in ArcGIS 10.0. From the time we created this, we have created spatial views in this database using the sdetable -o create_view command combining fields from more than one table in the same database.

In the last year, we have upgraded our Client applications and our ArcGIS server to version 10.1. We have not upgraded the geodatabase at this point and still use the sdetable -o create_view command to create spatial views.

I'm struggling to understand at this point the correct method for creating spatial views at 10.1. I have tried using the new view option when you right click a database connection and specify a query; When I do this, it creates a query table instead of a spatial view despite specifying the ObjectID and shape field in the view query. ArcMap can't seem to determine the ObjectID field when I try to add it to the map either, so I get a dialog box asking to select a unique identifier field every time I add it to the map.

What is the correct way to create a spatial view at 10.1? Should I just continue to use the sde command on my database server to do this?
Attached Thumbnails
Click image for larger version

Name:	Untitled.jpg‎
Views:	N/A
Size:	49.3 KB
ID:	31383  

extent computing while loading SDO_GEOMETRY from oracle DB

$
0
0
It takes very long time while loading SDO_GEOMETRY based feature class from ORACLE to ArcMap. What are the possible reasons?
(I have already updated the spatial metadata (USER_SDO_GEOM_METADATA)and the feature class is properly spatially indexed).
Any suggestions! This is affecting our production environment in terms of performance. Thanks in advance.

Connection Problems with 10.2 to SQL 2008r2

$
0
0
I am experiencing a strange connection issue going from 10.2 (and 10.2.1) clients (ArcCatalog) to SQL 2008r2. Windows authenticated users can make that initial connection to retrieve the database list from the server no problem. However, existing SQL based logins cannot - 'BAD USER login' error every time - no db list gets returned. Tried all the way up to SA - still nothing. However, and this is where it gets even stranger - NEW logins can make this connection. For example, if I were to create a brand new, fresh user called 'TestUser' on the SQL box, I am able to make that initial connection - but nothing with an existing user. Anyone else seen this?
Viewing all 1588 articles
Browse latest View live