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

SDE gdb is producing state lineages despite all featueres are unreg. as versioned

$
0
0
We have an Arcsde v10 / PostgresQL v8.4 geodatabase that has been performing badly the last few weeks when using long transaction for web editing. If we switch to short transactions (unregister as versioned) the system run with good performance. Anyway the system can serve upto ap. 20 concurrent webeditors without any hickups. Despite no featuredatasets is registrated as versioned the system is still producing state lineages. How come?

The database is compressed twice a day. Autovacuum is running as default. A year ago we experienced performance problems and we were recommended to run "full vacuum" with analyze. It was a very helpfull - the database performed well again. Therefore we have done this on a weekly basis ever since. We have notised that in the PostgresQL documentation it is stated that this method can degrade performance over time because indexes not are treated the right way.

The sdegdb has been part of 2 ways replica with another sdegdb for almost ½ a year. Data has been syncronised daily by an automated process (Python scripts). One month ago the replica was unregistrated in Replica Manager by a mistake without a final synchronising - replication was not needed anymore. Data is exported every day so no data was lost.

Though it is possible to make af full Compress to state 0 - the table sde_state_lineages is still rather large - about 8 GB after the sdedb has been vacuumed. It is not possible to shrink it below this limit. When no datasets is versioned anymore and no replica version exist can this be right then? Can there be hidden system tables containing trash data. If so will it be possible to clean system? If the systemtables is not the problem what could be the problem most likely? - any suggestions.

We have tried to export/import data in the the DB. No effect.

Features in the sde Gdb: ap. 800 000 polygons

Analyze_management fails for FEATURE component type

$
0
0
ArcGIS 10.1 SP1, data is in SDE, Oracle 11.2.0.2.0
Upon loading a feature class, I have always Analyzed the feature class. Created a python script as I've done this so much.

After updating my scripts to 10.1 syntax (arcpy, <tool>_Management or <tool>_management, camel case changes, etc), I have hit a stump. Via a python script:

Analyze on the BUSINESS component works fine.
Analyze on the FEATURE component gives the following:

Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\management.py", line 13516, in Analyze
raise e
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000800: The value is not a member of BUSINESS.
Failed to execute (Analyze).

We didn't spend long at 10.0. But I do notice a difference in the ArcCatalog GUI between 9.3.1 and 10.1. At 9.3.1, Business and Feature (as well as Raster, Adds, Deletes...) could be Analyzed separately. At 10.1, once you hit Analyze, it's off and running. Now whether or not this automatically runs STATS on each component type, I don't know. The 10.1 documentation still shows that each component type can be Analyzed (via arcpy):
http://resources.arcgis.com/en/help/...000000n2000000

In ArcToolbox at 10.1, once an SDE featureclass is selected, the options reduce to one checkbox. BUSINESS. What's up with FEATURES? Is this just not possible/needed?

Have I missed something? Anything I should know before creating and digging through into Oracle traces?
Guess I could try to create and export a model, though generally I write a script right from the beginning.

geodatabase

$
0
0
hello I am new to ArcGIS.. How do I connect to a geodatabase folder?

Changes to VERSIONS, STATE_LINEAGES, MVTABLES_MODIFIED tables in ArcSDE 10

$
0
0
Hi,

I am in the process of writing a python script that generates a summary of number of inserts, updates and deletes for every feature class updated in every version in the GDB. We intend to use this as part of our QC efforts, as we have student interns who help with the data updates.

The script does this by querying the following tables:
  • SDE.VERSIONS
  • SDE.STATE_LINEAGES
  • SDE.MVTABLES_MODIFIED
  • SDE.TABLE_REGISTRY
  • SDE.A/D TABLES

We are running ArcSDE 9.3 on Oracle 10g, and hope to upgrade to ArcSDE 10.1 in the near future.

I remember reading that some of the back-end SDE system tables have changed in 10, and am wondering if any of these tables were part of that change.

Thanks,

Sendhil

Problem using st_linefromtext on "large" linestrings in 10.1

$
0
0
Environment: Arc SDE 10.1 , Oracle 11g r2, Arcgis Server 10.1

Hi,
I have table with linestring clob column, the linestring are larger than 4000 bytes.
When I try to do a select using sde.st_linefromtext on the clob column, i get:
System.Data.OracleClient.OracleException: ORA-20004: Error generating shape from text: Invalid text used to construct geometry (-1).
ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 12
ORA-06512: at "SDE.ST_LINEFROMTEXT", line 58

But it works fine when I run the same select on the same column in different environment: Arc SDE 10 , Oracle 10, Arcgis Server 10

Does Arcgis 10.1 has size limitation?

Thanks,
Ido

Re: Sorting a Coded Domain

geodatabase

$
0
0
hello I am new to ArcGIS.. How do I connect to a geodatabase folder?

Changes to VERSIONS, STATE_LINEAGES, MVTABLES_MODIFIED tables in ArcSDE 10

$
0
0
Hi,

