HOW TO
Instructions provided in this article describe a general workflow for working with Oracle versioning.
The purpose of this article is to demonstrate working with Oracle versioning, but not using Enterprise geodatabase versioning, and how to edit and check data changes from ArcGIS Desktop (ArcMap).
Note: There are still some limitations to working with Oracle Workspace Manager on geodatabase feature classes, such as the inability to preview the data changes from ArcCatalog. Even with ArcMap, a third-party add-on DLL is needed to execute SQL directly from ArcMap so that workspaces can be switched within an ArcMap session.
Both ArcMap and Oracle SQL*Plus are used in following workflow.
SQL> EXEC dbms_wm.EnableVersioning(table_name => 'TEST_SDO', hist => 'VIEW_WO_OVERWRITE');
SQL> EXEC dbms_wm.createWorkspace('LOGON_TEST');
Note: An Oracle Workspace is like a version in a geodatabase. The default workspace for a session context is called LIVE.
begin dbms_wm.gotoWorkspace('LOGON_TEST'); end;
SQL> select app_no from test_sdo where objectid=21569; APP_NO --------------------
SQL> EXEC dbms_wm.gotoWorkspace('LOGON_TEST');
SQL> select app_no from test_sdo where objectid=21569; APP_NO -------------------- 123
SQL> select count(*) from test_sdo where objectid>22029; COUNT(*) ---------- 2 SQL> select count(*) from test_sdo where objectid=21986; COUNT(*) ---------- 0
begin dbms_wm.gotoWorkspace('LIVE'); end;
Article ID: 000011459
Get help from ArcGIS experts
Download the Esri Support App