Using arcpy and ArcGIS 10.1 SP1 (Build 3143) against an Oracle 11g enterprise geodatabase, I am trying to add an index to an existing attribute in an existing feature class:
arcpy.AddIndex_management(feature_class,attribute_name,idx_name)
Running as the table owner:
arcgisscripting.ExecuteError: ERROR 999999: Error executing function. Operation only allowed by the owner of the version [SDE.DEFAULT] Failed to execute (AddIndex).
The default version is Protected.
Running as SDE:
arcgisscripting.ExecuteError: ERROR 999999: Error executing function. Insufficient permissions Failed to execute (AddIndex).
As the feature class is owned by a different user than the version owner, what permissions are needed to add an index?
In ArcCatalog, the table owner can happily add an index.
As a workaround, is it possible to change the access of the default version via ArcPy?