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?
↧
Upgrade advice please
↧
Ready to take a baseball bat to SDE Server
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:
And when I look in the sde_esri_sde log I see this
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.
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 . . .
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.
Thanks in advance.
↧
↧
Work with SDE 10 and ArcGis Server 10.1
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.
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
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
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
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?
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
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).
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
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:
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!
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
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
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
↧
buildingageodatabase tutorial for 10.1
Maybe I'm in the wrong forum for this question, but I chose this forum because it has the most relevance to my question.
I have successfully gone through the BuildingaGeodatabase tutorial for ArcGIS 10.1 and want to keep on practicing this tutorial until it's second nature.
Is there a way to reset the tutorial data or all the tutorial data back to its original form rather than going back through the steps and erasing what I've created from the tutorials? I would hate to have to trace back my steps, which would most likely lead to erasing the wrong thing.
Thanks
I have successfully gone through the BuildingaGeodatabase tutorial for ArcGIS 10.1 and want to keep on practicing this tutorial until it's second nature.
Is there a way to reset the tutorial data or all the tutorial data back to its original form rather than going back through the steps and erasing what I've created from the tutorials? I would hate to have to trace back my steps, which would most likely lead to erasing the wrong thing.
Thanks
↧
↧
Adding the ST_Geometry type to an Oracle
Hi,
one of the steps to add st_geometry is to log on as 'SYS' user in Oracle (step number 3) :http://resources.arcgis.com/en/help/...0000000s000000
in some organizations this is a security issue since 'SYS' password and usage is not maintained by the ArcSDE Administrator.
is there any workaround solutions for it ?
I tried using "SDE user connection" with the "create spatial type" geoprocessing tool but it didn't work.
Thanks,
one of the steps to add st_geometry is to log on as 'SYS' user in Oracle (step number 3) :http://resources.arcgis.com/en/help/...0000000s000000
in some organizations this is a security issue since 'SYS' password and usage is not maintained by the ArcSDE Administrator.
is there any workaround solutions for it ?
I tried using "SDE user connection" with the "create spatial type" geoprocessing tool but it didn't work.
Thanks,
↧
Different area calculated between shapefiles and geodatabase
Hi. Our company recently purchased the ArcGIS Server. We migrated all of our GIS data from the native Shapefiles format to GeoDatabase. the problem, we get 2 different areas - hectares calculated in shapefiles are different than those calculated in the GeoDB. Does anybody have this problem? is this normal? because we have to explain the difference to our management.
Thanks.
Thanks.
↧
Underlying DBMS Error when loading elevation points into SDE
Attachment 22517
I have recieved the following error when trying to load elevation points into the Local Government Model that is in SDE. They load fine into a file geodatabase, but i have errors when trying to load into SDE. I notice when i load into my file goedatabase the field name in the "Shape Field" shrink to just Point Z, where it should be Point ZM. Anyone ever come across something like this?
Attachment 22518
I have recieved the following error when trying to load elevation points into the Local Government Model that is in SDE. They load fine into a file geodatabase, but i have errors when trying to load into SDE. I notice when i load into my file goedatabase the field name in the "Shape Field" shrink to just Point Z, where it should be Point ZM. Anyone ever come across something like this?
Attachment 22518
↧
File server vs SDE attachment
Hello
I have some files that I would like to attach to my sde features. Files are small in size ( <40 KB) and have 1:1 relation to features.
I wonder which method is superior, specially in terms of performance?
1) to add a URL field to my features and store my files on the file server
2) To let arcsde do it for me on the database (attachment table).
What are the advantages and disadvantages of storage of small files within the SDE geodatabase?
I have some files that I would like to attach to my sde features. Files are small in size ( <40 KB) and have 1:1 relation to features.
I wonder which method is superior, specially in terms of performance?
1) to add a URL field to my features and store my files on the file server
2) To let arcsde do it for me on the database (attachment table).
What are the advantages and disadvantages of storage of small files within the SDE geodatabase?
↧
↧
SQL Geometry and ArcSDE 10.1 Questions
We recently upgraded our SDE database to 10.1 and in 10.1, the SQL Geometry is the default Geometry type as defined in the DBTUNE table and as such new feature classes used the SQL Geometry Type unless specified otherwise. Also, new Geodatabases use SQL Geometry as the default as well.
I like the capabilities that SQL Geometry offers in terms of accessing the data, but in our situation, the Geodatabase is for data creation and management and I am wondering if the SDE Binary Geometry Type is suitable.
Thanks for your thoughts, Mele
- What is the reason that the SQL Geometry is the default type in ArcSDE 10.1?
Is it to make the Geodatabase more accessible in an enterprise?
Are there performance benefits?
- Is the parcel fabric supported use SQL Geometry?
- Are ArcGIS Topologies supported using SQL Geometry?
I like the capabilities that SQL Geometry offers in terms of accessing the data, but in our situation, the Geodatabase is for data creation and management and I am wondering if the SDE Binary Geometry Type is suitable.
Thanks for your thoughts, Mele
↧
Copying Features from One ArcMap window to another, without losing Related Tables
In our current workflow we are working in a Personal Geodatabase with few features and related tables , many persons will be working in different schemes.
When we need to merge these schemes\Pgdb to a single output , we are copying feature class to feature class . Obviously this changes the Object ID in the resulting output Geodatabase and we lose the related table Information.
Is there any way to copy feature classes from different inputs Pgdbs and still preserve the related tabl
When we need to merge these schemes\Pgdb to a single output , we are copying feature class to feature class . Obviously this changes the Object ID in the resulting output Geodatabase and we lose the related table Information.
Is there any way to copy feature classes from different inputs Pgdbs and still preserve the related tabl
↧
Upgrade and New Server
Hello All, We are running ArcGIS / SDE 9.3 on Server (A) which is windows 2003 server and SQL 2005. We have a new server (B) that is running windows 2012 with SQL 2012 and looking to move ARCGIS Server and SDE to this machine and going to version 10 as that is what the desktops are running. We are looking at avoiding going to 10.1 for now just with the problems we have seen. Also does the user on the Desktop need to be an administrator of the domain in order to connect. This is what the old admin was saying and I am hoping to avoid that scenario? It seems as though I find parts of what I need but no real direction on what order operations are performed as in do I upgrade then detach and attach on new server then install from scratch or do I just detach attach on new server and proceed with install. TIA
↧
Can't add an attribute index
I looked at properties on a 10.1 file geodatabase that I created that was performing slowly. Noticed that the one feature class in there has an index FDO_OBJECTID_1 that it must have inherited from the source county parcel file geodatabase, and that the "Add" button to add an attribute index is greyed out. What's going on there? Is this a clue by it takes this geodatabase to handle its 29 features?
What I did was select several batches of parcels from a county parcel 10.1 file geodatabase feature class, made several shapefiles, edited some lines, then APPENDed the several batches of polygons into a feature class of a new file geodatabase. Then I did a join with a table from the original geodatabase just to calculate a new field with Field Calculator, then dropped the join. I only have 29 records in this new feature class, so I couldn't figure out why, after dropping the join, calculating values for two other new fields was taking so long. When I thought about adding an index to improve performance I saw that there already was one, FDO_OBJECT_ID_1, and no other index is permitted. There is a spatial index called FDO_SHAPE.
Looking back at the source geodatabase, the parcel feature class has an attribute index OBJECTID and the add index button is greyed out, and no spatial index. It also has three relationship classes that I did not use in the new simplified geodatabase.
However, the copy of the whole parcel layer I made back into the old geodatabase has an attribute index FDO_OBJECTID, the "Add" button is available, and a spatial index FDO_SHAPE was created. The relationship classes were also preserved in the new copy.
What I did was select several batches of parcels from a county parcel 10.1 file geodatabase feature class, made several shapefiles, edited some lines, then APPENDed the several batches of polygons into a feature class of a new file geodatabase. Then I did a join with a table from the original geodatabase just to calculate a new field with Field Calculator, then dropped the join. I only have 29 records in this new feature class, so I couldn't figure out why, after dropping the join, calculating values for two other new fields was taking so long. When I thought about adding an index to improve performance I saw that there already was one, FDO_OBJECT_ID_1, and no other index is permitted. There is a spatial index called FDO_SHAPE.
Looking back at the source geodatabase, the parcel feature class has an attribute index OBJECTID and the add index button is greyed out, and no spatial index. It also has three relationship classes that I did not use in the new simplified geodatabase.
However, the copy of the whole parcel layer I made back into the old geodatabase has an attribute index FDO_OBJECTID, the "Add" button is available, and a spatial index FDO_SHAPE was created. The relationship classes were also preserved in the new copy.
↧
↧
Edits seen in ArcSDE but not in SQL?
I have edited an SDE feature class and the changes have gone through rec and post to the default. I can see the changes in the ArcGIS environment but not in the SQL environment. Any ideas of what might be happening?
↧
Problem detaching a geodatabase from ArcSDE programmatically.
I am building and populating databases in ArcSDE. The databases can be quite large and in order to manage my available space during processing (4GB in SQl Server Express) I need to build each database, detach it from the server and then build the next. I am trying to automate the process using ArcObjects (C#) on a machine loaded with ArcGIS 9.3.1, SQL Server Express, ArcSDE Personal Server, v10.0.2531.0..
The problem is the act of building a database creates a connected user to the database - me. When I try to detach the database the operation fails. In order to clear "me" from the database I have tried the following, which works when I step through the code in debug mode, but fails when I execute the program. I am assuming the error has to do with the time required for the system to complete the start stop cycle for the server, but that's just a guess. Can you suggest a solution to this problem? I realize starting and stopping is harsh, but I don't know of another way to release "me" from the database.
Here's the code I'm using:
static void DetachDatabase_SDE()
{
//... Name of database to detach.
string dbName = "ConusWMisc";
//... Initialize dataservermanager and dataservermanageradmin.
IDataServerManager pDSMgr = new DataServerManager();
pDSMgr.ServerName = "MYSERVER\\SQLEXPRESS";
pDSMgr.Connect();
IDataServerManagerAdmin pDSMgrAdm = (IDataServerManagerAdmin)pDSMgr;
//... If users connected to database, try to disconnect.
if (pDSMgrAdm.GetConnectedUsers(dbName) > 0)
{
IServiceControl serviceControl = (IServiceControl)pDSMgr;
if (pDSMgr.IsConnected) pDSMgr.Disconnect();
//... Check the service status and stop it if running.
if (serviceControl.ServerStatus == esriDataServerStatusType.esriServerRunning)
serviceControl.StopServer();
//... Having severed users connection, restart service.
if (serviceControl.ServerStatus == esriDataServerStatusType.esriServerStopped)
serviceControl.StartServer();
if (!pDSMgr.IsConnected) pDSMgr.Connect();
}
try
{
pDSMgrAdm.DetachGeodatabase(dbName);
Console.WriteLine("Detached database from server.");
}
catch (IOException ioEx)
{
Console.WriteLine(ioEx.Message);
return;
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
return;
}
}
The problem is the act of building a database creates a connected user to the database - me. When I try to detach the database the operation fails. In order to clear "me" from the database I have tried the following, which works when I step through the code in debug mode, but fails when I execute the program. I am assuming the error has to do with the time required for the system to complete the start stop cycle for the server, but that's just a guess. Can you suggest a solution to this problem? I realize starting and stopping is harsh, but I don't know of another way to release "me" from the database.
Here's the code I'm using:
static void DetachDatabase_SDE()
{
//... Name of database to detach.
string dbName = "ConusWMisc";
//... Initialize dataservermanager and dataservermanageradmin.
IDataServerManager pDSMgr = new DataServerManager();
pDSMgr.ServerName = "MYSERVER\\SQLEXPRESS";
pDSMgr.Connect();
IDataServerManagerAdmin pDSMgrAdm = (IDataServerManagerAdmin)pDSMgr;
//... If users connected to database, try to disconnect.
if (pDSMgrAdm.GetConnectedUsers(dbName) > 0)
{
IServiceControl serviceControl = (IServiceControl)pDSMgr;
if (pDSMgr.IsConnected) pDSMgr.Disconnect();
//... Check the service status and stop it if running.
if (serviceControl.ServerStatus == esriDataServerStatusType.esriServerRunning)
serviceControl.StopServer();
//... Having severed users connection, restart service.
if (serviceControl.ServerStatus == esriDataServerStatusType.esriServerStopped)
serviceControl.StartServer();
if (!pDSMgr.IsConnected) pDSMgr.Connect();
}
try
{
pDSMgrAdm.DetachGeodatabase(dbName);
Console.WriteLine("Detached database from server.");
}
catch (IOException ioEx)
{
Console.WriteLine(ioEx.Message);
return;
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
return;
}
}
↧
10.1 Versioned Views
Hi,
It is mentioned that versioned views support editing.
I have my ArcSDE geodatabase created on top of MS SQL Server.
I have created a layer called POINT on SDE. I have looked in MS SQL Server and there is an associated view called POINT_VW
which I presume is the versioned view. If I look into the records I can see that the SHAPE column uses the Geometry data type and that the value is more or less a GUID value.
My questions are:
1 - How do I read the geometry stored in this column?
2 - How do I create a new geometry?
I believe that the goal of the versioned view is to facilitate integration with 3rd party tools? I know that it does not support features that are implemented at the geodatabase level so I cannot enable Geometric Networks, etc. But I don't have to use SQL Server native types to better use this right? When I use SDE binary format in which format is the SHAPE column in the versioned view written on? Always in the underlying RDBMS geometry data type?
Thanks,
Jose
It is mentioned that versioned views support editing.
I have my ArcSDE geodatabase created on top of MS SQL Server.
I have created a layer called POINT on SDE. I have looked in MS SQL Server and there is an associated view called POINT_VW
which I presume is the versioned view. If I look into the records I can see that the SHAPE column uses the Geometry data type and that the value is more or less a GUID value.
My questions are:
1 - How do I read the geometry stored in this column?
2 - How do I create a new geometry?
I believe that the goal of the versioned view is to facilitate integration with 3rd party tools? I know that it does not support features that are implemented at the geodatabase level so I cannot enable Geometric Networks, etc. But I don't have to use SQL Server native types to better use this right? When I use SDE binary format in which format is the SHAPE column in the versioned view written on? Always in the underlying RDBMS geometry data type?
Thanks,
Jose
↧