With the release of 10.2 and plans to deprecate the ArcSDE command line tools, you may be wondering how current tasks that use these tools can be completed elsewhere. This blog provides some workflows that have alternate user interface tools in ArcCatalog/ArcMap that will make transitioning as seamless as possible. http://blogs.esri.com/esri/supportcenter/2013/10/04/do-this-not-that-alternatives-to-using-sde-command-line-toolsWe are very interested in hearing feedback from everyone who uses the ArcSDE commands, including questions, concerns, and ideas for making this successful. You can also contact Esri Support Services for specific ArcSDE commands that do not have comparable replacements.This document outlines the planned changes in platform and functionality in the ArcGIS 10.2 release and includes a reference to ArcGIS 10.1 deprecation notes. http://downloads2.esri.com/support/TechArticles/W26496_W25918_DEPRECATION_PLAN_FOR_ARCGIS_101_and_102_FINAL_050713.pdf
sdetable -o {grant | revoke} -t <table> -U <user>-A <SELECT,UPDATE,INSERT,DELETE> [-s <server_name>][-i {<service> | <port#> | <direct connection>}] [-D <database_name>] -u <DB_user_name> [-p <DB_user_password>] [-I] [-q]
The RDBMS equivalent commands for the Edit parameter are Update, Insert, and Delete. All three are granted or revoked simultaneously by the Edit parameter.
The versioning model doesn't support access resolution beyond {NO_ACCESS, READ_ONLY, READ_WRITE}. This is a design feature. You could not circumvent it with 'sdetable -o grant' previously either (if all the required permissions weren't present for all tables, then the entire feature class [or feature dataset] had the next lowest access, if any).At 10.2, if you have simple feature classes (non-versioned tables, not registered with the geodatabase), you can use Catalog to right-click Manage... Privileges..., and it will offer the traditional four checkboxes (SELECT, INSERT, UPDATE, DELETE) by user.So it seems as if your request is either impossible or already available. Do you have access to 10.2 to see if this meets your requirements?- V
For example, how is replacing several of the sdemon commands (-o info -I users/locks, -o pause/resume, -o kill) with tabs in ArcCatalog a step forward?
I have since learned that ArcPy now supports AcceptConnections, DisconnectUser, and ListUsers as of ArcGIS 10.1.
I have an interesting observation and wanted to share with you guys and see if you experience the same thing. I am on ArcSDE 10.2, with Oracle 11.2.0.2.0, OS is RHEL6.1. I was excited that using ArcGIS for Desktop there is an option to create a database view. So I followed the steps listed here http://resources.arcgis.com/en/help/main/10.2/index.html#/Create_a_database_view_in_ArcGIS_for_Desktop/019v0000000n000000/and created a simple database view of one of my SDE feature layers. I also created a similar view using SDE command line tool like I used to do in 10.0 and before. Both methods created the views. However, I discovered that in the view created using the desktop tool, the objectID field data type is Long Integer, whereas the view created by the "traditional" SDE command line tool is ObjectID data type. There are some advantages of having it as the "object ID" data type, especially using the view in ArcGIS services, etc. I wonder if anybody else notice this? Is this "long integer" thing a bug? or is it by design choice? I hope to see some documentation about this, but haven't find any. I am very interested hearing how you guys think about this....ThanksRong
I recently noticed something similar, with GUID type fields in Oracle. Using command-line tools results in a view with the same GUID types as the source tables. Using desktop results in a view with all GUID types converted to text. As GUIDs behave differently than text (importantly, what their respective string representation is), this is problematic.My suspicion is that the columns in the view created using desktop either do not get inserted into COLUMN_REGISTRY, or they get inserted with the incorrect types. The actual database type is char(38), so without an entry in COLUMN_REGISTRY (or similar) there'll be no way for ArcGIS to know that this is meant to be a GUID. I'm just continuing to use command-line tools to create the views, for the time being.John
They certainly should not be inserted into the COLUMN_REGISTRY, as that is an ArcSDE System Table. The tool you are using - Create Database View - is nothing but a "button" or "skin" to access RDBMS database functionality. It is not part of the ArcGIS Geodatabase realm, and hence it would be bad if it inserted data into the COLUMN_REGISTRY.This may sound like a regression coming from the SDE Command Line tools, but this actually allows you to create (spatial) views in databases that are not "geodatabase enabled" and thus not "geodatabase aware", e.g. any "ordinary" non-GIS database you have on the shelves, like for customer data. In addition, these tools were not really (or not only) designed to replace the ArcSDE Command Line tools, but to fulfil other ArcGIS users' needs.Of course, you can do the same thing just as easy from your RDBMS management interface, like SQL Plus, SQL Server Management Studio etc, but this tool allows you to script it in Python using arcpy, or use it in ModelBuilder.It is probably confusing because ArcGIS now contains both tools and menu options acting against geodatabases only, and tools working in mixed or non-geodatabase RDBMS systems, something many users still need to get accustomed too...
I'm using SQL to create a table in SQL Server with a geometry column. I need a way to automate registration of that table with the geodatabase. Using arcpy.RegisterWithGeodatabase_management doesn't work if the table is not populated; it complains that there is no geometry type specified. I'm assuming that I would be able to do this using sdelayer -o register with the entity mask parameter, although I haven't tried. I would also be able to specify the spatial reference using the command line tool. The Register with Geodatabase tool, however, takes no parameters except for the input table.Is there something I'm missing here, or is this another piece of functionality that isn't yet available in UI/GP/ArcPy?Blair
Blair,is there any reason why you are using SQL to create an empty table then register it with the geodatabase, rather than simply creating a feature class using python directly? RegisterWithGeodatabase is intended for registering existing (e.g. populated) tables, as opposed to brand-new empty ones that could simply be created using GP/UI/Python.-Shannon
A lot of improvements on the geodatabase side have been made in the lastest ArcGIS releases like renaming and modifying columns and making the sde command line tools available via tools. The possibility of creating proper spatial views however, still needs attention before deprecating the current tools.
'sdemon' certainly did require SDE user access rights, it just passed those accessrights to any connection on the port (which could be construed as a security hole).- V
We specifically use the sde command-line scripting to handle loading data into sde from non-Windows platforms such as Linux systems. All in all this move away from sde command line is not very helpful for those of us that are just trying to automate loading of shapefiles into SDE/geodatabase in a shell scripting environment on a Linux platform.
# Name: FeatureClassToGeodatabase_Example2.py # Description: Use FeatureClassToGeodatabase to copy feature classes # to geodatabase format # Import system modules import arcpy from arcpy import env # Set environment settings env.workspace = "C:/data" # Set local variables inFeatures = ["climate.shp", "majorrds.shp"] outLocation = "C:/output/output.gdb" # Execute TableToGeodatabase arcpy.FeatureClassToGeodatabase_conversion(inFeatures, outLocation)
# Import system modules import arcpy from arcpy import env # Process: Create Database Connection File... # Usage: out_file_location, out_file_name, DBMS_TYPE, instance, database, account_authentication, username, password, save_username_password(must be true) arcpy.CreateDatabaseConnection_management("/net/shared/location/connections/", "zion.sde", "ORACLE", "zionserver/ORCL") # Set environment settings # Set the workspace to the specified data location env.workspace = "/net/sharedata/location/data" outLocation = "Database Connections\zion.sde" # Get all the feature classes in the environment # list of fc's should be similar to this: ["accident.shp", "veg.shp"] inFeatures = arcpy.ListFeatureClasses() # Process: Load Data (Use the "Feature Class To Geodatabase" Tool...) try: # Execute FeatureClassToGeodatabase print "Loading data...\n" arcpy.FeatureClassToGeodatabase_conversion(inFeatures, outLocation) except: for i in range(arcpy.GetMessageCount()): arcpy.AddReturnMessage(i)
Examples: (Linux) /tmp>loaddata_sde_params.py --DBMS ORACLE -i myserver/orcl -u user1 -p user1 --dataloc /net/sharedata/location/data (Windows) c:\tmp>loaddata_sde_params.py --DBMS ORACLE -i myserver/orcl -u user1 -p user1 --dataloc \\sharedata\location\data >loaddata_sde_params.py --help Usage: loaddata_sde_params.py [Options] Options: --version show program's version number and exit -h, --help show this help message and exit --DBMS=DATABASE_TYPE Type of enterprise DBMS: SQLSERVER, ORACLE, or POSTGRESQL. -i INSTANCE DBMS instance name --auth=ACCOUNT_AUTHENTICATION Authentication type options (case-sensitive): DATABASE_AUTH, OPERATING_SYSTEM_AUTH. Default=DATABASE_AUTH -u USER user name -p PASSWORD password --dataloc=DATALOCATION Path to the data (either a geodatabase or a directory with shapefiles -D DATABASE Database name (Not required for Oracle)
Regarding the .sdx SDEexport files - Below is an enhancement for an equivalent arcpy function or tool that will will be considered for a future release. If you contact support services with a good example of why these export files perform more optimally than other data transfer methods (XML workspace documents, etc) we can take a look at these cases and append them to these enhancements for justification. We will need to have a good working example (clear steps to reproduce) of how the SDEEXPORT files are more efficient other methods of data transfer.
NIM095122 - SDEEXPORT/SDEIMPORT: Create geoprocessing tools or arcpy functions for operations performed when using the 'sdeexport/sdeimport' commands.
It's true - no SDEGDBREPAIR tool. I am running 10.2.2 now and purposely chose NOT to install the command line utilities because ESRI is no longer supporting them. I am having an issue with intermittent rights / privileges and the first thing they told me to do was run the SDEGDBREPAIR tool.... I told them I did not install it, nor, was I going to install it. I hope they add the option in ArcCatalog!
Hi Jim,
We are supporting the SDE Command Line tools at 10.2.x. Starting at 10.3, the command line tools were not released. You can use the 10.2.2 command line tools and run the SDEGDBREPAIR, if needed, against your 10.2.2 geodatabase.
The SDEGDBREPAIR tools have been ported to a Geoprocessing Tool in ArcToolbox --> Data Management --> Geodatabase Administration toolbox.
Here is some more information on the ArcGIS 10.3 GP tools:
Diagnose Version Metadata
Diagnose Version Tables
Repair Version Metadata
Repair Version Tables
Hope this help....
-George
thanks - great information to know
Hello Rong,
Have you found away around this problem. It now appears that I cannot export from my spatial views since the OBJECTID field is seen as Long Integer? I've tried altering the view in SQL to no avail and am now stuck.
Thanks
To add to George's statement, here are some updated tech articles and help docs relevant to this discussion:
44300 - Can ArcSDE command line tools be used against 10.3 and newer geodatabases?
Migrate from ArcSDE administration commands—Help | ArcGIS for Desktop 10.3 help
George Thompson
Updated links to ideas:
Create SDE spatial view from ArcGIS Desktop
https://community.esri.com/ideas/8897
See discussion here for more info:
https://community.esri.com/ideas/8897#comment-42312
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.