PROBLEMA

No se crean vistas versionadas al registrar datos como versionado tradicional

Last Published: July 20, 2023

Descripción

When an ArcGIS 10.8 / ArcGIS Pro 2.5 (or newer) client connects to a 10.7.1, or earlier, release of an Enterprise geodatabase in Oracle, and registers the data as versioned, the versioned view is not created for the associated table or feature class.

Note: 
The data is still versioned and can be successfully edited using a desktop client, for example, ArcMap or ArcGIS Pro, because this editing method does not use versioned views, but instead uses the data’s associated delta (Adds and Deletes) tables.  Versioned views are only used for making edits directly through SQL.

Causa

This problem is due to a fix for BUG-00012040 in ArcGIS 10.8, that required the versioned view definition to be updated:

BUG-000124040 : Performing multiple updates on the same record in SQL only changes the existing record in the Archive Class instead of creating new records.

Solución o solución alternativa

  1. If you require versioned views:
  1. If any versioned views are missing, download KB000023226.zip, and extract it to a local folder
  2. Run the attached sql script, find_missing_vvs.sql, from sqlplus to generate an output text file, List_Missing_VersionedViews.txt, containing a list of missing versioned views in the desired schema.
sqlplus sde/sdepassword@SERVER/ORAGDB @C:\temp\find_missing_vvs.sql
  1. Create a connection file to the schema with the missing versioned views in ArcGIS Desktop.
  2. Add the same connection file string to the attached Python script, create_missing_vvs.py.
  3. Run the script inside the Python window of an ArcGIS Desktop client that matches the same version of the geodatabase, as follows. This creates the missing versioned views.

For ArcMap, use:

execfile(r'C:\temp\VerViews\create_missing_vvs.py')

For ArcGIS Pro, use:

exec(open(r'C:\temp\VerViews\create_missing_vvs.py').read())
Note:
The ArcGIS Desktop client version must match the version of the geodatabase to successfully create the versioned views.
  1. If you require versioned views with archiving enabled:
  1. Upgrade the geodatabase using ArcGIS Desktop 10.8 / ArcGIS Pro 2.5 (or above).  Customers whose enterprise geodatabase are at 10.6.1 and cannot upgrade to 10.8, can request to apply 10.6.1 Hot Fix  -  DT-1061-HF-000004988.
  2. If any versioned views are missing after the upgrade, follow Step 1 above, to create the versioned views.

Id. de artículo:000023226

Obtener ayuda de expertos en ArcGIS

Contactar con soporte técnico

Descargar la aplicación de soporte de Esri

Ir a las opciones de descarga

Información relacionada

Descubrir más sobre este tema