I am in the process of writing a python script that generates a summary of number of inserts, updates and deletes for every feature class updated in every version in the GDB. We intend to use this as part of our QC efforts, as we have student interns who help with the data updates.

The script does this by querying the following tables:
  • SDE.VERSIONS
  • SDE.STATE_LINEAGES
  • SDE.MVTABLES_MODIFIED
  • SDE.TABLE_REGISTRY
  • SDE.A/D TABLES

We are running ArcSDE 9.3 on Oracle 10g, and hope to upgrade to ArcSDE 10.1 in the near future.

I remember reading that some of the back-end SDE system tables have changed in 10, and am wondering if any of these tables were part of that change.

Thanks,

Sendhil

Problem using st_linefromtext on "large" linestrings in 10.1

$
0
0
Environment: Arc SDE 10.1 , Oracle 11g r2, Arcgis Server 10.1

Hi,
I have table with linestring clob column, the linestring are larger than 4000 bytes.
When I try to do a select using sde.st_linefromtext on the clob column, i get:
System.Data.OracleClient.OracleException: ORA-20004: Error generating shape from text: Invalid text used to construct geometry (-1).
ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 12
ORA-06512: at "SDE.ST_LINEFROMTEXT", line 58

But it works fine when I run the same select on the same column in different environment: Arc SDE 10 , Oracle 10, Arcgis Server 10

Does Arcgis 10.1 has size limitation?

Thanks,
Ido

SQL Pg query in modelbuilder: group by field1 and select first 4rows basing on field2

$
0
0
Hi all!
I'm getting crazy about this "simple" problem:
I've got a point table (file geodatabase) with two fields: [fishnet] and [score]
I want to:
1) group points for each [fishnet]
2) sort points DESC basing on [score] field
3) select the first 4 rows for each [fishnet]
4) export in a new table/feature
all in a modelbuilder flow.

this query works perfectly in Postgres (of course without [ ]):

SELECT [fishnet], [score] FROM
(SELECT [fishnet], [score], row_number() over (partition BY [fishnet] ORDER BY [score] DESC) AS partitby
FROM table) tab WHERE tab.partitby < 4

Here is an example of my INPUT table ----> Here is an example of my OUTPUT table
[fishnet] [score] [fishnet] [score]
100 1 100 7
100 5 100 5
100 7 100 2
100 0 100 1
100 1 101 6
100 2 101 0
100 0 ........
101 0
101 6
........

Attached the SQL query in Postgres and the corresponding result:
Attachment 22432

Solution 1:
Use the above Postgres SQL query in modelbuilder flow: How can I do that?

Solution 2:
Use modelbuilder tools to obtain the same result: How? suggestions?
Thank you very much in advance!
Paolo
Attached Thumbnails
Click image for larger version

Name:	query_sql.jpg‎
Views:	N/A
Size:	99.8 KB
ID:	22432  

ARCmap 9.3.1 sp2 Window moves itself when saving a change in the database

$
0
0
Dear friends does any of u experience the same problem when u save a file in ARCmap database, the table windows move to the center of ARCmap. I think the reason is because i switch to windows 7 64 bit. With the 32 bit i didn't get this problem.

Is there a fix for this? Or can anybody help me with this issue?

Unique Indexes in ArcSDE for Oracle 11g and Registering as Versioned

$
0
0
I am using ArcGIS 10.1 SP1 and I have been trying to devise an indexing strategy for our new geodatabase. When implementing it, I am having problems making unique indexes and registering as versioned. Whichever order I use doesn't make a difference, the second tool won't allow unique indexes and registering as versioned.

I saw an older 9.3 article on this and it said you could do both if you register as versioned first, then create your unique indexes. That hasn't worked for me. Also, the ArcGIS 10 help said it doesn't recommend using unique indexes because of the potential for compress problems.

Is it a good idea to skip unique indexes and use Data Reviewer to check uniqueness later? I thought it would make sense to enforce uniqueness where it should apply.

Thanks,


Nathan

Upgrade advice please

$
0
0
We are upgrading from ArcSDE 9.3 and SQL Server 2005 to 10.1 and SQL Server 2008 on a new server. We are currrently using 10.0 Desktop products. The way I see it is we need to move the geodatabase to SQL Server 2008 on the new server first, then upgrade it to ArcSDE 10.1. We can't upgrade clients yet, because ArcGIS 10.1 cannot use SQL Server 2005. Does this seem like the correct process or am I missing an easier way of doing it?

Ready to take a baseball bat to SDE Server

$
0
0
I will be the first to admit I am a newbie when it comes to managing an SDE Service. But I have never had so many problems with one peice of seemingly small software.

So here is the deal:

I built an SDE (DBO Schema) Database, and my SQL Reporting Guru has been working with it. In the intrest of security, and isolation for a sandbox I built a new instance of SQL Server, restored the Database from a backup, with the schema and views my reporting analyst created and then resynced the logins. I can login with my sde user from remote ODBC, and SQL Management Studio, as well as Local ODBC and SQLSMS on the SQL Box.

