For the past few months I've been having an issue getting my SDE Compression End State Count down to "1". It acts like there are connections but I've checked everything I can think of but it won't go any lower than 5. Any suggestions?
I've attached a screenshot for reference.
https://community.esri.com/groups/geodatabase?sr=search&searchId=960f8a53-d2fd-4599-802e-651564f1fb42&searchIndex=0 https://community.esri.com/community/gis/enterprise-gis?sr=search&searchId=a3c6e9ce-91a1-4144-b0ab-1eb60658fd42&searchIndex=0
Hello,
Please check the following:
1)From sde_version table check if there are any existing version?
If any version represents, reconcile and post all the edits and delete the version.
If sync_send version is present then from ArcCatalog, unregister the replica.
2)From sde_process_information table check if any user is connected to the geodatabase?
3)Shut down the map services, if any.
4)Check below tables if any lock exist:
SDE_table_locks; SDE_layer_locks; SDE_object_locks; SDE_state_locks;
Interesting, I have never paid much attention to that value in the compress_log. We have SQL, and I run a few selects in Management Studio where I track things. In case this gives you any clues:
<SPAN class="keyword token">use</SPAN> mysde_database <SPAN class="keyword token">select</SPAN> name<SPAN class="punctuation token">,</SPAN> owner<SPAN class="punctuation token">,</SPAN> version_id<SPAN class="punctuation token">,</SPAN> state_id<SPAN class="punctuation token">,</SPAN> parent_name<SPAN class="punctuation token">,</SPAN> parent_owner <SPAN class="keyword token">from</SPAN> <SPAN class="punctuation token">[</SPAN>mysde_database<SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">[</SPAN>dbo<SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">[</SPAN>SDE_versions<SPAN class="punctuation token">]</SPAN> <SPAN class="keyword token">select</SPAN> <SPAN class="operator token">*</SPAN> <SPAN class="keyword token">from</SPAN> <SPAN class="punctuation token">[</SPAN>mysde_database<SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">[</SPAN>dbo<SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">[</SPAN>SDE_versions<SPAN class="punctuation token">]</SPAN> <SPAN class="keyword token">select</SPAN> <SPAN class="operator token">*</SPAN> <SPAN class="keyword token">from</SPAN> <SPAN class="punctuation token">[</SPAN>mysde_database<SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">[</SPAN>dbo<SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">[</SPAN>SDE_states<SPAN class="punctuation token">]</SPAN> <SPAN class="keyword token">order</SPAN> <SPAN class="keyword token">by</SPAN> state_id <SPAN class="keyword token">select</SPAN> <SPAN class="operator token">*</SPAN> <SPAN class="keyword token">from</SPAN> <SPAN class="punctuation token">[</SPAN>mysde_database<SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">[</SPAN>dbo<SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">[</SPAN>sde_state_lineages<SPAN class="punctuation token">]</SPAN> <SPAN class="keyword token">order</SPAN> <SPAN class="keyword token">by</SPAN> lineage_name<SPAN class="punctuation token">,</SPAN> lineage_id <SPAN class="comment token">/* now I've added */</SPAN> <SPAN class="keyword token">select</SPAN> <SPAN class="keyword token">TOP</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="number token">5</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">*</SPAN> <SPAN class="keyword token">from</SPAN> <SPAN class="punctuation token">[</SPAN>mysde_database<SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">[</SPAN>dbo<SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">[</SPAN>SDE_compress_log<SPAN class="punctuation token">]</SPAN> <SPAN class="keyword token">order</SPAN> <SPAN class="keyword token">by</SPAN> compress_end <SPAN class="keyword token">DESC</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
I also use the "hack" install the old GDBT toolset to view the version-Lineage within Catalog.
edit: use SQL syntax highlighter and added TOP(5) to last line, to limit number of records returned from the compress_log query.
Clayton,
Do you have a replica based on this database (check the sde.SDE_versions table)? What does your sde.SDE_state_locks and sde.SDE_table_locks look like? See who is the owner of state 5 in your sde.SDE_states table and then check that machine for a hung ArcMap.exe or ArcCatalog.exe
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.