Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10

20
Esri International User Conference | San Diego, CA Demo Theater | Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10 Chet Dobbins Nana Y. Dei July 13 th , 2011

description

July 13 th , 2011. Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10. Chet Dobbins Nana Y. Dei. Topics:. Upgrading the geodatabase (v10.0) Compressing with Replicas SDEINTERCEPT Additional Troubleshooting Resources. …how do I upgrade…. …we can’t compress…. - PowerPoint PPT Presentation

Transcript of Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10

Page 1: Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10

Esri International User Conference | San Diego, CA

Demo Theater |

Tips & Tricks for TroubleshootingGeodatabase Issues at ArcGIS 10

Chet Dobbins

Nana Y. Dei

July 13th, 2011

Page 2: Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10

Topics:

• Upgrading the geodatabase (v10.0)

• Compressing with Replicas

• SDEINTERCEPT

• Additional Troubleshooting Resources

…we can’t compress…

…how do I upgrade…

Page 3: Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10

Upgrading the Geodatabase

Page 4: Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10

Enterprise Geodatabase Upgrade - ArcGIS 10.0

Page 5: Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10

Before Upgrading…

• Backup DBMS and configuration files- DBMS full backup & configuration files

- DBTUNE, DBINIT, GIOMGR

• Install an ArcGIS 10 client- Upgrade integrated into client

- Backwards compatible

• Requirement- Direct connect

- Proper credentials

Page 6: Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10

Prerequisite Checks

• No active user connections

• Correct user to perform upgrade

• Required privileges for upgrade

• DBMS XML support

• Geodatabase schema integrity

• Geodatabase configuration check

- ST shape library

- Multiple user schema geodatabases

InstallArcGIS 10

Client

Pre-requisiteCheck

UpgradeArcSDE

Application

UpgradeGeodatabase

Schema

Post Upgrade

Configuration

ApplicationServer? yes

no

Page 7: Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10

Geodatabase Upgrade Options

• Two options- Upgrade Geodatabase button in ArcCatalog

• Upgrade Geodatabase: GP Tool API- UpgradeGDB_management(…)

Page 8: Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10

Upgrade Resources

• ArcSDE Install Guides- http://

resources.arcgis.com/content/geodatabases/10.0/arcsde-installation-guides

• KB Articles- http://resources.arcgis.com/content/kbase

• Online Help- http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html

• ArcSDE Geodatabase User Forum- http://forums.arcgis.com/forums/32-Geodatabase-amp-ArcSDE

Page 9: Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10

Compressing with Replicas

Page 10: Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10

Types of Replicas

One-way

Two-way

Check out/ Check in Parent Child

Once only

Multiple times

Parent Child

Parent Child

OR

Multiple times

Page 11: Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10

Compress with a One-way Replica

1 2 3Default

Project 1 Replica 11 2

4

1 2 3

3

4

43

COMPRESS

3

Page 12: Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10

Compress with a Two-way Replica

1 2 3Default

Replica 2

1 2

4

3Default

Replica 2

34

COMPRESS COMPRESS

Parent Child

Page 13: Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10

Best Practices

• Remove unnecessary replicas

• Send changes regularly

• Reconcile & Post named versions before synchronizing

• Full compress is ideal but not always possible- Look to achieve an effective compress

Page 14: Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10

SDEINTERCEPT Tracing

Page 15: Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10

SDEINTERCEPT

• Built-in ArcSDE functionality

• Logs ArcSDE client - server calls

• Helps diagnose connection & performance issues

• Enable SDEINTERCEPT by setting the following environment variables:

- set SDEINTERCEPT=crwTf

- set SDEINTERCEPTLOC=C:\temp\sde_interceptFlag Description

c Intercept the API command name

r Intercept the Channel broadcasts read-only

w Intercept the Channel broadcasts write-only

t Intercept log time (minute:second)

T Intercept log time (hour:minute:second)

f Intercept flush immediate

Page 16: Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10

SDEINTERCEPT Output

========================================[W 14:30:54.582] Command: QueryWithInfo[W 14:30:54.582] Long: 1[W 14:30:54.582] Query Info:

Num Columns: 1Columns: "Shape"SQL_Construct: [1]Tables: "scratch.MAP.STATES"WhereClause: "STATE_NAME LIKE 'C%'"Query Type: 4ByClause: <null>Num Hints: 0Num Parameter markers: 0Logfile: <null>

[R 14:30:54.582] Long: 0[R 14:30:54.582] Col_Defines: [1]

========================================[W 14:30:54.582] Command: QueryWithInfo[W 14:30:54.582] Long: 1[W 14:30:54.582] Query Info:

Num Columns: 1Columns: "Shape"SQL_Construct: [1]Tables: "scratch.MAP.STATES"WhereClause: "STATE_NAME LIKE 'C%'"Query Type: 4ByClause: <null>Num Hints: 0Num Parameter markers: 0Logfile: <null>

[R 14:30:54.582] Long: 0[R 14:30:54.582] Col_Defines: [1]

Command name

Queried tables & columns

WHERE & ORDER BY Clauses, query type

Response: Description of columns returned

Page 17: Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10

Additional Troubleshooting Resources

Page 18: Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10

Monitoring Tools

• SDEINTERCEPT- Monitors commands generated by the ArcSDE client library

• SDETRACE- Logs the calls from the client application to the ArcSDE C-API

• ExecuteSQL- Control database SQL Traces from the ArcGIS client

• Database SQL Traces- Records SQL received by the database engine, and what

processing occurred in response to each request.

Page 19: Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10

Diagnostic Tools

• ArcSDE Error Messages- ArcSDE errors/messages received on the client or in the logs

• SDEVERBOSE- Logs errors/messages to sde_<instance>.log

• Geodatabase Toolset (GDBT) - Monitoring, investigating and reporting

• Replica Activity Logs- Records information for replica creation / synchronization

• sdegdbrepair- Identifies and repairs any inconsistencies

Page 20: Tips & Tricks for Troubleshooting Geodatabase Issues at ArcGIS 10

Online Resources

• ArcGIS Resource Center- http://resources.arcgis.com/

• ArcGIS Web-based Help- http://resources.arcgis.com/content/web-based-help

• Forums- http://forums.arcgis.com/forums/32-Geodatabase-amp-ArcSDE

• Blogs- http://blogs.esri.com/Dev/blogs/geodatabase/default.aspx