When I try to create the new SDE, it attempts to login, but I get an error.

When I start the service the GIOmgr_esri_sde shows this:

Code:

Thu Mar 07 14:35:19 2013 - ****** Spatial Database I/O Manager ******
Thu Mar 07 14:35:19 2013 - SDE System Startup Initiated . . .
Thu Mar 07 14:35:19 2013 - Validated System Paths.
Thu Mar 07 14:35:19 2013 - SDE IOMGR going into background . . .

And when I look in the sde_esri_sde log I see this

Code:

Connected to instance . . .
ERROR in checking system stored procedures (1).
Run the Upgrade Geodatabase tool to install/upgrade system tables.
Refer ArcSDE installation guide for instructions.

I have looked high and low, and spent way to long on this error - so I am hoping someone has some insight as to what i need to do to get this back online.

Thanks in advance.

Work with SDE 10 and ArcGis Server 10.1

$
0
0
I'll upgrade my Gis Server from 10.0 to 10.1.
At this moment I have SDE 10 installed on a server(with oracle Release 11.2.0.2.0),
I want to install ArcGis Server in a different server, is it a problem?, can I still connected to my SDE(and data) running in version 10?

I mean, I want to serve map-servicea in ArcGis Server 10.1, but I want to know if it is possible to still working with SDE 10(on a different server).

Thank you.

Setting Current version in SQL Server

$
0
0
Hello,

I am trying to set current version in SQL server using the stored procedure:
EXEC sde.set_current_version 'DBO.residence'
But it doesn't seem to work because when I check my MV view, it seems to be referencing the DEFAULT version still.

Has anyone encountered this problem or know what the solution is?

Thanks,
Reuben

Error 000210 : Cannot create output on Default.gdb

$
0
0
When I set Default.gdb as output, I always get Error 000210 : Cannot create output.

I tryed to move Default.gdb to another forlder, and this do NOT run.

Using another geodatabase always went ok.

...why?

ERROR READING SOURCE METADATA

$
0
0
I get this error during XML metadata import into an file geodatabase?

What does this error mean?

ERROR READING SOURCE METADATA
Data at the root level is Invalid. Line1, position 1.
Failed to execute (Remove Synchronized Elements).

model fails - schema lock

$
0
0
I have a model I've been using regularly for quite some time. It seems rather random that I get a schema lock error when it's running...until today when I ran it 10x to no avail. Simply, the model takes a shapefile, edits it, copies to a file geodatabase as a copy, then a python script stops my AGS, deletes the former feature class, renames the copy, repeats the copy/rename for a duplicate file geodatabase that is not used by AGS, then restarts AGS via a python script.

This had all worked in the past. I did have some issues with the script not stopping the server service and causing a schema lock on the geodatabase on the server but that was taken care of. I'm now getting the schema lock on the duplicate that is on another machine entirely. Everything works up until it should delete the existing feature class, and that's when i get the schema lock error.

I tried:
  • running the model in ArcMap, while no data is loaded
  • restarting ArcMap to ensure no lock
  • Closing ArcMap and using ArcCatalog instead
  • restarted my machine

I assure you that there is no one accessing the data, including me, other than this model. I've scoured the internet and it seems everyone's answer is that someone else is editing it. Not possible.

I have also opened the gdb in windows explorer and watched for the lock file. It isn't there when I begin the model and it appears that one is created at some point during the model itself and then it doesn't release it and it won't allow me to delete the file.

I am able to access/edit/delete these same files afterwards by hand using ArcCatalog despite that lock file still being in the gdb. Apparently it's just the model that can't.

What I don't understand is that the lock should be there to prevent other users from editing the data at the same time, but I am the only user. Is it maybe acting like the model is a different person somehow?

Another thing of note is that we did just replace the server where this file exists. (server 2013) I checked the permissions on the folder location and the gdb itself and domain users (me included) have full rights.

It's been quite a frustrating day dealing with this as the model is quite important and takes a good 30 minutes to run so it's slow going in the troubleshooting. Any ideas?

thanks!

SDE Log Contents

$
0
0
Dear All,

I am trying to trace account being locked intermittently.I found this error in ArcSDE Log files.
Can anyone explain what exactly it means

"
[Sun Mar 10 07:13:06 2013] [1103747] [srv2]:5 234926078 :6 120152181 :7 225834855 :8 112615086
DB_open_instance()::db_connect (OCI8) error: 28000
SDE_Oracle Error: 28000 ORA-28000: the account is locked

CAN'T OPEN INSTANCE: sdepro.
Spatial Engine Connection Failed (-51).
Cannot Get Access to Instance sdelb
"
I understand that

1103747 - SDE ID
Server Name: srv2

:5 234926078 - What does this mean
:6 120152181 - What does this mean
:7 225834855 - What does this mean
:8 112615086 - What does this mean


Thanks in advance
Abdullah Saleh
Viewing all 1584 articles
Browse latest View live